_initDBObj(); $names = glob(BASE_PATH.'/tpl/Static/*.tpl'); foreach ($names as $key=>$name) $names[$key]=basename($name); return $names; } function exec(&$Doc) { $Doc->addContent(array('tpl'=>'Static/'.$this->options['name'])); } } ?>