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 ?
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 ?