first commit. dokuwiki.
[h2N7SspZmY.git] / lib / plugins / tag / admin.php
blob80649025dcdaf903f30fc855f3943d995e96f213
1 <?php
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');
6 /**
7 * All DokuWiki plugins to extend the admin function
8 * need to inherit from this class
9 */
10 class admin_plugin_tag extends DokuWiki_Admin_Plugin {
11 var $cmd;
13 /**
14 * Constructor
16 function admin_plugin_tag() {
17 $this->setupLocale();
20 /**
21 * return some info
23 function getInfo() {
24 return array(
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',
34 /**
35 * return sort order for position in admin menu
37 function getMenuSort() {
38 return 42;
41 /**
42 * handle user request
44 function handle() {
47 /**
48 * output appropriate html
50 function 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
57 print '</button>';
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" />';
61 print '</fieldset>';
65 // vim:ts=4:sw=4:et:enc=utf-8: