3 class UpdatePingServer_Management extends PlugManagement
11 // include language file
12 $langfile = $this->plugin->getDirectory() . 'language/'.$CONF['Language'].'.php';
13 if (!file_exists($langfile)) {
14 $langfile = $this->plugin->getDirectory() . 'language/english.php';
16 include_once($langfile);
18 // assign plugin data to view object
19 $helpurl = $this->plugin->getAdminURL() .'index.php?action=pluginhelp';
21 'name' => $this->plugin->getName(),
22 'id' => $this->plugin->getID(),
23 'url' => $this->plugin->getAdminURL(),
26 $this->view->assign('plugin', $plug_data);
27 $this->view->assign('message', '');
30 $popup_helpfile = $this->plugin->getDirectory() .'i18nhelp/'.$CONF['Language']. '.popuphelp.html';
31 if (file_exists($popup_helpfile)) {
32 $this->popupurl = $this->plugin->getAdminURL() .'i18nhelp/'.$CONF['Language']. '.popuphelp.html';
34 $this->popupurl = $this->plugin->getAdminURL() . 'popuphelp.html';
38 function &getTpManager() {
39 if (!$this->tpmanager) {
40 $this->tpmanager =& new PlugTemplate(sql_table('plug_blogmenu_template'), 'tid', 'tname', 'tdesc');
42 return $this->tpmanager;
45 function createPopup($anchor) {
46 return $this->createPopupHelpLink($this->popupurl, $anchor);
49 function getHelpPath() {
52 $helpfile = $this->plugin->getDirectory() .'i18nhelp/'.$CONF['Language']. '.help.html';
53 if (!file_exists($helpfile)) {
54 $helpfile = $this->plugin->getDirectory() . 'help.html';