This repository has been archived by the owner on Mar 1, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
164 lines (147 loc) · 8.06 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
<?php
include './Assets/PHP/redirect.php';
?>
<!DOCTYPE html>
<html>
<head>
<!-- Compatibility -->
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width , initial-scale=1.0"/>
<meta http-equiv="X-UA-Compatible" content="ie=edge"/>
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" integrity="sha384-TX8t27EcRE3e/ihU7zmQxVncDAy5uIKz4rEkgIXeMed4M0jlfIDPvg6uqKI2xXr2" crossorigin="anonymous">
<!-- My Css -->
<link rel="stylesheet" href="Assets/CSS/LogRegStyle.css">
<!-- Script that Hides/Shows the Register Form -->
<script src="Assets/JS/HideShow.js"></script>
<title>TeeLayLay</title>
</head>
<body>
<?php
if (isset($_GET["newpwd"])) {
if ($_GET["newpwd"]=="success") {
?>
<div class="alert alert-success text-center" role="alert">
Your password has been reset successfully!
</div>
<?php
}
}
if (isset($_GET["reset"])) {
if ($_GET["reset"]=="success") {
?>
<div class="alert alert-success text-center" role="alert">
Verification email has been sent to your address!
</div>
<?php
}
}
if (isset($_GET["reset"])) {
if ($_GET["reset"]=="failed") {
?>
<div class="alert alert-danger text-center" role="alert">
Destination email is missing!
</div>
<?php
}
}
if (isset($_GET["pwdchanged"])) {
if ($_GET["pwdchanged"]=="true") {
?>
<div class="alert alert-success text-center" role="alert">
Your password has been reset!
</div>
<?php
}
}
if (isset($_GET["login"])) {
if ($_GET["login"]=="no") {
?>
<div class="alert alert-danger text-center" role="alert">
Account does not exist or login credentials are wrong!
</div>
<?php
}
}
?>
<!-- Login Form -->
<div id="Login" class="Login">
<div class="d-flex justify-content-center align-items-center login-container">
<form class="login-form text-center" action="./Assets/PHP/login.php" method="POST">
<h1 class="logo mb-3 font-weight-light">TeeLayLay</h1>
<div class="form-group">
<input name="email" type="email" class="form-control rounded-pill form-control-lg" placeholder="Email" autocomplete="off" required>
</div>
<div class="form-group">
<input name="password" type="password" class="form-control rounded-pill form-control-lg" placeholder="Password" autocomplete="off" required>
</div>
<div class="forgot-link form-group d-flex justify-content-between align-items-center">
<div class="form-check">
<input name="i-remember" type="checkbox" class="form-check-input" id="remember">
<label class="form-check-label font-weight-light" for="remember">Remember Password</label>
</div>
<a href="./Assets/PHP/reset-password.php">Forgot Password?</a>
</div>
<button type="submit" class="btn btn-warning mt-3 rounded-pill btn-lg btn-block">Log in</button>
<p class="last mt-3 font-weight-normal">Don't have an account? <a href="javascript:on()"><strong>Register Now</strong></a></p>
</form>
</div>
</div>
<!-- Register Form -->
<div id="Register" class="Register">
<div class="d-flex justify-content-center align-items-center login-container">
<form class="login-form text-center" action="./Assets/PHP/register.php" method="POST">
<h1 class="logo mb-3 font-weight-light">TeeLayLay</h1>
<p>Insert a spiritual message here</p>
<div class="form-group">
<input name="firstname" type="text" class="form-control rounded-pill form-control-lg" placeholder="Firstname" autocomplete="off" required >
</div>
<div class="form-group">
<input name="lastname" type="text" class="form-control rounded-pill form-control-lg" placeholder="Lastname" autocomplete="off" required>
</div>
<div class="form-group">
<input name="password" type="password" class="form-control rounded-pill form-control-lg" placeholder="Password" autocomplete="off" required>
</div>
<div class="form-group">
<input name="conf_password" type="password" class="form-control rounded-pill form-control-lg" placeholder="Confirm password" autocomplete="off" required>
</div>
<div class="form-group">
<select name="sex" class="form-control rounded-pill form-control-lg" required>
<option value="">Gender</option>
<option value="Male">Male</option>
<option value="Female">Female</option>
<option value="LGBTQA">LGBTQA</option>
</select>
</div>
<div class="form-group">
<input name="birthday" type="text" onfocus="(this.type='date')" onfocusout="(this.type='text')" class="form-control rounded-pill form-control-lg" placeholder="Birthday" autocomplete="off" required>
</div>
<div class="form-group">
<input name="username" type="text" class="form-control rounded-pill form-control-lg" placeholder="Username" autocomplete="off" required>
</div>
<div class="form-group">
<input name="email" type="email" class="form-control rounded-pill form-control-lg" placeholder="Email Address" autocomplete="off" required>
</div>
<div class="form-group">
<input name="phone" type="tel" class="form-control rounded-pill form-control-lg" placeholder="Phone number" autocomplete="off" required>
</div>
<div class="form-group">
<input name="city" type="text" class="form-control rounded-pill form-control-lg" placeholder="City" autocomplete="off" required>
</div>
<div class="forgot-link form-group d-flex justify-content-between align-items-center">
<div class="form-check">
<input name="terms" type="checkbox" class="form-check-input" id="terms" required>
<label class="form-check-label font-weight-light" for="terms">Agre to terms and conditions</label>
</div>
</div>
<button type="submit" class="btn btn-warning mt-3 rounded-pill btn-lg btn-block">Register</button>
<p class="last mt-3 font-weight-normal">Have an account? <a href="javascript:off()"><strong>Login Now</strong></a></p>
</form>
</div>
</div>
<!-- Bootstrap scripts Ver 4.5 -->
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js" integrity="sha384-9/reFTGAW83EW2RDu2S0VKaIzap3H66lZH81PoYlFhbGU+6BZp6G7niu735Sk7lN" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js" integrity="sha384-w1Q4orYjBQndcko6MimVbzY0tgp4pWB4lZ7lr30WKz0vr/aWKhXdBNmNb5D92v7s" crossorigin="anonymous"></script>
</body>
</html>