Show
Ignore:
Timestamp:
12/05/07 18:50:26 (13 years ago)
Author:
exi
Message:

Removed pass by reference warning in class.comments.php and class.options.php.
Added a return option for the parser.
Switched to kbconfig.php as main config file.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branch/rev3/common/index.php

    r245 r252  
    2222 
    2323// many ppl had issues with pear and relative paths 
     24require_once('kbconfig.php'); 
     25require_once('common/includes/globals.php'); 
     26require_once('common/includes/php_compat.php'); 
    2427require_once('common/includes/db.php'); 
    2528require_once('common/includes/class.config.php'); 
     
    6265// load the config from the database 
    6366$config = new Config(KB_SITE); 
     67define('DB_USE_CCP', true); 
    6468define('KB_HOST', config::get('cfg_kbhost')); 
    6569define('MAIN_SITE', config::get('cfg_mainsite')); 
     
    7175if (DB_USE_QCACHE) 
    7276{ 
     77    // the object overloading system will switch to cached queries now 
    7378    require_once('common/includes/class.db_cache.php'); 
    7479} 
     
    131136} 
    132137 
    133 // this is to make sure that smarty is able to create output 
    134 if (!is_dir('./cache/templates_c')) 
    135 { 
    136     if (mkdir('./cache/templates_c')) 
    137     { 
    138         chmod('./cache/templates_c', 0777); 
    139     } 
    140     else 
    141     { 
    142         exit('please create cache/templates_c and chmod it 777'); 
    143     } 
    144 } 
    145  
    146138// all admin files are now in the admin directory and preload the menu 
    147139if (substr($page, 0, 5) == 'admin')