-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patherror.php
More file actions
187 lines (178 loc) · 6.81 KB
/
error.php
File metadata and controls
187 lines (178 loc) · 6.81 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
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
<?php
$status=$_GET['no'];
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Yummie Wheels</title>
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700;800;900&display=swap"
rel="stylesheet">
<link href='https://unpkg.com/boxicons@2.0.7/css/boxicons.min.css' rel='stylesheet'>
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<!-- MOBILE NAV -->
<div class="mb-nav">
<div class="mb-move-item"></div>
<div class="mb-nav-item">
<a href="./index.php">
<i class="bx bxs-home"></i>
</a>
</div>
<div class="mb-nav-item active">
<a href="./res.php">
<i class='bx bxs-wink-smile'></i>
</a>
</div>
<div class="mb-nav-item">
<a href="./order.php">
<i class='bx bxs-food-menu'></i>
</a>
</div>
<div class="mb-nav-item">
<a href="./login.php">
<i class='bx bxs-comment-detail'></i>
</a>
</div>
</div>
<!-- END MOBILE NAV -->
<!-- BACK TO TOP BTN -->
<a href="#" class="back-to-top">
<i class="bx bxs-to-top"></i>
</a>
<!-- END BACK TO TOP BTN -->
<!-- TOP NAVIGATION -->
<div class="nav">
<div class="menu-wrap">
<a href="./index.php">
<div class="logo">
Yummie Wheels
</div>
</a>
<div class="menu h-xs">
<a href="./index.php">
<div class="menu-item">
Home
</div>
</a>
<a href="./res.php">
<div class="menu-item">
Restaurants
</div>
</a>
<a href="./order.php">
<div class="menu-item">
Orders
</div>
</a>
<a href="./login.php">
<div class="menu-item active">
Login
</div>
</a>
</div>
<div class="right-menu">
<div class="cart-btn">
<i class='bx bx-cart-alt'></i>
</div>
</div>
</div>
</div>
<section class="card-lo">
<div class="card-login" style="text-align: center;">
<div style="border-radius:200px; height:200px; width:200px; background: #F8FAF5; margin:0 auto;">
<?php
if($status==1){
echo<<<success
<i class="checkmark">✓</i>
</div>
<h1 style="color: #88B04B;font-weight: 900;font-size: 40px;margin-bottom: 10px;">Success</h1>
<p style="color: #404F5E;font-size:20px;margin: 0;">User Successfully Registered<br/>You can now login via the credentials</p>
success;
header( "refresh:5;url=./login.php" );
}
elseif($status==0){
echo<<<fail
<i class="checkmark" style="color: #ff3333;">☓</i>
</div>
<h1 style="color: #ff3333;font-weight: 900;font-size: 40px;margin-bottom: 10px;">Error</h1>
<p style="color: #404F5E;font-size:20px;margin: 0;">User already Exists<br/>Try registering with new email</p>
fail;
header( "refresh:5;url=./register.php" );
}
elseif($status==2){
echo<<<invalid
<i class="checkmark" style="color: #ff3333;">☓</i>
</div>
<h1 style="color: #ff3333;font-weight: 900;font-size: 40px;margin-bottom: 10px;">Error</h1>
<p style="color: #404F5E;font-size:20px;margin: 0;">Invalid Username or Password<br/>Try Using the right one</p>
invalid;
header( "refresh:3;url=./login.php" );
}
elseif($status==3){
echo<<<invalid
<i class="checkmark" style="color: #ff3333;">☓</i>
</div>
<h1 style="color: #ff3333;font-weight: 900;font-size: 40px;margin-bottom: 10px;">Error</h1>
<p style="color: #404F5E;font-size:20px;margin: 0;">Please Login First<br/>To Orders From our Website Please login first</p>
invalid;
header( "refresh:3;url=./login.php" );
}
?>
</div>
</section>
<section class="footer bg-img" style="background-color: var(--third-color);">
<div class="container">
<div class="row">
<div class="col-6 col-xs-12">
<h1>
Yummie Wheels
</h1>
<br>
<p>Yummie Wheels is a food delivery service that brings delicious meals to your doorsteps in minutes.Whatever you are craving for pizza,pasta ,biriyani.</p>
<br>
<p>Email: <a href="mailto:contact@yummie.com">contact@yummie.com</a></p>
<p>Phone: <a href="tel:+911234567890">+911234567890</a></p>
<p>Website: yummiefood.com</p>
</div>
<div class="col-2 col-xs-12">
<h1>
About us
</h1>
<br>
<p>
<a href="#">
Privacy policy
</a>
</p>
<p>
<a href="#">
Contact
</a>
</p>
<p>
<a href="#">
About
</a>
</p>
</div>
<div class="col-4 col-xs-12">
<h1>
Subscribe & media
</h1>
<br>
<p>Subscribe For official infromation and Discounts and more</p>
<div class="input-group" style="background-color: var(--secondary-color);">
<input required="text" placeholder="Enter your email">
<button onClick="window.location.href='./login.php';">
Subscribe
</button>
</div>
</div>
</div>
</div>
</section>
</body>