I tried to set this up and I am having problems. What have I done wrong? Can someone please point me in the right direction? I tried to return the altered files back to original and I still get the same error. I have 2.2ms2 setup
------------Error on my webpage when I visit the admin section ...catalog/admin----------
1046 - No Database Selected
select configuration_key as cfgKey, configuration_value as cfgValue from configuration
[TEP STOP]
------------------------------------------------------
Heres the text file instructions. It was only a text file.
----------------------------------------------------------
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');
define('ADMIN_PASSWORD', 'mypasword');
// 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;
}
}
?>
--------------------------------------------------------
Any help would be appreciated
Thanks