@@ -26,7 +26,7 @@ function set($ip,$db) {
return $dbAction->execute();
}
-if (checkToken($token,$db)){
+if (!checkToken($token,$db)){
if(set(ip2long($ip),$db)){
echo " inserted $ip" . PHP_EOL;
} else {