2013-09-13 16:21:03 +03:00
|
|
|
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
|
|
|
|
|
2015-07-20 22:41:24 +03:00
|
|
|
/* ----------------------------------------------------------------------------
|
|
|
|
* Easy!Appointments - Open Source Web Scheduler
|
|
|
|
*
|
|
|
|
* @package EasyAppointments
|
|
|
|
* @author A.Tselegidis <alextselegidis@gmail.com>
|
|
|
|
* @copyright Copyright (c) 2013 - 2015, Alex Tselegidis
|
|
|
|
* @license http://opensource.org/licenses/GPL-3.0 - GPLv3
|
|
|
|
* @link http://easyappointments.org
|
|
|
|
* @since v1.0.0
|
|
|
|
* ---------------------------------------------------------------------------- */
|
|
|
|
|
2015-07-08 01:33:33 +03:00
|
|
|
/**
|
|
|
|
* Errors Controller
|
|
|
|
*
|
|
|
|
* @package Controllers
|
|
|
|
*/
|
2013-09-13 16:21:03 +03:00
|
|
|
class Errors extends CI_Controller {
|
2013-12-23 18:55:42 +02:00
|
|
|
public function __construct() {
|
|
|
|
parent::__construct();
|
|
|
|
$this->load->library('session');
|
|
|
|
// Set user's selected language.
|
|
|
|
if ($this->session->userdata('language')) {
|
|
|
|
$this->config->set_item('language', $this->session->userdata('language'));
|
|
|
|
$this->lang->load('translations', $this->session->userdata('language'));
|
|
|
|
} else {
|
|
|
|
$this->lang->load('translations', $this->config->item('language')); // default
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-09-13 16:21:03 +03:00
|
|
|
public function index() {
|
|
|
|
$this->e404();
|
|
|
|
}
|
|
|
|
|
|
|
|
public function error404() {
|
|
|
|
$this->load->model('settings_model');
|
|
|
|
$view['company_name'] = $this->settings_model->get_setting('company_name');
|
|
|
|
$this->load->view('general/error404', $view);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* End of file errors.php */
|
|
|
|
/* Location: ./application/controllers/errors.php */
|