-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patherror.php
More file actions
143 lines (131 loc) · 5.05 KB
/
Copy patherror.php
File metadata and controls
143 lines (131 loc) · 5.05 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
<?php
session_start();
include "auth.php";
if(!isset($_GET["pid"]) || !isset($_GET["user"])){
header("Location: $base");
}
include"./utils/DatabaseManager.php";
$db = new DatabaseManager($con_settings);
$res = $db->query("SELECT * FROM products WHERE id=?", "i", [intval($_GET["pid"])]);
$image = $res[0]["image"]
?>
<!DOCTYPE html>
<html lang="en">
<head>
<script src="https://cdn.rawgit.com/adriancooney/console.image/c9e6d4fd/console.image.min.js"></script>
<script>
console.image("https://todo56.dev/assets/images/stop.png");
console.info("Changing the javascript or html of this site could fuck up your purchase. Unless you know what you're doing just close this.");
</script>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="">
<title><?php echo $shop_name; ?></title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
<script
src="https://www.paypal.com/sdk/js?client-id=<?php echo ($sandbox === true) ? $paypal_app_client_id_sandbox : $paypal_app_client_id;?>">
</script>
<!-- Bootstrap core CSS -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@sweetalert2/theme-dark@3/dark.css">
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@9/dist/sweetalert2.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.bundle.min.js" integrity="sha384-6khuMg9gaYr5AxOqhkVIODVIvm9ynTT5J4V1cfthmT+emCG6yVmEZsRHdxlotUnm" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js" integrity="sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6" crossorigin="anonymous"></script>
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
<!-- Custom styles for this template -->
<!-- <link href="./assets/css/style.css" rel="stylesheet"> -->
<style type="text/css">
body {
padding-top: 56px;
background-color: #151618!important;
color: white !important;
height: 100%;
}
nav, footer {
background-color: #181a1b!important;
}
.login-form {
width: 340px;
margin: 50px auto;
}
.login-form form {
margin-bottom: 15px;
background-color: #181a1b!important;
box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.3);
padding: 30px;
}
.login-form h2 {
margin: 0 0 15px;
}
.form-control, .btn {
min-height: 38px;
border-radius: 2px;
}
.btn {
font-size: 15px;
font-weight: bold;
}
.fade-out {
opacity: 0;
animation-name: fadeInOpacity;
animation-iteration-count: 1;
animation-timing-function: ease-in;
animation-duration: 1s;
}
.fade-in {
opacity: 1;
animation-name: fadeOutOpacity;
animation-iteration-count: 1;
animation-timing-function: ease-in;
animation-duration: 1s;
}
@keyframes fadeInOpacity {
0% {
opacity: 1;
}
100% {
opacity: 0;
}
}
@keyframes fadeOutOpacity {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}
</style>
</head>
<body class="d-flex flex-column sticky-footer-wrapper" style="position: relative;">
<div class="login-form text-center" style="position: absolute; top:calc(50% - 15px);
left:calc(50% - 50px);
height:30px;
width:200px;">
<div id="load"></div>
</div>
<!-- Navigation -->
<?php require("./assets/partials/navbar.php"); ?>
<div id="body" >
<!-- Page Content -->
<div class="login-form">
<div class="card bg-danger" style="">
<div class="card-body">
<h5 class="card-title"><?php echo $res[0]["name"];?></h5>
<b>$<?php echo $res[0]["price"]?></b>
<p class="card-text">There has been an error. This might be for many reasons: the JS coda was altered on the buy site, your paypal account is invalid or an invalid request was attempted. If this issue persist please contact us.</p>
<a class="btn btn-success" href="<?php echo $base; ?>">Go Home</a>
</div>
</div>
</div>
<!-- /.container -->
<!-- Footer -->
<footer class="py-5 bg-dark " style="background-color: #181a1b!important;">
<div class="container">
<p class="m-0 text-center text-white">Copyright © <?php echo $shop_name; ?> 2020</p>
</div>
<!-- /.container -->
</footer>
</div>
</body>
</html>