try this
PHP Code:
if($pivate_mode AND !$user->user AND !newuserpage($_SERVER["PHP_SELF"]))
{
echo "<meta http-equiv=\"refresh\" content=\";url=login.php?op=ienakt\">";
die();
}
if don't work deleate these line and look for
PHP Code:
function newuserpage($page)
{
if(preg_match("/user.php/",$page))return true;
if(preg_match("/takeconfirminvite.php/",$page))return true;
if(preg_match("/confirminvite.php/",$page))return true;
return false;
}
and add lines again right UNDER these lines