phrase) AND empty($this->process)) { trigger_error('Message_Reporter::phrase is an array so please use Message_Reporter::error_list_process() to prepare it', E_USER_ERROR); } $this->process = ($text ? $text : $this->process); $this->check_process(); eval('$bugsys->template->flush("' . $bugsys->template->fetch('std_error') . '");'); exit; } function error_list_process() { if (!is_array($this->phrase) OR count($this->phrase) < 1) { return; } $this->process = "\n\n
    "; foreach ($this->phrase AS $phrase) { $this->process .= "\n\t
  1. " . $phrase . "
  2. "; } $this->process .= "\n
"; } function error_permission() { global $bugsys; $this->phrase = $bugsys->lang->string('You do not have permission to access this page. If you think that this is an error, please contact an administrator.'); $this->error(); } function redirect($text = '', $url = '') { global $bugsys; global $doctype, $header, $headinclude, $footer, $focus, $show, $stylevar; if (is_array($this->phrase) AND empty($this->process)) { trigger_error('Message_Reporter::phrase is an array and cannot be used in Message_Reporter::redirect()', E_USER_ERROR); } $this->process = ($text ? $text : $this->process); $this->url = ($url ? $url : $this->url); $this->check_process(); eval('$bugsys->template->flush("' . $bugsys->template->fetch('std_redirect') . '");'); if ($this->useheaders) { header("Location: {$this->url}"); } exit; } function message($text = '') { global $bugsys; global $doctype, $header, $headinclude, $footer, $focus, $show, $stylevar; if (is_array($this->phrase) AND empty($this->process)) { trigger_error('Message_Reporter::phrase is an array and cannot be used in Message_Reporter::message()', E_USER_ERROR); } $this->process = ($text ? $text : $this->process); $this->check_process(); eval('$bugsys->template->flush("' . $bugsys->template->fetch('std_message') . '");'); exit; } function check_process() { if (empty($this->process)) { trigger_error('Message_Reporter requires some text to display a message', E_USER_ERROR); } } } /*=====================================================================*\ || ################################################################### || # $HeadURL$ || # $Id$ || ################################################################### \*=====================================================================*/ ?>