Beispiel #1
0
 public function code($code)
 {
     if (!isset($this->error_list[$code])) {
         $code = 500;
     }
     $filter = new filter();
     header($filter->server('SERVER_PROTOCOL') . ' ' . $code . ' ' . $this->error_list[$code]);
     header('Status: ' . $code . ' ' . $this->error_list[$code]);
     return $code . ' ' . $this->error_list[$code];
 }