|
@@ -79,7 +79,7 @@ function delist($ip,$db) {
|
|
|
}
|
|
}
|
|
|
switch($action) {
|
|
switch($action) {
|
|
|
case 'delist':
|
|
case 'delist':
|
|
|
- if (islisted($ip,$db)){
|
|
|
|
|
|
|
+ if (islisted(ip2long($ip),$db)){
|
|
|
if(delist(ip2long($ip),$db)){
|
|
if(delist(ip2long($ip),$db)){
|
|
|
echo "$ip delisted" . PHP_EOL;
|
|
echo "$ip delisted" . PHP_EOL;
|
|
|
} else {
|
|
} else {
|