andre 4 년 전
부모
커밋
a252c61fb0
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      index.php

+ 2 - 1
index.php

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