The following works fine and since it is a private forum going to it requres a password to get into it. The system ask the user for the private password and takes me to the correct fourm number 30 as it should.
$curdir = getcwd();
chdir('./forums');
require_once('./global.php');
// if (!$vbulletin->userinfo['userid'])
// {
// print_no_permission();
// }
chdir($curdir);
switch ($_POST['blue_lodge'])
{
case "John T. Heard Lodge":
$vbulletin->url = $vbulletin->options['bburl'] . '/forumdisplay.php?f=30';
eval(print_standard_redirect('redirecting to forum', false, true));
// echo "We have found it ";
break;
default:
echo "Invalid page";
break;
}
?>
But If I uncomment these lines
if (!$vbulletin->userinfo['userid'])
{
print_no_permission();
}
The login screen comes up fine but if i use my vaild user name and password it does not take me to the forum but a get a 404 error page.
If I decide to click on the register link i have the same trouble 404 error page !
Please explain how to get around this problem.
THANKS
Frank H. Shaw
I think my problem has something to do with the fact that i am runnung IIS so i have come to the realization that the chdir('./forums'); will not work on the IIS server - Please explian to me what is the problem and how to get around it.
|