Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Dec 14, 2023. It is now read-only.
/ICEcoderPublic archive

Commit7001178

Browse files
author
mattpass
committed
No JS output before DOCTYPE, fix path for required file
1 parent4ac0f0b commit7001178

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="<?phpecho$settingsClass->assetsRoot;?>/images/favicon.png">
5959
<script>
60+
docRoot = "<?phpecho$ICEcoder['docRoot'];?>";
6061
iceRoot = "<?phpecho$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_oncedirname(__FILE__)."../classes/_ExtraProcesses.php";
3+
require_oncedirname(__FILE__)."/../classes/_ExtraProcesses.php";
44
require_oncedirname(__FILE__)."/../classes/Backup.php";
55
require_oncedirname(__FILE__)."/../classes/File.php";
66
require_oncedirname(__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)

[8]ページ先頭

©2009-2025 Movatter.jp