include_once("includes/connection.php"); include_once("includes/functions.php"); @include_once("admin/mod_cat/functions.php"); if(!isset($_REQUEST['sub'])) $_REQUEST['sub'] = "main"; setlocale(LC_ALL, "swedish"); $global_conf = get_conf(); $layout_conf = get_conf("layout"); $content_conf = get_conf("content"); if(is_file("./meta/".$_REQUEST['sub'].".php")) include_once("./meta/".$_REQUEST['sub'].".php"); else include_once("./meta/main.php"); // ensure that the search engines do not crawl broken links to cars if($_REQUEST['sub'] == "view" && isset($_REQUEST['id'])) { $sql = "SELECT * FROM item WHERE item_id = ".$_REQUEST['id']; $res = mysql_query($sql); if(mysql_num_rows($res) == 0) { // output 404 header header("HTTP/1.0 404 Not Found"); } } ?>
|
|||||
Copyright @ 2005 Apladalens Bil | |||||
powered by sdsab.se |