Skip to content

Commit d1b90f0

Browse files
Tux82claude
andcommitted
Patch release: fix migrations, PMA regex, live admin clock (v1.20.1)
- rsync now syncs db/migrations/ so schema updates apply on update - PMA config regex uses # delimiter to avoid $i and [] warnings - Admin header clock updates live (matches portal) Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
1 parent 784c1b4 commit d1b90f0

3 files changed

Lines changed: 14 additions & 2 deletions

File tree

TiCore/Version.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
class Version
1010
{
11-
const APP_VERSION = '1.20';
11+
const APP_VERSION = '1.20.1';
1212

1313
/**
1414
* Return current version string.

themes/default/footer.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,18 @@
1313
});
1414
});
1515
})();
16+
(function () {
17+
var el = document.getElementById('admin-live-clock');
18+
if (!el) return;
19+
setInterval(function () {
20+
var d = new Date();
21+
var h = d.getHours(), m = d.getMinutes(), s = d.getSeconds();
22+
var ampm = h >= 12 ? 'PM' : 'AM';
23+
h = h % 12 || 12;
24+
var tz = d.toLocaleTimeString('en-US', { timeZoneName: 'short' }).split(' ').pop();
25+
el.innerHTML = '<i class="fas fa-clock"></i> ' + h + ':' + String(m).padStart(2,'0') + ':' + String(s).padStart(2,'0') + ' ' + ampm + ' ' + tz;
26+
}, 1000);
27+
})();
1628
</script>
1729
</body>
1830
</html>

themes/default/header.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
<header class="top-header">
4343
<div class="system-info d-flex align-items-center">
4444
<span class="me-4"><i class="fas fa-server"></i> <?php echo gethostname(); ?></span>
45-
<span class="d-none d-md-inline me-4"><i class="fas fa-clock"></i> <?php echo date('g:i A T'); ?></span>
45+
<span class="d-none d-md-inline me-4" id="admin-live-clock"><i class="fas fa-clock"></i> <?php echo date('g:i A T'); ?></span>
4646
<?php
4747
$_fwState = trim(@shell_exec('sudo firewall-cmd --state 2>/dev/null') ?? '');
4848
$_fwActive = $_fwState === 'running';

0 commit comments

Comments
 (0)