Subversion Repositories PHPX

Rev

Blame | Last modification | View Log | RSS feed

1
<?php

$file = $_GET['src'];

header('Last-Modified: ' . gmdate('D, d M Y H:i:s', @filemtime($file)) . ' GMT');

/* Cached resource expires in HTTP/1.1 caches immediately after last retrieval */
header('Cache-Control: max-age=0, s-maxage=0, must-revalidate, proxy-revalidate');

/* Cached resource expires in HTTP/1.0 caches immediately after last retrieval */
header('Expires: ' . gmdate('D, d M Y H:i:s', time() /*+ 86400*/) . ' GMT');

header('Content-Type: text/plain; charset=UTF-8');

require __DIR__ . '/LEAST.php';
$least = new de\pointedears\css\least\LEAST();
/*echo*/ $least->parse_file($file);