Community Add-Ons

Maintainers: bchecketts
Add file to this package
Top » Other

Force Secure Admin Pages
for osCommerce Online Merchant v2.2

This will force the admin interface to use your secure certificate so that potentially sensitive customer data is encrypted between the web server and your browser.

Add the following code to the bottom of /catalog/admin/includes/application_top.php just before the final closing "?>"

if($_SERVER['SERVER_PORT'] == 80) {
Header("Location: " . HTTPS_CATALOG_SERVER . DIR_WS_ADMIN);
exit;
}

Legend:  Download   Report
Expand All / Collapse All
Clarification peterpil19 8 Sep 2006  

The "Easier way to secure Admin" way below has worked for some but if it does not, adding the code of the original contribution may work.

Easier way to secure Admin lrparr 24 Dec 2005  
better do it this way Hans Meier 24 Dec 2005  
Force Secure Admin Pages bchecketts 24 Dec 2005