home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2004 April
/
CMCD0404.ISO
/
Software
/
Freeware
/
Programare
/
groupoffice-com-2.01
/
modules
/
cms
/
stylesheet.php
< prev
next >
Wrap
PHP Script
|
2004-03-08
|
858b
|
26 lines
<?php
/*
Copyright Intermesh 2003
Author: Merijn Schering <mschering@intermesh.nl>
Version: 1.0 Release date: 08 July 2003
This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation; either version 2 of the License, or (at your
option) any later version.
*/
require("../../Group-Office.php");
require($GO_CONFIG->class_path.'cms.class.inc');
$cms = new cms();
if ($template = $cms->get_template($_REQUEST['template_id']))
{
header('Content-Type: text/css');
header('Content-Length: '.strlen($template['style'].$template['additional_style']));
header("Cache-Control: max-age=2592000");
header('Content-Disposition: inline; filename=stylesheet.css');
echo $template['style'].$template['additional_style'];
exit();
}
?>