setupLocale(); } /** * access for managers */ public function forAdminOnly(){ return false; } /** * return sort order for position in admin menu */ public function getMenuSort() { return 40; } /** * handle user request */ public function handle() { } /** * output appropriate html */ public function html() { global $INPUT; echo $this->locale_xhtml('intro'); $this->_searchform(); if(is_array($INPUT->param('revert')) && checkSecurityToken()){ $this->_revert($INPUT->arr('revert'),$INPUT->str('filter')); }elseif($INPUT->has('filter')){ $this->_list($INPUT->str('filter')); } } /** * Display the form for searching spam pages */ protected function _searchform(){ global $lang, $INPUT; echo '
'.$this->getLang('revstart').'
'; echo ''.$this->getLang('revstop').'
'; } /** * List recent edits matching the given filter */ protected function _list($filter){ global $conf; global $lang; echo '