mirror of
https://github.com/mashirozx/sakura.git
synced 2024-12-12 09:54:35 +08:00
Full support of PHP 7.2
This commit is contained in:
parent
27831aae15
commit
6e29942122
@ -229,7 +229,7 @@ function convertip($ip) {
|
||||
return 'IP date file not exists or access denied';
|
||||
}
|
||||
$ip = explode('.', $ip);
|
||||
$ipNum = $ip[0] * 16777216 + $ip[1] * 65536 + $ip[2] * 256 + $ip[3];
|
||||
$ipNum = intval($ip[0]) * 16777216 + intval($ip[1]) * 65536 + intval($ip[2]) * 256 + intval($ip[3]);
|
||||
$DataBegin = fread($fd, 4);
|
||||
$DataEnd = fread($fd, 4);
|
||||
$ipbegin = implode('', unpack('L', $DataBegin));
|
||||
|
Loading…
Reference in New Issue
Block a user