Contributions
Simple Down for Maintenance
Features:
1 - Simple installation: 2 minor file edits, 1 file copy, a few SQL statements.
2 - Administrative on/off for "Downing" the store
3 - Admin-configurable warning message (also on/off) (not timed) to avoid surprising customers by "downing" the store suddently
4 - Admin IP address exception - - you can enter in your IP address to still browse the store while everyone else sees it as "down"
Expand All / Collapse All
This is just a variant of the amazing solution of Jared Call. I was forced to do this, because i use a shared SSL certificate which changes the IP address in case of entering SSL pages (e.g. login.php). Furthermore, i added the warning message suggested by Nathan Robertson in the support thread.
SQL statements for english and german are included.
This is a full package of both variants.
Just the original code with configuration interface strings translated into French.
FULL PACKAGE.
i had an infinte loop going so i added the following code which solved it for me.
Change the code in the application top file to this:
$currentFile = $_SERVER["SCRIPT_NAME"];
$parts = Explode('/', $currentFile);
$currentFile = $parts[count($parts) - 1];
if (DOWN_FOR_MAINTENANCE == 'true' and $currentFile != "index-maint.php") {
if ($_SERVER['REMOTE_ADDR'] != DOWN_FOR_MAINTENANCE_IP_ADDRESS)
{
tep_redirect(tep_href_link(DOWN_FOR_MAINTENANCE_PAGE));
}
}
I have seen a few people post problems with Simple Down For Maintenance and STS template system. Here is an easy fix.
This is not a complete package. Only download this if you are having trouble with down for maintenance and STS
Tested on STS PLUS v4
This version is in Portuguese.
Everything remains as original version
All credits goes to the author.
This is the FULL PACKAGE.
Features:
1 - Simple installation: 2 minor file edits, 1 file copy, a few SQL statements.
2 - Administrative on/off for "Downing" the store
3 - Admin-configurable warning message (also on/off) (not timed) to avoid surprising customers by "downing" the store suddently
4 - Admin IP address exception - - you can enter in your IP address to still browse the store while everyone else sees it as "down"
Note: Contributions are used at own risk.