1872edc7cSRené Corinth<?php 2872edc7cSRené Corinth// must be run within Dokuwiki 3872edc7cSRené Corinthif (!defined('DOKU_INC')) die(); 4872edc7cSRené Corinth 5872edc7cSRené Corinthclass admin_plugin_tagging extends DokuWiki_Admin_Plugin { 6872edc7cSRené Corinth 7872edc7cSRené Corinth private $hlp; 8*8b352fbcSRené Corinth private $message; 9872edc7cSRené Corinth 10872edc7cSRené Corinth function forAdminOnly() { return false; } 11872edc7cSRené Corinth 12872edc7cSRené Corinth function handle() { 13872edc7cSRené Corinth $this->hlp = plugin_load('helper', 'tagging'); 14872edc7cSRené Corinth 15872edc7cSRené Corinth if ($_SERVER['REQUEST_METHOD'] === 'POST') { 16872edc7cSRené Corinth if (checkSecurityToken()) { 17*8b352fbcSRené Corinth global $INPUT; 18*8b352fbcSRené Corinth $input = $INPUT->post->arr('action'); 19*8b352fbcSRené Corinth if (isset($input['rename'])) { 20*8b352fbcSRené Corinth $this->message = $this->hlp->renameTag($input['formerTagName'], $input['newTagName']); 21872edc7cSRené Corinth } 22872edc7cSRené Corinth } 23872edc7cSRené Corinth } 24872edc7cSRené Corinth } 25872edc7cSRené Corinth 26872edc7cSRené Corinth function html() { 27872edc7cSRené Corinth global $ID; 28872edc7cSRené Corinth $tags = $this->hlp->getAllTags(); 29872edc7cSRené Corinth include dirname(__FILE__) . '/admin_tpl.php'; 30872edc7cSRené Corinth } 31872edc7cSRené Corinth 32872edc7cSRené Corinth} 33