Subversion Repositories cheapmusic

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1 - 1
<?php
2
if (isset($_GET["target"])) {
3
 
4
    $location = base64_decode($_GET["target"]);
5
 
6
    printHeader();
7
    printMessage($location);
8
    printFooter();
9
 
10
    echo '<script type="text/javascript">setTimeout( function() { location.href="' . $location . '"; }, 250);</script>';
11
 
12
    exit;
13
 
14
} else {
15
 
16
    header("Location: https://www.findcheapmusic.com/index.php");
17
 
18
    exit;
19
 
20
}
21
 
22
function printHeader() {
23
    echo '<!DOCTYPE html>';
24
    echo '<html lang="en">';
25
    echo '<head>';
26
    echo '    <title>Merchant Transfer Page</title>';
27
    echo '    <meta charset="UTF-8">';
28
    echo '    <meta name="viewport" content="width=device-width, initial-scale=1.0">';
29
    echo '    <style>';
30
    echo '    html, body { margin: 0; padding: 0; width: 100%; height: 100%; display: table; }';
31
    echo '    #content { display: table-cell; text-align: center; vertical-align: middle; }';
32
    echo '    </style>';
33
    echo '</head>';
34
    echo '<body>';
35
    echo '    <div id="content">';
36
}
37
 
38
function printMessage($location) {
39
    echo '<h1>Merchant Transfer Page</h1>';
40
    echo '<p>You are now leaving FindCheapMusic.com. <a href="' . $location . '">Press here</a> if page doesn\'t load.';
41
}
42
 
43
function printFooter() {
44
    echo '    </div>';
45
    echo '</body>';
46
    echo '</html>';
47
    echo '';
48
}
49
?>