Re: Disallow Access To the Site - Problems
I have just had the same problem, and found a workaround.
You do get logged in correctly, but it then redirects you to the error page with the same error message, if you then type in the path to index.php it works and you are logged in.
The problem is in the section starting
//Remember where user is logging in from and send them back later; using session variable for those of us who use WebISO services
if (!'loginfrom'" class="wiki wikinew text-danger tips isset">$_SESSION'loginfrom') {
because you can only really log in from the index page I have disabled this feature and the code is now the following, just to return the user to the index page.
//Remember where user is logging in from and send them back later; using session variable for those of us who use WebISO services
if (!'loginfrom'" class="wiki wikinew text-danger tips isset">$_SESSION'loginfrom') {
// Netx block commented out by Dave Sykes 27 Aug 2004
/* if 'HTTP_REFERER'" class="wiki wikinew text-danger tips isset">$_SERVER'HTTP_REFERER' {
// $_SESSION'loginfrom' = basename($_SERVER'HTTP_REFERER');
$_url = parse_url($_SERVER'HTTP_REFERER');
$_SESSION'loginfrom' = $_url'path';
if (!empty($_url'query')) {
$_SESSION'loginfrom' .= '?'.$_url'query';
}
} else {*/
//Oh well, back to tikiIndex
// $_SESSION'loginfrom' = basename($tikiIndex);
$_url = parse_url($tikiIndex);
$_SESSION'loginfrom' = $_url'path';
if (!empty($_url'query')) {
$_SESSION'loginfrom' .= '?'.$_url'query';
}
// }
}
Let me know if this also works for you.
Good luck,
Dave Sykes