blob: 59f43f29e852ddcc09f969f899e8f3e12abaa848 [file] [log] [blame]
<?php
$cookieName = $_GET['cookie-name'];
$cookieValue = $_GET['cookie-value'];
$destination = $_GET['destination'];
header("Content-Type: text/html");
header("Cache-Control: no-store");
header("Set-Cookie: ${cookieName}=${cookieValue}; path=/");
$fp = fopen($destination, 'rb');
header("Content-Length: " . filesize($destination));
fpassthru($fp);
exit;
?>