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'); | |
13 | ?> | |
14 | <h1>Abuses</h1> | |
15 | <div>We really need to watch for lazy hackers... ok all hackers... we can flag signatures for human review, we WILL be active.</div> | |
16 | <h2>IP Address</h2> | |
17 | <?PHP | |
18 | $q="SELECT ip_address, COUNT(*) as count FROM signatures group by ip_address"; | |
19 | $r = $petition->query($q); | |
20 | while($d = mysqli_fetch_array($r)){ | |
21 | echo "<li>$d[ip_address] $d[count]</li>"; | |
22 | } | |
23 | ?> | |
24 | ||
1b0319d4 PM |
25 | <h2>VTRID</h2> |
26 | <?PHP | |
27 | $q="SELECT VTRID, COUNT(*) as count FROM signatures group by VTRID"; | |
28 | $r = $petition->query($q); | |
29 | while($d = mysqli_fetch_array($r)){ | |
30 | echo "<li>$d[VTRID] $d[count]</li>"; | |
31 | } | |
32 | ?> | |
33 | ||
5623205d PM |
34 | |
35 | <?PHP | |
36 | include_once('footer.php'); | |
37 | ?> |