$docRoot now defined here

This commit is contained in:
Matt Pass
2012-06-25 07:14:52 +01:00
parent 29f431cd78
commit cc7887d452

View File

@@ -25,6 +25,9 @@ function numClean($var) {
// Settings are stored in this file
include("config.php");
$docRoot = str_replace("\\","/",$_SERVER['DOCUMENT_ROOT']);
if (strrpos($docRoot,"/")==strlen($docRoot)-1) {$docRoot = substr($docRoot,0,strlen($docRoot)-1);};
// Update this config file?
if (isset($_POST["theme"]) && $_POST["theme"] && $_SESSION['userLevel'] == 10) {
$settingsFile = 'config.php';