43 lines
1.3 KiB
PHP
43 lines
1.3 KiB
PHP
<?php
|
|
if(!defined('DOKU_INC')) define('DOKU_INC',realpath(dirname(__FILE__).'/../../../').'/');
|
|
if(!defined('DOKU_PLUGIN')) define('DOKU_PLUGIN',DOKU_INC.'lib/plugins/');
|
|
require_once(DOKU_PLUGIN.'admin.php');
|
|
|
|
/**
|
|
* All DokuWiki plugins to extend the admin function
|
|
* need to inherit from this class
|
|
*/
|
|
class admin_plugin_searchindex extends DokuWiki_Admin_Plugin {
|
|
var $cmd;
|
|
|
|
/**
|
|
* return sort order for position in admin menu
|
|
*/
|
|
function getMenuSort() {
|
|
return 40;
|
|
}
|
|
|
|
/**
|
|
* handle user request
|
|
*/
|
|
function handle() {
|
|
}
|
|
|
|
/**
|
|
* output appropriate html
|
|
*/
|
|
function html() {
|
|
echo $this->locale_xhtml('intro');
|
|
|
|
echo '<div id="plugin__searchindex">';
|
|
echo '<div class="buttons" id="plugin__searchindex_buttons">' .
|
|
'<input type="button" class="button" id="plugin__searchindex_rebuild" value="' . $this->getLang('rebuild') . '"/>' .
|
|
'<p>' . $this->getLang('rebuild_tip') . '</p>' .
|
|
'<input type="button" class="button" id="plugin__searchindex_update" value="' . $this->getLang('update') . '"/>' .
|
|
'<p>' . $this->getLang('update_tip') . '</p>' .
|
|
'</div>';
|
|
echo '<div class="msg" id="plugin__searchindex_msg"></div>';
|
|
echo '</div>';
|
|
}
|
|
}
|
|
//Setup VIM: ex: et ts=4 enc=utf-8 :
|