Thank you for your help with the htaccess file. I set it up, and I can't access anything as a guess, which I like. However, I set up a page with the following code:
PHP Code:
<?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>
And when I load that page in my main page using a php include, it doesn't let me download the rar file. Do I have to include some type of php code inside of the htacces? Or did I mess up my coding? Also, is there a way to detect if the user is a secondary member of that usergroup?
Thank you for all of your help so far, it means a lot to me.
Edit: I've fixed the code, and have it working:
PHP Code:
<?php
if ($vbulletin->userinfo['usergroupid'] == '6' )
{
echo "Welcome to the premium section!<br /><a href='/depu/Avatars.rar'>A</a>";
} else {
echo "You do not have permission for this page"; }
?>
But it is giving me this error:
Quote:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
|
Is there something else I have to include in my htaccess file?