} } } if (empty($error)) { if (rex_file::putConfig($configFile, $config) > 0) { $success = rex_i18n::msg('info_updated'); } } } $sel_lang = new rex_select(); $sel_lang->setStyle('class="form-control"'); $sel_lang->setName('settings[lang]'); $sel_lang->setId('rex-id-lang'); $sel_lang->setSize(1); $sel_lang->setSelected(rex::getProperty('lang')); foreach (rex_i18n::getLocales() as $l) { $sel_lang->addOption($l, $l); } if (!empty($error)) { echo rex_view::error(implode('<br />', $error)); } if ($info != '') { echo rex_view::info($info); } if ($success != '') { echo rex_view::success($success); } $dbconfig = rex::getProperty('db'); $version = rex_path::src(); if (strlen($version) > 21) { $version = substr($version, 0, 8) . '..' . substr($version, strlen($version) - 13);
<?php /** * @package redaxo5 */ header('X-Robots-Tag: noindex, nofollow, noarchive'); // ----- pages, verfuegbare seiten // array(name,addon=1,htmlheader=1); $pages = []; $page = ''; // ----------------- SETUP if (rex::isSetup()) { // ----------------- SET SETUP LANG $requestLang = rex_request('lang', 'string'); if (in_array($requestLang, rex_i18n::getLocales())) { rex::setProperty('lang', $requestLang); } else { rex::setProperty('lang', 'en_gb'); } rex_i18n::setLocale(rex::getProperty('lang')); $pages['setup'] = rex_be_controller::getSetupPage(); $page = 'setup'; rex_be_controller::setCurrentPage('setup'); } else { // ----------------- CREATE LANG OBJ rex_i18n::setLocale(rex::getProperty('lang')); // ---- prepare login $login = new rex_backend_login(); rex::setProperty('login', $login); $rex_user_login = rex_post('rex_user_login', 'string'); $rex_user_psw = rex_post('rex_user_psw', 'string');