You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
630 B
27 lines
630 B
12 years ago
|
<?php
|
||
|
|
||
11 years ago
|
class FreshRSS_error_Controller extends Minz_ActionController {
|
||
12 years ago
|
public function indexAction () {
|
||
11 years ago
|
switch (Minz_Request::param ('code')) {
|
||
12 years ago
|
case 403:
|
||
|
$this->view->code = 'Error 403 - Forbidden';
|
||
|
break;
|
||
|
case 404:
|
||
|
$this->view->code = 'Error 404 - Not found';
|
||
|
break;
|
||
|
case 500:
|
||
|
$this->view->code = 'Error 500 - Internal Server Error';
|
||
|
break;
|
||
|
case 503:
|
||
|
$this->view->code = 'Error 503 - Service Unavailable';
|
||
|
break;
|
||
|
default:
|
||
|
$this->view->code = 'Error 404 - Not found';
|
||
|
}
|
||
|
|
||
11 years ago
|
$this->view->logs = Minz_Request::param ('logs');
|
||
12 years ago
|
|
||
11 years ago
|
Minz_View::prependTitle ($this->view->code . ' - ');
|
||
12 years ago
|
}
|
||
|
}
|