1

Topic: checking permissions

Hey guys like the others I am not so good at php and was wondering How I can make a php page user/password protect.

What I want to do is give permission to certain users on punBB forum to access that page so what coding would I use to check for their user/pass to grant them permission to view that page?

any help is appriciated!

~Danny

Life depends on art ~Daniel Gallegos
http://zenkoashikaga.deviantart.com/

Re: checking permissions

Well, you could start with making a usergroup for those people.
Then, make sure you know their group id and put a check on your page, like this:

if($pun_user['g_id'] != 5) message($lang_comon['No view']);

Ofcourse change 5 to the id of your group.