Changeset 1085 in ExiteCMS for trunk/includes/core_functions.php


Ignore:
Timestamp:
11/08/07 00:06:27 (5 years ago)
Author:
hverton
Message:

added the site location country selection (also the explicit country for user_id 1)
added some missing country codes to rev01079.php
birthday in the profile is displayed using the date format and months names of the locale set
forced maintenance mode if uninstalled updates are detected
updated the dbsetup_include.php file to reflect the latest database changes
removed the country name from the GeoIP table, now uses the country name from the locales table

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/core_functions.php

    r1079 r1085  
    178178// check for upgrades in progress. 
    179179if (!eregi("upgrade.php", $_SERVER['PHP_SELF'])) { 
     180 
    180181    include PATH_ADMIN."upgrade.php"; 
    181182    //  If so, force a switch to maintenance mode 
    182183    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         redirect('maintenance.php?reason='.$settings['maintenance']); 
    190     } else { 
    191         redirect(ADMIN.'upgrade.php'.$aidlink); 
     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            // deny all non-webmasters access to the site 
     190            redirect('maintenance.php?reason='.$settings['maintenance']); 
     191        } else { 
     192            // force webmasters to the upgrade module 
     193            redirect(ADMIN.'upgrade.php'.$aidlink); 
     194        } 
    192195    } 
    193196} 
Note: See TracChangeset for help on using the changeset viewer.