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.
@$banned = array_map( 'rtrim', file( BLACK_LIST_FILE ) );
$ip = ip2long( $_SERVER['REMOTE_ADDR'] );
// Check
if( @in_array( $ip, $banned ) )
{
die( 'Your IP has been banned' );
}
if ($REMOTE_ADDR=="xxx.xxx.xxx.xxx") {
$warnText="Вы забанены";
$posting=0;
}
define( 'BLACK_LIST_FILE', 'blacklist.txt' );
@$banned = array_map( 'rtrim', file( BLACK_LIST_FILE ) );
$ip = ip2long( $_SERVER['REMOTE_ADDR'] );
// Check
if( @in_array( $ip, $banned ) )
{
$warnText = "Вы забанены";
$posting = 0;
}