bee

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

StaticFileGenerator.class.php (397B)


      1 <?php
      2 
      3 class StaticFileGenerator extends GeneratorBase
      4 {
      5 	var $filename;
      6 	
      7 	function __construct( $filename )
      8 	{
      9 		$this->filename = $filename;
     10 	}
     11 	
     12 	function generate()
     13 	{
     14 		// Read a static file from site (Images, CSS or JS)
     15 		header('Content-Type: application/octet-stream');
     16 		HttpUtil::lastModified(filemtime(SITE_DIR.SLASH.$this->filename));
     17 		readfile(SITE_DIR.SLASH.$this->filename);	
     18 	}
     19 }