andre пре 4 година
родитељ
комит
a417dcccf0
1 измењених фајлова са 9 додато и 1 уклоњено
  1. 9 1
      admin.php

+ 9 - 1
admin.php

@@ -76,18 +76,26 @@ switch($action) {
 <?php
 <?php
 $blacklist = (new action)->getBlackList();
 $blacklist = (new action)->getBlackList();
 foreach($blacklist as $blip) {
 foreach($blacklist as $blip) {
-    echo "<tr><td>" . $blip . "</td><td><a href=admin.php?token=" . $token . "&action=deblacklist&ip=" . $blip . ">remove from blacklist</a></td></tr>";
+    echo "<tr><td>" . $blip . "</td><td><a href=admin.php?token=" . $token . "&action=deblacklist&ip=" . long2ip($blip) . ">remove from blacklist</a></td></tr>";
 }
 }
 ?>
 ?>
 </table>
 </table>
 <h3>Whitelist</h3>
 <h3>Whitelist</h3>
 <table border="0">
 <table border="0">
 <?php
 <?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>";
+}
 ?>
 ?>
 </table>
 </table>
 <h3>List</h3>
 <h3>List</h3>
 <table border="0">
 <table border="0">
 <?php
 <?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>";
+}
 ?>
 ?>
 </table>
 </table>
 </body>
 </body>