Exemplo n.º 1
0
 public static function init()
 {
     self::config();
     iFS::init(self::$config['FS'], self::$config['watermark'], 'filedata');
     iCache::init(self::$config['cache']);
     iURL::init(self::$config['router']);
     iPHP::iTemplate();
     iPHP_DEBUG && (iDB::$show_errors = true);
     iPHP_TPL_DEBUG && iPHP::clear_compiled_tpl();
     define('iCMS_DIR', self::$config['router']['DIR']);
     define('iCMS_URL', self::$config['router']['URL']);
     define('iCMS_PUBLIC_URL', self::$config['router']['public_url']);
     define('iCMS_USER_URL', self::$config['router']['user_url']);
     define('iCMS_FS_URL', self::$config['FS']['url']);
     define('iCMS_REWRITE', self::$config['router']['rewrite']);
     define('iCMS_API', iCMS_PUBLIC_URL . '/api.php');
     define('iCMS_UI', iCMS_DIR . 'app/ui/common');
     define('iCMS_UI_URL', iCMS_URL . '/app/ui/common');
     self::$apps = self::$config['apps'];
     self::assign_site();
 }
Exemplo n.º 2
0
 function do_tpl($dialog = true)
 {
     iPHP::clear_compiled_tpl();
     $dialog && iPHP::success('清理完成');
 }