diff options
Diffstat (limited to 'templates/panel.php')
-rw-r--r-- | templates/panel.php | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/templates/panel.php b/templates/panel.php new file mode 100644 index 0000000..b670442 --- /dev/null +++ b/templates/panel.php @@ -0,0 +1,28 @@ +<div id='login_box'> +<?php +session_start(); + +if (isset($_SESSION['user_id']) && $_SESSION['user_id'] != "") { + echo "Welcome, $_SESSION[user_name] <a href='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 +} +?> +</div> + +<form action="index.php" method="get"> + <input name="term" type="text" > + <input type="submit" value="search" > +</form> + +<p>_GET: <?php print_r($_GET); ?></p> +<p>_SESSION: <?php print_r($_SESSION); ?></p> +<hr> + |