Follow along with the video below to see how to install our site as a web app on your home screen.
Бележка: This feature may not be available in some browsers.
mute каза:добре искам да проверявам дали потребителя не е баннат такали трябва да стане
include("conn.php");
function decode_ip($int_ip)
{
$hexipbang = explode('.', chunk_split($int_ip, 2, '.'));
return hexdec($hexipbang[0]). '.' . hexdec($hexipbang[1]) . '.' . hexdec($hexipbang[2]) . '.' . hexdec($hexipbang[3]);
}
$newip=decode_ip($ip);
$link=mysql_connect('localhost',$user,$password);
$db=mysql_select_db($database);
$chars="SET CHARACTER SET cp1251";mysql_query($chars);
$query="SELECT ban_ip FROM phpbb_banlist where ban_ip like '$newip'";
$result=mysql_query($query, $link);
if(mysql_num_rows($result)>0){echo 'Вие сте баннат! ';exit();}