id = '$Id: Viewer_Pch.php,v 1.17 2010/06/06 11:44:19 hsur Exp $'; $this->name = 'pch viewer'; $this->animeExt = Array( 'pch', ); $requiredFiles = Array( 'PCHViewer.jar', 'res/res.zip', 'res/tt.zip', ); $this->enable = $this->isFileInstalled($requiredFiles); $this->templatevars['id'] = $this->id; $this->templatevars['name'] = $this->name; } function getPageTemplate($vars = null){ $tpl = $this->template->fetch('pagetemplate', strtolower(__CLASS__)); global $CONF; $this->templatevars['MediaURL'] = $CONF['MediaURL']; $this->templatevars['ActionURL'] = $CONF['ActionURL']; $this->templatevars['PluginURL'] = $CONF['PluginURL']; $this->templatevars['appletBaseUrl'] = $this->appletBaseUrl; $vars = array_merge((array)$vars, $this->templatevars); return $this->template->fill($tpl, $vars, false); } }