mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-04-25 00:37:29 -04:00
First commit
This commit is contained in:
26
app/controllers/errorController.php
Normal file
26
app/controllers/errorController.php
Normal file
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
class ErrorController extends ActionController {
|
||||
public function indexAction () {
|
||||
View::prependTitle (Translate::t ('error') . ' - ');
|
||||
|
||||
switch (Request::param ('code')) {
|
||||
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';
|
||||
}
|
||||
|
||||
$this->view->logs = Request::param ('logs');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user