Файл: sys/core/ban_ip.php
Строк: 31
<?php
include H.'sys/core/count.php';
# бан по IP
if (!isset($ban_ip_page) and count::query('ban_ip',"
`min` <= '$iplong' AND
`max` >= '$iplong'") != 0)
exit(header('Location: /ban_ip.php'));
if (isset($ip2['cl']) and !isset($ban_ip_page) and
count::query('ban_ip',"
`min` <= '".ip2long($ip2['cl'])."' AND
`max` >= '".ip2long($ip2['cl'])."'")!= 0)
exit(header('Location: /ban_ip.php'));
if (!isset($ban_ip_page) AND isset($ip2['xff']) and count::query('ban_ip',"
`min` <= '".ip2long($ip2['xff'])."' AND
`max` >= '".ip2long($ip2['xff'])."'") != 0)
exit(header("Location: /ban_ip.php"));