4
0

errorController.php 630 B

1234567891011121314151617181920212223242526
  1. <?php
  2. class FreshRSS_error_Controller extends Minz_ActionController {
  3. public function indexAction () {
  4. switch (Minz_Request::param ('code')) {
  5. case 403:
  6. $this->view->code = 'Error 403 - Forbidden';
  7. break;
  8. case 404:
  9. $this->view->code = 'Error 404 - Not found';
  10. break;
  11. case 500:
  12. $this->view->code = 'Error 500 - Internal Server Error';
  13. break;
  14. case 503:
  15. $this->view->code = 'Error 503 - Service Unavailable';
  16. break;
  17. default:
  18. $this->view->code = 'Error 404 - Not found';
  19. }
  20. $this->view->logs = Minz_Request::param ('logs');
  21. Minz_View::prependTitle ($this->view->code . ' - ');
  22. }
  23. }