/** * @brief Initialization */ function init() { // Stop if already installed. if (Context::isInstalled()) { return $this->stop('msg_already_installed'); } // Set the browser title. Context::setBrowserTitle(Context::getLang('introduce_title')); // Specify the template path. $this->setTemplatePath($this->module_path . 'tpl'); // Check the environment. $oInstallController = getController('install'); self::$checkEnv = $oInstallController->checkInstallEnv(); if (self::$checkEnv) { $oInstallController->makeDefaultDirectory(); } }