Skip to content
This repository was archived by the owner on Dec 14, 2023. It is now read-only.

Commit 7001178

Browse files
author
mattpass
committed
No JS output before DOCTYPE, fix path for required file
1 parent 4ac0f0b commit 7001178

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

index.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@
5757
?>">
5858
<link rel="icon" type="image/png" href="<?php echo $settingsClass->assetsRoot;?>/images/favicon.png">
5959
<script>
60+
docRoot = "<?php echo $ICEcoder['docRoot']; ?>";
6061
iceRoot = "<?php echo $ICEcoder['root']; ?>";
6162

6263
window.onbeforeunload = function() {

lib/icecoder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
// Classes
3-
require_once dirname(__FILE__)."../classes/_ExtraProcesses.php";
3+
require_once dirname(__FILE__)."/../classes/_ExtraProcesses.php";
44
require_once dirname(__FILE__)."/../classes/Backup.php";
55
require_once dirname(__FILE__)."/../classes/File.php";
66
require_once dirname(__FILE__)."/../classes/Settings.php";

lib/settings.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -186,9 +186,6 @@
186186
$serverType = $systemClass->getOS();
187187
$docRoot = rtrim(str_replace("\\", "/", $ICEcoder['docRoot']));
188188
$iceRoot = rtrim(str_replace("\\", "/", $ICEcoder["root"]));
189-
if ($_SESSION['loggedIn'] && "index.php" === basename($_SERVER['SCRIPT_NAME'])) {
190-
echo "<script>docRoot = '" . $docRoot . "'; iceRoot='" . $iceRoot . "'</script>";
191-
}
192189

193190
// Establish the dir ICEcoders running from
194191
$ICEcoderDirFullPath = rtrim(str_replace("\\", "/", dirname($_SERVER['SCRIPT_FILENAME'])), "/lib");

0 commit comments

Comments
 (0)