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