Changeset 400 for dev/common/index.php

Show
Ignore:
Timestamp:
07/02/09 07:34:26 (13 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

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • dev/common/index.php

    r399 r400  
    7777if (0 && config::get('cfg_pilotid')) 
    7878{ 
    79         define('PILOT_ID', config::get('cfg_pilotid') ); 
     79        define('PILOT_ID', intval(config::get('cfg_pilotid')) ); 
    8080        define('CORP_ID', 0); 
    8181        define('ALLIANCE_ID', 0); 
     
    8484{ 
    8585        define('PILOT_ID', 0); 
    86         define('CORP_ID', config::get('cfg_corpid')); 
     86        define('CORP_ID', intval(config::get('cfg_corpid'))); 
    8787        define('ALLIANCE_ID', 0); 
    8888} 
     
    9191        define('PILOT_ID', 0); 
    9292        define('CORP_ID', 0); 
    93         define('ALLIANCE_ID', config::get('cfg_allianceid')); 
     93        define('ALLIANCE_ID', intval(config::get('cfg_allianceid'))); 
    9494} 
    9595 
     
    138138 
    139139// Hardcode the DBUpdate 
    140 define(LASTEST_DB_UPDATE,"009"); 
     140define(LASTEST_DB_UPDATE,"010"); 
    141141 
    142142if(config::get('DBUpdate') < LASTEST_DB_UPDATE) $page = 'admin';