blob: 2c8a1bc01af68f2931538446e2beb6788ad1e3f5 [file] [log] [blame]
<?php
if (isset($_SERVER['HTTP_ORIGIN']) && $_COOKIE['cookie'] != '') {
header("Access-Control-Allow-Origin: *");
header("Access-Control-Allow-Credentials: true");
$name = 'green-background.css';
} else {
$name = 'red-background.css';
}
$fp = fopen($name, 'rb');
header("Content-Type: text/css");
header("Content-Length: " . filesize($name));
fpassthru($fp);
exit;
?>