Plug-in Posted September 25, 2009 Share Posted September 25, 2009 I've got a simple file upload script but I only want site staff to have access, I am currently running a mybb forum and I want to know how I can make it so that only users from the specific usergroup can gain access (if logged in). Quote Link to comment https://forums.phpfreaks.com/topic/175488-restricted/ Share on other sites More sharing options...
JonnoTheDev Posted September 25, 2009 Share Posted September 25, 2009 Use a conditional statement. i.e if($userGroup == 'admin') { // display file upload } Quote Link to comment https://forums.phpfreaks.com/topic/175488-restricted/#findComment-924801 Share on other sites More sharing options...
Plug-in Posted September 26, 2009 Author Share Posted September 26, 2009 Use a conditional statement. i.e if($userGroup == 'admin') { // display file upload } Thanks, rep Quote Link to comment https://forums.phpfreaks.com/topic/175488-restricted/#findComment-925260 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.