3 files changed, 9 insertions(+), 3 deletions(-)

M includes/site_header.php
M register.php
M style.css
M includes/site_header.php +1 -0
@@ 13,6 13,7 @@ 
 <body>
 
 <header>
+    <span><a href="<?=URL?>">lipu li</a> <a><?=$site_user['name']?></a></span>
     <nav>
         <?=site_link($site_user['name'], null, "Home")?>
         <a href="pages.php?u=<?=$site_user['name']?>">Pages</a>

          
M register.php +3 -3
@@ 25,15 25,15 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST
     }
 
     if (!count($errors)) {
-        $id = $GLOBALS['App']->getUser()->create([
+        $id = $App->getUser()->create([
             "name" => $form['name'],
             "email" => $form['email'],
             "cover" => $form['cover'],
             "password" => $password,
         ], $errors);
         if ($id !== false) {
-            $GLOBALS['App']->getSession()->login($id);
-            $GLOBALS['App']->getSession()->setFlash("Thanks for registering! You will be able to start posting as soon as your account gets activated!");
+            $App->getSession()->login($id);
+            $App->getSession()->setFlash("Thanks for registering!");
             redirect("index.php");
         }
     }

          
M style.css +5 -0
@@ 52,3 52,8 @@ footer {
 .link::before {
     content: "↗ ";
 }
+
+header {
+    display: flex;
+    justify-content: space-between;
+}
  No newline at end of file