From 8a3fa80a704a52eea6f05631fca9331b09b352f3 Mon Sep 17 00:00:00 2001 From: TheStilbruch Date: Thu, 27 Jun 2019 20:13:01 -0500 Subject: [PATCH] Added some more stuff to the header while I put off fixing the registration thing --- core/header.php | 34 +++++++++++++++++++++++++++++++--- 1 file changed, 31 insertions(+), 3 deletions(-) diff --git a/core/header.php b/core/header.php index 1f534fe..7421d0e 100644 --- a/core/header.php +++ b/core/header.php @@ -1,8 +1,21 @@ +// Start handing session stuff +session_start(); +?> + @@ -25,9 +38,24 @@ $title = $title ?? '~chan'; links: ( home - / - login ) + + profile: ( + syntax was ugly + echo "profile"; + echo " / "; + echo "log out"; + echo " )"; +} else { + echo "register"; + echo " / "; + echo "login"; + echo " )"; +} +?> +