aboutsummaryrefslogtreecommitdiff
path: root/templates/panel.php
blob: b67044255e6823a1572a485a20f14eb20be9e4f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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>