added a static master board list to the header

This commit is contained in:
hayden 2019-06-25 23:24:58 -05:00
parent ae0fd9e3b5
commit 8d456ee573
3 changed files with 24 additions and 1 deletions

View File

@ -9,4 +9,25 @@ $title = $title ?? '~chan';
<title><?php echo $title; ?></title>
</head>
<body>
<!-- master board list -->
<div>
<span>
boards: (
<a href="/b/">b</a>
/
<a href="/g/">g</a>
/
<a href="/m/">m</a>
/
<a href="/v/">v</a>
)
</span>
<span>
links: (
<a href="/">home</a>
/
<a href="/login.php">login</a>
)
</span>
</div>
<div class="main">

View File

@ -4,6 +4,7 @@ if($_SERVER['REQUEST_METHOD'] == 'POST') {
}
$title = "~chan - login"
$path = $_SERVER['DOCUMENT_ROOT'];
include($path . '/core/header.php');
?>

View File

@ -17,11 +17,12 @@ if($_SERVER['REQUEST_METHOD'] == 'POST') {
// Check for empty or blank fields
if ($username == '') failed_register("invalid username");
if ($password == '') failed_register("invalid password");
}
$title = "~chan - register";
$path = $_SERVER['DOCUMENT_ROOT'];
require($path . '/core/header.php');
?>
<div style="
margin: auto;