array('default' => 0)) ); $_SESSION['install']['sample'] = filter_input( INPUT_POST, 'chbSample', FILTER_VALIDATE_INT, array('options' => array('default' => 0)) ); $_SESSION['install']['createpath'] = filter_input( INPUT_POST, 'chbPath', FILTER_VALIDATE_INT, array('options' => array('default' => 0)) ); $strSqlFile = str_replace('DBTYPE', $_SESSION['install']['dbtype'], $preSqlNewInstall); if (filter_input(INPUT_POST, 'butNewInstall') != null) { $chkModus = 'Installation'; } if (filter_input(INPUT_POST, 'butUpgrade') != null) { $chkModus = 'Update'; } if (!isset($_SESSION['install']['mode'])) { $_SESSION['install']['mode'] = $chkModus; } // // Language settings // ================= if (extension_loaded('gettext')) { putenv('LC_ALL=' .$_SESSION['install']['locale'].$preEncode); putenv('LANG=' .$_SESSION['install']['locale'].$preEncode); // GETTEXT domain setlocale(LC_ALL, $_SESSION['install']['locale']. '.' .$preEncode); bindtextdomain($_SESSION['install']['locale'], $preLocale); bind_textdomain_codeset($_SESSION['install']['locale'], $preEncode); textdomain($_SESSION['install']['locale']); } $myInstClass->arrSession = $_SESSION; // // Content in buffer laden // ======================= ob_start(); include 'step' .$chkStep. '.php'; $strContentRaw = ob_get_contents(); ob_end_clean(); // // Build content // ============= $arrTemplate['PAGETITLE'] = '[NagiosQL] Installation Wizard'; $arrTemplate['MAIN_TITLE'] = $myInstClass->translate('Welcome to the NagiosQL Installation Wizard'); $arrTemplate['CONTENT'] = $strContentRaw; // // Write content // ============= $myInstClass->filTemplate = $preContent; $strContent = $myInstClass->parseTemplate($arrTemplate, $preContent); echo $strContent;