Exemplo n.º 1
0
 public static function init()
 {
     if (self::$initialized) {
         return true;
     }
     if (!self::$browser) {
         self::$browser = new Browser();
     }
     if (!file_exists(INCLUDE_PATH . 'Entete.php')) {
         self::jump_install();
     } else {
         require_once INCLUDE_PATH . 'Entete.php';
     }
     if (!class_exists('Config')) {
         self::ErrorAndDie('Invalid file "entete.php" (see entete.dist.php)...', false);
     }
     Config::init();
     Config::DB_Connect();
     DataEngine::conf_cache('wormhole_cleaning');
     define('LNG_PATH', TEMPLATE_PATH . 'lng' . DIRECTORY_SEPARATOR . LNG_CODE . DIRECTORY_SEPARATOR);
     return self::minimalinit();
 }