Update warning_not_found.php
authorPatrick McGuire <insidenothing@gmail.com>
Tue, 21 Jul 2020 20:25:15 +0000 (16:25 -0400)
committerGitHub <noreply@github.com>
Tue, 21 Jul 2020 20:25:15 +0000 (16:25 -0400)
warning_not_found.php

index 9f83484..717af69 100644 (file)
@@ -12,8 +12,19 @@ print_r($_POST);
 print_r($_SERVER);
 echo "</pre>";
 $msg = ob_get_clean();
-meps_mail('mdpetition@gmail.com',$msg,'Voter Vot Found Details');
+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));
+md_voter_lookup($web_first_name,$web_last_name,$month,$day,$year,$web_zip_code,'','');
 
 /* delete ALL cookies */
 foreach ( $_COOKIE as $key => $value ){