mirror of
https://github.com/icecoder/ICEcoder.git
synced 2026-03-07 00:56:48 +01:00
No longer console.log
We should indeed only output if index.php and top.iceRoot is updated after a settings change in settings-update.php (top.docRoot only changes if you manually change the file, in which case a reload is needed and this is picked up again from scratch).
This commit is contained in:
@@ -99,7 +99,7 @@ $serverType = stristr($_SERVER['SERVER_SOFTWARE'], "win") ? "Windows" : "Linux";
|
||||
$docRoot = rtrim(str_replace("\\","/",$ICEcoder['docRoot']));
|
||||
$iceRoot = rtrim(str_replace("\\","/",$ICEcoder["root"]));
|
||||
if ($_SESSION['loggedIn'] && basename($_SERVER['SCRIPT_NAME']) == "index.php") {
|
||||
echo "<script>console.log('".basename($_SERVER['SCRIPT_NAME'])."');top.docRoot='".$docRoot."';top.iceRoot='".$iceRoot."'</script>";
|
||||
echo "<script>top.docRoot='".$docRoot."';top.iceRoot='".$iceRoot."'</script>";
|
||||
}
|
||||
|
||||
// Establish the dir ICEcoders running from
|
||||
|
||||
Reference in New Issue
Block a user