From 9f97c6ca92329489509f86900e735a00bde4e56a Mon Sep 17 00:00:00 2001 From: ben Date: Fri, 28 Mar 2008 16:11:29 +0000 Subject: Autoconfiguration update .. again git-svn-id: https://code.elgg.org/elgg/trunk@282 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/configuration.php | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'engine') diff --git a/engine/lib/configuration.php b/engine/lib/configuration.php index 6b2bfbb49..43b01e88e 100644 --- a/engine/lib/configuration.php +++ b/engine/lib/configuration.php @@ -21,7 +21,7 @@ function set_default_config() { global $CONFIG; - + if (empty($CONFIG->path)) $CONFIG->path = str_replace("\\","/",dirname(dirname(dirname(__FILE__)))) . "/"; @@ -37,16 +37,14 @@ $CONFIG->wwwroot .= "/"; }*/ - $request = $_SERVER['REQUEST_URI']; - + //$request = $_SERVER['REQUEST_URI']; + $request = str_replace($_SERVER['DOCUMENT_ROOT'],'',$CONFIG->path); if (strripos($request,"/") < (strlen($request) - 1)) { // addressing a file directly, not a dir $request = substr($request, 0, strripos($request,"/")+1); } $CONFIG->wwwroot .= $request; - - //$CONFIG->wwwroot .= str_replace($_SERVER['DOCUMENT_ROOT'],"",$CONFIG->path); } @@ -57,7 +55,7 @@ $CONFIG->sitename = "New Elgg site"; if (empty($CONFIG->debug)) - $CONFIG->debug = false; + $CONFIG->debug = false; } -- cgit v1.2.3