Commit | Line | Data |
---|---|---|
5623205d PM |
1 | <?PHP |
2 | include_once('../slack.php'); | |
3 | include_once('security.php'); | |
c7d45ac6 | 4 | include_once('/var/www/secure.php'); //outside webserver |
6c9432fc | 5 | include_once('functions.php'); |
2bfe8168 PM |
6 | |
7 | function js_redirect($page){ | |
8 | $base = 'https://www.md-petition.com/admin/'; | |
9 | $url = $base.$page; | |
10 | echo "<script>window.location.href = \"$url\";</script>"; | |
11 | die(); | |
12 | } | |
13 | ||
5623205d PM |
14 | if ($_COOKIE['level'] == 'user'){ |
15 | slack_general('ADMIN: Redirect User Home ('.$_COOKIE['name'].') ('.$_COOKIE['level'].')','md-petition'); | |
16 | header('Location: user_home.php'); | |
17 | } | |
28de89d0 PM |
18 | if (isset($_GET['clear_php_session_id'])){ |
19 | $id = $_GET['clear_php_session_id']; | |
20 | $petition->query("update presign set presign_status = 'DONE' where php_session_id = '$id' "); | |
cdaa5f15 | 21 | header('Location: analytics.php'); |
28de89d0 | 22 | } |
53ff5c98 PM |
23 | if (isset($_GET['clear_email'])){ |
24 | $email = $_GET['clear_email']; | |
5afbd813 | 25 | $petition->query("update presign set presign_status = 'DONE' where email_for_follow_up = '$email' "); |
53ff5c98 PM |
26 | header('Location: analytics.php'); |
27 | } | |
980cb9f6 PM |
28 | if (isset($_GET['sign_email'])){ |
29 | $email = $_GET['sign_email']; | |
5afbd813 | 30 | $petition->query("update presign set presign_status = 'SIGNED' where email_for_follow_up = '$email' "); |
980cb9f6 PM |
31 | header('Location: analytics.php'); |
32 | } | |
9e6d5e27 PM |
33 | if (isset($_GET['sign_php_session_id'])){ |
34 | $id = $_GET['sign_php_session_id']; | |
35 | $petition->query("update presign set presign_status = 'SIGNED' where php_session_id = '$id' "); | |
cdaa5f15 | 36 | header('Location: analytics.php'); |
9e6d5e27 | 37 | } |
5623205d PM |
38 | if ($_COOKIE['level'] == 'manager'){ |
39 | slack_general('ADMIN: Redirect Manager Home ('.$_COOKIE['name'].') ('.$_COOKIE['level'].')','md-petition'); | |
40 | header('Location: manager_home.php'); | |
41 | } | |
73a94d3f | 42 | if (isset($_GET['flag_invalid_signature'])){ |
68e387b9 | 43 | $id = $_GET['flag_invalid_signature']; |
73a94d3f | 44 | $petition->query("update signatures set signature_status = 'flag_invalid_signature' where id = '$id' "); |
cdaa5f15 | 45 | header('Location: analytics.php'); |
73a94d3f | 46 | } |
68e387b9 PM |
47 | if (isset($_GET['flag_duplicate'])){ |
48 | $id = $_GET['flag_duplicate']; | |
49 | $petition->query("update signatures set signature_status = 'flag_duplicate' where id = '$id' "); | |
cdaa5f15 | 50 | header('Location: analytics.php'); |
68e387b9 PM |
51 | } |
52 | if (isset($_GET['flag_ip_address'])){ | |
53 | $ip = $_GET['flag_ip_address']; | |
54 | $petition->query("update signatures set signature_status = 'flag_ip_address' where ip_address = '$ip' "); | |
cdaa5f15 | 55 | header('Location: analytics.php'); |
68e387b9 | 56 | } |
dcc3fc26 PM |
57 | if (isset($_GET['resign_requested'])){ |
58 | $id = $_GET['resign_requested']; | |
59 | $petition->query("update signatures set signature_status = 'resign_requested' where id = '$id' "); | |
cdaa5f15 | 60 | header('Location: analytics.php'); |
dcc3fc26 | 61 | } |
3f8c226b PM |
62 | if (isset($_GET['bot'])){ |
63 | $id = $_GET['bot']; | |
64 | $petition->query("update signatures set signature_status = 'bot' where id = '$id' "); | |
cdaa5f15 | 65 | header('Location: analytics.php'); |
3f8c226b | 66 | } |
68e387b9 PM |
67 | if (isset($_GET['flag_VTRID'])){ |
68 | $VTRID = $_GET['flag_VTRID']; | |
69 | $petition->query("update signatures set signature_status = 'flag_VTRID' where VTRID = '$VTRID' "); | |
cdaa5f15 | 70 | header('Location: analytics.php'); |
68e387b9 | 71 | } |
587d1da3 PM |
72 | if (isset($_GET['flag_phone'])){ |
73 | $flag_phone = $_GET['flag_phone']; | |
74 | $petition->query("update signatures set signature_status = 'flag_phone' where contact_phone = '$flag_phone' "); | |
cdaa5f15 | 75 | header('Location: analytics.php'); |
587d1da3 | 76 | } |
c7d45ac6 | 77 | include_once('header.php'); |
f49d1b19 PM |
78 | if (isset($_GET['ip_address'])){ |
79 | $ip = $_GET['ip_address']; | |
2a00571e | 80 | $petition_id = $_GET['petition_id']; |
68e387b9 | 81 | echo "<h1>Review $ip</h1><table width='100%' border='1' cellpadding='5' cellspacing='5'>"; |
2a00571e | 82 | $q = "SELECT * FROM signatures where ip_address = '$ip' and signature_status = 'verified' and petition_id = '$petition_id' order by signature_status desc "; |
45bc6a1e | 83 | $r = $petition->query($q); |
7ce3d9ec | 84 | while($d = mysqli_fetch_array($r)){ |
4fca24b9 PM |
85 | $color = 'white'; |
86 | $pos = strpos($d['date_time_signed'], date('Y-m-d')); | |
87 | if ($pos !== false) { | |
88 | $color= 'yellow'; | |
89 | } | |
90 | echo "<tr style='background-color:$color;'> | |
68e387b9 PM |
91 | <td><b>$d[date_time_signed]</b></td> |
92 | <td><a href='?VTRID=$d[VTRID]'>$d[VTRID]</a></td> | |
6c9432fc | 93 | <td>".id2petition($d['petition_id'])."</td> |
68e387b9 PM |
94 | <td>$d[signed_name_as]</td> |
95 | <td>$d[signed_name_as_circulator]</td> | |
96 | <td>$d[contact_phone]</td> | |
68e387b9 | 97 | <td>$d[printed_status]</td> |
dcc3fc26 PM |
98 | <td><a href='?flag_invalid_signature=$d[id]'>flag invalid signature</a></td> |
99 | <td><a href='?flag_VTRID=$d[VTRID]'>flag VTRID</a></td> | |
100 | <td><a href='?flag_ip_address=$d[ip_address]'>flag ip address</a></td> | |
101 | <td><a href='?flag_duplicate=$d[id]'>flag duplicate</a></td> | |
102 | <td><a href='?flag_phone=$d[contact_phone]'>contact phone</a></td> | |
ff3013b8 | 103 | <td><a href='?resign_requested=$d[id]'>resign requested</a></td> |
3f8c226b | 104 | <td><a href='?bot=$d[id]'>bot</a></td> |
68e387b9 | 105 | </tr>"; |
7ce3d9ec | 106 | } |
3a0177c8 | 107 | echo "</table>"; |
d6495122 PM |
108 | }elseif(isset($_GET['email'])){ |
109 | $email = $_GET['email']; | |
110 | echo "<h1>Review $email</h1><table width='100%' border='1' cellpadding='5' cellspacing='5'>"; | |
111 | $q = "SELECT * FROM presign where email_for_follow_up = '$email' order by id desc "; | |
112 | $r = $petition->query($q); | |
113 | while($d = mysqli_fetch_array($r)){ | |
114 | $color = 'white'; | |
115 | $test = date('Y-m-d',strtotime($d['action_on'])); | |
116 | $pos = strpos($test, date('Y-m-d')); | |
117 | if ($pos !== false) { | |
118 | $color= 'yellow'; | |
119 | } | |
120 | echo "<tr style='background-color:$color;'> | |
121 | <td style='white-space:pre;'><b>$d[action_on]</b></td> | |
617b4302 | 122 | <td style='white-space:pre;'><a href='?php_session_id=$d[php_session_id]'>$d[php_session_id]</a></td> |
d6495122 PM |
123 | <td style='white-space:pre;'>$d[php_page]</td> |
124 | <td style='white-space:pre;'>".id2petition($d['petition'])."</td> | |
125 | <td style='white-space:pre;'>$d[invite]</td> | |
126 | <td style='white-space:pre;'>$d[invite_error]</td> | |
127 | <td style='white-space:pre;'>$d[name]</td> | |
128 | <td style='white-space:pre;'>$d[email_for_follow_up]</td> | |
129 | <td style='white-space:pre;'>$d[phone_for_validation]</td> | |
130 | <td style='white-space:pre;'>$d[presign_status]</td> | |
131 | <td style='white-space:pre;'>$d[ip_address]</td> | |
132 | <td style='white-space:pre;'>$d[browser_string]</td> | |
133 | </tr>"; | |
134 | } | |
980cb9f6 | 135 | echo "</table><a href='?clear_email=$email'>CLEAR EMAIL</a> - <a href='?sign_email=$email'>SIGNATURE FOUND</a>"; |
971585e7 | 136 | }elseif(isset($_GET['php_session_id']) && empty($_GET['follow_up'])){ |
b331a809 PM |
137 | $php_session_id = $_GET['php_session_id']; |
138 | echo "<h1>Review $php_session_id</h1><table width='100%' border='1' cellpadding='5' cellspacing='5'>"; | |
139 | $q = "SELECT * FROM presign where php_session_id = '$php_session_id' order by id desc "; | |
140 | $r = $petition->query($q); | |
141 | while($d = mysqli_fetch_array($r)){ | |
142 | $color = 'white'; | |
eea234c3 PM |
143 | $test = date('Y-m-d',strtotime($d['action_on'])); |
144 | $pos = strpos($test, date('Y-m-d')); | |
b331a809 PM |
145 | if ($pos !== false) { |
146 | $color= 'yellow'; | |
147 | } | |
148 | echo "<tr style='background-color:$color;'> | |
eea234c3 PM |
149 | <td style='white-space:pre;'><b>$d[action_on]</b></td> |
150 | <td style='white-space:pre;'>$d[php_page]</td> | |
151 | <td style='white-space:pre;'>".id2petition($d['petition'])."</td> | |
152 | <td style='white-space:pre;'>$d[invite]</td> | |
973dd966 | 153 | <td style='white-space:pre;'>$d[invite_error]</td> |
eea234c3 | 154 | <td style='white-space:pre;'>$d[name]</td> |
d6495122 | 155 | <td style='white-space:pre;'><a href='?email=$d[email_for_follow_up]'>$d[email_for_follow_up]</a></td> |
eea234c3 PM |
156 | <td style='white-space:pre;'>$d[phone_for_validation]</td> |
157 | <td style='white-space:pre;'>$d[presign_status]</td> | |
158 | <td style='white-space:pre;'>$d[ip_address]</td> | |
159 | <td style='white-space:pre;'>$d[browser_string]</td> | |
971585e7 PM |
160 | </tr>"; |
161 | } | |
980cb9f6 | 162 | echo "</table><a href='?clear_php_session_id=$php_session_id'>CLEAR SESSION</a> - |
707c5a7b | 163 | <a href='?sign_php_session_id=$php_session_id'>SIGNATURE FOUND</a><br> |
7cdb2650 | 164 | - <a href='?php_session_id=$php_session_id&follow_up=X'>ADD TO FOLLOW UP LIST Maryland General</a><br> |
707c5a7b PM |
165 | - <a href='?php_session_id=$php_session_id&follow_up=1'>ADD TO FOLLOW UP LIST MGP</a><br> |
166 | - <a href='?php_session_id=$php_session_id&follow_up=2'>ADD TO FOLLOW UP LIST MLP</a><br> | |
167 | - <a href='?php_session_id=$php_session_id&follow_up=3'>ADD TO FOLLOW UP LIST BTEC</a><br> | |
168 | - <a href='?php_session_id=$php_session_id&follow_up=7'>ADD TO FOLLOW UP LIST PG</a><br> | |
e511d315 PM |
169 | - <a href='?php_session_id=$php_session_id&follow_up=8'>ADD TO FOLLOW UP LIST Ivey</a> |
170 | "; | |
971585e7 PM |
171 | }elseif(isset($_GET['php_session_id']) && isset($_GET['follow_up'])){ |
172 | $php_session_id = $_GET['php_session_id']; | |
173 | echo "<h1>Adding Follow up for $php_session_id to $_GET[follow_up]</h1><table width='100%' border='1' cellpadding='5' cellspacing='5'>"; | |
174 | $q = "SELECT * FROM presign where php_session_id = '$php_session_id' order by id desc "; | |
175 | $r = $petition->query($q); | |
971585e7 | 176 | while($d = mysqli_fetch_array($r)){ |
f8753855 | 177 | |
971585e7 PM |
178 | $color = 'white'; |
179 | $test = date('Y-m-d',strtotime($d['action_on'])); | |
180 | $pos = strpos($test, date('Y-m-d')); | |
181 | if ($pos !== false) { | |
182 | $color= 'yellow'; | |
183 | } | |
f8753855 PM |
184 | if ($d[name] != ''){ |
185 | $name = $d[name]; | |
186 | } | |
187 | if ($d[email_for_follow_up] != ''){ | |
188 | $email = $d[email_for_follow_up]; | |
189 | } | |
971585e7 PM |
190 | echo "<tr style='background-color:$color;'> |
191 | <td style='white-space:pre;'><b>$d[action_on]</b></td> | |
192 | <td style='white-space:pre;'>$d[php_page]</td> | |
193 | <td style='white-space:pre;'>".id2petition($d['petition'])."</td> | |
194 | <td style='white-space:pre;'>$d[invite]</td> | |
195 | <td style='white-space:pre;'>$d[invite_error]</td> | |
196 | <td style='white-space:pre;'>$d[name]</td> | |
197 | <td style='white-space:pre;'>$d[email_for_follow_up]</td> | |
198 | <td style='white-space:pre;'>$d[phone_for_validation]</td> | |
199 | <td style='white-space:pre;'>$d[presign_status]</td> | |
200 | <td style='white-space:pre;'>$d[ip_address]</td> | |
201 | <td style='white-space:pre;'>$d[browser_string]</td> | |
b331a809 PM |
202 | </tr>"; |
203 | } | |
ef2c1da5 | 204 | $petition->query("insert into follow_up (name, email, php_session, petition_id, date_sent) values ('$name','$email','$php_session_id','$_GET[follow_up]','".date('Y-m-d')."') "); |
b739e778 | 205 | $petition->query("update presign set presign_status = 'DONE' where php_session_id = '$php_session_id' "); |
d75dee31 | 206 | $petition->query("update presign set presign_status = 'DONE' where email_for_follow_up = '$email' "); |
1f0c4bd2 | 207 | echo "</table>"; |
f49d1b19 PM |
208 | }elseif (isset($_GET['VTRID'])){ |
209 | $VTRID = $_GET['VTRID']; | |
2a00571e | 210 | $petition_id = $_GET['petition_id']; |
68e387b9 | 211 | echo "<h1>Review $VTRID</h1><table width='100%' border='1' cellpadding='5' cellspacing='5'>"; |
2a00571e | 212 | $q = "SELECT * FROM signatures where VTRID = '$VTRID' and signature_status = 'verified' and petition_id = '$petition_id' order by petition_id, id DESC "; |
45bc6a1e | 213 | $r = $petition->query($q); |
7ce3d9ec | 214 | while($d = mysqli_fetch_array($r)){ |
4fca24b9 PM |
215 | $color = 'white'; |
216 | $pos = strpos($d['date_time_signed'], date('Y-m-d')); | |
217 | if ($pos !== false) { | |
218 | $color= 'yellow'; | |
219 | } | |
220 | echo "<tr style='background-color:$color;'> | |
68e387b9 PM |
221 | <td><b>$d[date_time_signed]</b></td> |
222 | <td><a href='?ip_address=$d[ip_address]'>$d[ip_address]</a></td> | |
b6545efe | 223 | <td>".id2petition($d['petition_id'])."</td> |
68e387b9 PM |
224 | <td>$d[signed_name_as]</td> |
225 | <td>$d[signed_name_as_circulator]</td> | |
226 | <td>$d[contact_phone]</td> | |
68e387b9 | 227 | <td>$d[printed_status]</td> |
dcc3fc26 PM |
228 | <td><a href='?flag_invalid_signature=$d[id]'>flag invalid signature</a></td> |
229 | <td><a href='?flag_VTRID=$d[VTRID]'>flag VTRID</a></td> | |
230 | <td><a href='?flag_ip_address=$d[ip_address]'>flag ip address</a></td> | |
231 | <td><a href='?flag_duplicate=$d[id]'>flag duplicate</a></td> | |
232 | <td><a href='?flag_phone=$d[contact_phone]'>contact phone</a></td> | |
ff3013b8 | 233 | <td><a href='?resign_requested=$d[id]'>resign requested</a></td> |
3f8c226b | 234 | <td><a href='?bot=$d[id]'>bot</a></td> |
68e387b9 | 235 | </tr>"; |
7ce3d9ec | 236 | } |
3a0177c8 | 237 | echo "</table>"; |
2bfe8168 | 238 | die(); |
f49d1b19 | 239 | } |
5623205d | 240 | ?> |
4b205268 | 241 | |
025fe4dd | 242 | <h1>Signature Analytics - Server Clock: <?PHP echo date('r');?></h1> |
d5dffc27 | 243 | <h2>NEVER NEVER NEVER CALL OR TEXT ANYONE - ONLY EMAIL!!!</h2> |
cdaa5f15 | 244 | <h3>SysOp Says: Transparency = Trust</h3> |
a0b1579f PM |
245 | <table> |
246 | ||
247 | <tr> | |
1f8109a1 | 248 | <td valign="top" colspan='2'><?PHP /* |
a0b1579f PM |
249 | <h2>IP Address</h2> |
250 | <div>Watching for duplicates.</div><ol> | |
251 | <?PHP | |
252 | $q="SELECT ip_address, petition_id,VTRID, COUNT(*) as count FROM signatures where signature_status = 'verified' group by ip_address, petition_id, VTRID"; | |
253 | $r = $petition->query($q); | |
254 | while($d = mysqli_fetch_array($r)){ | |
255 | if ($d['count'] > 1){ | |
256 | echo "<li><a href='?ip_address=$d[ip_address]&petition_id=$d[petition_id]'>$d[ip_address]</a> ".id2petition($d['petition_id'])." <b>$d[count]</b> $d[signed_name_as]</li>"; | |
257 | } | |
258 | } | |
1f8109a1 PM |
259 | ?></ol> |
260 | </td><td valign="top"> */ ?> | |
a0b1579f PM |
261 | <h2>VTRID</h2> |
262 | <div>Watching for duplicates.</div><ol> | |
263 | <?PHP | |
264 | $q="SELECT VTRID, petition_id, COUNT(*) as count FROM signatures where signature_status = 'verified' group by VTRID, petition_id"; | |
265 | $r = $petition->query($q); | |
c948926c | 266 | $i=0; |
a0b1579f PM |
267 | while($d = mysqli_fetch_array($r)){ |
268 | if ($d['count'] > 1){ | |
269 | echo "<li><a href='?VTRID=$d[VTRID]&petition_id=$d[petition_id]'>$d[VTRID]</a> ".id2petition($d['petition_id'])." <b>$d[count]</b> $d[signed_name_as]</li>"; | |
c948926c PM |
270 | if ($i == 0){ |
271 | js_redirect("analytics.php?VTRID=$d[VTRID]&petition_id=$d[petition_id]"); | |
272 | } | |
273 | $i++; | |
a0b1579f | 274 | } |
c948926c | 275 | |
a0b1579f PM |
276 | } |
277 | ?></ol> | |
278 | </td></tr> | |
279 | ||
280 | ||
d1dcf736 | 281 | <tr> |
fcb27806 | 282 | <td valign="top" colspan='2'> |
d1dcf736 | 283 | <h2>Pre-Sign</h2> |
617b4302 | 284 | <div>Follow up requested - never signed.</div> |
1f8109a1 | 285 | <form method='GET'><input name='email'><input type='submit' value='SEARCH E-MAIL'></form><table> |
d1dcf736 | 286 | <?PHP |
6792c2dd | 287 | $q="SELECT distinct php_session_id FROM presign where presign_status = 'NEW' and email_for_follow_up <> '' order by id"; |
d1dcf736 PM |
288 | $r = $petition->query($q); |
289 | while($d = mysqli_fetch_array($r)){ | |
290 | $q2="SELECT * FROM presign where php_session_id = '$d[php_session_id]' order by id desc"; | |
291 | $r2 = $petition->query($q2); | |
292 | $d2 = mysqli_fetch_array($r2); | |
bfa39749 PM |
293 | $sig = ''; |
294 | if ($d2['name'] != ''){ | |
295 | $q3 = "SELECT date_time_signed FROM signatures where signed_name_as = '$d2[name]'"; | |
296 | $r3 = $petition->query($q3); | |
297 | $d3 = mysqli_fetch_array($r3); | |
020ef085 | 298 | if ($d3['date_time_signed'] != ''){ |
b82d1c75 | 299 | $sig = "<b><a href='?sign_email=$d2[email_for_follow_up]'>SIGNATURE $d3[date_time_signed]</a></b><br>"; |
020ef085 | 300 | } |
bfa39749 | 301 | } |
3bfc2070 | 302 | $presig=''; |
c22e5d57 | 303 | $q4="SELECT * FROM presign where email_for_follow_up = '$d2[email_for_follow_up]' and php_page like '/sign.php%'"; |
3bfc2070 PM |
304 | $r4 = $petition->query($q4); |
305 | $d4 = mysqli_fetch_array($r4); | |
18be5f6c | 306 | if ($d4['action_on']){ |
b82d1c75 | 307 | $presig = "<b><a href='?sign_email=$d2[email_for_follow_up]'>PRESIG $d4[action_on]</a></b><br>"; |
3bfc2070 | 308 | } |
18be5f6c PM |
309 | $invite_error=''; |
310 | $q4="SELECT * FROM presign where email_for_follow_up = '$d2[email_for_follow_up]' and invite_error <> '' "; | |
311 | $r4 = $petition->query($q4); | |
312 | $d4 = mysqli_fetch_array($r4); | |
313 | if ($d4['invite_error'] != ''){ | |
b82d1c75 | 314 | $invite_error = "<b><a href='?clear_email=$d2[email_for_follow_up]'>$d4[invite_error]</a></b><br>"; |
18be5f6c | 315 | } |
ef385212 PM |
316 | $php_session_id = $d2['php_session_id']; |
317 | echo "<tr><td><a href='?php_session_id=$php_session_id'>$d2[action_on]</a></td><td>$presig $sig $invite_error</td><td>$d2[name]</td><td><a href='?email=$d2[email_for_follow_up]'>$d2[email_for_follow_up]</a></td><td>".id2petition($d2['petition'])."</td><td>$d2[invite]</td> | |
318 | <td><a href='?php_session_id=$php_session_id&follow_up=X'>General</a> | |
319 | - <a href='?php_session_id=$php_session_id&follow_up=1'>MGP</a> | |
320 | - <a href='?php_session_id=$php_session_id&follow_up=2'>MLP</a> | |
321 | - <a href='?php_session_id=$php_session_id&follow_up=3'>BTEC</a> | |
322 | - <a href='?php_session_id=$php_session_id&follow_up=7'>PG</a> | |
323 | - <a href='?php_session_id=$php_session_id&follow_up=8'>Ivey</a></td></tr>"; | |
d1dcf736 | 324 | } |
1f8109a1 | 325 | ?></table> |
d1dcf736 | 326 | </td> |
fcb27806 PM |
327 | </tr> |
328 | <tr> | |
329 | <td valign="top" colspan='2'> | |
cdaa5f15 | 330 | <h2>Signatures</h2> |
d1dcf736 PM |
331 | <div>Last 10</div><ol> |
332 | <?PHP | |
333 | $q="SELECT * FROM signatures where signature_status = 'verified' order by id desc limit 0, 10"; | |
334 | $r = $petition->query($q); | |
335 | while($d = mysqli_fetch_array($r)){ | |
336 | echo "<li>$d[date_time_signed] ".id2petition($d['petition_id'])." $d[signed_name_as]</li>"; | |
337 | } | |
338 | ?></ol> | |
339 | </td> | |
797efc8e | 340 | |
d1dcf736 | 341 | </tr> |
a0b1579f | 342 | <tr><td valign="top"> |
cdaa5f15 PM |
343 | <h2>VTRID Bugs</h2> |
344 | <div>Watching for 0</div><ol> | |
e0bd2eda | 345 | <?PHP |
e8d1541d | 346 | $q="SELECT * FROM signatures where VTRID = '0' and signature_status <> 'bot' and signature_status <> 'flag_invalid_signature' and signature_status <> 'resign_requested'"; |
e0bd2eda PM |
347 | $r = $petition->query($q); |
348 | while($d = mysqli_fetch_array($r)){ | |
55fd7459 | 349 | echo "<li>$d[date_time_signed] <a href='?ip_address=$d[ip_address]'>$d[ip_address]</a> <a target='_Blank' href='https://ipinfo.io/$d[ip_address]'>IP INFO</a> $d[petition_id] $d[signed_name_as]</li>"; |
9b75965d | 350 | } |
cc84dbb5 | 351 | ?></ol> |
797efc8e | 352 | </td><td valign="top"> |
cdaa5f15 PM |
353 | <h2>Petition ID Bugs</h2> |
354 | <div>Watching for 0</div><ol> | |
9b75965d | 355 | <?PHP |
e8d1541d | 356 | $q="SELECT * FROM signatures where (petition_id = '0' or petition_id = '') and signature_status <> 'bot' and signature_status <> 'flag_invalid_signature' and signature_status <> 'resign_requested'"; |
9b75965d | 357 | $r = $petition->query($q); |
4931af50 | 358 | while($d = mysqli_fetch_array($r)){ |
55fd7459 | 359 | echo "<li>$d[date_time_signed] <a href='?ip_address=$d[ip_address]'>$d[ip_address]</a> <a target='_Blank' href='https://ipinfo.io/$d[ip_address]'>IP INFO</a> $d[petition_id] $d[signed_name_as]</li>"; |
4931af50 PM |
360 | } |
361 | ?></ol> | |
e8d1541d | 362 | </td></tr><tr><td valign="top"> |
cdaa5f15 | 363 | <?PHP ob_start(); ?> |
4931af50 | 364 | <h2>resign_requested</h2> |
3f8c226b | 365 | <div>These are most likely from early bugs</div><ol> |
4931af50 | 366 | <?PHP |
68fde5b1 | 367 | $q="SELECT * FROM signatures where signature_status = 'resign_requested' order by ip_address"; |
4931af50 | 368 | $r = $petition->query($q); |
cdaa5f15 | 369 | $show = 0; |
9b75965d | 370 | while($d = mysqli_fetch_array($r)){ |
cdaa5f15 | 371 | $show = 1; |
55fd7459 | 372 | echo "<li>$d[date_time_signed] <a href='?ip_address=$d[ip_address]'>$d[ip_address]</a> <a target='_Blank' href='https://ipinfo.io/$d[ip_address]'>IP INFO</a> <a href='?VTRID=$d[VTRID]'>$d[VTRID]</a> $d[petition_id] $d[signed_name_as]</li>"; |
e0bd2eda | 373 | } |
3f8c226b | 374 | ?></ol> |
cdaa5f15 | 375 | <?PHP $html = ob_get_clean(); if ( $show == 1 ){ echo $html; } ?> |
3f8c226b PM |
376 | </td> |
377 | ||
378 | <td valign="top"> | |
cdaa5f15 | 379 | <?PHP ob_start(); ?> |
3f8c226b PM |
380 | <h2>bots</h2> |
381 | <div>These are bots on the site.</div><ol> | |
382 | <?PHP | |
68fde5b1 | 383 | $q="SELECT * FROM signatures where signature_status = 'bot' order by ip_address"; |
3f8c226b | 384 | $r = $petition->query($q); |
cdaa5f15 | 385 | $show = 0; |
3f8c226b | 386 | while($d = mysqli_fetch_array($r)){ |
cdaa5f15 | 387 | $show = 1; |
ab89bfc5 | 388 | echo "<li>$d[date_time_signed] <a href='?ip_address=$d[ip_address]'>$d[ip_address]</a> <a target='_Blank' href='https://ipinfo.io/$d[ip_address]'>IP INFO</a> <a href='?VTRID=$d[VTRID]'>$d[VTRID]</a> $d[petition_id] $d[signed_name_as]</li>"; |
3f8c226b | 389 | } |
cc84dbb5 | 390 | ?></ol> |
cdaa5f15 PM |
391 | <?PHP $html = ob_get_clean(); if ( $show == 1 ){ echo $html; } ?> |
392 | ||
797efc8e | 393 | </td> |
5623205d | 394 | |
9b75965d | 395 | |
05fddd22 | 396 | </tr> |
05fddd22 | 397 | |
05fddd22 | 398 | </table> |
9b75965d PM |
399 | |
400 | ||
5623205d PM |
401 | <?PHP |
402 | include_once('footer.php'); | |
403 | ?> |