This commit is contained in:
biglyderv 2024-11-26 23:37:16 -05:00
parent 34d322e0c0
commit b1936f4d3a
10 changed files with 322 additions and 25 deletions

View file

@ -1,6 +1,8 @@
<?php
require("../libs/auth.php");
function page_header() { ?>
global $username;
function page_header() {
global $username; ?>
<!DOCTYPE html>
<html>
<head>
@ -8,6 +10,17 @@
<link rel="stylesheet" href="/css/main.css">
</head>
<body>
<div class="header">
<a href="/"><img class="header-img header-link" src="/img/newlogo.svg"></a>
<a href="/" class='header-link'>Home</a>
<?php
if (isset($username)) { ?>
<a class="header-link" href="/user.php?id=<?php echo $username ?>"><?php echo $username ?></a>
<?php } else { ?>
<a class="header-link" href="/login.php">Login</a>
<?php }
?>
</div>
<?php }
function page_footer() { ?>
</body>