<?php
if(!(array_key_exists('f',$_GET) && ($_GET['f']) != "" && is_file(dirname(__FILE__)."/".$_GET['f'])))
{
	header("HTTP/1.0 404 Not Found");
	exit(0);
}
header('Content-type: text/css');
ob_start("compress");
function compress($buffer) {
	/* remove comments */
	$buffer = preg_replace('!/\*[^*]*\*+([^/][^*]*\*+)*/!', '', $buffer);
	/* remove tabs, spaces, newlines, etc. */
	$buffer = str_replace(array("\r\n", "\r", "\n", "\t", '  ', '    ', '    '), '', $buffer);
	return $buffer;
}
if($_GET['f'] == 'turtleish.com.css')
{
	include(dirname(__FILE__)."/reset.css");
	include(dirname(__FILE__)."/fancybox.css");
	include(dirname(__FILE__)."/turtleish.com.css");
} else if($_GET['f'] == 'style.css')
{
	include(dirname(__FILE__)."/reset.css");
	include(dirname(__FILE__)."/style.css");
	include(dirname(__FILE__)."/fancybox.css");
} else {
	include(dirname(__FILE__)."/".$_GET['f']);
}
ob_end_flush();
?>

