mirror of
https://github.com/icecoder/ICEcoder.git
synced 2026-03-14 20:37:00 +01:00
$docRoot now defined here
This commit is contained in:
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user