2022-07-26 13:52:41 +00:00
|
|
|
<?php
|
2022-08-01 10:20:00 +00:00
|
|
|
// Include required files and commands by every page on header
|
2022-07-26 13:52:41 +00:00
|
|
|
session_start();
|
2022-08-01 10:20:00 +00:00
|
|
|
|
2022-08-01 09:31:23 +00:00
|
|
|
if (is_dir("ui/")) {
|
|
|
|
include_once("ui/functions.php");
|
|
|
|
} else {
|
|
|
|
include_once("../ui/functions.php");
|
|
|
|
}
|
2022-07-26 13:52:41 +00:00
|
|
|
|
2022-08-01 10:20:00 +00:00
|
|
|
$conn = mysqli_connect("localhost", "uwu", "fennec621", "swag");
|
|
|
|
if ($conn->connect_error) {
|
|
|
|
echo "<p class='alert alert-low'>Could not connect to database</p>";
|
|
|
|
}
|
|
|
|
|
2022-08-01 09:31:23 +00:00
|
|
|
// Check which directory icons are in
|
2022-07-26 13:52:41 +00:00
|
|
|
if (is_dir("assets/icons/")) {
|
|
|
|
$dir = "assets/icons/";
|
|
|
|
} else {
|
|
|
|
$dir = "../assets/icons/";
|
|
|
|
}
|
|
|
|
?>
|
2022-07-25 15:13:26 +00:00
|
|
|
|
2022-07-21 18:42:03 +00:00
|
|
|
<nav class="nav-root flex-left between">
|
2022-07-21 14:53:04 +00:00
|
|
|
<div class="nav-name flex-left">
|
2022-07-28 21:18:14 +00:00
|
|
|
<h3>OnlyLegs</h3>
|
2022-07-21 14:53:04 +00:00
|
|
|
</div>
|
2022-07-23 14:03:11 +00:00
|
|
|
<div class="nav-links flex-left">
|
2022-07-25 15:13:26 +00:00
|
|
|
<?php
|
2022-07-26 13:52:41 +00:00
|
|
|
echo "<a class='btn alert-default' href='https://superdupersecteteuploadtest.fluffybean.gay'><img class='svg' src='".$dir."house.svg'><span class='nav-hide'>Home</span></a>";
|
|
|
|
echo "<hr>";
|
2022-07-31 11:50:52 +00:00
|
|
|
echo "<a class='btn alert-default flyout-display' href='https://superdupersecteteuploadtest.fluffybean.gay?srch=show'><img class='svg' src='".$dir."binoculars.svg'><span class='nav-hide'>Search</span></a>";
|
|
|
|
echo "<hr>";
|
2022-07-26 13:52:41 +00:00
|
|
|
|
2022-08-01 09:31:23 +00:00
|
|
|
if (loggedin()) {
|
2022-07-26 13:52:41 +00:00
|
|
|
echo "<a class='btn alert-default' href='https://superdupersecteteuploadtest.fluffybean.gay/upload.php'><img class='svg' src='".$dir."upload.svg'><span class='nav-hide'>Upload</span></a>";
|
2022-07-25 17:28:55 +00:00
|
|
|
echo "<hr>";
|
2022-07-31 12:04:30 +00:00
|
|
|
echo "<a class='btn alert-default' href='https://superdupersecteteuploadtest.fluffybean.gay/account/account.php'><img class='svg' src='".$dir."user-circle.svg'><span class='nav-hide'>".substr($_SESSION["username"], 0, 15)."</span></a>";
|
2022-07-25 15:13:26 +00:00
|
|
|
} else {
|
2022-07-26 17:16:17 +00:00
|
|
|
echo "<a class='btn alert-high' href='https://superdupersecteteuploadtest.fluffybean.gay/account/login.php'><img class='svg' src='".$dir."user-circle-plus.svg'><span class='nav-hide'>Login</span></a>";
|
2022-07-25 15:13:26 +00:00
|
|
|
}
|
|
|
|
?>
|
2022-07-21 14:53:04 +00:00
|
|
|
</div>
|
2022-07-21 18:42:03 +00:00
|
|
|
</nav>
|