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 >
PHP Script  |  2004-03-08  |  858b  |  26 lines

  1. <?php
  2. /*
  3. Copyright Intermesh 2003
  4. Author: Merijn Schering <mschering@intermesh.nl>
  5. Version: 1.0 Release date: 08 July 2003
  6.  
  7. This program is free software; you can redistribute it and/or modify it
  8. under the terms of the GNU General Public License as published by the
  9. Free Software Foundation; either version 2 of the License, or (at your
  10. option) any later version.
  11. */
  12. require("../../Group-Office.php");
  13.  
  14. require($GO_CONFIG->class_path.'cms.class.inc');
  15. $cms = new cms();
  16.  
  17. if ($template = $cms->get_template($_REQUEST['template_id']))
  18. {
  19.     header('Content-Type: text/css');
  20.     header('Content-Length: '.strlen($template['style'].$template['additional_style']));
  21.     header("Cache-Control: max-age=2592000");
  22.     header('Content-Disposition: inline; filename=stylesheet.css');
  23.     echo $template['style'].$template['additional_style'];
  24.     exit();
  25. }
  26. ?>