Файл: wboard/source/system/controller/err.php
Строк: 23
<?php
/**
* Wboard
* Error page
* @author Screamer
* @copyright 2013
*/
class Module_Err extends Module
{
/**
* Index of Err
* @param (int) $code Error code (403 - Access Forbidden, 404 - Page is not found, 500 - Internal Server Error)
* @return (void)
*/
public function index($code = 404)
{
$code = intval($code);
$messages = array(
403 => $this->lng->access_denied,
404 => $this->lng->requested_page_is_not_exists,
500 => $this->lng->internal_server_error,
);
$message = (array_key_exists($code, $messages) ? $messages[$code] : $messages[404]);
$this->tpl->title = $this->lng->error;
$this->tpl->set_output($this->tpl->load('_message', array('title' => $this->lng->error, 'message' => $message)));
}
}