[code]
if (!allow_access(3) && $parr[0] != 'member' && $parr[0] != 'jcow' && !eregi("google",$_SERVER['HTTP_USER_AGENT']) ) {
if (get_gvar('offline')) {
$config['hide_ad'] = 1;
clear_as();
c('<h1>'.t('Website Offline').'</h1>');
c(get_gvar('offline_reason'));
stop_here();
exit;
}
if (strlen(get_gvar('blacklist')) ) {
$myips = explode('.',$client['ip']);
$blacklists = explode("\r\n",get_gvar('blacklist'));
foreach ($blacklists as $item) {
$items = explode('.', $item);
if (
($items[0] == '*' or $items[0] == $myips[0]) &&
($items[1] == '*' or $items[1] == $myips[1]) &&
($items[2] == '*' or $items[2] == $myips[2]) &&
($items[3] == '*' or $items[3] == $myips[3])
) {
die('*');
}
}
}
}
[/code]
this is code from jcow 3.3 free, in boot_inc.php before the last 2 lines
$nav[] = ....
require_once |