/** * wikiPages - public View */ function wikiPages() { echo $GLOBALS['Language']->getText('plugin_phpwiki_views_wkserviews', 'wkpage_title', array($this->wikiname)); list($hideFlag, $hideUrl, $hideImg) = hide_url('wiki_project_pages', $this->gid); $hurl = '<a href="' . $this->wikiAdminLink . '&view=wikiPages&' . $hideUrl . '">' . $hideImg . '</a>'; echo $GLOBALS['Language']->getText('plugin_phpwiki_views_wkserviews', 'wkpage_project', array($hurl)); if (!$hideFlag) { print $GLOBALS['Language']->getText('plugin_phpwiki_views_wkserviews', 'wkpage_pj_all'); $allUserPages =& PHPWikiPage::getAllUserPages(); $this->_browsePages($allUserPages); } list($hideFlag, $hideUrl, $hideImg) = hide_url('wiki_empty_pages', $this->gid); $hurl = '<a href="' . $this->wikiAdminLink . '&view=wikiPages&' . $hideUrl . '">' . $hideImg . '</a>'; echo $GLOBALS['Language']->getText('plugin_phpwiki_views_wkserviews', 'wkpage_empty', array($hurl)); if (!$hideFlag) { print $GLOBALS['Language']->getText('plugin_phpwiki_views_wkserviews', 'wkpage_emp_all'); $wpw = new PHPWikiPageWrapper($this->gid); $allEmptyPages =& $wpw->getProjectEmptyLinks(); $this->_browsePages($allEmptyPages); } list($hideFlag, $hideUrl, $hideImg) = hide_url('wiki_admin_pages', $this->gid); $hurl = '<a href="' . $this->wikiAdminLink . '&view=wikiPages&' . $hideUrl . '">' . $hideImg . '</a>'; echo $GLOBALS['Language']->getText('plugin_phpwiki_views_wkserviews', 'wkpage_admin', array($hurl)); if (!$hideFlag) { print $GLOBALS['Language']->getText('plugin_phpwiki_views_wkserviews', 'wkpage_adm_all'); $allAdminPages =& PHPWikiPage::getAllAdminPages(); $this->_browsePages($allAdminPages); } list($hideFlag, $hideUrl, $hideImg) = hide_url('wiki_internal_pages', $this->gid, true); $hurl = '<a href="' . $this->wikiAdminLink . '&view=wikiPages&' . $hideUrl . '">' . $hideImg . '</a>'; echo $GLOBALS['Language']->getText('plugin_phpwiki_views_wkserviews', 'wkpage_intern', array($hurl)); if (!$hideFlag) { print $GLOBALS['Language']->getText('plugin_phpwiki_views_wkserviews', 'wkpage_int_all'); $allInternalsPages =& PHPWikiPage::getAllInternalPages(); $this->_browsePages($allInternalsPages); } print '<hr/><p><a href="' . $this->wikiAdminLink . '">' . $GLOBALS['Language']->getText('plugin_phpwiki_views_wkserviews', 'back_admin') . '</a></p>' . "\n"; }