bee

Unnamed repository; edit this file 'description' to name the repository.
git clone http://git.code.weiherhei.de/bee.git
Log | Files | Refs

ThemeResourceGenerator.class.php (381B)


      1 <?php
      2 
      3 class ThemeResourceGenerator extends GeneratorBase
      4 {
      5 	var $filename;
      6 	
      7 	function __construct( $filename )
      8 	{
      9 		$this->filename = $filename;
     10 	}
     11 	
     12 	
     13 	function generate()
     14 	{
     15 		// Read a static file from theme (Images, CSS or JS)
     16 		HttpUtil::lastModified(filemtime(THEME_DIR.SLASH.THEME.SLASH.$this->filename));
     17 		readfile(THEME_DIR.SLASH.THEME.SLASH.$this->filename);
     18 	}
     19 }
     20 
     21 
     22 ?>