Start the session in the header.php
This commit is contained in:
parent
c88378a4fe
commit
8563df387f
|
|
@ -25,7 +25,18 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
//includes files
|
//includes files
|
||||||
require_once __DIR__ . "/require.php";
|
require_once __DIR__ . "/require.php";
|
||||||
|
|
||||||
|
//start the session
|
||||||
|
ini_set("session.cookie_httponly", true);
|
||||||
|
if (!isset($_SESSION)) { session_start(); }
|
||||||
|
|
||||||
|
//set the domains session
|
||||||
|
if (!isset($_SESSION['domains'])) {
|
||||||
|
$domain = new domains();
|
||||||
|
$domain->session();
|
||||||
|
$domain->set();
|
||||||
|
}
|
||||||
|
|
||||||
//if reloadxml then run the command
|
//if reloadxml then run the command
|
||||||
if (permission_exists('dialplan_edit') && isset($_SESSION["reload_xml"])) {
|
if (permission_exists('dialplan_edit') && isset($_SESSION["reload_xml"])) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue