xuechao Posted March 31, 2003 Share Posted March 31, 2003 Hi, currently I am using Ian's Loaded 5 and have applied all the required patches for Loaded 5. I have a question about the admin login/logoff contribution. Is it possible to disable the login/logoff function for the admin page? Thanks Link to comment Share on other sites More sharing options...
loxly Posted March 31, 2003 Share Posted March 31, 2003 no, it would have to be uninstalled and it is not easy, I tried once and won't do it again!!! 8) [no external urls in signatures please, kthanks] Link to comment Share on other sites More sharing options...
xuechao Posted March 31, 2003 Author Share Posted March 31, 2003 no, it would have to be uninstalled and it is not easy, I tried once and won't do it again!!! 8) oh.. because for some reason when I go to /admin/index.php, it redirects me to my hosting account login page instead to the so-called admin login. Is that suppose to happen? Link to comment Share on other sites More sharing options...
loxly Posted March 31, 2003 Share Posted March 31, 2003 Are you going to http://url/admin or http://url/yourstoredirectory/admin ? [no external urls in signatures please, kthanks] Link to comment Share on other sites More sharing options...
xuechao Posted March 31, 2003 Author Share Posted March 31, 2003 Are you going to http://url/admin or http://url/yourstoredirectory/admin ? I am going to http://url/storedirectory/admin Link to comment Share on other sites More sharing options...
Ian Posted March 31, 2003 Share Posted March 31, 2003 A lot of these customer control panels work this way. Basically using an apache mod-rewrite to take you from www.mydomain.com/admin/ to the actual panel directory. This has nothing to do with the administrators mod. The problem would exist with any install of osC. You have two choices, move your admin directory, (including renaming it) or always remember to give a fully qualified url. e.g. http://www.mydomain.com/admin/index.php Trust me, I'm an Accountant. Link to comment Share on other sites More sharing options...
xuechao Posted April 1, 2003 Author Share Posted April 1, 2003 Now I have moved the admin folder to the root directory, and now it transferred me to my host's login page with the following info: username: blank (default) domain: url/index.php (i have also tried url/admin/index.php pass: blank (admin) but it keeps saying incorrect login/pass. Did I do something wrong? PS> after moving the folder, I have resetup oscommerce and everything. The catalog works fine. Link to comment Share on other sites More sharing options...
Guest Posted April 2, 2003 Share Posted April 2, 2003 While this won't solve your exact problem as listed above, to disable the Administrators login, simply comment out the following lines in admin/includes/application_top.php // Require administrative authentication // define our general functions used application-wide require(DIR_WS_FUNCTIONS . 'general.php'); require(DIR_WS_FUNCTIONS . 'html_output.php'); require( DIR_WS_FUNCTIONS . 'administrators.php' ); RequireLoginValidForPage( $REQUEST_URI ); Link to comment Share on other sites More sharing options...
xuechao Posted April 2, 2003 Author Share Posted April 2, 2003 While this won't solve your exact problem as listed above, to disable the Administrators login, simply comment out the following lines in admin/includes/application_top.php // Require administrative authentication // define our general functions used application-wide require(DIR_WS_FUNCTIONS . 'general.php'); require(DIR_WS_FUNCTIONS . 'html_output.php'); require( DIR_WS_FUNCTIONS . 'administrators.php' ); RequireLoginValidForPage( $REQUEST_URI ); thank you for your advice, but after commenting the above lines out, the site still redirects me to the login page. Link to comment Share on other sites More sharing options...
Guest Posted April 2, 2003 Share Posted April 2, 2003 Rename your ADMIN directory to SASSALFRASS in your favorite FTP program. Link to comment Share on other sites More sharing options...
xuechao Posted April 2, 2003 Author Share Posted April 2, 2003 Rename your ADMIN directory to SASSALFRASS in your favorite FTP program. After renaming the admin folder and access the link http://url/(admin folder)/index.php the following shows up: Fatal error: Call to undefined function: tep_href_link() in var/www/html/test/includes/metainfo/catalog.php on line 6 Link to comment Share on other sites More sharing options...
Ian Posted April 2, 2003 Share Posted April 2, 2003 If you have renamed your admin folder, don't forget to change the details in configure.php Trust me, I'm an Accountant. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.