summaryrefslogtreecommitdiffstats
path: root/app/view/except.php
diff options
context:
space:
mode:
authorMalf Furious <m@lfurio.us>2018-02-10 21:38:08 -0500
committerMalf Furious <m@lfurio.us>2018-02-10 21:38:08 -0500
commit1f16fcfe5eb1c6a7f3f606f60ac717526d5c74fa (patch)
treef3c4f099b7232b8406eff87f5899f72b3f703da5 /app/view/except.php
parent98ca92aa0a8aa9d879dd77ab76672f052b53b8d6 (diff)
downloadscrott-1f16fcfe5eb1c6a7f3f606f60ac717526d5c74fa.tar.gz
scrott-1f16fcfe5eb1c6a7f3f606f60ac717526d5c74fa.zip
Add exception handler view
Diffstat (limited to '')
-rw-r--r--app/view/except.php46
1 files changed, 46 insertions, 0 deletions
diff --git a/app/view/except.php b/app/view/except.php
new file mode 100644
index 0000000..766828a
--- /dev/null
+++ b/app/view/except.php
@@ -0,0 +1,46 @@
+<?php
+
+/*
+ * SCROTT IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+ * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
+ * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
+ * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+ * OTHER DEALINGS IN THE SOFTWARE.
+ *
+ * For more information, please refer to UNLICENSE
+ */
+
+require_once "view/stdpage.php";
+
+?>
+
+<!DOCTYPE html>
+
+<html lang="en">
+ <head>
+ <?=stdpage\head( "Application exception" )?>
+ </head>
+
+ <body>
+ <?=stdpage\top()?>
+
+ <div class="container">
+ <div class="jumbotron text-center">
+ <h1>Scrott derped</h1>
+ <h5>System internals reported this:</h5>
+
+ <div class="well well-sm text-danger">
+ <h3><?=$e->getMessage()?></h3>
+ </div>
+
+ <a href="<?=ar()?>/" class="btn btn-primary btn-lg">
+ <span class="glyphicon glyphicon-pencil"></span> Go to Scrott Dashboard
+ </a>
+ </div>
+ </div>
+
+ <?=stdpage\foot()?>
+ </body>
+</html>