Create abuse.php
authorPatrick McGuire <insidenothing@gmail.com>
Sun, 24 May 2020 12:43:20 +0000 (08:43 -0400)
committerGitHub <noreply@github.com>
Sun, 24 May 2020 12:43:20 +0000 (08:43 -0400)
admin/abuse.php [new file with mode: 0644]

diff --git a/admin/abuse.php b/admin/abuse.php
new file mode 100644 (file)
index 0000000..4283637
--- /dev/null
@@ -0,0 +1,28 @@
+<?PHP 
+include_once('../slack.php');
+include_once('security.php');
+if ($_COOKIE['level'] == 'user'){
+  slack_general('ADMIN: Redirect User Home ('.$_COOKIE['name'].') ('.$_COOKIE['level'].')','md-petition');
+  header('Location: user_home.php');
+}
+if ($_COOKIE['level'] == 'manager'){
+  slack_general('ADMIN: Redirect Manager Home ('.$_COOKIE['name'].') ('.$_COOKIE['level'].')','md-petition');
+  header('Location: manager_home.php');
+}
+include_once('header.php');
+?>
+<h1>Abuses</h1>
+<div>We really need to watch for lazy hackers... ok all hackers... we can flag signatures for human review, we WILL be active.</div>
+<h2>IP Address</h2>
+<?PHP
+$q="SELECT ip_address, COUNT(*) as count FROM signatures group by ip_address";
+$r = $petition->query($q);
+while($d = mysqli_fetch_array($r)){
+ echo "<li>$d[ip_address] $d[count]</li>"; 
+}
+?>
+
+
+<?PHP
+include_once('footer.php');
+?>