if (defined('_UI_LANGUAGE_SELECTION_')) { $languages = []; foreach (explode('|', _UI_LANGUAGE_SELECTION_) as $lang) { $lang = explode('=', $lang, 2); $languages[$lang[0]] = $lang[1]; } $language = getRequest('lang', ''); if ($language && isset($languages[$language])) { $_SESSION['sesLANG'] = $language; } } if (!isset($_SESSION['sesLANG'])) { $_SESSION['sesLANG'] = defined('_UI_LANGUAGE_') ? _UI_LANGUAGE_ : 'fi-FI'; } require_once 'localize.php'; switch (verifyDatabase()) { case 'OK': break; case 'UPGRADED': $upgradeMessage = $GLOBALS['locDatabaseUpgraded']; break; case 'FAILED': $upgradeFailed = true; $upgradeMessage = $GLOBALS['locDatabaseUpgradeFailed']; break; } $strMessage = $GLOBALS['locWelcomeMessage']; if ($strLogon) { if ($strLogin && $strPasswd) { switch (sesCreateSession($strLogin, $strPasswd)) { case 'OK':
<div class="widget-dash col-xs-12 col-md-8 col-md-offset-2"> <div class="inner install" style="min-height:auto;"> <h4>Postinstall configuration</h4> <div class="hContent"> <div class="text-muted" style="margin:10px;"> Hi, almost set, lets just set some basic settings. You can change all settings under administration once logged in! </div> <hr> <?php # lets verify database $errors = verifyDatabase(); /* print result */ if (isset($errors['tableError']) || isset($errors['fieldError'])) { print "<div class='alert alert-danger alert-block'>"; print "<strong>Some tables or fields are missing in database:</strong><hr>"; //tables if (isset($errors['tableError'])) { print '<b>Missing tables:</b>' . "\n"; print '<ul class="fix-table">' . "\n"; foreach ($errors['tableError'] as $table) { print "<li>{$table}</li>"; } print '</ul>' . "\n"; } //fields if (isset($errors['fieldError'])) { print '<b>Missing fields:</b>' . "\n"; print '<ul class="fix-field">' . "\n";
if ($_GET['section'] == "changelog") { print "class='active'"; } print "><a href='" . create_link("tools", "changelog") . "'>" . _('Changelog') . "</a></li>"; } print "\t<li class='divider'></li>"; print "\t<li><a href='" . create_link("tools") . "'>" . _('Show all tools') . "</a></li>"; ?> </ul> </li> <!-- DB verification --> <?php if (checkAdmin(false) && $settings['dbverified'] != 1) { //check if (sizeof($dberrsize = verifyDatabase()) > 0) { $esize = sizeof($dberrsize['tableError']) + sizeof($dberrsize['fieldError']); print "<li>"; print "\t<a href='" . create_link("administration", "verifyDatabase") . "' class='icon-li btn-danger' rel='tooltip' data-placement='bottom' title='" . _('Database errors detected') . "'><i class='fa fa-exclamation-triangle'></i><sup>{$esize}</sup></a>"; print "</li>"; } else { updateDBverify(); } } ?> <?php /* print number of requests if admin and if they exist */ $requestNum = countRequestedIPaddresses(); if ($requestNum != 0 && checkAdmin(false, false)) {