function init() { global $_G; $brand = new brand(); $brand->_init_env(); $brand->_init_config(); $brand->check_install(); $brand->_init_input(); $brand->_init_db(); $brand->_init_cache(); if (!defined('IN_BRAND_UPDATE')) { $brand->auth(); } }