Commit | Line | Data |
---|---|---|
5623205d PM |
1 | <?PHP |
2 | include_once('../slack.php'); | |
3 | include_once('security.php'); | |
4 | if ($_COOKIE['level'] == 'user'){ | |
5 | slack_general('ADMIN: Redirect User Home ('.$_COOKIE['name'].') ('.$_COOKIE['level'].')','md-petition'); | |
6 | header('Location: user_home.php'); | |
7 | } | |
8 | if ($_COOKIE['level'] == 'manager'){ | |
9 | slack_general('ADMIN: Redirect Manager Home ('.$_COOKIE['name'].') ('.$_COOKIE['level'].')','md-petition'); | |
10 | header('Location: manager_home.php'); | |
11 | } | |
12 | include_once('header.php'); | |
f49d1b19 PM |
13 | if (isset($_GET['ip_address'])){ |
14 | $ip = $_GET['ip_address']; | |
15 | echo "<h1>Review $ip</h1>"; | |
16 | }elseif (isset($_GET['VTRID'])){ | |
17 | $VTRID = $_GET['VTRID']; | |
18 | echo "<h1>Review $VTRID</h1>"; | |
19 | } | |
5623205d PM |
20 | ?> |
21 | <h1>Abuses</h1> | |
f49d1b19 PM |
22 | <h2>IP Address List</h2> |
23 | <div>Watch for duplicates.</div> | |
5623205d | 24 | <?PHP |
3f6ea8f9 | 25 | $q="SELECT ip_address, petition_id, COUNT(*) as count FROM signatures group by ip_address"; |
5623205d PM |
26 | $r = $petition->query($q); |
27 | while($d = mysqli_fetch_array($r)){ | |
f49d1b19 | 28 | echo "<li><a href='?ip_address=$d[ip_address]'>$d[ip_address]</a> $d[petition_id] <b>$d[count]</b></li>"; |
5623205d PM |
29 | } |
30 | ?> | |
31 | ||
f49d1b19 PM |
32 | <h2>VTRID List</h2> |
33 | <div>Watch for duplicates.</div> | |
1b0319d4 | 34 | <?PHP |
3f6ea8f9 | 35 | $q="SELECT VTRID, petition_id, COUNT(*) as count FROM signatures group by VTRID"; |
1b0319d4 PM |
36 | $r = $petition->query($q); |
37 | while($d = mysqli_fetch_array($r)){ | |
f49d1b19 | 38 | echo "<li><a href='?VTRID=$d[VTRID]'>$d[VTRID]</a> $d[petition_id] <b>$d[count]</b></li>"; |
1b0319d4 PM |
39 | } |
40 | ?> | |
41 | ||
5623205d PM |
42 | |
43 | <?PHP | |
44 | include_once('footer.php'); | |
45 | ?> |