2024-12-13 11:42:22 -06:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
2017-02-05 10:49:37 -06:00
|
|
|
<head>
|
2024-12-13 11:42:22 -06:00
|
|
|
<meta charset="UTF-8">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
2024-12-14 13:14:41 -06:00
|
|
|
<title><?= $title ?></title>
|
2024-12-13 11:42:22 -06:00
|
|
|
<link rel="stylesheet" href="/css/dk.css">
|
2024-12-18 10:00:41 -06:00
|
|
|
<script src="/js/htmx.js"></script>
|
2024-12-13 11:42:22 -06:00
|
|
|
|
|
|
|
<script>
|
2024-12-13 22:14:44 -06:00
|
|
|
function opencharpopup(id = 0)
|
|
|
|
{
|
|
|
|
const url = id == 0 ? '/character' : '/character/' + id
|
|
|
|
window.open(url, "", "width=210,height=500,scrollbars")
|
2024-12-13 11:42:22 -06:00
|
|
|
}
|
2024-12-13 22:14:44 -06:00
|
|
|
|
|
|
|
function openmappopup()
|
|
|
|
{
|
|
|
|
window.open("/showmap", "", "width=520,height=520,scrollbars")
|
2024-12-13 11:42:22 -06:00
|
|
|
}
|
|
|
|
</script>
|
2017-02-05 10:49:37 -06:00
|
|
|
</head>
|
2024-12-16 19:58:46 -06:00
|
|
|
<body class="skin-<?= $game_skin ?>">
|
2024-12-13 12:04:19 -06:00
|
|
|
<div id="game-container">
|
|
|
|
<header>
|
2024-12-14 13:14:41 -06:00
|
|
|
<img id="logo" src="/img/logo.gif" alt="<?= $dkgamename ?>" title="<?= $dkgamename ?>">
|
|
|
|
<nav><?= $topnav ?></nav>
|
2024-12-13 12:04:19 -06:00
|
|
|
</header>
|
|
|
|
|
|
|
|
<main>
|
2024-12-14 13:14:41 -06:00
|
|
|
<section id="left"><?= $leftnav ?></section>
|
|
|
|
<section id="middle"><?= $content ?></section>
|
2024-12-18 10:00:41 -06:00
|
|
|
<section id="right"><?= Render\right_nav() ?></section>
|
2024-12-13 12:04:19 -06:00
|
|
|
</main>
|
|
|
|
|
|
|
|
<footer>
|
2024-12-14 13:14:41 -06:00
|
|
|
<div>Powered by <a href="/" target="_new">Dragon Knight</a></div>
|
2024-12-13 12:04:19 -06:00
|
|
|
<div>© 2024 Sharkk</div>
|
2024-12-18 10:00:41 -06:00
|
|
|
<?= Render\debug_db_info(); ?>
|
|
|
|
<div>Version <?= VERSION ?> <?= BUILD ?></div>
|
2024-12-13 12:04:19 -06:00
|
|
|
</footer>
|
2024-12-13 16:52:03 -06:00
|
|
|
|
2024-12-14 14:12:14 -06:00
|
|
|
<?php
|
2024-12-18 10:00:41 -06:00
|
|
|
if (env('debug', false)) {
|
2024-12-14 14:12:14 -06:00
|
|
|
echo '<pre>';
|
2024-12-18 10:00:41 -06:00
|
|
|
foreach (db()->log as $record) {
|
2024-12-16 19:58:46 -06:00
|
|
|
$query_string = str_replace(["\r\n", "\n", "\r"], ' ', $record[0]);
|
|
|
|
$error_string = !empty($record[2]) ? '// '.$record[2] : '';
|
|
|
|
echo '<div>['.round($record[1], 2)."s] {$query_string}{$error_string}</div>";
|
|
|
|
}
|
2024-12-14 14:12:14 -06:00
|
|
|
echo '</pre>';
|
|
|
|
}
|
|
|
|
?>
|
2024-12-13 12:04:19 -06:00
|
|
|
</div>
|
2024-12-18 10:00:41 -06:00
|
|
|
|
|
|
|
<script>
|
|
|
|
document.addEventListener("updateTitle", (event) => {
|
|
|
|
const title = event.detail?.title;
|
|
|
|
if (title) {
|
|
|
|
console.log('New title:', title);
|
|
|
|
document.title = title;
|
|
|
|
}
|
|
|
|
});
|
|
|
|
</script>
|
2024-12-13 11:42:22 -06:00
|
|
|
</body>
|
2017-02-05 10:49:37 -06:00
|
|
|
</html>
|