rendered paste body<?phpClass t_bbcode Extends mod_common { function t_bbcode($param='default'){ $this->param = 'bb_'.$param; } function run(){ $this->idmod = 'bbcode'; if (!$this->mod_is_cached()){ $this->mod_clean_cache(); $this->do_cache(); } $this->mod_from_cache(); } function do_cache(){ require_once('HTML/BBCodeParser.php'); $options = &PEAR::getStaticProperty('HTML_BBCodeParser', '_options'); $options = $this->base->config['HTML_BBCodeParser']; if (is_array($this->base->config[$this->param])){ $options['filters'] = $this->base->config[$this->param]['filters']; } unset($options); /* do yer stuff! */ $bbparser = new HTML_BBCodeParser; $bbparser->setText($this->content); $bbparser->parse(); $parsed = $bbparser->getParsed(); $this->save_to_file($this->mod_cache_file, $parsed); } }?>