require ("./includes/config.php"); ?> if(($_GET["page"]=="actualites-rachat-credit")&&($_GET["id_actu"]!="")) { $url=substr($_SERVER["REQUEST_URI"],35,-(strlen($_GET["id_actu"])+6)); $query="SELECT titre,date FROM actus WHERE id_actu=".$_GET["id_actu"]." LIMIT 1"; $result=mysql_query($query); $row=mysql_fetch_array($result); if($row["titre"]!="") { if(victor($row["titre"])!=$url or date("Ymd",strtotime($row["date"]))!=substr($_SERVER["REQUEST_URI"],26,8)) { header("HTTP/1.1 404 Not found"); header("location:/404.html"); } } if(mysql_num_rows($result)==0) { header("HTTP/1.1 404 Not found"); header("location:/404.html"); } } if(($_GET["page"]=="lexique")&&($_GET["idmot"]!="")) { $url=$_SERVER["REQUEST_URI"]; $query="SELECT mot AS a_trouver FROM lexique WHERE id=".$_GET["idmot"]." LIMIT 1"; $result=mysql_query($query); $row=mysql_fetch_array($result); if($row["a_trouver"]!="") { if (!eregi(victor($row["a_trouver"]),$url)) { header("HTTP/1.1 404 Not found"); header("location:/404.html"); } } if(mysql_num_rows($result)==0) { header("HTTP/1.1 404 Not found"); header("location:/404.html"); } } //if(($_GET["page"]=="partenaires")&&($_GET["section"]!="index")) if($_GET["page"]=="partenaires") { header("HTTP/1.1 404 Not found"); header("location:/404.html"); } if($_SESSION["referer"]=="") { session_start(); $_SESSION["referer"]=$_SERVER['HTTP_REFERER']; } ?> require ("./pages/metas.php"); ?>