forked from akash-patel/BetweenTheLines
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
52 lines (44 loc) · 1.25 KB
/
index.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
51
52
<?php
// Initialize session
session_start();
// Check, if user is already login, then jump to secured page
if (isset($_SESSION['username'])) {
header('Location: securedpage.php');
}
?>
<html>
<body style= "background-color: #F0F0F0 "></body>
<head>
<title>Between the Lines - Reserve, Pay, and Park!</title>
</head>
<body>
<div align="center">
<h1>Welcome to Between the Lines!</h1>
<h3>User Login</h3>
<font color="red">
<?php
if (isset($_SESSION['error']))
{
echo $_SESSION['error'] . '<br /><br />';
$_SESSION['error'] = NULL;
}
?>
</font>
<table border="0">
<form method="POST" action="loginproc.php">
<tr><td>Username:</td><td><input type="text" name="username" size="20"></td></tr>
<tr><td>Password:</td><td><input type="password" name="password" size="20"></td></tr>
<tr><td> </td><td><input type="submit" value="Login">
</form>
<form method="POST" action="register.php"><input type="submit" value="Register"></form></td></tr>
<br>
<form method="POST" action="simulation.php"><input type="submit" value="Simulation"></form>
</table>
</div>
</body>
<div align="right">
<script type="text/javascript">
document.write(Date());
</script>
</div>
</html>