Exemplo n.º 1
0
 public function main(array $argv = array())
 {
     // populate array
     $this->errorCode = $argv["code"];
     $this->errorData["time"] = time();
     $this->errorData["data"] = $argv["data"];
     $this->errorData["error"]["code"] = $this->errorCode;
     $this->errorData["error"]["message"] = Request::getErrorMessage($this->errorCode);
     $this->errorData["vars"]["server"] = $_SERVER;
     $this->errorData["vars"]["post"] = $_POST;
     $this->errorData["vars"]["get"] = $_GET;
     $this->errorData["vars"]["session"] = $_SESSION;
     $this->view->setParam("error_code", $this->errorCode);
     $this->view->setParam("error_message", Request::getErrorMessage($this->errorCode));
     $this->view->setParam("monkey_script", self::monkeyHash($this->errorData));
     $this->view->render();
 }