All pastes #270162 Raw Edit

Yurez

public php v1 · immutable
·published 2006-12-07 03:51 UTC
rendered paste body
<?phprequire_once('basics/cache.php');Class mod_common Extends t_cache { var $base;		// base class instance var $param;		// param for module call var $content;	// content for module or content file name var $fromfile;	function set_content(& $content, $fromfile=false){		if ($fromfile){			if (!file_exists($content)){ 				$this->base->errhandler(18, 'Template file <b>'.$content.'</b> was not found', __LINE__, __FILE__); 			}			$this->set_cache(basename($content), $this->base->get_file_time($content)); 			$this->fromfile	= true;		} else {			$this->fromfile	= false;		}		$this->content	= $content;	}	function set_base(& $base){		$this->base	= & $base;	}	function & get_output(){		return $this->content;	}}?>