"theme-base.css", "theme-medium.css"); if (isset($config['css'])) { $cssfiles += (array) $config['css']; } foreach($cssfiles as $filename) { $path = dirname(dirname(__FILE__)).'/styles/'.$filename; $CSS[$filename] = @filemtime($path); } if (isset($shortname) && $shortname) { header("Link: <$shorturl>; rel=shorturl"); } if ($config["cache"]) { if (is_numeric($config["cache"])) { $timestamp = $config["cache"]; } else { $timestamp = filemtime($_SERVER["DOCUMENT_ROOT"] . "/" .$_SERVER["BASE_PAGE"]); } $tsstring = gmdate("D, d M Y H:i:s ", $timestamp) . "GMT"; if (isset($_SERVER["HTTP_IF_MODIFIED_SINCE"]) && $_SERVER["HTTP_IF_MODIFIED_SINCE"] == $tsstring) { header("HTTP/1.1 304 Not Modified"); exit; } header("Last-Modified: " . $tsstring); } ?>