X-Git-Url: http://git.hcoop.net/clinton/MarylandElectronicPetitionSignature.git/blobdiff_plain/5625b4c2b68ba5ece51656ff15e67c9d5a20e349..81d2de7137558f3e49dddb140d162a0a1f53360a:/warning_not_found.php diff --git a/warning_not_found.php b/warning_not_found.php dissimilarity index 68% index 71c6764..f337920 100644 --- a/warning_not_found.php +++ b/warning_not_found.php @@ -1,13 +1,73 @@ -query($qX); - $dX = mysqli_fetch_array($rX); -?> - -

- -
- -
- -"; +print_r($_COOKIE); +print_r($_SESSION); +print_r($_GET); +print_r($_POST); +print_r($_SERVER); +echo ""; +$msg = ob_get_clean(); +//meps_mail('mdpetition@gmail.com',$msg,'Voter v1 Found Details'); + +// hopefully no conflicts with the new api +include_once('api/maryland_voter.php'); +$web_first_name = $_COOKIE['web_first_name']; +$web_last_name = $_COOKIE['web_last_name']; +$web_house_number = $_COOKIE['web_house_number']; +$web_zip_code = $_COOKIE['web_zip_code']; +$DOB = $_COOKIE['pDOB']; +$month = date('m',strtotime($DOB)); +$day = date('d',strtotime($DOB)); +$year = date('Y',strtotime($DOB)); +$error = 'Based on what you entered, we were unable to find any information.'; +$sbe_response = md_voter_lookup($web_first_name,$web_last_name,$month,$day,$year,$web_zip_code,'',''); +$pos = strpos($sbe_response, $error); +if ($pos !== false) { + meps_mail('mdpetition@gmail.com',$sbe_response,'Voter API v2 Fail: '.$error); +} +$error2 = 'MISSING NAME'; +$pos = strpos($sbe_response, $error2); +if ($pos !== false) { + meps_mail('mdpetition@gmail.com',$sbe_response,'Voter API v2 Fail: '.$error2); +} +$error3 = 'My Voter Registration Record'; +$pos = strpos($sbe_response, $error3); +if ($pos !== false) { + meps_mail('mdpetition@gmail.com',$sbe_response,'Voter API v2 Success: '.$error3); +} + +/* delete ALL cookies */ +foreach ( $_COOKIE as $key => $value ){ + unset($_COOKIE[$key]); + setcookie($key, '', time() - 3600, '/'); +} +// unset cookies +if (isset($_SERVER['HTTP_COOKIE'])) { + $cookies = explode(';', $_SERVER['HTTP_COOKIE']); + foreach($cookies as $cookie) { + $parts = explode('=', $cookie); + $name = trim($parts[0]); + setcookie($name, '', time()-1000); + setcookie($name, '', time()-1000, '/'); + } +} +setcookie("invite", $save_invite); +include_once('header.php'); +slack_general('Warning Not Found ('.$_COOKIE['invite'].')','md-petition'); +$qX = "select * from website_text where id = '5'"; +$rX = $petition->query($qX); +$dX = mysqli_fetch_array($rX); +?> + +
+

+
+
+

+
+