Firefox PHP

Require Login in added pages

Posted by Kicker Rock 
Normally I use the

if(isset($phorum_user['id'])){
...
}

for showing content in added pages on my website only to members
but i would like to have to use the redirection function
like trying to attempt a forum that requires login.

i guess it's around here:

// including the user-authentication
include ("$include_path/userlogin.php");

if(!defined('PHORUM_ADMIN') && $DB->connect_id){
// check security
if($ForumFolder==1 || $f==0){
$SQL="Select max(security) as sec from $pho_main";
$q->query($DB, $SQL);
$max_sec=$q->field('sec', 0);
}

$phorum_user=phorum_return_user();

if(isset($phorum_user) && !$phorum_user['moderator']){
if((isset($ForumSecurity) && $ForumSecurity==SEC_NONE) || (($ForumFolder==1 || $f==0) && $max_sec==0)){
unset($phorum_user);
}
}

if($ForumSecurity==SEC_ALL && !isset($phorum_user['id'])){
header('Location: '.phorum_loginurl($REQUEST_URI));
exit();
}

but how can I activate it for a certain non-phorum page
like news.php or similar that includes
the header.php and common.php files?!
Sorry, you do not have permission to post/reply in this forum.