1
Can anyone fix this so only webmaster can post news, I want to use it in several modules...
(I'm new to php)
/*********************************************************/
/* User Authentication */
/*********************************************************/
if ($xoopsUser) {
$uid = $xoopsUser->uid();
} else {
if ($xoopsConfig['anonpost'] == 1) {
$uid = 0;
} else {
redirect_header("index.php",3,_ANONNOTALLOWED);
exit();
}
}
/************************************************************/
Regards,
Ole Rasmussen