From 51effb7e78cff3286105b72450ef8621751bc5e1 Mon Sep 17 00:00:00 2001 From: sminnee Date: Wed, 13 Oct 2010 02:32:07 +0000 Subject: [PATCH] BUGFIX: Remove hacky mucking with chdir() and $_SERVER - they're no longer necessary (from r97732) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/phpinstaller/trunk@112090 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- index.php | 8 -------- 1 file changed, 8 deletions(-) diff --git a/index.php b/index.php index d09acd7..fcd262a 100644 --- a/index.php +++ b/index.php @@ -60,12 +60,4 @@ if($url && file_exists($fileName)) { die(); } -// For linux -$_SERVER['SCRIPT_FILENAME'] = str_replace('/index.php','/sapphire/main.php', $_SERVER['SCRIPT_FILENAME']); -$_SERVER['SCRIPT_NAME'] = str_replace('/index.php','/sapphire/main.php', $_SERVER['SCRIPT_NAME']); -// And for windows -$_SERVER['SCRIPT_FILENAME'] = str_replace('\\index.php','\\sapphire\\main.php', $_SERVER['SCRIPT_FILENAME']); -$_SERVER['SCRIPT_NAME'] = str_replace('\\index.php','\\sapphire\\main.php', $_SERVER['SCRIPT_NAME']); - -chdir('sapphire'); require_once('sapphire/main.php');