-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhome.php
79 lines (71 loc) · 1.96 KB
/
home.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
<?php require_once "controllerUserData.php"; ?>
<?php
$email = $_SESSION['email'];
if($email != false ){
$sql = "SELECT * FROM usertable WHERE email = '$email'";
$run_Sql = mysqli_query($con, $sql);
if($run_Sql){
$fetch_info = mysqli_fetch_assoc($run_Sql);
$status = $fetch_info['status'];
$code = $fetch_info['code'];
if($status == "verified"){
if($code != 0){
header('Location: reset-code.php');
}
}else{
header('Location: user-otp.php');
}
}
}else{
header('Location: login-user.php');
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title><?php echo $fetch_info['name'] ?> | Home</title>
<style>
@import url('https://fonts.googleapis.com/css?family=Poppins:400,500,600,700&display=swap');
nav{
padding-left: 100px!important;
padding-right: 100px!important;
background: #6665ee;
font-family: 'Poppins', sans-serif;
}
nav a.navbar-brand{
color: #fff;
font-size: 30px!important;
font-weight: 500;
}
h1{
position: absolute;
top: 25%;
left: 50%;
width: 100%;
text-align: center;
transform: translate(-50%, -50%);
font-size: 50px;
font-weight: 600
}
h2{
position: absolute;
top: 50%;
left: 50%;
width: 100%;
text-align: center;
transform: translate(-50%, -50%);
font-size: 30px;
font-weight: 600
}
</style>
</head>
<body>
<nav style="background-color:black; height:50px" class="navbar" >
<center> <a style="color:white; font-size:20px" class="navbar" >XKCD Comic</a> </center>
</nav>
<h1>Welcome <?php echo $fetch_info['name'] ?></h1><br><br>
<h2>You have Subscribed XKCD comics successfully</h2>
</body>
</html>