|
|
@@ -35,13 +35,13 @@ if(isset($_GET['role'])) {
|
|
|
if(isset($_GET['description'])) {
|
|
|
$description = substr(trim($_GET['description']),0,40);
|
|
|
}
|
|
|
-$clientIP = substr(trim($_SERVER['REMOTE_ADDR']),0,15);
|
|
|
+$clientIP = ip2long(substr(trim($_SERVER['REMOTE_ADDR']),0,15));
|
|
|
$stats = true;
|
|
|
|
|
|
$tok = new token;
|
|
|
$act = new action;
|
|
|
|
|
|
-if($act->isBlocked(ip2long($clientIP))) {
|
|
|
+if($act->isBlocked($clientIP)) {
|
|
|
http_response_code(403);
|
|
|
exit;
|
|
|
}
|