-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
47 lines (39 loc) · 1.18 KB
/
Copy pathindex.php
File metadata and controls
47 lines (39 loc) · 1.18 KB
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
<?php
//start the session
session_set_cookie_params (3600*24*30);
session_start();
session_unregister("regerror");
//check to make sure the session variable is registered
if(session_is_registered('idnum')){
header( "Location: index2.php" );
}
else {
?>
<?php include ("top.php"); ?>
<h3>Welcome to BotZone! Please sign in.</h3>
(If this is your first login, just fill in your name and leave the password blank.)
<div class="content">
<?php
if(session_is_registered('badpassword'))
{
echo "<span class=\"error\">Incorrect username and/or password - please try again!</span>";
session_unregister('badpassword');
}
else
{
echo " ";
}
?>
<br />
<form action="login.php" method=post>
<table width=70%>
<tr><td align="right">Login Name or ID Number:</td><td><input class="textfield" type="text" name="sname" size=20></td></tr>
<tr><td align="right">Password:</td><td><input class="textfield" type="password" name="passwd" size=20></td></tr>
<tr><td align="right"> </td><td><input class="button" type=submit value="Submit"></td></tr>
</table>
</form>
</div>
<?php
include ("bottom.html");
}
?>