PDA

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


Raptor
07-14-2001, 11:30 PM
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
07-15-2001, 06:19 PM
someone must know this one ?

please....

JamesUS
07-17-2001, 07:43 PM
Try this:

require("global.php");

if (!$bbuserinfo[username]) {
error_nopermission;
exit;
}