-
Notifications
You must be signed in to change notification settings - Fork 19
/
verify_ME.php
93 lines (93 loc) · 4.73 KB
/
verify_ME.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
<?php
require('require/top.php');
authorise_user2();
user_vfd_efd2($con);
$id = $_SESSION['USER_ID'];
$gui = mysqli_fetch_assoc(mysqli_query($con, "select * from users where id='$id'"));
?>
<div class="path">
<div class="container">
<a href="index.php">Home</a>
/
<a href="verify_ME.php">Verification</a>
</div>
</div>
<section class="newaddress">
<section class="myac-body">
<div class="flex row flex-center">
<div class="right">
<h4><i class="uil uil-location-point"></i>Verify Mobile & Email</h4>
<div class="col-lg-12 col-md-12">
<div class="pdpt-bg">
<div class="pdpt-title">
<h4>Mobile</h4>
</div>
<div class="formbody">
<form action="javascript:void(0)">
<div class="address-fieldset">
<div class="row">
<label for="ft">Mobile</label>
<input type="number" placeholder="Mobile Number" id="verify_mobile" value="<?php echo $gui['mobile'] ?>" oninput="validate_number2()" />
<label for="ft" id="verifymobile_otp_label" style="display:none;">OTP</label>
<input type="text" placeholder="Enter OTP" id="verifymobile_otp" style="display:none;" />
<div class="row2">
<?php
if (!is_mobile_verified($con)) {
?>
<button class="save-address" onclick="mobile_sent_otp()" id="mobile-sent_otp">
Sent OTP
</button>
<?php } else {
?>
<button class="save-address" id="mobile-sent_otp">
Verified
</button>
<?php
} ?>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
<div class="col-lg-12 col-md-12">
<div class="pdpt-bg">
<div class="pdpt-title">
<h4>Email</h4>
</div>
<div class="formbody">
<form action="javascript:void(0)">
<div class="address-fieldset">
<div class="row">
<label for="ft">Email</label>
<input type="email" placeholder="Email Address" id="verify_email" value="<?php echo $gui['email'] ?>" />
<label for="ft" id="verifyemail_otp_label" style="display:none;">OTP</label>
<input type="text" placeholder="Enter OTP" id="verifyemail_otp" style="display:none;" />
<div class="row2">
<?php
if (!is_email_verified($con)) {
?>
<button class="save-address" onclick="email_sent_otp()" id="email-sent_otp">
Sent OTP
</button>
<?php } else {
?>
<button class="save-address" id="email-sent_otp">
Verified
</button>
<?php
} ?>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</section>
</section>
<?php require('require/foot.php'); ?>
<?php require('require/last.php'); ?>