0&&trim($_SERVER["REDIRECT_URL"])!=""){header("Location: ".$_SERVER["REDIRECT_URL"]);return;}if(strpos($_REQUEST["requested_html"],"/../")!==false){die("error");}if(file_exists($_REQUEST["requested_html"]."index.php")){$_REQUEST["requested_html"].="index.php";}$rewrite_pathinfo=pathinfo($_REQUEST["requested_html"]);$rewrite_extension=strtolower($rewrite_pathinfo["extension"]);switch(basename($_REQUEST["requested_html"])){case"js_connector.php":include"js_connector.php";return;case"robots.txt":include"robots.php";return;case"sitemap.xml":include"sitemap.php";return;}if(in_array($rewrite_extension,array("sql","pem","key"))){header("HTTP/1.1 401 Unauthorized");die("Unauthorized extension [".$rewrite_extension."] ");exit;}if($rewrite_extension=="php"){if(file_exists($_REQUEST["requested_html"])){$rewrite_dir=str_replace("_mod_rewrite.php",$rewrite_pathinfo["dirname"],$_SERVER["SCRIPT_FILENAME"]);chdir($rewrite_dir);include($rewrite_pathinfo["basename"]);return;}else{$sekce="404";include("index.php");}}if(file_exists($_REQUEST["requested_html"])){switch($rewrite_extension){case"css":$rewrite_mimetype="text/css";break;case"js":$rewrite_mimetype="text/js";break;default:$rewrite_mimetype=mime_content_type($_REQUEST["requested_html"]);}header('Content-Type: '.$rewrite_mimetype);header('Content-Length: '.filesize($_REQUEST["requested_html"]));header('Last-Modified: '.gmdate('D, d M Y H:i:s',filemtime($_REQUEST["requested_html"])).' GMT',true,200);readfile($_REQUEST["requested_html"]);return;}if($rewrite_extension=="html"){$requested_html=$_REQUEST["requested_html"]=substr($_REQUEST["requested_html"],0,strlen($_REQUEST["requested_html"])-5);}include("index.php");return;}$requested_html=trim($_REQUEST["requested_html"]);$requested_html=trim($requested_html,"/");if(file_exists($requested_html.".html")){readfile($requested_html.".html");return;}if(file_exists($requested_html.".php")&&$requested_html!="index"){$x=explode("/",$requested_html);header("Location: ".$x[count($x)-1].".php");return;}include("index.php");