1
0
mirror of https://github.com/e107inc/e107.git synced 2025-04-21 21:21:54 +02:00

Commented code

This commit is contained in:
Cameron 2017-02-09 07:39:19 -08:00
parent c80bb4c407
commit af7745b326

View File

@ -3852,6 +3852,14 @@ class e107
$i++;
}
}
/*
if(!empty($_SERVER['REQUEST_URI']) && !deftrue('e_SINGLE_ENTRY'))
{
list($_SERVER['PHP_SELF']) = explode("?",$_SERVER['REQUEST_URI'],1);
}
*/
if($_SERVER['PHP_SELF'] == "") { $_SERVER['PHP_SELF'] = $_SERVER['SCRIPT_NAME']; }
$http_path = dirname($_SERVER['PHP_SELF']);
@ -3864,9 +3872,15 @@ class e107
$j++;
}
$http_path = array_reverse($http_path);
$this->server_path = implode("/", $http_path)."/";
$this->server_path = $this->fix_windows_paths($this->server_path);
//var_dump($this->server_path);
//exit;
if ($this->server_path == "//")
{
$this->server_path = "/";