error_reporting(E_ALL ^ E_NOTICE);
//pst is 8 hours behind gmt
//cst is 6 hours behind gmt
//est is 5 hours behind gmt
$start_time = gmmktime(5,01,00,11,23,2008); //make 5:01:00am, 11/23/2008 GMT (09:01am pst; 11:01am cst; 12:01am est)
$end_time = gmmktime(4,59,00,11,24,2008); //make 4:59:00am, 11/24/2008 GMT (08:59pm pst; 10:59am cst; 11:59am est)
$g_nTimeToStart = $start_time - time(); //number of seconds until the start time
$g_nTimeToEnd = $end_time - time(); //number of seconds until the end time
$g_bSwitch = ($g_nTimeToStart < 0) && (0 < $g_nTimeToEnd); // are we between the start time and the end time
if(!$g_bSwitch && !preg_match("/candt/",$_SERVER['HTTP_HOST']) && !$_COOKIE["candt"]){
header("Location: http://www.drpepper.com/freeDrPepper/errors/404.php");
}
if(0 && preg_match("/candt/",$_SERVER['HTTP_HOST'])){
$g_nHoursFromStart = intval($g_nTimeToStart / 3600);
$g_nMinutesFromStart = intval($g_nTimeToStart / 60) % 60;
$g_nSecondsFromStart = intval($g_nTimeToStart % 60);
$g_nHoursToEnd = intval($g_nTimeToEnd / 3600);
$g_nMinutesToEnd = intval($g_nTimeToEnd / 60) % 60;
$g_nSecondsToEnd = intval($g_nTimeToEnd % 60);
echo 'Start ',
gmdate("F j, Y, g:i:s a T", $start_time),
'
Now ',
gmdate("F j, Y, g:i:s a T", time()),
'
End ',
gmdate("F j, Y, g:i:s a T", $end_time),
'
Time From Start ',
$g_nTimeToStart, ' (H:',$g_nHoursFromStart,' M:',$g_nMinutesFromStart,' S:',$g_nSecondsFromStart,')',
'
Time Until End ',
$g_nTimeToEnd, ' (H:',$g_nHoursToEnd,' M:',$g_nMinutesToEnd,' S:',$g_nSecondsToEnd,')',
$g_bSwitch? '
SWITCH':'
NO SWITCH';
exit();
}
require_once('recaptchalib.php');
include "account/process_user.php";
// Get a key from http://recaptcha.net/api/getkey
$publickey = "6Lcp6AMAAAAAACdUl5_X5cbuQLzgWMMRHlb3MbwV";
$privatekey = "6Lcp6AMAAAAAAGR1pjoXN2dLHg9sVIKmBR-ZF8aN";
?>