}
function init_pathes(){
- if(($n = strpos($_SERVER["REQUEST_URI"], "?")) !== false){
- $_SERVER["REQUEST_URI"] = substr($_SERVER["REQUEST_URI"], 0, $n);
+ $REQUEST_URI = $_SERVER["REQUEST_URI"];
+ if(($n = strpos($REQUEST_URI, "?")) !== false){
+ $REQUEST_URI = substr($REQUEST_URI, 0, $n);
}
- $web_path = explode("/", preg_replace('#/+#','/',$_SERVER["REQUEST_URI"]));
+ $web_path = explode("/", preg_replace('#/+#','/',$REQUEST_URI));
$this->pathes["web"] = "";
for($i = 0; $i < count($web_path) - 1; $i++) $this->pathes["web"] .= $web_path[$i]."/";
if(