48 lines
2 KiB
PHP
48 lines
2 KiB
PHP
<?php
|
|
include_once '_user.php';
|
|
?>
|
|
<!doctype html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
<title><?=$title ?? 'flash.moe message board';?></title>
|
|
<link href="/style.css" type="text/css" rel="stylesheet"/>
|
|
<script type="text/javascript">
|
|
var _paq = window._paq || [];
|
|
_paq.push(['disableCookies']);
|
|
_paq.push(['trackPageView']);
|
|
_paq.push(['enableLinkTracking']);
|
|
(function() {
|
|
_paq.push(['setTrackerUrl', '//uiharu.railgun.sh/mtm']);
|
|
_paq.push(['setSiteId', 'w4PqjBGmOL5l']);
|
|
var g = document.createElement('script');
|
|
g.type = 'text/javascript'; g.async = true;
|
|
g.defer = true; g.src = '//uiharu.railgun.sh/mtm.js';
|
|
document.head.appendChild(g);
|
|
})();
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<div class="wrapper<?php if(user_has_flag(current_user_id(), FMF_UF_SCROLLBEYOND)) { echo ' scrollbeyond'; }?>">
|
|
<div class="header">
|
|
<h1>flash.moe message board</h1>
|
|
<div class="header-wrap">
|
|
<div class="header-nav">
|
|
<a href="/">Home</a>
|
|
<?php if(session_active()) { ?>
|
|
<a href="/settings">Settings</a>
|
|
<a href="/logout/<?=logout_token();?>">Log out</a>
|
|
<?php } else { ?>
|
|
<a href="/login">Log in</a>
|
|
<a href="/register">Register</a>
|
|
<?php } ?>
|
|
</div>
|
|
<?php if(empty($hideSearch)) { ?>
|
|
<form method="get" action="/search" class="header-search">
|
|
<input type="search" name="q"/>
|
|
<input type="submit" value="Search"/>
|
|
</form>
|
|
<?php } ?>
|
|
</div>
|
|
</div>
|