Community Add-Ons
| Maintainers: | bchecketts |
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
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.
