mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-12-25 16:13:17 +03:00
Removed the error override configuration and files
This commit is contained in:
parent
ee6729cf0b
commit
cf579dddc2
3 changed files with 1 additions and 108 deletions
|
@ -43,7 +43,7 @@ require_once __DIR__ . '/../helpers/routes_helper.php';
|
|||
|
||||
$route['default_controller'] = 'appointments';
|
||||
|
||||
$route['404_override'] = 'errors/error404';
|
||||
$route['404_override'] = '';
|
||||
|
||||
/*
|
||||
| -------------------------------------------------------------------------
|
||||
|
|
|
@ -1,49 +0,0 @@
|
|||
<?php defined('BASEPATH') or exit('No direct script access allowed');
|
||||
|
||||
/* ----------------------------------------------------------------------------
|
||||
* Easy!Appointments - Open Source Web Scheduler
|
||||
*
|
||||
* @package EasyAppointments
|
||||
* @author A.Tselegidis <alextselegidis@gmail.com>
|
||||
* @copyright Copyright (c) 2013 - 2020, Alex Tselegidis
|
||||
* @license https://opensource.org/licenses/GPL-3.0 - GPLv3
|
||||
* @link https://easyappointments.org
|
||||
* @since v1.0.0
|
||||
* ---------------------------------------------------------------------------- */
|
||||
|
||||
/**
|
||||
* Errors controller.
|
||||
*
|
||||
* Handles the app error related operations.
|
||||
*
|
||||
* @package Controllers
|
||||
*/
|
||||
class Errors extends EA_Controller {
|
||||
/**
|
||||
* Errors constructor.
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
|
||||
$this->load->model('settings_model');
|
||||
}
|
||||
|
||||
/**
|
||||
* Display the 404 error page.
|
||||
*/
|
||||
public function index()
|
||||
{
|
||||
$this->error404();
|
||||
}
|
||||
|
||||
/**
|
||||
* Display the 404 error page.
|
||||
*/
|
||||
public function error404()
|
||||
{
|
||||
$this->load->view('general/error404', [
|
||||
'company_name' => setting('company_name')
|
||||
]);
|
||||
}
|
||||
}
|
|
@ -1,58 +0,0 @@
|
|||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
<meta name="theme-color" content="#35A768">
|
||||
|
||||
<title><?= lang('page_not_found') ?> | Easy!Appointments</title>
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="<?= asset_url('assets/vendor/bootstrap/bootstrap.min.css') ?>">
|
||||
<link rel="stylesheet" type="text/css" href="<?= asset_url('assets/css/error404.css') ?>">
|
||||
<link rel="stylesheet" type="text/css" href="<?= asset_url('assets/css/general.css') ?>">
|
||||
|
||||
<link rel="icon" type="image/x-icon" href="<?= asset_url('assets/img/favicon.ico') ?>">
|
||||
<link rel="icon" sizes="192x192" href="<?= asset_url('assets/img/logo.png') ?>">
|
||||
|
||||
<script>
|
||||
var EALang = <?= json_encode($this->lang->language) ?>;
|
||||
</script>
|
||||
|
||||
<script src="<?= asset_url('assets/vendor/jquery/jquery.min.js') ?>"></script>
|
||||
<script src="<?= asset_url('assets/vendor/@popperjs-core/popper.min.js') ?>"></script>
|
||||
<script src="<?= asset_url('assets/vendor/bootstrap/bootstrap.min.js') ?>"></script>
|
||||
<script src="<?= asset_url('assets/vendor/@fortawesome-fontawesome-free/fontawesome.min.js') ?>"></script>
|
||||
<script src="<?= asset_url('assets/vendor/@fortawesome-fontawesome-free/solid.min.js') ?>"></script>
|
||||
<script src="<?= asset_url('assets/vendor/datejs/date.min.js') ?>"></script>
|
||||
<script src="<?= asset_url('assets/js/general_functions.js') ?>"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="message-frame" class="frame-container">
|
||||
<h3><?= lang('page_not_found')
|
||||
. ' - ' . lang('error') . ' 404' ?></h3>
|
||||
<p>
|
||||
<?= lang('page_not_found_message') ?>
|
||||
</p>
|
||||
|
||||
<a href="<?= site_url() ?>" class="btn btn-success btn-large">
|
||||
<i class="fas fa-calendar-alt mr-2"></i>
|
||||
<?= lang('book_appointment_title') ?>
|
||||
</a>
|
||||
|
||||
<a href="<?= site_url('backend') ?>" class="btn btn-outline-secondary btn-large">
|
||||
<i class="fas fa-wrench mr-2"></i>
|
||||
<?= lang('backend_section') ?>
|
||||
</a>
|
||||
|
||||
<div class="mt-4">
|
||||
<small>
|
||||
Powered by
|
||||
<a href="https://easyappointments.org">Easy!Appointments</a>
|
||||
</small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php google_analytics_script() ?>
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in a new issue