1
Please excuse me for my lack of php knowledge here but here we go.
Is there a way to restrict a page to a certian XOOPS user only instead of group?
Like for example..
if ($xoopsUser== 'someuser')
{
content....
}
else
{ echo "something"; }
Possibly with the use of this code here?
$xoopsOption['pagetype'] = "admin";
$message = 'You Do Not Have Acess Rights To This Area | Taking You Back.....';
if ( $xoopsUser ) {
if ( !$xoopsUser->isAdmin() ) {
redirect_header("http://url",2, $message);
exit();
}
} else {
redirect_header("http://url/",2, $message);
exit();
}
?>