error_reporting(E_ALL); ini_set( 'default_charset', 'ISO-8859-1' ); if (!isset($page)) { if (!isset($_SERVER["HTTP_REFERER"])) { header("Location: http://LesNouvellesDX.fr/histoires.php"); exit; } header("Location: ".$_SERVER["HTTP_REFERER"]); } $chemin = "../"; include ($chemin."sprotection/mot_cle"); include ($chemin.$cle[5]."/function.php"); // simple test de la validité des paramètres $NbrAlbum = count($albumhistoire); $trouveAlbum = 0; for ($i = 0;$i<$NbrAlbum;$i++){ if ($page == $albumhistoire[$i]) $trouveAlbum = 1; } //si paramètre faux, on sort if ($trouveAlbum == 0) { header("Location: http://LesNouvellesDX.fr/histoires.php"); exit; } $connect = ouvrirdb($cle); $pagelue = "histoire-".$page; if (isset($indic)) $pagelue.="-".$indic; $indesir = visitor($connect,$cle,$pagelue,1); if ($indesir == 1) exit; ?>
