-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathAddMoney.php
336 lines (314 loc) · 12.1 KB
/
AddMoney.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
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
<?php
include 'db.php';
include('phpqrcode/qrlib.php');
session_start();
$rope=0;
if(!$_SESSION['user'])
{
header('location: Login.php');
}
else
{
$k=$_SESSION['user'];
$sql="select * from user where email='$k'";
$val=$db->query($sql);
while($row = mysqli_fetch_array($val))
{
$rope=$row['vehicle'];
}
if(isset($_POST['send']))
{
$name=$_POST['name1'];
$card=$_POST['card'];
$loc=$_POST['loc'];
$cvv=$_POST['cvv'];
$exp=$_POST['exp'];
$bal=$_POST['bal'];
$sql2="select * from fakecard where card='$card' and cvv='$cvv' and exp='$exp'";
$val1=$db->query($sql2);
$text1='';
$folder="images/";
if($total = $db->query($sql2))
{
//echo "<script>alert('work')</script>";
$total1=mysqli_num_rows($total);
if($total1==1)
{
$sql3="insert into pays(balance,location,vehicle) values('$bal','$loc','$rope')";
// echo $sql3;
$val341=$db->query($sql3);
if($val341==true)
{
echo "<script>alert('Added');</script>";
}
else
{
echo "<script>alert('Failure');</script>";
}
$sql4="select * from pays ORDER BY tid desc";
$val34=$db->query($sql4);
//echo $sql4;
$unique=0;
while($rowk = mysqli_fetch_array($val34))
{
$unique=$rowk['tid'];
//echo $rowk['tid'];
//echo "work";
break;
}
$file_name=$unique.".png";
$text=(string)$bal."\n";
$text.=(string)$rope."\n";
$text.=(string)$loc."\n";
$text.=(string)$unique."\n";
$file_name=$folder.$file_name;
QRcode::png($text,$file_name);
header("location: Show.php?name='$unique'");
}
else
{
echo '<script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js">
</script>';
echo '<script type="text/javascript">';
echo 'setTimeout(function () { swal("Invalid Credentials!","Record Not Found!","warning");';
echo '}, 100);</script>';
}
}
else
{
echo '<script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js">
</script>';
echo '<script type="text/javascript">';
echo 'setTimeout(function () { swal("Invalid Credentials!","Record Not Found!","warning");';
echo '}, 100);</script>';
}
}
}
?>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>
Smart Act:Wallet
</title>
<style>
body {
padding: 0px;
margin: 0px;
font-family: "Quicksand", sans-serif;
font-weight: bolder;
background-position: center;
background-size: cover;
background-repeat: no-repeat;
}
.in {
width: 150px;
height: 34px;
padding: 3px;
outline-offset: 0;
outline: 0;
font-family: "Quicksand", sans-serif;
font-weight: bolder;
font-size: 14px;
border: 2px solid #000;
}
.in2{
width: 150px;
height: 34px;
padding: 3px;
outline-offset: 0;
outline: 0;
font-family: "Quicksand", sans-serif;
font-weight: bolder;
font-size: 14px;
border: 2px solid #000;
}
.in3
{
width: 114px;
height: 34px;
padding: 3px;
outline-offset: 0;
outline: 0;
font-family: "Quicksand", sans-serif;
font-weight: bolder;
font-size: 14px;
border: 2px solid #000;
}
.io {
width: 250px;
height: 34px;
outline: 0;
font-family: "Quicksand", sans-serif;
font-weight: bolder;
font-size: 14px;
background: #66b30a;
border: 0px;
}
.in:focus {
border-color: #3498db;
}
.subdivision {
margin-top: 100px;
background: rgba(0, 0, 0, 0.7);
width: 400px;
height: 450px;
}
.pics {
margin-top: -100px;
}
@media screen and (max-width: 769px) {
.subdivision {
width: auto;
}
.in .io {
width: auto;
}
.inside {
background: #f1c40f;
width: 200px;
height: 30px;
opacity: 0.7;
}
.content {
font-family: "Quicksand", sans-serif;
font-weight: bolder;
font-size: 14px;
margin-top: -10px;
border: 1px solid white;
}
.content:hover {
font-family: "Quicksand", sans-serif;
font-weight: bolder;
font-size: 14px;
margin-top: -10px;
border: 1px solid #3498db;
}
.serv {
text-decoration: none;
color: black;
cursor: pointer;
border: 1px solid black;
}
.serv:hover {
text-decoration: none;
color: white;
}
.cold {
font-family: "Quicksand", sans-serif;
font-weight: bolder;
font-size: 14px;
margin-top: -10px;
line-height: 2;
color: white;
}
}
.content {
font-family: "Quicksand", sans-serif;
font-weight: bolder;
font-size: 14px;
margin-top: -10px;
border: 1px solid white;
}
.content:hover {
font-family: "Quicksand", sans-serif;
font-weight: bolder;
font-size: 14px;
margin-top: -10px;
border: 1px solid #3498db;
}
.serv {
text-decoration: none;
color: black;
cursor: pointer;
border: 1px solid black;
}
.serv:hover {
text-decoration: none;
color: white;
}
.cold {
font-family: "Quicksand", sans-serif;
font-weight: bolder;
font-size: 14px;
margin-top: -10px;
line-height: 2;
color: white;
}
.inside {
background: #f1c40f;
width: 200px;
height: 30px;
opacity: 0.7;
}
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
margin: 0;
}
.io:hover
{
color:white;
}
@media screen and (min-width: 769px) {
.res
{
width:auto;
}
}
.res:focus
{
border:1px solid #3498db;
}
</style>
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous">
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
</head>
<body>
<div class="container">
<form method="post">
<center>
<div class="subdivision"><br>
<img src="images/avatar1.png" width="120px" class="pics" align="left">
<h2 style="font-family:'Quicksand',sans-serif; font-size:22px;font-weight: bolder;color:white;">Smart Found</h2>
<h3 style="font-family: 'Quicksand', sans-serif;color:white;font-size: 18px;font-weight: bolder;">Enter Balance to Add : <input type="text" placeholder="Enter Balance $" style="background: none;border: none;border-bottom:2px solid black;color:white;" class="in3" name="bal"></h3>
<br>
<h3 style="font-family: 'Quicksand', sans-serif;color:white;font-size: 18px;font-weight: bolder;margin-top:-20px;"> <input type="text" placeholder="Enter Toll Tax Name" style="background: none;border: none;border-bottom:2px solid black;color:white;width:300px;" class="in3" name="loc"></h3>
<div>
<?php while($row = mysqli_fetch_array($val)):?>
<table class="cold">
<tr>
<th colspan="3"></th>
</tr>
<tr>
<td>Name</td>
<td> : </td>
<td><?php echo $row['firstname']?> <?php echo $row['lastname']?></td>
</tr>
<tr>
<td>Vehicle</td>
<td> : </td>
<td><?php echo $row['vehicle']?></td>
</tr>
</table>
<?php endwhile ?>
</div>
<br>
<input type="number" class="in res" style="width: 300px;" placeholder="Enter Credit/Debit Card No." name="card">
<br><br>
<input type="text" class="in2 res" res placeholder="Enter Card Holder Name" style="width: 300px;" name="name1"> <br><br>
<input type="password" class="in2 res" placeholder="Enter CVV" maxlength="3" required style="width:150px;" name="cvv">
<input type="text" class="in2 res" placeholder="MM/YY Expiry Date" maxlength="5" required style="width:150px;" name="exp">
<br><br>
<button class="io res" name="send">Pay Now</button>
</div>
</center>
</form>
</div>
</body>
</html>