39 lines
669 B
PHP
39 lines
669 B
PHP
<?php
|
|
|
|
ob_start();
|
|
|
|
|
|
/*if(!$_SERVER['REMOTE_ADDR']=="24.49.135.113"){
|
|
|
|
header('Location: /maintenance.html');
|
|
exit();
|
|
}*/
|
|
/* $Id: header.php 279 2009-12-14 20:55:12Z john $ */
|
|
|
|
// PREVENT MULTIPLE INCLUSION
|
|
date_default_timezone_set('America/Phoenix');
|
|
$sess=session_id();
|
|
if(!isset($_COOKIE['age_verification'])&&!isset($_SESSION['age_verification'])){
|
|
if(isset($_GET['age_verification'])) {
|
|
setcookie('age_verification', '1', time()+2592000);
|
|
$_SESSION['age_verification']=1;
|
|
}
|
|
else{if($sess==""){
|
|
header('Location: /verify.php');
|
|
exit();
|
|
}
|
|
};
|
|
header("Location: home.php");
|
|
exit();
|
|
}
|
|
|
|
|
|
/* $Id: index.php 8 2009-01-11 06:02:53Z john $ */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
?>
|