andre 4 жил өмнө
parent
commit
ff75854a63
1 өөрчлөгдсөн 3 нэмэгдсэн , 3 устгасан
  1. 3 3
      index.php

+ 3 - 3
index.php

@@ -84,7 +84,7 @@ class action {
     }
 
     public function deList($ip) {
-        if(!$this->islisted($ip)) {
+        if(!$this->isListed($ip)) {
             return false;
         }
         //check delisting count
@@ -104,7 +104,7 @@ class action {
     }
 
     public function blackList($ip) {
-        deWhiteList($ip);
+        $this->deWhiteList($ip);
         $dbAction = $this->db->prepare("INSERT IGNORE INTO blacklist VALUES (?)");
         $dbAction->bind_param('i',ip2long($ip));
         return $dbAction->execute();
@@ -117,7 +117,7 @@ class action {
     }
 
     public function whiteList($ip) {
-        deBlackList($ip);
+        $this->deBlackList($ip);
         $dbAction = $this->db->prepare("INSERT IGNORE INTO whitelist VALUES (?)");
         $dbAction->bind_param('i',ip2long($ip));
         return $dbAction->execute();