Changeset 399 for dev/common/index.php

Show
Ignore:
Timestamp:
07/01/09 05:50:14 (13 years ago)
Author:
kovell
Message:

Fixes: autoupgrade smoother, Rare errors in db classes reduced, api login problems reduced, page cache notifications check if cache is active. admin mod list sorted. alliance and corp details pages load faster. all-time summary tables cached. killlist performance on large databases improved

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • dev/common/index.php

    r398 r399  
    7474define('KB_TITLE', config::get('cfg_kbtitle')); 
    7575 
    76 // corporation OR alliance id 
    77 if (config::get('cfg_pilotid')) 
    78 { 
    79 define('PILOT_ID', config::get('cfg_corpid') ); 
    80 define('CORP_ID', 0); 
    81 define('ALLIANCE_ID', 0); 
    82 } 
    83 if (config::get('cfg_corpid')) 
    84 { 
    85 define('PILOT_ID', 0); 
    86 define('CORP_ID', config::get('cfg_corpid')); 
    87 define('ALLIANCE_ID', 0); 
    88 } 
    89 else 
    90 { 
    91 define('PILOT_ID', 0); 
    92 define('CORP_ID', 0); 
    93 define('ALLIANCE_ID', config::get('cfg_allianceid')); 
     76// pilot id not fully implemented yet. 
     77if (0 && config::get('cfg_pilotid')) 
     78{ 
     79        define('PILOT_ID', config::get('cfg_pilotid') ); 
     80        define('CORP_ID', 0); 
     81        define('ALLIANCE_ID', 0); 
     82} 
     83elseif (config::get('cfg_corpid')) 
     84{ 
     85        define('PILOT_ID', 0); 
     86        define('CORP_ID', config::get('cfg_corpid')); 
     87        define('ALLIANCE_ID', 0); 
     88} 
     89else 
     90{ 
     91        define('PILOT_ID', 0); 
     92        define('CORP_ID', 0); 
     93        define('ALLIANCE_ID', config::get('cfg_allianceid')); 
    9494} 
    9595 
     
    138138 
    139139// Hardcode the DBUpdate 
    140 define(LASTEST_DB_UPDATE,"008"); 
     140define(LASTEST_DB_UPDATE,"009"); 
    141141 
    142142if(config::get('DBUpdate') < LASTEST_DB_UPDATE) $page = 'admin';