Przeglądaj źródła

Update index.php

FusionPBX 8 lat temu
rodzic
commit
00e1677be0
1 zmienionych plików z 4 dodań i 3 usunięć
  1. 4 3
      index.php

+ 4 - 3
index.php

@@ -23,11 +23,12 @@
 	Contributor(s):
 	Contributor(s):
 	Mark J. Crane <[email protected]>
 	Mark J. Crane <[email protected]>
 */
 */
-include "root.php";
+//include root
+	include "root.php";
 
 
 // start the session
 // start the session
 	ini_set("session.cookie_httponly", True);
 	ini_set("session.cookie_httponly", True);
-	session_start();
+	if (!isset($_SESSION)) { session_start(); }
 
 
 //if config.php file does not exist then redirect to the install page
 //if config.php file does not exist then redirect to the install page
 	if (file_exists($_SERVER["PROJECT_ROOT"]."/resources/config.php")) {
 	if (file_exists($_SERVER["PROJECT_ROOT"]."/resources/config.php")) {
@@ -79,4 +80,4 @@ include "root.php";
 		}
 		}
 	}
 	}
 
 
-?>
+?>