|
|
@@ -75,6 +75,7 @@ switch($action) {
|
|
|
<table border="0">
|
|
|
<?php
|
|
|
$blacklist = (new action)->getBlackList();
|
|
|
+print_r($blacklist);
|
|
|
foreach($blacklist as $blip) {
|
|
|
echo "<tr><td>" . $blip . "</td><td><a href=admin.php?token=" . $token . "&action=deblacklist&ip=" . long2ip($blip) . ">remove from blacklist</a></td></tr>";
|
|
|
}
|
|
|
@@ -84,6 +85,7 @@ foreach($blacklist as $blip) {
|
|
|
<table border="0">
|
|
|
<?php
|
|
|
$whitelist = (new action)->getWhiteList();
|
|
|
+print_r($whitelist);
|
|
|
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>";
|
|
|
}
|
|
|
@@ -92,7 +94,8 @@ foreach($whitelist as $wlip) {
|
|
|
<h3>List</h3>
|
|
|
<table border="0">
|
|
|
<?php
|
|
|
-$blacklist = (new action)->getBlackList();
|
|
|
+$list = (new action)->getBlackList();
|
|
|
+print_r($list);
|
|
|
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>";
|
|
|
}
|