/** * This is the controller class of Calem. It's the main entrance to the * installation applcication. */ if (!defined('_CALEM_DIR_')) { define('_CALEM_DIR_', dirname(dirname(__FILE__)) . '/'); define('LOG4PHP_CONFIGURATION', _CALEM_DIR_ . 'etc/log4php.properties'); } require_once _CALEM_DIR_ . 'server/conf/calem.php'; //Configuration //Disable browser side cache header('Cache-Control: no-cache'); //Use PHP session to track installation states session_start(); //Configuring log4php as part of installation if (!isset($_SESSION['logger'])) { require_once _CALEM_DIR_ . 'bin/logging/CalemLoggingSetup.php'; try { CalemLoggingSetup::execute(); $_SESSION['logger'] = true; } catch (Exception $e) { $_SESSION['logger'] = false; } } //Get a handler on logger require_once _CALEM_DIR_ . 'server/include/log4php/LoggerManager.php'; $logger =& LoggerManager::getLogger('installation'); //Dispatch to installation controller require_once _CALEM_DIR_ . 'installation/form/controller/CalemInstallFront.php'; CalemInstallFront::dispatch();
public static function dispatch() { $front = new CalemInstallFront(); $front->onInput(); }