/** * Throws HTTP Error * * @since 1.0 * @package facileManager */ function throwHTTPError($code = '404') { $status_codes = array('404' => 'Not Found'); header("HTTP/1.0 {$code} " . $status_codes[$code]); include includeModuleFile(null, $code . '.php'); }
+-------------------------------------------------------------------------+ */ /** * Processes main page * * @author Jon LaBass * @version $Id:$ * @copyright 2013 * */ if (isset($_POST['module_type']) && $_POST['module_type'] == 'CLIENT') { define('CLIENT', true); } if (isset($_POST['module_name'])) { $_SESSION['module'] = $_POST['module_name']; } require 'fm-init.php'; if (is_array($GLOBALS)) { if (@array_key_exists('logout', $GLOBALS['URI'])) { exit; } } if ($GLOBALS['basename'] == 'index.php') { require_once ABSPATH . 'fm-includes/init.php'; checkAppVersions(); } if (@file_exists(includeModuleFile($_SESSION['module'], $GLOBALS['basename']))) { @(include includeModuleFile($_SESSION['module'], $GLOBALS['basename'])); } else { throwHTTPError('404'); }