Changeset 1509 in ExiteCMS for branches/PLi-Fusion/administration/tools/update_geoip_database.php
- Timestamp:
- 07/02/08 18:27:06 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PLi-Fusion/administration/tools/update_geoip_database.php
r1227 r1509 42 42 43 43 // load the theme functions when not in CLI mode 44 if (!CMS_CLI) require_once PATH_INCLUDES."theme_functions.php"; 44 if (!CMS_CLI) { 45 require_once PATH_INCLUDES."theme_functions.php"; 46 } else { 47 echo "Running in CLI mode...\n"; 48 } 45 49 46 50 // load the GeoIP include module … … 58 62 // verify if the download succeeded 59 63 if (file_exists('/tmp/GeoIPCountryCSV.zip')) { 64 65 // save the debug log setting, then disable it 66 $db_log = $_db_log; 67 $_db_log = false; 60 68 61 69 // unzip the new file … … 139 147 display("Update finished!"); 140 148 149 // restore the debug log status 150 $_db_log = $db_log; 151 141 152 // delete the download and temporary files 142 153 if (file_exists('/tmp/GeoIPCountryWhois.csv')) unlink("/tmp/GeoIPCountryWhois.csv");
Note: See TracChangeset
for help on using the changeset viewer.
