-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmail.php
234 lines (204 loc) · 4.94 KB
/
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
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
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
<?php
// session_start();
// $userData = $_SESSION["MarktUser"];
if (!empty($_POST)) {
$email2 = $_GET["email"];
require_once "db.php";
extract($_POST);
$que = $db->prepare('select * from market_user where Auth_Code=?');
// $que = $db->prepare('select * from market_user where Auth_Code=? and email=$userData["email"]');
$que->execute([$code]);
if ($que->rowCount()) {
$db->query("update market_user set flag=1 where Auth_Code=$code");
$db->query("update market_user set Auth_Code = 1 where Auth_Code=$code");
header("Location: markt.php?email=$email2");
} else {
echo "<script>alert('Wrong Code!')</script>";
}
}
else {
global $email;
$email = $_GET["email"];
}
// var_dump($email);
// $stmt = $db->query("select * from market_user where email=$rec");
?>
<style>
@import url('https://fonts.googleapis.com/css2?family=Faster+One&family=Roboto:wght@500&display=swap');
</style>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Mail Verification</title>
</head>
<body>
<div class="container" >
<div class="header_section_top">
<div class="row">
<div class="col-sm-12">
<div class="custom_menu">
<h1 class="fashion_taital">GigaMarkt™</h1>
</div>
</div>
</div>
</div>
</div>
<div id="half"><img src="/login/BackgroundO.png" alt=""></div>
<div id="half2"><img src="/login/BackgroundP.png" alt=""></div>
<div id="over" data-ani="flip">
<table>
<tr>
<h2>VERIFICATION</h2>
</tr>
<tr>
<h3>Enter the code sent to your email</h3>
</tr>
<?php
global $email;
$email = $_GET["email"];
echo '<form action="?email='.$email.'" method="post" id="form">'
?>
<tr>
<td>
<input type="text" name="code" id="code">
</td>
<td>
<button>Submit</button>
</td>
</tr>
</form>
</table>
</div>
</body>
<style>
table {
display: flex;
margin: 20px auto;
border-collapse: collapse;
justify-content: center;
}
h2,
h3, input{
font-family: 'Roboto', sans-serif;
font-size: 4.5vh;
padding-top: 1vh;
padding-bottom: 2vh;
}
h1{
font-family: 'Roboto', sans-serif;
}
body {
padding: 0;
margin: 0;
}
#half img{
height: 50vh;
width: 100vw;
border-radius: 0px;
padding: 0px;
object-fit: cover;
}
#half2 img{
background-image: url(login/BackgroundP.png);
height: 50vh;
width: 100vw;
padding-top: 50vh;
border-radius: 0px;
padding: 0px;
object-fit: cover;
}
#over {
font-size: larger;
text-align: center;
position: fixed;
/* Sit on top of the page content */
/* Hidden by default */
width: 50%;
/* Full width (cover the whole page) */
height: 50%;
/* Full height (cover the whole page) */
top: 25vh;
left: 25vw;
right: 0;
bottom: 0;
background-color: rgba(240, 240, 240, .9);
/* Black background with opacity */
z-index: 2;
/* Specify a stack order in case you're using a different order for other elements */
}
#code {
border: 3px solid #555;
height: 12vh;
font-size: 4.5vw;
text-align: center;
width: 18vw;
}
button {
height: 12vh;
border: 3px solid #555;
text-align: center;
padding-top: 0;
cursor: pointer;
font-family: 'Roboto', sans-serif;
font-weight: bolder;
}
/* SEPERATOR */
#over::before {
transform: scaleX(0);
transform-origin: bottom right;
}
#over:hover::before {
transform: scaleX(1);
transform-origin: bottom left;
}
#over::before {
content: " ";
display: block;
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
inset: 0 0 0 0;
background: hsl(150 100% 80%);
z-index: -1;
transition: transform .3s ease;
}
.container{
position: absolute;
width: 100vw;
}
.fashion_taital {
width: 100%;
font-size: 40px;
color: #e9e9e9;
text-align: center;
font-weight: bold;
}
.header_section_top {
width: 100%;
float: left;
background-color: #2b2a29;
clip-path: polygon(0 0, 100% 0, 96% 100%, 3% 100%);
height: auto;
padding: 10px 0px;
}
.custom_menu {
width: 100%;
margin: 0 auto;
text-align: center;
}
@media (orientation: landscape) {
body {
grid-auto-flow: column;
}
}
</style>
</html>
<script>
</script>
<?php
?>