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->printSearchForm(); if (is_array($INPUT->param('revert')) && checkSecurityToken()) { $this->revertEdits($INPUT->arr('revert'), $INPUT->str('filter')); } elseif ($INPUT->has('filter')) { $this->listEdits($INPUT->str('filter')); } } /** * Display the form for searching spam pages */ protected function printSearchForm() { global $lang, $INPUT; echo '
'; echo ''; echo ' '; echo ' '; echo '' . $this->getLang('note1') . ''; echo '


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

'; echo '

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

'; echo ''; echo '

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

'; } /** * List recent edits matching the given filter */ protected function listEdits($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 :