andre hace 4 años
padre
commit
a252c61fb0
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      index.php

+ 2 - 1
index.php

@@ -49,13 +49,14 @@ function islisted($ip,$db) {
     $dbAction->bind_param('i',ip2long($ip));
     $dbAction->execute();
     if($dbAction->num_rows() == 0) {
+        echo "debug 1\n";
         return false;
     }
     return true;
 }
 function delist($ip,$db) {
     if(!islisted($ip,$db)) {
-        echo $ip . " not listed";
+        echo "debug 2\n";
         return false;
     }
     $dbAction = $db->prepare("INSERT INTO delist (ip) VALUES (?) ON DUPLICATE KEY UPDATE count = count + 1");