45 lines
929 B
PHP
45 lines
929 B
PHP
<style>
|
|
body{
|
|
background-color: black;
|
|
}
|
|
*{
|
|
color: white;
|
|
font-family: monospace;
|
|
}
|
|
input{
|
|
background-color: black;
|
|
padding: 5px;
|
|
border: 1px solid white;
|
|
}
|
|
a:visited{
|
|
color: grey;
|
|
}
|
|
#header{
|
|
text-align: center;
|
|
}
|
|
</style>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<div id="header">
|
|
<?php
|
|
//if($_SESSION["login"] === true) echo "You are logged in - <a href='/logout.php'>logout</a>";
|
|
print("<a href='" . $BASE_PATH . "/'>Home</a> ");
|
|
|
|
if($_SESSION["login"] === true){
|
|
echo "<a href='/logout.php'>logout</a>";
|
|
|
|
if($_SESSION["username"] == "admin"){
|
|
print(" <a href='" . $BASE_PATH . "/admin.php'>Admin</a>");
|
|
}
|
|
}
|
|
else{
|
|
echo "<a href='/login.php'>Login</a>";
|
|
}
|
|
|
|
?>
|
|
<h1>Dendy\'s Suckless Booru</h1>
|
|
<form method="GET" action="tag.php">
|
|
<input type="text" name="t" value="<?php if($_GET["t"]) echo $_GET["t"]; ?>">
|
|
<input type="submit">
|
|
</form>
|
|
</div>
|