AN-net
08-31-2004, 04:49 PM
ok im even logged out and it still doesnt deny the viewer
here is my code
if($journalinfo['private']==1)
{
if(($bbuserinfo['userid']==$journalinfo['journalist_id']) OR ($bbuserinfo['usergroupid']==6) OR (in_array($bbuserinfo['userid'], array($journalinfo['whocanview']))))
{
$canview['thisjournal']= true;
}
else if(($journalinfo['allowbuddies']==1) AND (in_array($bbuserinfo['userid'], $jbuddies)))
{
$canview['thisjournal']= true;
}
else if($bbuserinfo['userid']==0)
{
$canview['thisjournal']= false;
}
else
{
$canview['thisjournal']= false;
}
}
else
{
$canview['thisjournal']= true;
}
$journalinfo[private] is set to 1 so it should consider it private. i even add the if the statement for guests to assure they cant view it but still it doesnt work>_<
if $canview[thisjournal] returns false it should print no permission but it isnt. anyone know y?
here is my code
if($journalinfo['private']==1)
{
if(($bbuserinfo['userid']==$journalinfo['journalist_id']) OR ($bbuserinfo['usergroupid']==6) OR (in_array($bbuserinfo['userid'], array($journalinfo['whocanview']))))
{
$canview['thisjournal']= true;
}
else if(($journalinfo['allowbuddies']==1) AND (in_array($bbuserinfo['userid'], $jbuddies)))
{
$canview['thisjournal']= true;
}
else if($bbuserinfo['userid']==0)
{
$canview['thisjournal']= false;
}
else
{
$canview['thisjournal']= false;
}
}
else
{
$canview['thisjournal']= true;
}
$journalinfo[private] is set to 1 so it should consider it private. i even add the if the statement for guests to assure they cant view it but still it doesnt work>_<
if $canview[thisjournal] returns false it should print no permission but it isnt. anyone know y?