-
Notifications
You must be signed in to change notification settings - Fork 5
/
index.php
214 lines (182 loc) · 7.7 KB
/
index.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
<!DOCTYPE html>
<?php
session_start();
if(isset($_COOKIE['cookie_name']))
{
header('Location: index2.html');
}
if (isset($_POST['loggedin'])) {
include 'server.php';
$eml=$_POST['eml'];
$password=$_POST['pass'];
$sql= "SELECT * FROM myusers WHERE (email='$eml' AND passwrd='$password')";
$result=mysqli_query($conn,$sql);
if(mysqli_num_rows($result)>0)
{
if(!empty($_POST["remember"]))
{
$cookie_name = $_POST["eml"];
$cookie_value = $_POST["pass"];
echo $cookie_name.$cookie_value;
setcookie('cookie_name', $cookie_name, time() + (86400 * 30)); // 86400 = 1 day
}
header('Location: index2.html');
}
}
?>
<html>
<head>
<title>Kuet Restaurant</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!--===============================================================================================-->
<link rel="icon" type="image/png" href="images/icons/favicon.ico"/>
<!--===============================================================================================-->
<link rel="stylesheet" type="text/css" href="vendors">
<!--===============================================================================================-->
<link rel="stylesheet" type="text/css" href="fonts/font-awesome-4.7.0/css/font-awesome.min.css">
<!--===============================================================================================-->
<link rel="stylesheet" type="text/css" href="fonts/iconic/css/material-design-iconic-font.min.css">
<!--===============================================================================================-->
<link rel="stylesheet" type="text/css" href="vendors/animate/animate.css">
<!--===============================================================================================-->
<link rel="stylesheet" type="text/css" href="vendors/css-hamburgers/hamburgers.min.css">
<!--===============================================================================================-->
<link rel="stylesheet" type="text/css" href="vendors/animsition/css/animsition.min.css">
<!--===============================================================================================-->
<link rel="stylesheet" type="text/css" href="vendors/select2/select2.min.css">
<!--===============================================================================================-->
<link rel="stylesheet" type="text/css" href="vendors/daterangepicker/daterangepicker.css">
<!--===============================================================================================-->
<link rel="stylesheet" type="text/css" href="css/util3.css">
<link rel="stylesheet" type="text/css" href="css/main3.css">
<style>
body {
}
#myVideo {
position: fixed;
right: 0;
bottom: 0;
min-width: 100%;
min-height: 100%;
}
</style>
</head>
<body>
<!-- <div class="container">
<form method="post" action="index.php">
<h1> <i> <b> Welcome Here! </h1><body>
<marquee width="40%" height="90%">Yes! We are Open.
</marquee>
<div class="form-group">
<label for="eml">Email</label>
<input type="email" class="form-control" id="eml" name="eml">
</div>
<div class="form-group">
<label for="pass">Password</label>
<input type="password" class="form-control" id="pass" name="pass">
</div>
<div class="form-group form-check">
<input type="checkbox" class="form-check-input" id="Check1" checked="checked" name="remember">
<label class="form-check-label" for="Check1">Remember Me</label>
</div>
<button type="submit" class="btn btn-primary" name="loggedin">Submit</button>
</form>
<p>New User?</p>
<p><a href="regform.html">Click here to register</a></p>
</div>-->
<div class="limiter">
<div class="container-login100" style="background-image: url('https://images.unsplash.com/photo-1466978913421-dad2ebd01d17?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=667&q=80');">
<div class="wrap-login100 p-l-55 p-r-55 p-t-65 p-b-54">
<form class="login100-form validate-form" method="POST" action="index.php">
<span class="login100-form-title p-b-49">
Login
</span>
<div class="wrap-input100 validate-input m-b-23" data-validate = "Username is reauired">
<span class="label-input100">Email</span>
<input class="input100" type="email" name="eml" id="eml" placeholder="Type your email">
<span class="focus-input100" data-symbol=""></span>
</div>
<div class="wrap-input100 validate-input" data-validate="Password is required">
<span class="label-input100">Password</span>
<input class="input100" type="password" name="pass" id="pass" placeholder="Type your password">
<span class="focus-input100" data-symbol=""></span>
</div>
<div class="text-left p-t-3 p-b-12">
<input type="checkbox" class="form-check-input" id="Check1" checked="checked" name="remember">
<label class="form-check-label" for="Check1">Remember Me</label>
</div>
<!-- <div class="text-right p-t-8 p-b-31">
<a href="#">
Forgot password?
</a>
</div> -->
<div class="container-login100-form-btn">
<div class="wrap-login100-form-btn">
<div class="login100-form-bgbtn"></div>
<!-- <button class="login100-form-btn" type="submit">
Login
</button> -->
<button type="submit" class="login100-form-btn" name="loggedin">Login</button>
</div>
</div>
<div class="txt1 text-center p-t-54 p-b-20">
<span>
Or Sign Up Using
</span>
</div>
<div class="flex-c-m">
<a href="#" class="login100-social-item bg1">
<i class="fa fa-facebook"></i>
</a>
<a href="#" class="login100-social-item bg2">
<i class="fa fa-twitter"></i>
</a>
<a href="#" class="login100-social-item bg3">
<i class="fa fa-google"></i>
</a>
</div>
<div class="flex-col-c p-t-155">
<span class="txt1 p-b-17">
Or Sign Up Using
</span>
<a href="regform.html" class="txt2">
Sign Up
</a>
</div>
</form>
</div>
</div>
</div>
<div id="dropDownSelect1"></div>
<!--===============================================================================================-->
<script src="vendors/jquery/jquery-3.2.1.min.js"></script>
<!--===============================================================================================-->
<script src="vendors/animsition/js/animsition.min.js"></script>
<!--===============================================================================================-->
<script src="vendors/bootstrap/js/popper.js"></script>
<script src="vendors/bootstrap/js/bootstrap.min.js"></script>
<!--===============================================================================================-->
<script src="vendors/select2/select2.min.js"></script>
<!--===============================================================================================-->
<script src="vendors/daterangepicker/moment.min.js"></script>
<script src="vendors/daterangepicker/daterangepicker.js"></script>
<!--===============================================================================================-->
<script src="vendors/countdowntime/countdowntime.js"></script>
<!--===============================================================================================-->
<script src="js/main3.js"></script>
<script>
var video = document.getElementById("myVideo");
var btn = document.getElementById("myBtn");
function myFunction() {
if (video.paused) {
video.play();
btn.innerHTML = "Pause";
} else {
video.pause();
btn.innerHTML = "Play";
}
}
</script>
</body>
</html>