This commit is contained in:
3
application/views/errors/cli/error_404.php
Normal file
3
application/views/errors/cli/error_404.php
Normal file
@@ -0,0 +1,3 @@
|
||||
<?php defined('BASEPATH') or exit('No direct script access allowed');
|
||||
|
||||
echo "\nERROR: ", $heading, "\n\n", $message, "\n\n";
|
||||
3
application/views/errors/cli/error_db.php
Normal file
3
application/views/errors/cli/error_db.php
Normal file
@@ -0,0 +1,3 @@
|
||||
<?php defined('BASEPATH') or exit('No direct script access allowed');
|
||||
|
||||
echo "\nDatabase error: ", $heading, "\n\n", $message, "\n\n";
|
||||
19
application/views/errors/cli/error_exception.php
Normal file
19
application/views/errors/cli/error_exception.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php defined('BASEPATH') or exit('No direct script access allowed'); ?>
|
||||
|
||||
An uncaught Exception was encountered
|
||||
|
||||
Type: <?= get_class($exception), "\n" ?>
|
||||
Message: <?= $message, "\n" ?>
|
||||
Filename: <?= $exception->getFile(), "\n" ?>
|
||||
Line Number: <?= $exception->getLine() ?>
|
||||
|
||||
<?php if (defined('SHOW_DEBUG_BACKTRACE') && SHOW_DEBUG_BACKTRACE === true): ?>
|
||||
Backtrace:
|
||||
<?php foreach ($exception->getTrace() as $error): ?>
|
||||
<?php if (isset($error['file']) && strpos($error['file'], realpath(BASEPATH)) !== 0): ?>
|
||||
File: <?= $error['file'], "\n" ?>
|
||||
Line: <?= $error['line'], "\n" ?>
|
||||
Function: <?= $error['function'], "\n\n" ?>
|
||||
<?php endif; ?>
|
||||
<?php endforeach; ?>
|
||||
<?php endif; ?>
|
||||
3
application/views/errors/cli/error_general.php
Normal file
3
application/views/errors/cli/error_general.php
Normal file
@@ -0,0 +1,3 @@
|
||||
<?php defined('BASEPATH') or exit('No direct script access allowed');
|
||||
|
||||
echo "\nERROR: ", $heading, "\n\n", $message, "\n\n";
|
||||
19
application/views/errors/cli/error_php.php
Normal file
19
application/views/errors/cli/error_php.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php defined('BASEPATH') or exit('No direct script access allowed'); ?>
|
||||
|
||||
A PHP Error was encountered
|
||||
|
||||
Severity: <?= $severity, "\n" ?>
|
||||
Message: <?= $message, "\n" ?>
|
||||
Filename: <?= $filepath, "\n" ?>
|
||||
Line Number: <?= $line ?>
|
||||
|
||||
<?php if (defined('SHOW_DEBUG_BACKTRACE') && SHOW_DEBUG_BACKTRACE === true): ?>
|
||||
Backtrace:
|
||||
<?php foreach (debug_backtrace() as $error): ?>
|
||||
<?php if (isset($error['file']) && strpos($error['file'], realpath(BASEPATH)) !== 0): ?>
|
||||
File: <?= $error['file'], "\n" ?>
|
||||
Line: <?= $error['line'], "\n" ?>
|
||||
Function: <?= $error['function'], "\n\n" ?>
|
||||
<?php endif; ?>
|
||||
<?php endforeach; ?>
|
||||
<?php endif; ?>
|
||||
11
application/views/errors/cli/index.html
Normal file
11
application/views/errors/cli/index.html
Normal file
@@ -0,0 +1,11 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
82
application/views/errors/html/error_404.php
Normal file
82
application/views/errors/html/error_404.php
Normal file
@@ -0,0 +1,82 @@
|
||||
<?php
|
||||
/**
|
||||
* @var string $heading
|
||||
* @var string $message
|
||||
*/
|
||||
?>
|
||||
|
||||
<!doctype html>
|
||||
<html lang="en" style="
|
||||
height: 100%;
|
||||
">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
|
||||
<title>404 Page Not Found | Easy!Appointments</title>
|
||||
<style>
|
||||
#error-container {
|
||||
background: #ffffff;
|
||||
min-width: 450px;
|
||||
max-width: 600px;
|
||||
margin: auto;
|
||||
border: 1px solid #D0D0D0;
|
||||
font: 13px/20px normal Helvetica, Arial, sans-serif;
|
||||
color: #4F5155;
|
||||
}
|
||||
|
||||
#error-container a {
|
||||
color: #003399;
|
||||
background-color: transparent;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
#error-container h1 {
|
||||
color: #444;
|
||||
background-color: transparent;
|
||||
border-bottom: 1px solid #D0D0D0;
|
||||
font-size: 19px;
|
||||
font-weight: normal;
|
||||
margin: 0 0 14px 0;
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
#error-container code {
|
||||
font-family: Consolas, Monaco, Courier New, Courier, monospace;
|
||||
font-size: 12px;
|
||||
background-color: #f9f9f9;
|
||||
border: 1px solid #D0D0D0;
|
||||
color: #002166;
|
||||
display: block;
|
||||
margin: 14px 0 14px 0;
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
#error-container p {
|
||||
margin: 20px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body style="
|
||||
height: 100%;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
display: flex;
|
||||
background: #f5f8fa;
|
||||
">
|
||||
<div id="error-container">
|
||||
<h1>
|
||||
<?= $heading ?>
|
||||
</h1>
|
||||
|
||||
<?= $message ?>
|
||||
|
||||
<p>
|
||||
<small>
|
||||
Powered by
|
||||
<a href="https://easyappointments.org">Easy!Appointments</a>
|
||||
</small>
|
||||
</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
82
application/views/errors/html/error_db.php
Normal file
82
application/views/errors/html/error_db.php
Normal file
@@ -0,0 +1,82 @@
|
||||
<?php
|
||||
/**
|
||||
* @var string $heading
|
||||
* @var string $message
|
||||
*/
|
||||
?>
|
||||
|
||||
<!doctype html>
|
||||
<html lang="en" style="
|
||||
height: 100%;
|
||||
">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
|
||||
<title>Database Error | Easy!Appointments</title>
|
||||
<style>
|
||||
#error-container {
|
||||
background: #ffffff;
|
||||
min-width: 450px;
|
||||
max-width: 600px;
|
||||
margin: auto;
|
||||
border: 1px solid #D0D0D0;
|
||||
font: 13px/20px normal Helvetica, Arial, sans-serif;
|
||||
color: #4F5155;
|
||||
}
|
||||
|
||||
#error-container a {
|
||||
color: #003399;
|
||||
background-color: transparent;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
#error-container h1 {
|
||||
color: #444;
|
||||
background-color: transparent;
|
||||
border-bottom: 1px solid #D0D0D0;
|
||||
font-size: 19px;
|
||||
font-weight: normal;
|
||||
margin: 0 0 14px 0;
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
#error-container code {
|
||||
font-family: Consolas, Monaco, Courier New, Courier, monospace;
|
||||
font-size: 12px;
|
||||
background-color: #f9f9f9;
|
||||
border: 1px solid #D0D0D0;
|
||||
color: #002166;
|
||||
display: block;
|
||||
margin: 14px 0 14px 0;
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
#error-container p {
|
||||
margin: 20px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body style="
|
||||
height: 100%;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
display: flex;
|
||||
background: #f5f8fa;
|
||||
">
|
||||
<div id="error-container">
|
||||
<h1>
|
||||
<?= $heading ?>
|
||||
</h1>
|
||||
|
||||
<?= $message ?>
|
||||
|
||||
<p>
|
||||
<small>
|
||||
Powered by
|
||||
<a href="https://easyappointments.org">Easy!Appointments</a>
|
||||
</small>
|
||||
</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
74
application/views/errors/html/error_exception.php
Normal file
74
application/views/errors/html/error_exception.php
Normal file
@@ -0,0 +1,74 @@
|
||||
<?php defined('BASEPATH') or exit('No direct script access allowed'); ?>
|
||||
|
||||
<?php
|
||||
/**
|
||||
* @var Throwable $exception
|
||||
* @var string $message
|
||||
*/
|
||||
?>
|
||||
|
||||
<div style="
|
||||
border: 1px solid #dfdfdf;
|
||||
margin: 0 0 10px 0;
|
||||
padding: 15px;
|
||||
font-size: 14px;
|
||||
">
|
||||
|
||||
<h4>
|
||||
An uncaught Exception was encountered
|
||||
</h4>
|
||||
|
||||
<h6>
|
||||
Type
|
||||
</h6>
|
||||
|
||||
<p>
|
||||
<?= get_class($exception) ?>
|
||||
</p>
|
||||
|
||||
<h6>
|
||||
Message
|
||||
</h6>
|
||||
|
||||
<p>
|
||||
<?= $message ?>
|
||||
</p>
|
||||
|
||||
<h6>
|
||||
Filename
|
||||
</h6>
|
||||
|
||||
<p>
|
||||
<?= $exception->getFile() ?>
|
||||
</p>
|
||||
|
||||
<h6>
|
||||
Line Number
|
||||
</h6>
|
||||
|
||||
<p>
|
||||
<?= $exception->getLine() ?>
|
||||
</p>
|
||||
|
||||
<?php if (defined('SHOW_DEBUG_BACKTRACE') && SHOW_DEBUG_BACKTRACE === true): ?>
|
||||
|
||||
<h6>
|
||||
Backtrace
|
||||
</h6>
|
||||
|
||||
<?php foreach ($exception->getTrace() as $error): ?>
|
||||
|
||||
<?php if (isset($error['file']) && strpos($error['file'], realpath(BASEPATH)) !== 0): ?>
|
||||
|
||||
<p style="margin-left:10px">
|
||||
File: <?= $error['file'] ?><br>
|
||||
Line: <?= $error['line'] ?><br>
|
||||
Function: <?= $error['function'] ?>
|
||||
</p>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php endforeach; ?>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
</div>
|
||||
82
application/views/errors/html/error_general.php
Normal file
82
application/views/errors/html/error_general.php
Normal file
@@ -0,0 +1,82 @@
|
||||
<?php
|
||||
/**
|
||||
* @var string $heading
|
||||
* @var string $message
|
||||
*/
|
||||
?>
|
||||
|
||||
<!doctype html>
|
||||
<html lang="en" style="
|
||||
height: 100%;
|
||||
">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
|
||||
<title>Error | Easy!Appointments</title>
|
||||
<style>
|
||||
#error-container {
|
||||
background: #ffffff;
|
||||
min-width: 450px;
|
||||
max-width: 600px;
|
||||
margin: auto;
|
||||
border: 1px solid #D0D0D0;
|
||||
font: 13px/20px normal Helvetica, Arial, sans-serif;
|
||||
color: #4F5155;
|
||||
}
|
||||
|
||||
#error-container a {
|
||||
color: #003399;
|
||||
background-color: transparent;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
#error-container h1 {
|
||||
color: #444;
|
||||
background-color: transparent;
|
||||
border-bottom: 1px solid #D0D0D0;
|
||||
font-size: 19px;
|
||||
font-weight: normal;
|
||||
margin: 0 0 14px 0;
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
#error-container code {
|
||||
font-family: Consolas, Monaco, Courier New, Courier, monospace;
|
||||
font-size: 12px;
|
||||
background-color: #f9f9f9;
|
||||
border: 1px solid #D0D0D0;
|
||||
color: #002166;
|
||||
display: block;
|
||||
margin: 14px 0 14px 0;
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
#error-container p {
|
||||
margin: 20px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body style="
|
||||
height: 100%;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
display: flex;
|
||||
background: #f5f8fa;
|
||||
">
|
||||
<div id="error-container">
|
||||
<h1>
|
||||
<?= $heading ?>
|
||||
</h1>
|
||||
|
||||
<?= $message ?>
|
||||
|
||||
<p>
|
||||
<small>
|
||||
Powered by
|
||||
<a href="https://easyappointments.org">Easy!Appointments</a>
|
||||
</small>
|
||||
</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
52
application/views/errors/html/error_php.php
Normal file
52
application/views/errors/html/error_php.php
Normal file
@@ -0,0 +1,52 @@
|
||||
<?php
|
||||
/**
|
||||
* @var string $severity
|
||||
* @var string $message
|
||||
* @var string $filepath
|
||||
* @var string $line
|
||||
*/
|
||||
?>
|
||||
|
||||
<div style="
|
||||
border: 1px solid #dfdfdf;
|
||||
margin: 0 0 10px 0;
|
||||
padding: 15px;
|
||||
font-size: 14px;
|
||||
">
|
||||
|
||||
<h4>
|
||||
A PHP Error was encountered
|
||||
</h4>
|
||||
|
||||
<h6>
|
||||
Severity
|
||||
</h6>
|
||||
|
||||
<p>
|
||||
<?= $severity ?>
|
||||
</p>
|
||||
|
||||
<h6>
|
||||
Message
|
||||
</h6>
|
||||
|
||||
<p>
|
||||
<?= $message ?>
|
||||
</p>
|
||||
|
||||
<h6>
|
||||
Filename
|
||||
</h6>
|
||||
|
||||
<p>
|
||||
<?= $filepath ?>
|
||||
</p>
|
||||
|
||||
<h6>
|
||||
Line Number
|
||||
</h6>
|
||||
|
||||
<p>
|
||||
<?= $line ?>
|
||||
</p>
|
||||
</div>
|
||||
10
application/views/errors/html/index.html
Normal file
10
application/views/errors/html/index.html
Normal file
@@ -0,0 +1,10 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
10
application/views/errors/index.html
Normal file
10
application/views/errors/index.html
Normal file
@@ -0,0 +1,10 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user