setupLocale(); } /** * return some info */ function getInfo(){ return array( 'author' => 'Andreas Gohr', 'email' => 'andi@splitbrain.org', 'date' => '2008-12-10', 'name' => 'Revert Manager', 'desc' => 'Allows you to mass revert recent edits', 'url' => 'http://dokuwiki.org/plugin:revert', ); } /** * access for managers */ function forAdminOnly(){ return false; } /** * return sort order for position in admin menu */ function getMenuSort() { return 40; } /** * handle user request */ function handle() { } /** * output appropriate html */ function html() { echo $this->plugin_locale_xhtml('intro'); $this->_searchform(); if(is_array($_REQUEST['revert']) && checkSecurityToken()){ $this->_revert($_REQUEST['revert'],$_REQUEST['filter']); }elseif(isset($_REQUEST['filter'])){ $this->_list($_REQUEST['filter']); } } /** * Display the form for searching spam pages */ function _searchform(){ global $lang; echo '
'.$this->getLang('revstart').'
'; echo ''.$this->getLang('revstop').'
'; } /** * List recent edits matching the given filter */ function _list($filter){ global $conf; echo '