Topic: page access to a cirtin group
i wna make a page only accessible by a certain user group, but i am unsure what code to put into that page to make it only accessible by group 2?
any ideas?
You are not logged in. Please login or register.
PunBB Forums → PunBB 1.2 troubleshooting → page access to a cirtin group
i wna make a page only accessible by a certain user group, but i am unsure what code to put into that page to make it only accessible by group 2?
any ideas?
if($pun_user['g_id'] != 2)
message($lang_common['No permission']);
and how do i make this apply to the menu, i cant seem to add a link that can only be seen by group 2 ???
if ($pun_user['g_id'] != 2)
{
$links[] = '<li id="portalnavregister"><a href="register.php">'.$lang_common['Register'].'</a>';
$links[] = '<li id="portalnavlogin"><a href="login.php">'.$lang_common['Login'].'</a>';
}
is that wrong?
== if you want it to only be seen gy group 2
PunBB Forums → PunBB 1.2 troubleshooting → page access to a cirtin group
Powered by PunBB, supported by Informer Technologies, Inc.