Przeglądaj źródła

add whitelist, blacklist

andre 4 lat temu
rodzic
commit
c8d0c1c5ba
1 zmienionych plików z 3 dodań i 3 usunięć
  1. 3 3
      index.php

+ 3 - 3
index.php

@@ -130,9 +130,9 @@ class action {
     }
 }
 
-$ip = ip2long(substring(trim($_GET['ip']),0,15));
-$token = substring(trim($_GET['token'],0,25));
-$action = substring(trim($_GET['action'],0,9));
+$ip = ip2long(substr(trim($_GET['ip']),0,15));
+$token = substr(trim($_GET['token']),0,25);
+$action = substr(trim($_GET['action']),0,9);
 
 switch($action) {
     case 'delist':