1*872edc7cSRené Corinth<?php 2*872edc7cSRené Corinth// must be run within Dokuwiki 3*872edc7cSRené Corinthif (!defined('DOKU_INC')) die(); 4*872edc7cSRené Corinth 5*872edc7cSRené Corinthclass admin_plugin_tagging extends DokuWiki_Admin_Plugin { 6*872edc7cSRené Corinth 7*872edc7cSRené Corinth private $hlp; 8*872edc7cSRené Corinth var $message; 9*872edc7cSRené Corinth 10*872edc7cSRené Corinth function forAdminOnly() { return false; } 11*872edc7cSRené Corinth 12*872edc7cSRené Corinth function handle() { 13*872edc7cSRené Corinth $this->hlp = plugin_load('helper', 'tagging'); 14*872edc7cSRené Corinth 15*872edc7cSRené Corinth if ($_SERVER['REQUEST_METHOD'] === 'POST') { 16*872edc7cSRené Corinth if (checkSecurityToken()) { 17*872edc7cSRené Corinth if (isset($_POST['action']['rename'])) { 18*872edc7cSRené Corinth $this->message = $this->hlp->renameTag($_POST['action']['formerTagName'], $_POST['action']['newTagName']); 19*872edc7cSRené Corinth } 20*872edc7cSRené Corinth } 21*872edc7cSRené Corinth } 22*872edc7cSRené Corinth } 23*872edc7cSRené Corinth 24*872edc7cSRené Corinth function html() { 25*872edc7cSRené Corinth global $ID; 26*872edc7cSRené Corinth $tags = $this->hlp->getAllTags(); 27*872edc7cSRené Corinth include dirname(__FILE__) . '/admin_tpl.php'; 28*872edc7cSRené Corinth } 29*872edc7cSRené Corinth 30*872edc7cSRené Corinth}