public function __destruct() { parent::__destruct(); }
$rDir = str_repeat('../', substr_count($_SERVER['PHP_SELF'], '/') - 3); /** * include_once */ include_once $rDir . 'php/opf/OpfApplicationConfig.php'; include_once $rDir . 'openface/php/OpfConfig.php'; include_once $rDir . 'openface/php/controllers/OpfController.php'; include_once $rDir . 'openface/php/controllers/OpfControllerPostInstall.php'; include_once $rDir . 'openface/php/controllers/OpfControllerPostUninstall.php'; include_once $rDir . 'openface/php/OpfHtmlHelper.php'; include_once $rDir . 'openface/php/OpfDebugUtil.php'; /** * The main line is invoked immediately. This is not a class. * */ /* main */ $emulatorMode = 0; $helper = new OpfHtmlHelper($emulatorMode, OpfApplicationConfig::APPLICATION_TITLE); $helper->renderHeader(); if (isset($_GET[OpfConfig::PARAM_POST_INSTALL])) { $controller = new OpfControllerPostInstall(); } else { if (isset($_GET[OpfConfig::PARAM_POST_UNINSTALL])) { $controller = new OpfControllerPostUninstall(); } else { $controller = new OpfController(); } } // else $controller->execute(); $helper->renderFooter();