include_once('../motor/connect.php'); include_once('../motor/functions.php'); $table_id = 'index'; $query_content = "SELECT `title`, `keyword`, `descryption`, `h1`, `content1`, `content2` FROM `content_new` WHERE katalog ='{$table_id}' LIMIT 1"; $sql_content = mysql_query($query_content) or die(mysql_error()); $row_content = mysql_fetch_array($sql_content, MYSQL_NUM); //разбор урла $url .= $http.'://'; $url .= $_SERVER['SERVER_NAME']; $url .= $_SERVER['REQUEST_URI']; $url= parse_url($url, PHP_URL_PATH); $url_path = explode("/", $url); for ($i=1;$i<=count($url_path)-2;$i++) { if (($url_path[$i]=='') ) { header("HTTP/1.0 404 Not Found"); echo file_get_contents($http.'://'.$_SERVER['SERVER_NAME'].'/404.php'); exit; } } include_once('../motor/top_index.php'); ?>
include_once('../motor/header.php'); ?> //include_once('../motor/slider-new.php'); ?>