Webgui: improve box, maintenance and date handling
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user