view = PATH::VIEW . "error.php"; $this->set_view("error.php"); $this->code = http_response_code(); if (in_array($this->code, array(400, 401, 403, 404, 500))){ $err = $this->code; } else{ $err = "XXX"; } $this->error_description = Text::get("ERROR_" . $err . "_DESCRIPTION"); $this->advice = Text::get("ERROR_" . $err . "_SOLUTION"); array_push($this->solution, Text::get("ERROR_" . $err . "_SOLUTION_0")); array_push($this->solution, Text::get("ERROR_" . $err . "_SOLUTION_1")); array_push($this->solution, Text::get("ERROR_" . $err . "_SOLUTION_2")); $this->title = Text::get("ERROR_TITLE") . " " . $this->code . " - " . Text::get("USER_NAME"); $this->description = Text::get("ERROR_TITLE") . " " . $this->code . " - " . Text::get("USER_NAME"); } } ?>