Changeset 400 for dev/cron

Show
Ignore:
Timestamp:
07/02/09 07:34:26 (12 years ago)
Author:
kovell
Message:

Fixes: install is locked after first run, private cache files made inaccesible, initial summary caching removed from kill posting, board will not attempt to run on MySQL < 4.1, PILOT_ID cannot be set, legacy option removed from admin panel, pos values added to installation defaults

Location:
dev/cron
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • dev/cron/cron_fetcher.php

    r386 r400  
    4141if (config::get('cfg_corpid')) 
    4242{ 
    43     define('CORP_ID', config::get('cfg_corpid')); 
     43    define('CORP_ID', intval(config::get('cfg_corpid'))); 
    4444    define('ALLIANCE_ID', 0); 
    4545} 
     
    4747{ 
    4848    define('CORP_ID', 0); 
    49     define('ALLIANCE_ID', config::get('cfg_allianceid')); 
     49    define('ALLIANCE_ID', intval(config::get('cfg_allianceid'))); 
    5050} 
    5151 
  • dev/cron/cron_import.php

    r370 r400  
    4040if (config::get('cfg_corpid')) 
    4141{ 
    42     define('CORP_ID', config::get('cfg_corpid')); 
     42    define('CORP_ID', intval(config::get('cfg_corpid'))); 
    4343    define('ALLIANCE_ID', 0); 
    4444} else { 
    4545    define('CORP_ID', 0); 
    46     define('ALLIANCE_ID', config::get('cfg_allianceid')); 
     46    define('ALLIANCE_ID', intval(config::get('cfg_allianceid'))); 
    4747} 
    4848