Explorar el Código

add admin view

andre hace 4 años
padre
commit
9df9dffc83
Se han modificado 1 ficheros con 4 adiciones y 4 borrados
  1. 4 4
      admin.php

+ 4 - 4
admin.php

@@ -84,8 +84,8 @@ foreach($blacklist as $blip) {
 <table border="0">
 <?php
 $whitelist = (new action)->getWhiteList();
-foreach($whitelist as $blip) {
-    echo "<tr><td>" . $blip . "</td><td><a href=admin.php?token=" . $token . "&action=dewhitelist&ip=" . long2ip($blip) . ">remove from whitelist</a></td></tr>";
+foreach($whitelist as $wlip) {
+    echo "<tr><td>" . $wlip . "</td><td><a href=admin.php?token=" . $token . "&action=dewhitelist&ip=" . long2ip($wlip) . ">remove from whitelist</a></td></tr>";
 }
 ?>
 </table>
@@ -93,8 +93,8 @@ foreach($whitelist as $blip) {
 <table border="0">
 <?php
 $blacklist = (new action)->getBlackList();
-foreach($blacklist as $blip) {
-    echo "<tr><td>" . $blip . "</td><td><a href=admin.php?token=" . $token . "&action=delist&ip=" . long2ip($blip) . ">remove from list</a></td></tr>";
+foreach($list as $lip) {
+    echo "<tr><td>" . $lip . "</td><td><a href=admin.php?token=" . $token . "&action=delist&ip=" . long2ip($lip) . ">remove from list</a></td></tr>";
 }
 ?>
 </table>