aboutsummaryrefslogtreecommitdiff
path: root/templates/panel.php
diff options
context:
space:
mode:
Diffstat (limited to 'templates/panel.php')
-rw-r--r--templates/panel.php14
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>