PDA

View Full Version : How to allow access to a page based on usergroup ?


avengingangel
09-11-2002, 06:43 PM
I am running an Jpilot IRC and have it configured accordingly to goto the proper IRC server, channel, pickup forum username to use as login, etc.... It's working great.

What I'd like to do now is limit access to this IRC (php) PAGE such that if a user clicks on the link to goto IRC and isn't part of the "Registered" user group then I don't want them to be able to access the IRC chat client...

Any help would be greatly appreciated.

I have hunted high and low on this forum and haven't been able to find anything..

Thanks in advance !

g-force2k2
09-11-2002, 07:11 PM
avengingangel at the top of the php file (perhaps chat.php?)

find:

require('./global.php');

under that add:

if($bbuserinfo[usergroupid] == 0) {
show_nopermission();
}

regards...

g-force2k2

avengingangel
09-15-2002, 03:05 PM
Thanks a Million.
I was able to run with that and modify it to allow only certain user groups !