game/b_index.php

25 lines
1.5 KiB
PHP
Raw Normal View History

2007-10-27 10:00:00 +00:00
<?php
2007-11-04 11:00:00 +00:00
session_start();
2007-10-27 10:00:00 +00:00
//define('DESIGN', 'pages/design/design1.css');
require('securitebanni.php');
require('header.php');
2007-11-04 11:00:00 +00:00
if(!isset($_SESSION['charg']) || $_SESSION['charg'] != 1) echo '<meta http-equiv="refresh" content="0; url=\'index.php?erreur=7\'"/>';
elseif(!isset($_GET['v'])){
$url=@eregi_replace($_SERVER['DOCUMENT_ROOT'],'http://'.$_SERVER['HTTP_HOST'],$_SERVER['SCRIPT_FILENAME']);
echo '<script type="text/javascript">window.location.href="'.$url.'?v='.sha1(time()).'";</script>';
echo '<noscript><meta http-equiv="refresh" content="0; url=\'index.php?erreur=6\'"/></noscript>';
}
if(($_GET['v'] == sha1(time()) || $_GET['v'] == sha1(time() - 1) || $_GET['v'] == sha1(time() - 2) || $_GET['v'] == sha1(time() - 3) || $_GET['v'] == sha1(time() - 4) || $_GET['v'] == sha1(time() - 5) || $_GET['v'] == sha1(time() - 6) || $_GET['v'] == sha1(time() - 7) || $_GET['v'] == sha1(time() - 8) || $_GET['v'] == sha1(time() - 9) || $_GET['v'] == sha1(time() - 10)) && isset($_SESSION['charg']) && $_SESSION['charg'] == 1) echo '<frameset cols="182,*" frameborder="0" border="0" noresize>
<frame src="pages/menu.php" frameborder="0" border="0" noresize />
<frame src="pages/depart.php" name="changement" frameborder="0" border="0" noresize />
2007-10-27 10:00:00 +00:00
</frameset>
2007-11-04 11:00:00 +00:00
<body bgcolor="#000000">
2007-10-27 10:00:00 +00:00
<p> </p>
</body>
2007-11-04 11:00:00 +00:00
</html>';
elseif(!isset($_SESSION['charg']) || $_SESSION['charg'] != 1) echo '<meta http-equiv="refresh" content="0; url=\'index.php?erreur=7\'"/>';
else echo '<meta http-equiv="refresh" content="0; url=\'b_index.php\'"/>';
?>