-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.php
More file actions
211 lines (166 loc) · 6.88 KB
/
Copy pathindex.php
File metadata and controls
211 lines (166 loc) · 6.88 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
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
205
206
207
208
209
210
211
<?php
require_once 'controllers/authController.php';
if(isset($_GET['token']))
{
$token = $_GET['token'];
verifyUser($token);
}
if(isset($_GET['password-token']))
{
$passwordToken = $_GET['password-token'];
resetPassword($passwordToken);
}
if(!isset($_SESSION['id']))
{
header('location: login.php');
exit();
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>LiveByCode — Login</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link href="https://fonts.googleapis.com/css?family=Muli:300,400,700,900" rel="stylesheet">
<link rel="stylesheet" href="fonts/icomoon/style.css">
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/jquery-ui.css">
<link rel="stylesheet" href="css/owl.carousel.min.css">
<link rel="stylesheet" href="css/owl.theme.default.min.css">
<link rel="stylesheet" href="css/owl.theme.default.min.css">
<link rel="stylesheet" href="css/jquery.fancybox.min.css">
<link rel="stylesheet" href="css/bootstrap-datepicker.css">
<link rel="stylesheet" href="fonts/flaticon/font/flaticon.css">
<link rel="stylesheet" href="css/aos.css">
<link href="css/jquery.mb.YTPlayer.min.css" media="all" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="css/style.css">
</head>
<body data-spy="scroll" data-target=".site-navbar-target" data-offset="300">
<div class="site-wrap">
<div class="site-mobile-menu site-navbar-target">
<div class="site-mobile-menu-header">
<div class="site-mobile-menu-close mt-3">
<span class="icon-close2 js-menu-toggle"></span>
</div>
</div>
<div class="site-mobile-menu-body"></div>
</div>
<div class="py-2 bg-light">
<div class="container">
<div class="row align-items-center">
<div class="col-lg-9 d-none d-lg-block">
<a href="#" class="small mr-3"><span class="icon-envelope-o mr-2"></span> livebycode@googlegroups.com</a>
</div>
</div>
</div>
</div>
<div class="site-section ftco-subscribe-1 site-blocks-cover pb-4" style="background-image: url('images/bg_1.jpg')">
<div class="container">
<div class="row align-items-end justify-content-center text-center">
<div class="col-lg-7">
<h2 class="mb-0">Email-Verification</h2>
<p>A Step to Homepage.</p>
</div>
</div>
</div>
</div>
<form action="login.php" method="post">
<div class="site-section">
<div class="container">
<?php if(isset($_SESSION['message'])): ?>
<div class="alert <?php echo $_SESSION['alert-class']; ?>">
<?php
echo $_SESSION['message'];
unset($_SESSION['message']);
unset($_SESSION['alert-class']);
?>
</div>
<?php endif; ?>
<h3>Welcome, <?php echo $_SESSION['username']; ?></h3>
<a href="index.php?logout=1" style="color: red;">logout</a>
<?php if(!$_SESSION['verified']): ?>
<div class="alert alert-warning">
You need to verify your account.
Sign in to your email account and click on the
verification link we just emailed you at
<strong><?php echo $_SESSION['email']; ?></strong>
</div>
<?php endif; ?>
<?php if($_SESSION['verified']):
header('location: mainindex.php') ?>
<?php endif; ?>
</div>
</div>
</form>
<div class="footer">
<div class="container">
<div class="row">
<div class="col-lg-3">
<p class="mb-4"><img src="images/logo.png" alt="Image" class="img-fluid"></p>
<p><b> THINK. IMPLEMENT. QUIT. REPEAT.</b></p>
</div>
<div class="col-lg-3">
<h3 class="footer-heading"><span>Our Department</span></h3>
<ul class="list-unstyled">
<li><a href="http://www.saranathan.ac.in/dept.php?tgt=itabout&dept=IT">Information Technology</a></li>
</ul>
<h3 class="footer-heading"><span>Our College</span></h3>
<ul class="list-unstyled">
<li><a href="http://www.saranathan.ac.in">Saranathan College of Engineering</a></li>
</ul>
</div>
<div class="col-lg-3">
<h3 class="footer-heading"><span>Compiler Language support</span></h3>
<ul class="list-unstyled">
<li><a href="#">Bash (4.0 | 4.4)</a></li>
<li><a href="#">Basic (fbc 1.05.0)</a></li>
<li><a href="#">C</a></li>
<li><a href="#">C++</a></li>
<li><a href="#">Clojure (1.8.0)</a></li>
<li><a href="lang.html">Read More</a></li>
</ul>
</div>
<div class="col-lg-3">
<h3 class="footer-heading"><span>Contact us at</span></h3>
<ul class="list-unstyled">
<li><a href="#">Gmail</a></li>
<li><a href="#">Instagram</a></li>
<li><a href="#">Facebook</a></li>
<li><a href="#">Twitter</a></li>
<li><a href="#">Whatsapp</a></li>
</ul>
</div>
</div>
<div class="row">
<div class="col-12">
<div class="copyright">
<p>
Copyright ©<script>document.write(new Date().getFullYear());</script> All rights reserved </i> by <a href="index.html" target="_blank" >Live By Code</a>
</p>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- .site-wrap -->
<!-- loader -->
<div id="loader" class="show fullscreen"><svg class="circular" width="48px" height="48px"><circle class="path-bg" cx="24" cy="24" r="22" fill="none" stroke-width="4" stroke="#eeeeee"/><circle class="path" cx="24" cy="24" r="22" fill="none" stroke-width="4" stroke-miterlimit="10" stroke="#51be78"/></svg></div>
<script src="js/jquery-3.3.1.min.js"></script>
<script src="js/jquery-migrate-3.0.1.min.js"></script>
<script src="js/jquery-ui.js"></script>
<script src="js/popper.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/owl.carousel.min.js"></script>
<script src="js/jquery.stellar.min.js"></script>
<script src="js/jquery.countdown.min.js"></script>
<script src="js/bootstrap-datepicker.min.js"></script>
<script src="js/jquery.easing.1.3.js"></script>
<script src="js/aos.js"></script>
<script src="js/jquery.fancybox.min.js"></script>
<script src="js/jquery.sticky.js"></script>
<script src="js/jquery.mb.YTPlayer.min.js"></script>
<script src="js/main.js"></script>
</body>
</html>