bear
01-06-2009, 07:40 PM
I just installed a new script on my site and while the site functions fine, I'm not able to get into the admin panel for the script. I get a login box that says,
A username and password are being requested by http://www.mysite.com. The site says: "Test Authentication System"
I'm supposed to be able to login using admin/test but that doesn't work. No matter what name and password I use it won't work.
Here is the the part of the code I find at the top of the config_inc.php in the admin folder, I don't know if this is where the problem is but it seems related to it.
<?
function authenticate() {
global $err;
header( "WWW-Authenticate: Basic realm=\"Test Authentication System\"");
header( "HTTP/1.0 401 Unauthorized");
die($err[1]);
}
foreach($_POST as $k => $v){$$k=$v;}
foreach($_GET as $k => $v){$$k=$v;}
// MySQL details
Please, if anybody could tell me what I need to do to solve this problem I would really appreciate it. I've been trying to figure it out on my own now for a couple of days with no luck whatsoever.
A username and password are being requested by http://www.mysite.com. The site says: "Test Authentication System"
I'm supposed to be able to login using admin/test but that doesn't work. No matter what name and password I use it won't work.
Here is the the part of the code I find at the top of the config_inc.php in the admin folder, I don't know if this is where the problem is but it seems related to it.
<?
function authenticate() {
global $err;
header( "WWW-Authenticate: Basic realm=\"Test Authentication System\"");
header( "HTTP/1.0 401 Unauthorized");
die($err[1]);
}
foreach($_POST as $k => $v){$$k=$v;}
foreach($_GET as $k => $v){$$k=$v;}
// MySQL details
Please, if anybody could tell me what I need to do to solve this problem I would really appreciate it. I've been trying to figure it out on my own now for a couple of days with no luck whatsoever.