From 29947ee882a8d519d62ca9061ed6513cedfb1930 Mon Sep 17 00:00:00 2001 From: Andrey Andreev Date: Tue, 12 Nov 2013 18:36:46 +0200 Subject: Add CLI error templates and only send HTTP status headers for non-CLI requests (issue #1743) --- application/views/errors/html/error_404.php | 92 +++++++++++++++++++++++++ application/views/errors/html/error_db.php | 92 +++++++++++++++++++++++++ application/views/errors/html/error_general.php | 92 +++++++++++++++++++++++++ application/views/errors/html/error_php.php | 58 ++++++++++++++++ application/views/errors/html/index.html | 10 +++ 5 files changed, 344 insertions(+) create mode 100644 application/views/errors/html/error_404.php create mode 100644 application/views/errors/html/error_db.php create mode 100644 application/views/errors/html/error_general.php create mode 100644 application/views/errors/html/error_php.php create mode 100644 application/views/errors/html/index.html (limited to 'application/views/errors/html') diff --git a/application/views/errors/html/error_404.php b/application/views/errors/html/error_404.php new file mode 100644 index 000000000..21ff6db37 --- /dev/null +++ b/application/views/errors/html/error_404.php @@ -0,0 +1,92 @@ + + + + +404 Page Not Found + + + +
+

+ +
+ + \ No newline at end of file diff --git a/application/views/errors/html/error_db.php b/application/views/errors/html/error_db.php new file mode 100644 index 000000000..a251e1ca9 --- /dev/null +++ b/application/views/errors/html/error_db.php @@ -0,0 +1,92 @@ + + + + +Database Error + + + +
+

+ +
+ + \ No newline at end of file diff --git a/application/views/errors/html/error_general.php b/application/views/errors/html/error_general.php new file mode 100644 index 000000000..b9d54384f --- /dev/null +++ b/application/views/errors/html/error_general.php @@ -0,0 +1,92 @@ + + + + +Error + + + +
+

+ +
+ + \ No newline at end of file diff --git a/application/views/errors/html/error_php.php b/application/views/errors/html/error_php.php new file mode 100644 index 000000000..2267d98af --- /dev/null +++ b/application/views/errors/html/error_php.php @@ -0,0 +1,58 @@ + + +
+ +

A PHP Error was encountered

+ +

Severity:

+

Message:

+

Filename:

+

Line Number:

+ + + +

Backtrace:

+ + + + +

+ File:
+ Line:
+ Function: +

+ + + +

+ + + +
\ No newline at end of file diff --git a/application/views/errors/html/index.html b/application/views/errors/html/index.html new file mode 100644 index 000000000..c942a79ce --- /dev/null +++ b/application/views/errors/html/index.html @@ -0,0 +1,10 @@ + + + 403 Forbidden + + + +

Directory access is forbidden.

+ + + \ No newline at end of file -- cgit v1.2.3-24-g4f1b