I am setting up a system where I have a directory of renders (pre-cut images for graphics) and I do not want them accessible to anyone who is not a member of the premium usergroup on my vBulletin forum. I used a htaccess script of "Order Allow, Deny" to make the directory completely unaccessible. I'm sure my error lies in here, but I'm not sure.
I used the following code on the page that will allow the user to download the files from:
Code: Select all
<?php
if ($vbulletin->userinfo['usergroupid'] == '6' )
{
echo "Welcome to the premium section!";
} else {
echo "You do not have permission for this page"; }
?>
<a href="Avatars.rar">A</a>Thanks in advance for any and all help!