Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Ian's Loaded 5 question


xuechao

Recommended Posts

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

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

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

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

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

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

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...