-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpayment-failed.php
66 lines (61 loc) · 2.16 KB
/
payment-failed.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
<?php
session_start();
if (!isset($_SESSION['payment'])) {
header('Location:/med-lab-reports/');
return;
}
require 'db/connect_db.php';
$sql='SELECT name FROM auth, users WHERE auth.id=users.uid AND auth.id=:id LIMIT 1';
$query=$db->prepare($sql);
$query->execute(array(':id'=>$_SESSION['authid']));
$row=$query->fetch(PDO::FETCH_ASSOC);
?>
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/styles.css">
<link rel="icon" type="image/ico" href="imgs/favicon/favicon.ico">
<link rel="apple-touch-icon" sizes="180x180" href="imgs/favicon/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="imgs/favicon/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="imgs/favicon/favicon-16x16.png">
<link rel="manifest" href="site.webmanifest">
<title>Payment Failed</title>
</head>
<body>
<main class="container">
<div class="row m-3">
<div class="col-md-6 offset-md-3">
<div class="row">
<div class="col-1">
<a href="https://med-lab-reports.great-site.net/">
<img src="imgs/icons/logo.png" width="40" height="40" alt="logo"></a>
</div>
<div class="col">
<h3 class="text-center font-monospace">Med Lab Reports</h3>
</div>
</div>
</div>
</div>
<div class="row m-3">
<div class="col-md-6 offset-md-3">
<div class="card text-center">
<div class="card-body">
<h5>Sorry <?=htmlentities($row['name']); ?>!</h5>
<br>
<h5>Your Payment is Failed with <?=htmlentities($_SESSION['payment']); ?></h5>
<img src="imgs/icons/failed.jpg" width="450" height="450" alt="failed-icon">
<a href="dashboard.php" class="btn btn-info my-6">Return to Dashboard</a>
</div>
</div>
</div>
</div>
</main>
<?php
header('refresh:15;url=dashboard.php');
?>
</body>
</html>