-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathverify_mail.php
78 lines (77 loc) · 2.06 KB
/
verify_mail.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
<?php
include_once "core.php";
include_once 'user/core.inc.php';
if (loggedin()!=1)
{
header('location: index');
}
else
{
//echo "$userid"; //for testing only
$resultuser=$connection->query("SELECT `username`,`firstname`,`surname`,`status`,`level`,`emailid`
FROM `userdetail` WHERE `uniqueid`='$userid'");
$rowsuser=$resultuser->fetch_array();
$username=$rowsuser[0];
$firstname=$rowsuser[1];
$lastname=$rowsuser[2];
$status=$rowsuser[3];
$level=$rowsuser[4];
$emailid=$rowsuser[5];
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!--userpage for users-->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo "$username";?></title>
<meta name="keywords" content="PDFs Books" />
<meta name="description" content="Free Pdfs to download" />
<link href="http://fonts.googleapis.com/css?family=Varela" rel="stylesheet" />
<link href="default.css" rel="stylesheet" type="text/css" media="all" />
<link href="fonts.css" rel="stylesheet" type="text/css" media="all" />
</head>
<body>
<div id="wrapper">
<div id="header-wrapper">
<?php include "header.php";?>
</div>
<div id="banner">
<div class="container">
<div class="title">
<span class="byline"><?php echo "Welcome back <br/> <h2>$firstname $lastname</h2>";?></span>
</div>
<p>Plesae Verify your Email Id</p>
</div>
</div>
<div id="featured">
<div class="container">
<?php
if ($status=="active")
{
echo "Crongrast you are a verified member <br/> No need for Verification.";
}
else
{
include_once 'verify/verify_mail_form.php';
}
?>
</div>
</div>
<!--<div id="page" class="container">
<div class="title">
<h2>About Us</h2>
<span class="byline">We are the group of students.</span> </div>
<p> </p>
<ul class="actions">
<li><a href="about.php" class="button">Know more</a></li>
</ul>
</div>-->
</div>
<div id="copyright" class="container">
<?php include "footer.php";?>
</div>
</body>
</html>
<?php
}
?>