summaryrefslogtreecommitdiff
path: root/app/Controllers/errorController.php
blob: dc9a2ee25783b109af10a4d9e2e75aafdeea14a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?php

class FreshRSS_error_Controller extends Minz_ActionController {
	public function indexAction () {
		switch (Minz_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 = Minz_Request::param ('logs');
		
		Minz_View::prependTitle ($this->view->code . ' · ');
	}
}