Subversion Repositories cheapmusic

Rev

Blame | Last modification | View Log | RSS feed

<?php
if (isset($_GET["target"])) {

    $location = base64_decode($_GET["target"]);
    
    printHeader();
    printMessage($location);
    printFooter();
    
    echo '<script type="text/javascript">setTimeout( function() { location.href="' . $location . '"; }, 250);</script>';

    exit;

} else {

    header("Location: https://www.findcheapmusic.com/index.php");

    exit;

}

function printHeader() {
    echo '<!DOCTYPE html>';
    echo '<html lang="en">';
    echo '<head>';
    echo '    <title>Merchant Transfer Page</title>';
    echo '    <meta charset="UTF-8">';
    echo '    <meta name="viewport" content="width=device-width, initial-scale=1.0">';
    echo '    <style>';
    echo '    html, body { margin: 0; padding: 0; width: 100%; height: 100%; display: table; }';
    echo '    #content { display: table-cell; text-align: center; vertical-align: middle; }';
    echo '    </style>';
    echo '</head>';
    echo '<body>';
    echo '    <div id="content">';
}

function printMessage($location) {
    echo '<h1>Merchant Transfer Page</h1>';
    echo '<p>You are now leaving FindCheapMusic.com. <a href="' . $location . '">Press here</a> if page doesn\'t load.';
}

function printFooter() {
    echo '    </div>';
    echo '</body>';
    echo '</html>';
    echo '';
}
?>