camburst Posted September 20, 2002 Share Posted September 20, 2002 Hello Board - I tried to use the authentication code by Bao Quoc Nguyen --http://www.oscommerce.com/downloads.php/contributions,285/type,3 and I had the same problems I saw in many other posts, I've got a fix - granted Im still learning PHP but here it Add this code at the top of admin/includes/application_top.php and dont bother adding anything to the configure.php - and create the authen.php This was implemented in application_top.php,v 1.152 2002/08/11 - Snapshot Hope this helps // define admin user/password define('ADMIN_USERNAME', 'admin'); // define username define('ADMIN_PASSWORD', 'admin1'); // define password // include authentication user/password of administration require('includes/authen.php'); thanks, Jody Link to comment Share on other sites More sharing options...
ukracer Posted January 16, 2003 Share Posted January 16, 2003 Hello Board - I tried to use the authentication code by Bao Quoc Nguyen --http://www.oscommerce.com/downloads.php/contributions,285/type,3 and I had the same problems I saw in many other posts, I've got a fix - granted Im still learning PHP but here it Add this code at the top of admin/includes/application_top.php and dont bother adding anything to the configure.php - and create the authen.php This was implemented in application_top.php,v 1.152 2002/08/11 - Snapshot Hope this helps // define admin user/password define('ADMIN_USERNAME', 'admin'); // define username define('ADMIN_PASSWORD', 'admin1'); // define password // include authentication user/password of administration require('includes/authen.php'); thanks, Jody Thanks for the fix but has the snapshot upgrades made this fix redundant as I cant get it to work even with this fix. Link to comment Share on other sites More sharing options...
companyguy Posted March 8, 2003 Share Posted March 8, 2003 This is what i get after following your instructions. jhmmmm. The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are: Status: 401 Content-type: text/html X-Powered-By: PHP/4.3.1 WWW-Authenticate: Basic realm="TITLE-0" :oops: Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.