aboutsummaryrefslogtreecommitdiff
path: root/templates/panel.php
blob: c7fc578d6090eeb81253293dddd656802d360130 (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
<div id='login_box'>
<?php
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>";
} 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>";
}
?>
</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>