1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128
|
<html><head>
<script type="text/javascript">
<!--
var temps = 5; // ici tu met le temps que tu veut
window.onload = function ()
{
debut = new Date();
debut = debut.getTime();
document.getElementById('compteur').innerHTML = temps +'';
cmp = setInterval('decompte();',990);
}
function decompte()
{
var tmp = new Date();
tmp = tmp.getTime();
tmp = temps - ((tmp - debut)/1000);
if (tmp > 0) {
document.getElementById('compteur').innerHTML = Math.round(tmp) +'';
}
else {
clearInterval(cmp); // sinon le script se sent plus et il s'arrete pu
}
}
-->
</script>
<?php
////////////////////
// Code source terminer le 02/10/2014
//
////////////////////////
//$monUrl = "http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
$domaine = "http://".$_SERVER['HTTP_HOST'];
$monUrl = $_SERVER['REQUEST_URI'];
//$urla = utf8_decode(urldecode("http://www.malmote.com/3339_Beaut%C3%A9-Parfum.html"));
$urla = $monUrl;
$redirection = null;
$urlb = str_replace ( "_", "0000", $urla);
$urlc = str_replace ( "-", "_", $urlb);
$urld = str_replace ( "0000", "-", $urlc);
echo "<h1>$urld</h1>";
$headers = @get_headers($domaine.$urld);
if(strpos($headers[0],'404') === false)
{
echo "<meta http-equiv=\"refresh\" content=\"5;URL=$domaine.$urld\">";
$redirection = "oui";
// echo "URL Exists";
}
else
{
$redirection = "non";
// echo "URL Not Exists";
}
//echo "<meta http-equiv='refresh' content='5;URL=$urld'>";
?>
<meta content="text/html; charset=utf-8" http-equiv="content-type">
<title>404</title>
<meta name="description" content="ceci et une erreur 404 ce qui veus dire que la page est introuvable dans cette Boutique en ligne">
<meta name="keywords" content="erreur 404, 404, page introuvable">
<meta http-equiv="content-language" content="fr-FR">
<meta name="language" content="fr-FR">
<link rel="shortcut icon" type="image/x-icon" href="/images/favicon.ico">
<link rel="icon" type="image/png" href="/images/favicon2.png">
</head><body>
<div style="text-align: center;"><img style="width: 840px; height: 351px;" alt="boutique en ligne" title="boutique en ligne" src="http://www.malmote.com/images/image-erreur.gif"><br>
<div>
<br>
<h1>ERREUR 404 </h1>
<br>
<br>
<br>
<big style="font-weight: bold;"><big><big><a rel="tag" href="http://www.malmote.com">Boutique en ligne</a></big></big></big><br>
<br>
<br>
<?php
if ($redirection == "oui"){
echo "Veuillez Patienter la redirection est en cours, patienter seulement <div id='compteur'></div> secondes";
}
?>
<br><br>
</div>
</div>
</body></html> |
Partager