/** * vivvo_lite_site class constructor. * * @return void */ public function __construct() { self::$instance = $this; vivvo_cache::get_instance(); if (!defined('VIVVO_INSTALLER')) { $this->set_db(); $this->start_session(); $this->define_global_param(); vivvo_hooks_manager::load(); //load a list of registered hook handlers $this->set_user_manager(); $this->set_modules(); $this->set_url_modules(); $this->set_user(); if (!$this->user) { $this->set_guest_group(); } if (isset($_GET['kill_cache']) && $this->user && $this->user->is_admin()) { vivvo_cache::get_instance()->delete_all(); } } if (defined('VIVVO_FRIENDY_URL') && VIVVO_FRIENDY_URL == 0) { if (!defined('VIVVO_SYSTEM_PROXY_URL')) { define('VIVVO_SYSTEM_PROXY_URL', VIVVO_URL . 'index.php/'); } } $this->set_url_manager(); if (!defined('VIVVO_INSTALLER')) { $this->set_header_manager(); $this->set_dump_manager(); $this->set_plugin_manager(); if (defined('VIVVO_ROOT_CATEGORY')) { $this->set_categories(VIVVO_ROOT_CATEGORY); } $this->define_global_param(); vivvo_chart::init(); $this->_url_manager->parse_url(); $this->set_lang(); $this->_plugin_manager->load_lang(); $this->set_template_dir(); $this->load_action_handlers(); } $this->define_proxy_url(); if (!defined('VIVVO_FS_THEME_ROOT')) { define('VIVVO_FS_THEME_ROOT', VIVVO_FS_TEMPLATE_ROOT); } }