<?php if (!defined('HOBBES')) { http_response_code(403); exit; } ?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title><?php echo h($settings['site_name']); ?> — OS/2 Access Required</title>
<style>
body {
font-family: 'Courier New', Courier, monospace;
background: <?php echo h($css['bg_color']); ?>;
color: <?php echo h($css['text_color']); ?>;
margin: 0;
display: flex;
align-items: center;
justify-content: center;
min-height: 100vh;
}
#splash-box {
background: <?php echo h($css['panel_bg']); ?>;
border: 3px ridge <?php echo h($css['border_color']); ?>;
max-width: 620px;
width: 96%;
}
#splash-title {
background: <?php echo h($css['header_bg']); ?>;
color: <?php echo h($css['header_text']); ?>;
padding: 8px 14px;
font-size: 16px;
font-weight: bold;
border-bottom: 3px inset <?php echo h($css['border_color']); ?>;
}
#splash-body { padding: 20px; }
.md-content h1 { color: <?php echo h($css['accent']); ?>; margin-bottom: 10px; font-size: 18px; }
.md-content h2 { color: <?php echo h($css['accent']); ?>; font-size: 14px; margin: 12px 0 6px; }
.md-content p { line-height: 1.6; margin: 6px 0; }
.md-content strong { font-weight: bold; }
.ua-display {
background: #111;
color: #0f0;
font-family: monospace;
font-size: 11px;
padding: 6px 10px;
margin: 10px 0;
border: 1px solid #333;
word-break: break-all;
}
.btn-row { margin-top: 16px; display: flex; gap: 8px; flex-wrap: wrap; }
.btn {
display: inline-block;
background: <?php echo h($css['btn_bg']); ?>;
color: <?php echo h($css['btn_text']); ?>;
border: 2px outset <?php echo h($css['btn_border']); ?>;
padding: 5px 16px;
text-decoration: none;
font-family: monospace;
font-size: 13px;
cursor: pointer;
}
.btn:hover { border-style: inset; }
.btn-primary { background: <?php echo h($css['accent']); ?>; color: #fff; border-color: #0000aa; }
#splash-footer {
background: <?php echo h($css['footer_bg']); ?>;
color: <?php echo h($css['footer_text']); ?>;
padding: 4px 14px;
font-size: 11px;
border-top: 1px solid <?php echo h($css['border_color']); ?>;
}
</style>
</head>
<body>
<div id="splash-box">
<div id="splash-title"><?php echo h($settings['site_name']); ?> — Browser Notice</div>
<div id="splash-body">
<div class="md-content"><?php echo markdown_to_html($settings['splash_content']); ?></div>
<div class="ua-display">
Your browser: <?php echo h($_SERVER['HTTP_USER_AGENT'] ?? 'Unknown'); ?>
</div>
<div class="btn-row">
<a href="/login" class="btn btn-primary">Login to Account</a>
<?php if (!empty($settings['open_registration'])): ?>
<a href="/register" class="btn">Register</a>
<?php endif; ?>
<a href="/register/invite" class="btn">Use Invite Code</a>
</div>
</div>
<div id="splash-footer">
<?php echo h($settings['site_name']); ?> — <?php echo h($settings['site_tagline']); ?>
</div>
</div>
</body>
</html>