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 '
' . $this->getLang('revstart') . '
'; echo '' . $this->getLang('revstop') . '
'; } /** * List recent edits matching the given filter */ protected function listEdits($filter) { global $conf; global $lang; echo '