6
add an else so that when they are not a user they are redirected to the login screen.?
include("../mainfile.php");
include(XOOPS_ROOT_PATH."/header.php");
if (is_object($xoopsUser)) {
echo $xoopsUser->uname();
}else{
redirect_header(XOOPS_URL.'/user.php',3,_NOPERM);
exit();
}
include(XOOPS_ROOT_PATH."/footer.php");
?>
you can change _NOPERM to "Some Kind Of Message"
CBB / LatestNews / Publisher / XM-Spotlight
(ノ◕ヮ◕)ノ*:・゚✧