Changeset 1079 in ExiteCMS for trunk/includes/core_functions.php
- Timestamp:
- 11/06/07 22:44:18 (5 years ago)
- File:
-
- 1 edited
-
trunk/includes/core_functions.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/includes/core_functions.php
r1069 r1079 180 180 include PATH_ADMIN."upgrade.php"; 181 181 // If so, force a switch to maintenance mode 182 //if (UPGRADES) $settings['maintenance'] = 2;183 } 184 185 // check if we need to redirect to maintenance mode186 if (!iADMIN && $settings['maintenance']) { 187 // only if not called from the maintenance mode module! (to prevent a loop, endless ;-) 188 if (! eregi("maintenance.php", $_SERVER['PHP_SELF'])) {182 if (UPGRADES) $settings['maintenance'] = 2; 183 } 184 185 // if not called from the maintenance mode module! (to prevent a loop, endless ;-) 186 // check if we need to redirect to maintenance mode (for users) or upgrade (for webmasters) 187 if ($settings['maintenance'] && !eregi("maintenance.php", $_SERVER['PHP_SELF'])) { 188 if (!iSUPERADMIN) { 189 189 redirect('maintenance.php?reason='.$settings['maintenance']); 190 } else { 191 redirect(ADMIN.'upgrade.php'.$aidlink); 190 192 } 191 193 }
Note: See TracChangeset
for help on using the changeset viewer.
