I used the following contribution:
Admin Authentication for 2.2
Admin Authentication for 2.2-CVS
I didnt make any changes to anything except following the directions which are:
QUOTE
Quick Setup of Admin Authentication.
// Open /admin/includes/application_top.php add the following code in
// include authentication user/password of administration
require(DIR_WS_INCLUDES . 'authen.php');
// Open /admin/includes/configure.php and add the following code in
// define admin user/password
define('ADMIN_USERNAME', 'admin'); <-- I changed this to my user name
define('ADMIN_PASSWORD', 'mypasword'); <-- I changed this to my password
// Save the following PHP codes as authen.php in /admin/includes/authen.php
<?php
if(!isset($PHP_AUTH_USER))
{ header('WWW-Authenticate: Basic realm="' . TITLE . '"');
header('HTTP/1.0 401 Unauthorized');
echo $SERVER_NAME . ' Authorization Required.';
exit;
}
else
{ if (($PHP_AUTH_USER != ADMIN_USERNAME) || ($PHP_AUTH_PW != ADMIN_PASSWORD))
{ header('WWW-Authenticate: Basic realm="' . TITLE. '"');
header('HTTP/1.0 401 Unauthorized');
echo $SERVER_NAME . ' Authorization Required.';
exit;
}
}
?>
That is exactly what i did. I didnt change anything. The problem is it brings up the login console, but when I type in my user name and password and submit it the login screen stays up and becomes blank. Like I am using the wrong password and it wants me to try logging in again. If there is some other change in another file i was supposed to make, i have no idea what it is. Please help me