2 if(!defined('DOKU_INC')) define('DOKU_INC',realpath(dirname(__FILE__
).'/../../../').'/');
3 if(!defined('DOKU_PLUGIN')) define('DOKU_PLUGIN',DOKU_INC
.'lib/plugins/');
4 require_once(DOKU_PLUGIN
.'admin.php');
7 * All DokuWiki plugins to extend the admin function
8 * need to inherit from this class
10 class admin_plugin_tag
extends DokuWiki_Admin_Plugin
{
16 function admin_plugin_tag() {
25 'author' => 'Gina Häußge, Michael Klier',
26 'email' => 'dokuwiki@chimeric.de',
27 'date' => @file_get_contents
(DOKU_PLUGIN
.'tag/VERSION'),
28 'name' => 'Tagindex Manager',
29 'desc' => 'Allows to rebuild the tag index',
30 'url' => 'http://www.dokuwiki.org/plugin:tag',
35 * return sort order for position in admin menu
37 function getMenuSort() {
48 * output appropriate html
51 print $this->plugin_locale_xhtml('intro');
53 print '<fieldset class="pl_si_out">';
55 print '<button class="button" id="pl_si_gobtn" onclick="plugin_tagindex_go()">';
56 print 'Rebuild Tagindex'; #FIXME localize
58 print '<div id="pl_si_out"></div>';
59 print '<img src="'.DOKU_BASE
.'lib/images/loading.gif" id="pl_si_throbber" style="visibility: hidden" />';
65 // vim:ts=4:sw=4:et:enc=utf-8: