Ignore:
Timestamp:
07/02/08 18:27:06 (4 years ago)
Author:
hverton
Message:

Merged trunk revisions 1408:1508 into the PLi-Fusion branch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/PLi-Fusion/administration/tools/update_geoip_database.php

    r1227 r1509  
    4242 
    4343// load the theme functions when not in CLI mode 
    44 if (!CMS_CLI) require_once PATH_INCLUDES."theme_functions.php"; 
     44if (!CMS_CLI) { 
     45    require_once PATH_INCLUDES."theme_functions.php"; 
     46} else { 
     47    echo "Running in CLI mode...\n"; 
     48} 
    4549 
    4650// load the GeoIP include module 
     
    5862// verify if the download succeeded 
    5963if (file_exists('/tmp/GeoIPCountryCSV.zip')) { 
     64 
     65    // save the debug log setting, then disable it 
     66    $db_log = $_db_log; 
     67    $_db_log = false; 
    6068     
    6169    // unzip the new file 
     
    139147display("Update finished!"); 
    140148 
     149// restore the debug log status 
     150$_db_log = $db_log; 
     151 
    141152// delete the download and temporary files 
    142153if (file_exists('/tmp/GeoIPCountryWhois.csv')) unlink("/tmp/GeoIPCountryWhois.csv"); 
Note: See TracChangeset for help on using the changeset viewer.