-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
120 lines (109 loc) · 4.99 KB
/
index.php
File metadata and controls
120 lines (109 loc) · 4.99 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
<?php
session_start();
session_regenerate_id();
if(isset($_SESSION['email'])) {
header("Location: welcome.php");
}
if(!empty($_COOKIE['email'])) {
$_SESSION['email'] = $_COOKIE['email'];
header("Location: welcome.php");
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>
SchedulePro
</title>
<link rel="stylesheet" href="css/master.css" type="text/css" media="screen" title="no title" charset="utf-8">
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js?ver=1.4.2"></script>
<script src="js/login.js"></script>
<script type="text/javascript" src="js/register.js"></script>
</head>
<body style="margin:0px">
<div id="middle">
<div id="loginContainer">
<a href="#" id="loginButton"><span>Login</span><em></em></a>
<div style="clear:both"></div>
<div id="loginBox">
<form id="loginForm" action="login2.php" method="post">
<fieldset id="body">
<fieldset>
<label for="login_name">Email</label>
<input type="text" name="login_name" id="login_name" />
</fieldset>
<fieldset>
<label for="password">Password</label>
<input type="password" name="password" id="password" />
</fieldset>
<input type="submit" id="submit" value="Login" />
<label for="remember"><input type="checkbox" id="remember" />Remember me</label>
</fieldset>
<span><a href="#">Forgot your password?</a></span>
</form>
</div>
</div>
<table id="index_reg" border="0" width="100%">
<tr>
<td><img src="images/spacer.png" height="270"></td>
</tr>
<tr>
<td align="left">
<img src="images/contentspacer.png" width="50">
</td>
<td width="100%">
<div id="div-regForm">
<div class="form-title">Sign Up</div>
<div class="form-sub-title">It's free and only takes a few minutes</div>
<form id="regForm" action="register.php" method="post">
<table>
<tbody>
<tr>
<td><label for="fname">First Name:</label></td>
<td><div class="input-container"><input name="fname" id="fname" type="text" /></div></td>
</tr>
<tr>
<td><label for="lname">Last Name:</label></td>
<td><div class="input-container"><input name="lname" id="lname" type="text" /></div></td>
</tr>
<tr>
<td><label for="email">Your Email:</label></td>
<td><div class="input-container"><input name="email" id="email" type="text" /></div></td>
</tr>
<tr>
<td><label for="pass">Password:</label></td>
<td><div class="input-container"><input name="pass" id="pass" type="password" /></div></td>
</tr>
<tr>
<td><label for="pass">Confirm Password:</label></td>
<td><div class="input-container"><input name="pass2" id="pass2" type="password" /></div></td>
</tr>
<tr>
<td><label>University:</label></td>
<td>
<div class="input-container">
<select name="school" id="school">
<option value="0">Please Select:</option>
<option value="1">Miami University (Oxford)</option>
</select>
</div>
</td>
</tr>
<tr>
<td> </td>
<td><input type="submit" class="greenButton" value="Sign Up" /><img id="loading" src="images/ajax-loader.gif" alt="working.." /></td>
</tr>
</tbody>
</table>
</form>
<div id="error">
</div>
</div>
</td>
</tr>
</table>
</div>
</body>
</html>