function ph() { global $_lang, $moduleName, $moduleVersion, $modx_textdir, $modx_release_date; if (isset($_SESSION['installmode'])) { $installmode = $_SESSION['installmode']; } else { $installmode = get_installmode(); } $ph['pagetitle'] = $_lang['modx_install']; $ph['textdir'] = $modx_textdir ? ' id="rtl"' : ''; $ph['help_link'] = $installmode == 0 ? $_lang['help_link_new'] : $_lang['help_link_upd']; $ph['version'] = $moduleName . ' ' . $moduleVersion; $ph['release_date'] = ($modx_textdir ? '‏' : '') . $modx_release_date; $ph['footer1'] = $_lang['modx_footer1']; $ph['footer2'] = $_lang['modx_footer2']; return $ph; }
$base_path = str_replace($self, '', str_replace('\\', '/', __FILE__)); require_once "{$base_path}manager/includes/version.inc.php"; require_once "{$base_path}manager/includes/default.config.php"; $installer_path = "{$base_path}install/"; require_once "{$installer_path}functions.php"; install_session_start(); //session_destroy(); // do a little bit of environment cleanup if possible if (version_compare(phpversion(), "5.3") < 0) { @ini_set('magic_quotes_runtime', 0); @ini_set('magic_quotes_sybase', 0); } header("Content-Type: text/html; charset=utf-8"); $action = isset($_REQUEST['action']) ? trim(strip_tags($_REQUEST['action'])) : 'mode'; if ($action === 'mode') { $installmode = get_installmode(); } if (isset($_POST['install_language']) && !empty($_POST['install_language'])) { $install_language = $_POST['install_language']; $_SESSION['install_language'] = $_POST['install_language']; } elseif (isset($_SESSION['install_language']) && !empty($_SESSION['install_language'])) { $install_language = $_SESSION['install_language']; } else { $install_language = autoDetectLang(); $_SESSION['install_language'] = $install_language; } //echo $install_language;exit; includeLang($install_language); // start session install_sessionCheck(); $moduleName = "MODX";