function attachmentPerms() { $attachmentId = $_GET['id']; $wa = new PHPWikiAttachment($this->gid); $wa->initWithId($attachmentId); echo $GLOBALS['Language']->getText('plugin_phpwiki_views_wkserviews', 'perm_attachment_title', array($this->wikiname)); echo $GLOBALS['Language']->getText('plugin_phpwiki_views_wkserviews', 'wiki_attachment_perm', array($wa->getFilename())); $postUrl = $this->wikiAdminLink . '&view=wikiAttachments&action=setWikiAttachmentPerms'; permission_display_selection_form("PHPWIKIATTACHMENT_READ", $wa->getId(), $this->gid, $postUrl); print '<hr/><p><a href="' . $this->wikiAdminLink . '&view=wikiAttachments">' . $GLOBALS['Language']->getText('plugin_phpwiki_views_wkserviews', 'back_admin') . '</a></p>' . "\n"; }