mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 20:40:49 +08:00
exam support priority + peer suppoert ipv4&ipv6
This commit is contained in:
@@ -694,3 +694,13 @@ function site_info()
|
||||
];
|
||||
return $siteInfo;
|
||||
}
|
||||
|
||||
function isIPV4 ($ip)
|
||||
{
|
||||
return filter_var($ip,FILTER_VALIDATE_IP, FILTER_FLAG_IPV4);
|
||||
}
|
||||
|
||||
function isIPV6 ($ip)
|
||||
{
|
||||
return filter_var($ip,FILTER_VALIDATE_IP, FILTER_FLAG_IPV6);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user