Files
FHC-Core/skin/style.css.php
T
Andreas Österreicher b52b0ce2f0
2008-04-30 11:44:38 +00:00

25 lines
771 B
PHP

<?php
header("Cache-Control: no-cache");
header("Cache-Control: post-check=0, pre-check=0",false);
header("Expires Mon, 26 Jul 1997 05:00:00 GMT");
header("Pragma: no-cache");
if (isset($_GET['path']))
$path=$_GET['path'];
else
$path='../';
require ($path.'cis/config.inc.php');
//setcookie('stylesheet', DEFAULT_STYLE);
//Name des Stylesheets darf nur buchstaben von A-Z enthalten (ohne umlaute)
if (isset($_COOKIE['stylesheet']) && preg_match('/^[a-zA-Z]+$/', $_COOKIE['stylesheet']))
{
$stylesheet=$_COOKIE['stylesheet'];
}
else
$stylesheet=DEFAULT_STYLE;
//setcookie('stylesheet', DEFAULT_STYLE);
header("Content-Type: text/css");
//echo $_COOKIE['stylesheet'];
readfile ($path.'skin/styles/'.$stylesheet.'.css');
?>