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); } if (empty($this->process)) { $this->process = lang::p($this->phrase); } $this->process = (($text) ? $text : $this->process); $errormessage = $this->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. " . lang::p($phrase) . "
  2. "; } $this->process .= "\n
"; } function error_permission() { $this->phrase = 'error_no_permission'; $this->error(); } function redirect($text = '', $url = '') { global $bugsys; global $doctype, $header, $headinclude, $footer; 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); } if (empty($this->process)) { $this->process = lang::p($this->phrase); } $this->process = (($text) ? $text : $this->process); $this->url = (($url) ? $url : $this->url); $redirectmessage = $this->process; $redirecturl = $this->url; 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; 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); } if (empty($this->process)) { $this->process = lang::p($this->phrase); } $this->process = (($text) ? $text : $this->process); $message = $this->process; eval('$bugsys->template->flush("' . $bugsys->template->fetch('std_message') . '");'); exit; } } /*=====================================================================*\ || ################################################################### || # $HeadURL$ || # $Id$ || ################################################################### \*=====================================================================*/ ?>