/** Define ABSPATH as this files directory */ define('ABSPATH', dirname(__FILE__) . '/'); /** Set installation variable */ define('UPGRADE', true); /** Enforce authentication */ require_once ABSPATH . 'fm-modules/facileManager/classes/class_logins.php'; require_once 'fm-init.php'; ini_set('display_errors', false); error_reporting(0); if (!$fm_login->isLoggedIn() || !currentUserCan('do_everything') && getOption('fm_db_version') >= 32) { header('Location: ' . dirname($_SERVER['PHP_SELF'])); } /** Ensure we meet the requirements */ require_once ABSPATH . 'fm-includes/init.php'; require_once ABSPATH . 'fm-includes/version.php'; $app_compat = checkAppVersions(false); if ($app_compat) { bailOut($app_compat); } $step = isset($_GET['step']) ? $_GET['step'] : 0; if (array_key_exists('backup', $_GET)) { if (!class_exists('fm_tools')) { include ABSPATH . 'fm-modules' . DIRECTORY_SEPARATOR . 'facileManager' . DIRECTORY_SEPARATOR . 'classes' . DIRECTORY_SEPARATOR . 'class_tools.php'; } $fm_tools->backupDatabase(); header('Location: ' . $GLOBALS['basename']); } $branding_logo = $GLOBALS['RELPATH'] . 'fm-modules/' . $fm_name . '/images/fm.png'; printHeader(_('Upgrade'), 'install'); switch ($step) { case 0:
+-------------------------------------------------------------------------+ */ /** * 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'); }