|
|
@@ -76,18 +76,26 @@ switch($action) {
|
|
|
<?php
|
|
|
$blacklist = (new action)->getBlackList();
|
|
|
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>
|
|
|
<h3>Whitelist</h3>
|
|
|
<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>";
|
|
|
+}
|
|
|
?>
|
|
|
</table>
|
|
|
<h3>List</h3>
|
|
|
<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>";
|
|
|
+}
|
|
|
?>
|
|
|
</table>
|
|
|
</body>
|