-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathverify.php
More file actions
162 lines (135 loc) · 6.2 KB
/
Copy pathverify.php
File metadata and controls
162 lines (135 loc) · 6.2 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
<?php
session_start();
include('config.php');
include('sessioncheck.php');
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Verification</title>
<meta content="width=device-width, initial-scale=1.0" name="viewport">
<meta content="" name="keywords">
<meta content="" name="description">
<!-- Facebook Opengraph integration: https://developers.facebook.com/docs/sharing/opengraph -->
<meta property="og:title" content="">
<meta property="og:image" content="">
<meta property="og:url" content="">
<meta property="og:site_name" content="">
<meta property="og:description" content="">
<!-- Twitter Cards integration: https://dev.twitter.com/cards/ -->
<meta name="twitter:card" content="summary">
<meta name="twitter:site" content="">
<meta name="twitter:title" content="">
<meta name="twitter:description" content="">
<meta name="twitter:image" content="">
<!-- Place your favicon.ico and apple-touch-icon.png in the template root directory -->
<link href="img/favicon.png" rel="shortcut icon" type="image/png">
<!-- Google Fonts -->
<link href="https://fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400i,700,700i|Raleway:300,400,500,700,800" rel="stylesheet">
<!-- Bootstrap CSS File -->
<link href="lib/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<!-- Libraries CSS Files -->
<link href="lib/font-awesome/css/font-awesome.min.css" rel="stylesheet">
<link href="lib/animate-css/animate.min.css" rel="stylesheet">
<!-- Main Stylesheet File -->
<link href="css/style.css" rel="stylesheet">
<link rel="stylesheet" href="css/main.css">
<link rel="stylesheet" href="css/util.css">
</head>
<body>
<div id="preloader"></div>
<?php include('header.php'); ?>
<!-- #header -->
<div class="limiter">
<div class="container-login100" style="background-image: url('img/security.jpeg');">
<div class="wrap-login100 p-l-110 p-r-110 p-t-62 p-b-33">
<?php
$uid = $_SESSION['log']['useruid'];
$qry = mysqli_query($con,"SELECT * FROM logtable WHERE useruid='$uid' ORDER BY id DESC");
$row = mysqli_fetch_array($qry);
if($row['status']!='Park')
{
?>
<form class="login100-form validate-form flex-sb flex-w" method="post" action="otp1.php">
<span class="login100-form-title p-b-53">
Verification
</span>
<div class="p-t-31 p-b-9">
<span class="txt1">
OTP-1 (While Parking)
</span>
</div>
<div class="wrap-input100 validate-input" data-validate = "OTP-1 is required">
<input class="input100" type="number" name="otp1" placeholder="Enter OTP1" required="required"/>
<span class="focus-input100"></span>
</div>
<div class="wrap-input100 validate-input" data-validate = "Car No. is required">
<input class="input100" type="text" name="car" placeholder="Enter Car No." required="required"/>
<span class="focus-input100"></span>
</div>
<div class="wrap-input100 validate-input" >
<input class="input100" type="datetime-local" name="datetimelocal" value="<?php echo date("Y-m-d\TH:i:s",time()); ?>" readonly/>
<span class="focus-input100"></span>
</div>
<div class="container-login100-form-btn m-t-17">
<button class="login100-form-btn">
Verify
</button>
</div>
</form>
<?php
}
else
{
?>
<form class="login100-form validate-form flex-sb flex-w" method="post" action="otp2.php">
<span class="login100-form-title p-b-53">
Verification
</span>
<div class="p-t-31 p-b-9">
<span class="txt1">
OTP-2 (While Leaving)
</span>
</div>
<div class="wrap-input100 validate-input" data-validate = "OTP-2 is required">
<input class="input100" type="number" name="otp2" placeholder="Enter OTP2" required="required"/>
<span class="focus-input100"></span>
</div>
<div class="wrap-input100 validate-input" data-validate = "Car No. is required">
<input class="input100" type="text" name="car" placeholder="Enter Car No." required="required"/>
<span class="focus-input100"></span>
</div>
<div class="wrap-input100 validate-input" >
<input class="input100" type="datetime-local" name="datetimelocal" value="<?php echo date("Y-m-d\TH:i:s",time()); ?>" readonly/>
<span class="focus-input100"></span>
</div>
<div class="container-login100-form-btn m-t-17">
<button class="login100-form-btn">
Verify
</button>
</div>
<?php
}
?>
</form>
</div>
</div>
</div>
<?php include('footer.php'); ?>
<!-- #footer -->
<a href="#" class="back-to-top"><i class="fa fa-chevron-up"></i></a>
<!-- Required JavaScript Libraries -->
<script src="lib/jquery/jquery.min.js"></script>
<script src="lib/bootstrap/js/bootstrap.min.js"></script>
<script src="lib/superfish/hoverIntent.js"></script>
<script src="lib/superfish/superfish.min.js"></script>
<script src="lib/morphext/morphext.min.js"></script>
<script src="lib/wow/wow.min.js"></script>
<script src="lib/stickyjs/sticky.js"></script>
<script src="lib/easing/easing.js"></script>
<!-- Template Specisifc Custom Javascript File -->
<script src="js/custom.js"></script>
<script src="contactform/contactform.js"></script>
</body>
</html>