|
@@ -77,7 +77,7 @@ switch($action) {
|
|
|
$blacklist = (new action)->getBlackList();
|
|
$blacklist = (new action)->getBlackList();
|
|
|
print_r($blacklist);
|
|
print_r($blacklist);
|
|
|
foreach($blacklist as $blip) {
|
|
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>";
|
|
|
|
|
|
|
+ echo "<tr><td>" . long2ip($blip) . "</td><td><a href=admin.php?token=" . $token . "&action=deblacklist&ip=" . long2ip($blip) . ">remove from blacklist</a></td></tr>";
|
|
|
}
|
|
}
|
|
|
?>
|
|
?>
|
|
|
</table>
|
|
</table>
|
|
@@ -87,7 +87,7 @@ foreach($blacklist as $blip) {
|
|
|
$whitelist = (new action)->getWhiteList();
|
|
$whitelist = (new action)->getWhiteList();
|
|
|
print_r($whitelist);
|
|
print_r($whitelist);
|
|
|
foreach($whitelist as $wlip) {
|
|
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>";
|
|
|
|
|
|
|
+ echo "<tr><td>" . long2ip($wlip) . "</td><td><a href=admin.php?token=" . $token . "&action=dewhitelist&ip=" . long2ip($wlip) . ">remove from whitelist</a></td></tr>";
|
|
|
}
|
|
}
|
|
|
?>
|
|
?>
|
|
|
</table>
|
|
</table>
|
|
@@ -97,7 +97,7 @@ foreach($whitelist as $wlip) {
|
|
|
$list = (new action)->getList();
|
|
$list = (new action)->getList();
|
|
|
print_r($list);
|
|
print_r($list);
|
|
|
foreach($list as $lip) {
|
|
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>";
|
|
|
|
|
|
|
+ echo "<tr><td>" . long2ip($lip) . "</td><td><a href=admin.php?token=" . $token . "&action=delist&ip=" . long2ip($lip) . ">remove from list</a></td></tr>";
|
|
|
}
|
|
}
|
|
|
?>
|
|
?>
|
|
|
</table>
|
|
</table>
|