diff --git a/public/css/dk.css b/public/css/dk.css index 65ae3a0..ce56c18 100644 --- a/public/css/dk.css +++ b/public/css/dk.css @@ -170,3 +170,12 @@ a:hover { height: 38px; } +div.town-content { + display: grid; + grid-template-columns: 1fr 1fr; + gap: 1rem; +} + +div.town-content div.options, div.town-content div.news { + grid-column: span 2; +} diff --git a/public/index.php b/public/index.php index 5e05fc0..0a4fd2b 100644 --- a/public/index.php +++ b/public/index.php @@ -101,34 +101,6 @@ if ($l['code'] !== 200) exit($l['code']); if (!empty($l['middleware'])) foreach ($l['middleware'] as $middleware) $middleware(); $l['handler'](...$l['params'] ?? []); -/* -$do = explode(':', $_GET['do'] ?? ''); -match ($do[0]) { - 'inn' => inn(), - 'buy' => buy(), - 'buy2' => buy2($do[1]), - 'buy3' => buy3($do[1]), - // 'sell' => sell(), - 'maps' => maps(), - 'maps2' => maps2($do[1]), - 'maps3' => maps3($do[1]), - 'gotown' => travelto($do[1]), - 'move' => move(), - 'fight' => fight(), - 'victory' => victory(), - 'drop' => drop(), - 'dead' => dead(), - 'verify' => header("Location: users.php?do=verify"), - 'spell' => healspells($do[1]), - 'showchar' => showchar(), - 'onlinechar' => onlinechar($do[1]), - 'showmap' => showmap(), - 'babblebox' => babblebox(), - 'ninja' => ninja(), - default => donothing() -}; -*/ - function donothing() { global $userrow; @@ -163,9 +135,8 @@ function dotown() // News box. Grab latest news entry and display it. Something a little more graceful coming soon maybe. if ($controlrow["shownews"] == 1) { $newsrow = db()->query('SELECT * FROM news ORDER BY id DESC LIMIT 1;')->fetchArray(SQLITE3_ASSOC); - $townrow["news"] = "
Latest News |
\n";
+ $townrow["news"] = ' Latest News ';
$townrow["news"] .= "[".prettydate($newsrow["postdate"])."]".nl2br($newsrow["content"]); - $townrow["news"] .= " |
Who's Online |
\n";
+ $townrow["whosonline"] = ' Who\'s Online ';
$townrow["whosonline"] .= "There are $online_count user(s) online within the last 10 minutes: ";
$townrow["whosonline"] .= rtrim(implode(', ', $online_rows), ', ');
- $townrow["whosonline"] .= " |
-{{whosonline}} - | -{{babblebox}} - |