All pastes #1265450 Raw Edit

epic dr pepper fail

public php v1 · immutable
#1265450 ·published 2008-11-24 00:15 UTC
rendered paste body
<?	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 '<b>Start</b> ',			gmdate("F j, Y, g:i:s a T", $start_time),		'<br><b>Now</b> ',			gmdate("F j, Y, g:i:s a T", time()), 		'<br><b>End</b>  ',			gmdate("F j, Y, g:i:s a T", $end_time),		'<br><b>Time From Start</b> ',			$g_nTimeToStart, ' (H:',$g_nHoursFromStart,' M:',$g_nMinutesFromStart,' S:',$g_nSecondsFromStart,')',			'<br><b>Time Until End</b> ',			$g_nTimeToEnd, ' (H:',$g_nHoursToEnd,' M:',$g_nMinutesToEnd,' S:',$g_nSecondsToEnd,')',		$g_bSwitch? '<br>SWITCH</BR>':'<BR>NO SWITCH</BR>';				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";?>