This repository has been archived by the owner on May 19, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
login.php
204 lines (189 loc) · 8.52 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
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
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
<!DOCTYPE html>
<html lang="zxx">
<head>
<title>VanPeaks - Login</title>
<meta charset="utf-8">
<!-- Link Bootstrap files -->
<script type="text/javascript" src="jquery/js/jquery-3.1.1.js"></script>
<link rel="stylesheet" href="bootstrap/css/bootstrap.css">
<script src="bootstrap/js/bootstrap.js"></script>
<!-- Link JavaScript files -->
<script src="js/logindropdown.js"></script>
<script src="js/login.js"></script>
<script type="text/javascript" src="js/indexHeader.js"></script>
<!-- Link base stylesheet -->
<link rel="stylesheet" href="style/base.css">
</head>
<body>
<!-- Navigation bar -->
<div class="container-fluid">
<div class="row">
<nav>
<ul>
<li>
<a href="index.php" class="link"><img src="images/Logo.png" id="logo" alt="Home"></a>
</li>
<li class="dropdown" id="trails">
<span class="trail_hover">Trails
<span class="caret"></span></span>
<ul class="dropdwn">
<li><a href="trails/cascade_falls.php">Cascade Falls</a></li>
<li><a href="trails/garibaldi_lake.php">Garibaldi Lake</a></li>
<li><a href="trails/jug_island.php">Jug Island</a></li>
<li><a href="trails/lynn_peak.php">Lynn Peak</a></li>
<li><a href="trails/mt_brunswick.php">Mount Brunswick</a></li>
<li><a href="trails/teapot_hill.php">Teapot Hill</a></li>
</ul>
</li>
<li class="listitem button_hover" id="hikeprep">
<a href="prepare.php" class="link button_hover">Hike Prep</a>
</li>
<li class="listitem button_hover" id="about">
<a href="about.php" class="link">About</a>
</li>
<li class="listitem button_hover" id="nojs-login">
<a href="login.php" class="link">Login/Signup</a>
</li>
<?php if (isset($_SESSION['SESS_LOGIN'])):?>
<li class="listitem">
<a href="php/forum/logout.php" class="link"><span class="button_hover">Logout</span></a>
</li>
<?php else: ?>
<li class="navLink" id="js-login">
<div class="dropdown">
<button
class="btn btn-default dropdown-toggle link"
id="dropdownButton"
type="button"
data-toggle="dropdown"
aria-haspopup="true"
aria-expanded="false" >
<span class = "button_hover">Login/Signup</span>
</button>
<ul class="dropdown-menu" id="dropdownForm" aria-labelledby="dropdownButton">
<li id="loginForm">
<form method="post" action="php/forum/login.php" onsubmit="return loginValidation()">
<div>
<fieldset class="field">
<!-- Login Title -->
<legend class="h3">Login</legend>
<div id="loginError" class="red"></div>
<!-- Username Title -->
<label for="userLogin">Username:</label><br>
<input type="text" name="userLogin" id="userLogin" onblur="checkUserLogin('userLogin')" required>
<div id="userLoginWarn" class="red"></div>
<!-- Password Title -->
<label for="passLogin">Password:</label><br>
<input type="password" name="passLogin" id="passLogin" onblur="checkPassLogin('passLogin')" required="">
<div id="passLoginWarn" class="red"></div>
<br>
<input type="submit" value="Login" id="loginButton">
<br><br>
<input
type="button"
value="or Register Here"
id="registerButton"
onclick="javascript:location.href='login.php'"
>
</fieldset>
</div>
</form>
</li>
</ul>
</div>
</li>
<?php endif; ?>
</ul>
</nav>
</div>
</div>
<!-- Content -->
<!-- Content -->
<div class="login-bg-image">
<div class="container">
<div class="page-content" id="content">
<div class="row">
<!-- <form method="post" action="http://webdevfoundations.net/scripts/formdemo.asp" onsubmit="return loginValidation()">
<div class="col-xs-6" id="border_line">
<div id="loginForm">
<fieldset class="field">
<legend class="h3">Login</legend>
<div id="loginError" class="red"></div>
<label for="userLogin">Username: </label><br>
<input type="text" name="userLogin" id="userLogin" onblur="checkUserLogin('userLogin')" required>
<div id="userLoginWarn" class="red"></div>
<label for="passLogin">Password: </label><br>
<input type="password" name="passLogin" id="passLogin" onblur="checkPassLogin('passLogin')" required="">
<div id="passLoginWarn" class="red"></div>
<br>
<input type="submit" value="Login" id="loginButton">
</fieldset>
</div>
</div>
</form> -->
<form method="post" action="php/forum/register.php" onsubmit="return regiValidation()">
<div class="col-xs-5 col-xs-offset-5">
<div class="row">
<div class="registrationForm">
<fieldset class="field">
<legend class="h3">Registration</legend>
<div id="regiError" class="red"></div>
<label for="emailRegister">Email: </label><br>
<input type="text" name="emailRegister" id="emailRegister" onblur="checkEmailRegi('emailRegister')" required>
<div id="emailRegiWarn" class="red"></div>
<label for="userRegister">Username :</label><br>
<input type="text" name="userRegister" id="userRegister" onblur="checkUserRegi('userRegister')" required>
<div id="userRegiWarn" class="red"></div>
<label for="passRegister1">Password:</label><br>
<input type="password" name="passRegister1" id="passRegister1" onblur="checkPassRegi('passRegister1')" required>
<div id="passRegiWarn1" class="red"></div>
<label for="passRegister2">Confirm Password:</label><br>
<input type="password" name="passRegister2" id="passRegister2" onblur="checkPassRegi('passRegister2'); checkPassRegiMatch(); return false;" required>
<div id="passRegiWarn2" class="red"></div>
<div id="passRegiWarn3" class="red"></div>
<br>
<input type="submit" value="Register" id="registerButton">
<br><br>
</fieldset>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
<!-- Footer -->
<footer class="container-fluid">
<div class="row">
<div class="col-xs-offset-2 col-xs-2">
<ul>
<li><a href="index.php">Home</a></li>
<li><a href="about.php">About</a></li>
<li><a href="prepare.php">Hike Prep</a></li>
</ul>
</div>
<div class="col-xs-2">
<ul>
<li><a href="trails/cascade_falls.php">Cascade Falls</a></li>
<li><a href="trails/garibaldi_lake.php">Garibaldi Lake</a></li>
<li><a href="trails/jug_island.php">Jug Island</a></li>
<li><a href="trails/lynn_peak.php">Lynn Peak</a></li>
<li><a href="trails/mt_brunswick.php">Mount Brunswick</a></li>
<li><a href="trails/teapot_hill.php">Teapot Hill</a></li>
</ul>
</div>
<div class="col-xs-4 col-xs-offset-1" id="social-icons">
<ul>
<li>Connect with VanPeaks:</li>
<li class="socialmedia"><a href="http://www.facebook.com"><img src="images/facebook.png" alt="Facebook logo" /></a></li>
<li class="socialmedia"><a href="http://www.twitter.com"><img src="images/twitter.png" alt="Twitter logo" /></a></li>
<li class="socialmedia"><a href="https://www.instagram.com/felixlinn/"><img src="images/instagram.png" alt="Instagram logo" /></a></li>
<li class="socialmedia"><a href="http://www.youtube.com"><img src="images/youtube.png" alt="YouTube logo" /></a></li>
</ul>
</div>
</div>
<p>Copyright © 2017 VanPeaks | Designed by <a href="#">TEAM</a></p>
</footer>
</body>
</html>