Q about usergroupid permission !
hi,
in my forum i have file php in the admin folder , it making cool thread in type on the head of the forum as marquee, permission for admins only .. i want to alow supermods and mods log in . this is code on top of the file :
require("./global.php");
if ($bbuserinfo[userid]==0) show_nopermission();
if ($bbuserinfo[usergroupid]!=6) {
echo "admins only";
exit;
}
i tried this :
require("./global.php");
if ($bbuserinfo[userid]==0) show_nopermission();
if (($bbuserinfo[usergroupid]!=6) or ($bbuserinfo[usergroupid] == 5) or ($bbuserinfo[usergroupid] == 7)) {
echo "login for admins,supermod,mods only";
exit;
}
also tried move the file to main vb directory but not worked !!
any idea ?
thanks,
|