PDA

View Full Version : need to deny access to non reg'd users


Raptor
15 Jul 2001, 00:30
i'm using a downloads.php script that I want to restrict access to registered users only.

I've tried to add something like this at the top of the code but it's doing nothing:

if ($bbuserinfo['userid']!=0) {
$username=$bbuserinfo['username'];
eval("\$error_nopermission = \"".gettemplate('error_nopermission')."\";");

} else {
("continue");
}

could i get some advice please ?

Raptor
15 Jul 2001, 19:19
someone must know this one ?

please....

JamesUS
17 Jul 2001, 20:43
Try this:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------