-
Notifications
You must be signed in to change notification settings - Fork 2
/
login.php
50 lines (44 loc) · 1.14 KB
/
login.php
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<?php
include("common.php");
if ($_SESSION['loggedIn'] == true)
{
header("location: index.php");
exit();
}
outHtml1("Login");
?>
<?php
outHtml2("Login:","index.php",false);
?>
<form method="POST" action="loginExecute.php">
<table class='list'>
<tr>
<td class='listlefta'>Username</td>
<td class='listrighta'><input type="text" name="username" /></td>
</tr>
<tr>
<td class='listlefta'>Password</td>
<td class='listrighta'><input type="password" name="password" /></td>
</tr>
<tr>
<td class='listlefta'>Remember Me</td>
<td class='listrighta'><input type="checkbox" name="remember" value="checked" /></td>
</tr>
</table>
<?php
if ($_GET['badLogin'] == '1')
{
echo '<div align="center" style="margin-top: 5px;">Incorrect Username and/or password!</div>';
}
else if ($_GET['badLogin'] == '2')
{
echo '<div align="center" style="margin-top: 5px;">Username is banned.</div>';
}
?>
<div id="submitDiv">
<input type="submit" name="submit" value="Login">
</div>
</form>
<?php
outHtml3();
?>