first commit
Some checks failed
CI / build-test (push) Has been cancelled

This commit is contained in:
2025-05-31 18:56:37 +02:00
commit 8c4798a5fd
1240 changed files with 190468 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
<?php defined('BASEPATH') or exit('No direct script access allowed');
echo "\nERROR: ", $heading, "\n\n", $message, "\n\n";

View File

@@ -0,0 +1,3 @@
<?php defined('BASEPATH') or exit('No direct script access allowed');
echo "\nDatabase error: ", $heading, "\n\n", $message, "\n\n";

View 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; ?>

View File

@@ -0,0 +1,3 @@
<?php defined('BASEPATH') or exit('No direct script access allowed');
echo "\nERROR: ", $heading, "\n\n", $message, "\n\n";

View 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; ?>

View 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>

View 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>

View 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>

View 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>

View 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>

View 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>

View File

@@ -0,0 +1,10 @@
<html lang="en">
<head>
<title>403 Forbidden</title>
</head>
<body>
<p>Directory access is forbidden.</p>
</body>
</html>

View File

@@ -0,0 +1,10 @@
<html lang="en">
<head>
<title>403 Forbidden</title>
</head>
<body>
<p>Directory access is forbidden.</p>
</body>
</html>