-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
175 lines (156 loc) · 5.2 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
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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
<?php
require_once 'library.php';
require_once 'db.php';
require_once 'checkcookies.php';
session_start();
if(isset($_SESSION['user']))
{header('Location:home.php');}
//if(isset($_SESSION['failed']))
//{header('Location:candidates.php');}
?>
<html>
<head>
<title> Fantasy Politics </title>
<meta name="google-site-verification" content="x93G0XngZdiatTaEM3RvOvkW9Uvk6Sj3gvgV6NkwA6g"/>
<meta name="keywords" content="fantasy, politics, chief, choose">
<meta name="description" content="Play Fantasy Politics!">
<link rel="SHORTCUT ICON" href="images/icon.jpg"/>
<link rel="stylesheet" type="text/css" href="stylesheets/index_menu_bar.css"/>
<link rel="stylesheet" type="text/css" href="stylesheets/index_main.css"/>
<link rel="stylesheet" type="text/css" href="stylesheets/index_bottom.css"/>
<link rel="stylesheet" type="text/css" href="stylesheets/global.css"/>
<link rel="stylesheet" type="text/css" href="stylesheets/signup_login.css">
<script type="text/javascript" src="javascript/signin_login.js"></script>
<script type="text/javascript" src="javascript/failed_login.js"></script>
</head>
<body background="images/flag.jpg">
<div id="top">
<div class="inner">
<div id="Logo">
<h3> chooseyourchief.com </h3>
</div>
<div id="NavBar">
<div id="login">
<form class="forms" action="login.php" method="post">
<input id="user_email" type="text" name="user_email" placeholder="Username or Email"/>
<input id="login_password" type="password" name="user_password" placeholder="Password"/>
<input id="button2" type="submit" value="Login" />
</form>
</div>
</div>
</div>
</div>
<div id="super">
<div id="main">
<div class="inner">
<h1 id="title"> Fantasy Politics </h1>
<div id="main_image">
<img src="icon_images/main_logo.png"/>
</div>
<div id="main_right">
<ul id="description">
<li> Predict the result of every Republican primary!</li>
<li> Compete against people all over the country! </li>
<li> Keep up with the latest political news! </li>
<li> Track the primary results! </li>
<li> Use our interactive map! </li>
</ul>
<a href="#" onclick="view('outer')"> Create a Profile! </a>
</div>
</div>
</div>
<div id="bottom">
<div class="inner">
<div id="bottom_left" class="bottom_third">
<a href="candidates.php">
<h1> Meet the Candidates <h1>
<img src="images/candidates.jpg"/>
</a>
</div>
<div id="bottom_center" class="bottom_third">
<a href="leaderboard.php">
<h1> Leaderboard <h1>
<img src="images/leaderboard.jpg"/>
</a>
</div>
<div class="bottom_third">
<a href="about_us.php">
<h1> About Us </h1>
<img src="images/about_us2.jpg"/>
</a>
</div>
</div>
</div>
</div>
<div id="outer">
</div>
<div id="signup">
<a id="close" href="#" onclick="hide('outer')"> <img src="icon_images/close.gif"/></a>
<form class="forms" id="signup_form" action="signup.php" method="post">
<h1> Create Your Profile <h1>
<div id="form_a"/>
Username <br/>
Email <br/>
Password <br/>
Confirm Password <br/>
</div>
<div id="form_b">
<input id="text5" type="text" name="username"/><br/>
<input id="text3" type="text" name="user_email" /> <br/>
<input id="text1" type="password" name="user_password" onkeyup="passwordCheck()"/> <br/>
<input id="text2" type="password" name="confirm_password" onkeyup="passwordCheck()"/><br/>
</div>
<div id='x_check'>
<img id="x" src="images/x.png"/> <img id="check" src="images/check.png" style="display:none;"/>
</div>
<div id="help_message"> Reminder: The password must be at least six characters or numbers
</div>
<div id="button1div">
<button id="button1" type="button" onclick="checkSubmit()"/> Sign Up!! </button>
</div>
</form>
</div>
<div id="outer2"
<?php
if (!isset($_SESSION['failed']))
{echo "style='display:none;'";}
?>
> </div>
<div id="failedlogin"
<?php
if (!isset($_SESSION['failed']))
{echo "style='display:none;'";}
else
{unset($_SESSION['failed']);}
?>
>
<a id="close" href="#" onclick="hide2('outer2')"> <img src="icon_images/close.gif"/></a>
<h1> Login Failed </h1>
<h1> Try Again or Send Recovery Email </h1>
<form class="forms" id="failedloginform" action="login.php" method="post">
<div id="form_c"/>
Username or Email: <br/>
Password: <br/>
</div>
<div id="form_d">
<input id="text6" type="text" name="user_email"/><br/>
<input id="text7" type="password" name="user_password"/> <br/>
</div>
<div id="button3div">
<input id="button3" type="submit" value="Login" />
</div>
</form>
<form class="forms" id="passwordrecovery" action="recoverpassword.php" method="post">
<div id="form_e"/>
Email: <br/>
</div>
<div id="form_f">
<input id="text8" type="text" name="user_email"/><br/>
</div>
<div id="button1div">
<input id="button4" type="submit" value="Recover Password" />
</div>
</form>
</div>
</body>
</html>