diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2021-04-07 13:45:29 +0300 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2021-04-07 13:45:29 +0300 |
commit | 1dd25bf2c0249308e2f5806d38deeeeda7b29aba (patch) | |
tree | 3c1d990ba63dfadb1248aa546d7ce2cb60b955e7 /templates/panel.php | |
parent | Markdown formatting for descriptions (diff) | |
download | bugtracker-1dd25bf2c0249308e2f5806d38deeeeda7b29aba.tar.xz |
Add base url config
Diffstat (limited to 'templates/panel.php')
-rw-r--r-- | templates/panel.php | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/templates/panel.php b/templates/panel.php index b670442..c7fc578 100644 --- a/templates/panel.php +++ b/templates/panel.php @@ -3,16 +3,14 @@ session_start(); if (isset($_SESSION['user_id']) && $_SESSION['user_id'] != "") { - echo "Welcome, $_SESSION[user_name] <a href='user/logout.php'>logout</a>"; + 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>"; } else { -?> -<form action="user/login.php" method="post"> - <input name="username" type="text" > - <input name="password" type="password" > - <input type="submit" value="login" > -</form> -<?php +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>"; } ?> </div> |