PDA

View Full Version : need some help to give acces to ......


BaBa2002
02-08-2003, 03:53 PM
i have a litle question
what's the code to give acces a specific usergroup to some other subdirectory

sorry for my bad english
normaly i speak dutch

Xenon
02-08-2003, 04:07 PM
??
what doy you mean by subdirectory in this case?

do you mean like .htaccess a directory (like the admin directory) for just some users?

BaBa2002
02-09-2003, 08:27 AM
yep that's what i mean
i want to creat a new usergroup and only that people could get acces to that "subdirectory"

Xenon
02-09-2003, 11:41 AM
maybe this helps:
https://vborg.vbsupport.ru/showthread.php?s=&threadid=34045

or search around a bit, there are several threads about this theme..

BaBa2002
02-09-2003, 11:45 AM
sorry
i want to make a new vb page which the people from that specific usergroup can acces them
that's what i mean ( that page can be located in a sub directory)
that's what i mean

Xenon
02-09-2003, 12:07 PM
just one page?

then all you have to to is to put this at the start of the script:
require('global.php');
if(!in_array($bbuserinfo['usergroupid'], array(5,6,7))) show_nopermission();
just add the right usergroupids then :)

BaBa2002
02-09-2003, 06:10 PM
thx bud

Xenon
02-09-2003, 06:15 PM
welcome