Forum Moderators: coopster

Message Too Old, No Replies

File access with phpBB

         

puckparches

2:57 am on Aug 21, 2005 (gmt 0)

10+ Year Member Top Contributors Of The Month



I would like to grant access to some specific files only to the people that are subscribing to my phpBB.

Is this possible?

Use the phpBB database to grant access to files?

Or do I need to have them subscribe again.

Aleister

3:02 am on Aug 21, 2005 (gmt 0)

10+ Year Member



If you already have code in place that tells you whether or not the user should have access (i.e. them being logged in), there would not be too much to it.

Say your file is secure_data.php

At the start of your file, you can do your checking to see if the user logged in has permission, and if they do, you can include the file there. If they don't, it can display an error.

You want error checking etc.. of course too, so no one can fake authentication.

Would that work for you?

puckparches

3:05 am on Aug 21, 2005 (gmt 0)

10+ Year Member Top Contributors Of The Month



I’ll try that.

Thank you!