setupLocale(); } /** * 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() { 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 */ function _searchform(){ global $lang, $INPUT; echo '
'; echo ''; echo ' '; echo ' '; echo ''.$this->getLang('note1').''; echo '


'; } /** * Start the reversion process */ function _revert($revert,$filter){ echo '

'; echo '

'.$this->getLang('revstart').'

'; echo ''; echo '

'.$this->getLang('revstop').'

'; } /** * List recent edits matching the given filter */ function _list($filter){ global $conf; global $lang; echo '

'; echo '
'; echo ''; formSecurityToken(); $recents = getRecents(0,$this->max_lines); echo ''; echo '

'; echo ' '; printf($this->getLang('note2'),hsc($filter)); echo '

'; echo '
'; } } //Setup VIM: ex: et ts=4 :