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>
|
||||
Reference in New Issue
Block a user