-
Notifications
You must be signed in to change notification settings - Fork 2
/
login.php
128 lines (108 loc) · 4.44 KB
/
login.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
<!DOCTYPE html>
<?php
ob_start();
?>
<html>
<meta http-equiv="content-type" content="text/html;charset=UTF-8"/>
<?php
include_once("includes/database.php");
$city = "Mumbai";
?>
<head>
<meta name="viewport" id="customViewPort" content="width=device-width,initial-scale=1,user-scalable=0">
<link rel="icon" type="image/png" href="images/favicon.png"/>
<meta name="format-detection" content="telephone=no">
<meta charset="utf-8">
<title>Best restaurants in <?php echo $city; ?> | Book a Table online @ Fine Dine</title>
<meta name="description"
content="Fine Dine offers online restaurant reservation with a guaranteed deal in Mumbai. Find reviews and expert opinions on the top and best restaurants and bars in Mumbai"/>
<link rel="canonical" href="mumbai.html"/>
<link href="assets/css/bootstrap.css" rel="stylesheet" type="text/css">
<link media="all" type="text/css" rel="stylesheet" href="plugins/intl-tel-input/build/css/intlTelInput.css">
<link media="all" type="text/css" rel="stylesheet" href="build/web/groot/css/base208d.css?id=ff0dc9fde3cfa214af11">
<link media="all" type="text/css" rel="stylesheet" href="build/web/groot/css/homee7fa.css?id=7ccd153e9afc40322ce3">
<script src="plugins/jquery/jquery-3.1.1.min.js"></script>
<script src="plugins/jquery-ui-1.12.1/jquery-ui.min.js"></script>
<link rel="search" href="opensearchdescription.xml" type="application/opensearchdescription+xml"
title="eazydiner.com"/>
<script defer="defer" src="build/web/groot/js/city9a24.js?id=e284c8bb3f94a3acd44f"></script>
<script>
var IMAGE_URL = 'https://d4t7t8y8xqo0t.cloudfront.net/';
</script>
</head>
<body>
<?php
include_once("includes/header.php");
include_once("includes/database.php");
$flag= 0;
if(isset($_POST['submit'])){
extract($_POST);
$query = "SELECT * FROM users WHERE (email = '$username' or mobile = '$username') and password = '$password'";
// echo $query;
$result = mysqli_query($connection, $query);
if(mysqli_num_rows($result) == 1){
$row = mysqli_fetch_assoc($result);
extract($row);
session_start();
$_SESSION['username'] = $username;
$_SESSION['user_id'] = $id;
header("Location: mumbai.php");
}else{
$flag = 1;
}
}
?>
<div class="container">
<div class="row">
<div class="col-md-6 col-md-offset-3 margin-t-20">
<?php
if($flag==1){
?>
<div class="alert alert-danger">
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×
</button>
<strong>Invalid</strong>Username / Password
</div>
<?php
}
?>
<form action="" method="POST" role="form">
<div class="form-group">
<label for="username">Username</label>
<input type="text" class="form-control" id="username" name ="username" placeholder="Enter your username">
</div>
<div class="form-group">
<label for="password">Password</label>
<input type="password" class="form-control" id="password" name ="password" placeholder="Enter your Password">
</div>
<button type="submit" class="button" name="submit">Login</button>
</form>
</div>
</div>
</div>
<div class="margin-t-60 bg-white shadow">
</div>
<div class="bg-white">
<div class="container padding-v-20">
<div class="grid footer flex flex-between">
<div class="">
<div class="text-bold padding-t-20 padding-b-10 grey">Created By</div>
<p class="red">Arjun Parmani, Aakash Patil, Priyanka Patil & Yukta Peswani</p>
</div>
<div class="">
<div class="text-bold padding-t-20 padding-b-10 grey">Group Guide:</div>
<p class="grey">Dashrath Kale</p>
</div>
</div>
<hr class="hr margin-t-10">
<div class="grid margin-t-30">
<div class="w-6-12">
<div class="flex"><span class="ico"><img src="images/sticky_logo.png" alt="Fine O Dine"></span><span
class="padding-l-10"> © Fine O Dine Private Limited.</span></div>
</div>
</div>
</div>
</div>
<script src="assets/js/bootstrap.min.js"></script>
</body>
</html>