0)
$url = preg_replace($val["CONDITION"], (StrLen($val["PATH"]) > 0 ? $val["PATH"]."?" : "").$val["RULE"], $_SERVER["REQUEST_URI"]);
else
$url = $val["PATH"];
if(($pos=strpos($url, "?"))!==false){
$params = substr($url, $pos+1);
parse_str($params, $vars);
$_GET += $vars;
$_REQUEST += $vars;
$GLOBALS += $vars;
$_SERVER["QUERY_STRING"] = $QUERY_STRING = $params;
$url = substr($url, 0, $pos);
}
if(!file_exists($_SERVER['DOCUMENT_ROOT'].$url) || !is_file($_SERVER['DOCUMENT_ROOT'].$url))
continue;
//CHTTP::SetStatus("200 OK");
$_SERVER["REAL_FILE_PATH"] = $url;
include_once($_SERVER['DOCUMENT_ROOT'].$url);
//echo $_SERVER['DOCUMENT_ROOT'].$url;
die();
}
}
if(file_exists($_SERVER['DOCUMENT_ROOT'].'/404.php')){include_once($_SERVER['DOCUMENT_ROOT'].'/404.php');}
?>