diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2021-04-12 12:17:02 +0300 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2021-04-12 12:17:02 +0300 |
commit | b698dd1786ce8858744f5cb5293bd97f90c9d207 (patch) | |
tree | 79eded9d6ae2830382a564e2563dd47967c6320e /templates/panel.php | |
parent | Use HTTP_HOST if SERVER_NAME is localhost (diff) | |
download | bugtracker-b698dd1786ce8858744f5cb5293bd97f90c9d207.tar.xz |
User: register and update
Diffstat (limited to 'templates/panel.php')
-rw-r--r-- | templates/panel.php | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/templates/panel.php b/templates/panel.php index c7fc578..5c090c8 100644 --- a/templates/panel.php +++ b/templates/panel.php @@ -3,19 +3,23 @@ session_start(); if (isset($_SESSION['user_id']) && $_SESSION['user_id'] != "") { - echo "Welcome, $_SESSION[user_name] <a href='{$config['urls']['base']}/user/logout.php'>logout</a>"; - echo "<p>Create | View new issues | View active issues</p>"; + echo "<p>Welcome, $_SESSION[user_name] | "; + echo "<a href='{$config['urls']['base']}/user/index.php'>account</a> | "; + echo "<a href='{$config['urls']['base']}/user/logout.php'>logout</a></p>"; } else { -echo "<form action='{$config['urls']['base']}/user/login.php' method='post'>"; -echo " <input name='username' type='text' >"; -echo " <input name='password' type='password' >"; -echo " <input type='submit' value='login' >"; -echo "</form>"; +?> +<p><a href='<?php echo "{$config['urls']['base']}/user/index.php"; ?>'>sign up</a> or log in</p> +<p><form action='<?php echo "{$config['urls']['base']}/user/login.php"; ?>' method='post'> + <input name='username' placeholder='username' type='text' required > + <input name='password' placeholder='password' type='password' required > + <input type='submit' value='login' > +</form> +<?php } ?> </div> -<form action="index.php" method="get"> +<form action='<?php echo "{$config['urls']['base']}/index.php"; ?>' method='get'> <input name="term" type="text" > <input type="submit" value="search" > </form> |