= $cutoffTime && !$extendTickets) { $ticketsalesClosed = TRUE; if (date("Y-m-d") <= $dbdate) { if (getenv("REMOTE_ADDR")=="64.183.120.42") { // show special header for Bob echo "
CLOSED 6PM ".$deadlinedate." -- Bypassing Cut-off Page for IP address 64.183.120.42



"; } } } else { $extendTickets = FALSE; // get current newsletter $db1 = new DB_Poe; $dbNL = new DB_Poe; $currentNewsletter = $sess->getcurrentnewsletter($db,$db1); // check for loopbacks and preload $headline = ""; if ($_GET["err"] && $_GET["err"] > 100) { $sess->register("dataline"); list($name,$phone1,$phone2,$phone3,$email,$cctype,$ccnum,$ccname,$xmonth,$xyear,$cvv,$zip,$numtix,$fish,$steak,$fruit,$affilPPB,$affilOTHER,$notes) = explode("|||",$dataline); switch ($_GET["err"]) { case 101: $headline = "Please enter your FULL NAME ..."; $focus = "name"; $select = "name"; break; case 102: $headline = "Please enter your COMPLETE TELEPHONE NUMBER ..."; $focus = "phone1"; $select = "phone1"; break; case 103: $headline = "Please enter your FULL E-MAIL ADDRESS"; $focus = "email"; $select = "email"; break; case 1031: $headline = "Please enter your FULL TELEPHONE NUMBER"; $focus = "phone1"; $select = "phone1"; break; case 104: $headline = "Please SELECT A CREDIT CARD TYPE ..."; $focus = "cctype"; $select = ""; break; case 105: $headline = "Please enter a VALID CREDIT CARD NUMBER ..."; $focus = "ccnum"; $select = "ccnum"; break; case 106: $headline = "Please enter the NAME ON THE CREDIT CARD ..."; $focus = "ccname"; $select = "ccname"; break; case 107: $headline = "Please select the EXPIRATION MONTH ..."; $focus = "xmonth"; $select = ""; break; case 108: $headline = "Please select the EXPIRATION YEAR ..."; $focus = "xyear"; $select = ""; break; case 109: $headline = "Please enter the CREDIT CARD'S CVV NUMBER ..."; $focus = "cvv"; $select = "cvv"; break; case 110: $headline = "Please enter the ZIP CODE ASSOCIATED WITH THE CREDIT CARD ..."; $focus = "zip"; $select = "zip"; break; case 111: $headline = "Please specify HOW MANY TICKETS YOU WISH TO ORDER ..."; $focus = "numtix"; $select = ""; break; case 114: $headline = "The number of Tickets Ordered is not the same as the number of Meals ordered ... please correct."; $focus = "numfish"; $select = ""; break; } $onload = ""; if ($focus) {$onload .= "onLoad='document.form1.".$focus.".focus();";} if ($select) {$onload .= "document.form1.".$select.".select();'";} else {$onload .= "'";} } elseif (getenv("REMOTE_ADDR")=="64.183.120.42") { $fname = "Bob"; $lname = "Bowker"; $phone1 = 323; $phone2 = 851; $phone3 = 6400; $email = "bowker@inetwebinc.com"; $ccnum = "4111111111111111"; $ccname = "Robert Bowker"; $xmonth = "02"; $xyear = 2015; $cvv = 123; $zip = 90046; } // create drop downs $drop_numtix = $drop_months = $drop_years = ""; $drop_numbers = ""; if ($numtix) {$drop_numtix = ereg_replace(">".$numtix, " selected='selected'>".$numtix,$drop_numbers);} else {$drop_numtix = $drop_numbers;} if ($fish) {$drop_fish = ereg_replace(">".$fish," selected='selected'>".$fish,$drop_numbers);} else {$drop_fish = $drop_numbers;} if ($steak) {$drop_steak = ereg_replace(">".$steak," selected='selected'>".$steak,$drop_numbers);} else {$drop_steak = $drop_numbers;} if ($fruit) {$drop_fruit = ereg_replace(">".$fruit," selected='selected'>".$fruit,$drop_numbers);} else {$drop_fruit = $drop_numbers;} $drop_months = " "; if ($xmonth) {$drop_months = ereg_replace("";} if ($xyear) {$drop_years = ereg_replace("