if (isset($passe) && isset($puser))
{
?>
foreach ($allowed_counter_ip as $ip) {
// change wildcard
$ip = preg_replace('@\*$@i', '.', $ip);
if ($ip == $remote_addr || $_SERVER['HTTP_HOST'] == 'localhost' || preg_match("@$ip@i", $ip)) {
$confirmation = 1;
}
}
if (!$confirmation) {
header ("location: index.php");
}
// start the output buffering for main content
ob_start();?>