Webgui: improve box, maintenance and date handling

This commit is contained in:
2026-09-16 06:12:50 +02:00
parent a76848e1da
commit 9b45fd3700
10 changed files with 116 additions and 31 deletions
+9
View File
@@ -134,6 +134,15 @@ if ($g_db_scheme_version !== $g_db_scheme_required) {
$sth = $pdo->query("SELECT valint FROM settings WHERE userid=0 AND sno=4");
$g_currsym = $sth->fetchColumn();
// allowed date formats
$g_opt_datefmt = array(
'Y-m-d' => _('YYYY-MM-DD'),
'Y/m/d' => _('YYYY/MM/DD'),
'd.m.Y' => _('DD.MM.YYYY'),
'd/m/Y' => _('DD/MM/YYYY'),
'm-d-Y' => _('MM-DD-YYYY')
);
$user = User::GetInstance(); // There can be only one
if ($g_scriptname != 'login.php') {
$user->init_from_session();