2 |
- |
1 |
<?php
|
|
|
2 |
if ($_SERVER["SERVER_NAME"] == "www.findcheapmusic.com") {
|
|
|
3 |
header("Strict-Transport-Security: max-age=31536000; includeSubDomains; preload");
|
|
|
4 |
header("X-Content-Type-Options: nosniff");
|
|
|
5 |
header("X-XSS-Protection: 1; mode=block");
|
|
|
6 |
header("Access-Control-Allow-Origin: *");
|
|
|
7 |
header("Referrer-Policy: no-referrer");
|
|
|
8 |
header("X-Frame-Options: SAMEORIGIN");
|
|
|
9 |
header("Set-Cookie: ^(.*)$ $1;HttpOnly;Secure");
|
|
|
10 |
header("Content-Security-Policy: default-src 'none'; img-src 'self'; script-src 'unsafe-inline'; style-src 'unsafe-inline';frame-ancestors 'self'");
|
|
|
11 |
}
|
|
|
12 |
|
|
|
13 |
if (isset($_GET["target"])) {
|
|
|
14 |
|
|
|
15 |
$location = base64_decode($_GET["target"]);
|
|
|
16 |
|
|
|
17 |
printHeader();
|
|
|
18 |
printMessage($location);
|
|
|
19 |
printFooter();
|
|
|
20 |
|
|
|
21 |
echo '<script type="text/javascript">setTimeout( function() { location.href="' . $location . '"; }, 250);</script>';
|
|
|
22 |
|
|
|
23 |
exit;
|
|
|
24 |
|
|
|
25 |
} else {
|
|
|
26 |
|
|
|
27 |
header("Location: https://www.findcheapmusic.com/index.php");
|
|
|
28 |
|
|
|
29 |
exit;
|
|
|
30 |
|
|
|
31 |
}
|
|
|
32 |
|
|
|
33 |
function printHeader() {
|
|
|
34 |
echo '<!DOCTYPE html>';
|
|
|
35 |
echo '<html lang="en">';
|
|
|
36 |
echo '<head>';
|
|
|
37 |
echo ' <title>Merchant Transfer Page</title>';
|
|
|
38 |
echo ' <meta charset="UTF-8">';
|
|
|
39 |
echo ' <meta name="viewport" content="width=device-width, initial-scale=1.0">';
|
|
|
40 |
echo ' <style>';
|
|
|
41 |
echo ' html, body { margin: 0; padding: 0; width: 100%; height: 100%; display: table; }';
|
|
|
42 |
echo ' #content { display: table-cell; text-align: center; vertical-align: middle; }';
|
|
|
43 |
echo ' </style>';
|
|
|
44 |
echo '</head>';
|
|
|
45 |
echo '<body>';
|
|
|
46 |
echo ' <div id="content">';
|
|
|
47 |
}
|
|
|
48 |
|
|
|
49 |
function printMessage($location) {
|
|
|
50 |
echo '<h1>Merchant Transfer Page</h1>';
|
|
|
51 |
echo '<p>You are now leaving FindCheapMusic.com. <a href="' . $location . '">Press here</a> if page doesn\'t load.';
|
|
|
52 |
}
|
|
|
53 |
|
|
|
54 |
function printFooter() {
|
|
|
55 |
echo ' </div>';
|
|
|
56 |
echo '</body>';
|
|
|
57 |
echo '</html>';
|
|
|
58 |
echo '';
|
|
|
59 |
}
|
|
|
60 |
?>
|