For zc158, add the highlighted lines to /includes/init_includes/init_customer_auth.php (starting at line 37 for zc158) to enable those three scripts (presumably in the site's root directory) to be accessed by everyone even if maintenance-mode is active:
Code:
/**
* check to see if site is DFM, and set a flag for use later
*/
if (DOWN_FOR_MAINTENANCE == 'true') {
if (!zen_is_whitelisted_admin_ip()){
if ($_GET['main_page'] != DOWN_FOR_MAINTENANCE_FILENAME) $down_for_maint_flag = true;
}
//-bof-20221023-lat9-Enable **all** accesses to the root's atom.php, rss.php or sitemap.php to be accessed during maintenance-mode
if (strpos($_SERVER['REQUEST_URI'], 'atom.php') !== false || strpos($_SERVER['REQUEST_URI'], 'rss.php') !== false || strpos($_SERVER['REQUEST_URI'], 'sitemap.php') !== false) {
$down_for_maint_flag = false;
}
//-eof-20221023-lat9
}
Bookmarks