"; //echo $_SERVER['REQUEST_URI']; //echo strpos($_SERVER['HTTP_USER_AGENT'], "Seznam screenshot-generator"); if (strpos($_SERVER['HTTP_USER_AGENT'], "Seznam screenshot-generator") !== false && strpos($_SERVER['REQUEST_URI'], "20-prsa-s-cervenou-kosilkou.html") !== false) { include_once("mlsani.php"); die(); } $PARAMS = array(); $urlItems = explode("/", $_SERVER["REQUEST_URI"]); $_GET["isSeo"] = false; $_GET["selCategoryId"] = 0; if (count($urlItems) == 3) { list($articleId, $params) = explode("?", $urlItems[2]); preg_match("/^[0-9]*/", $articleId, $matches); $_GET["categoryId"] = $urlItems[1]. "/"; $_GET["id"] = $matches[0]; $_GET["articleId"] = $articleId; $_GET["isSeo"] = true; //print_r($_GET); exit; if ($_GET["id"]) { $PAGE = "detail"; } include_once("index.php"); } else { $file = str_replace("/", "", $_SERVER["REQUEST_URI"]); $file = str_replace(".html", ".php", $file); if ($file == "") { $file = "index.php"; } @list($file, $params) = explode("?", $file, 2); $listParams = explode("&", $params); foreach($listParams as $param) { @list($key, $value) = explode("=", $param); $PARAMS[$key] = $value; } $PAGE = str_replace(".php", "", $file); /* echo "
", "RequestURI:", $_SERVER["REQUEST_URI"], "
", "PAGE:", $PAGE, "
", "file:", $file, "
", "PARAMS:", print_r($PARAMS), "
"; */ $result = @include_once($file); if (!$result) { include_once("index.php"); } } ?>