summaryrefslogtreecommitdiff
path: root/dash/dash_functions.php
diff options
context:
space:
mode:
Diffstat (limited to 'dash/dash_functions.php')
-rw-r--r--dash/dash_functions.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/dash/dash_functions.php b/dash/dash_functions.php
new file mode 100644
index 0000000..49664a3
--- /dev/null
+++ b/dash/dash_functions.php
@@ -0,0 +1,9 @@
+<?php
+function dash_fatal ($msg = null, $link = null, $label = null) {
+ if ($link === null) $link = 'javascript:history.go(-1);';
+ if ($label == null) $label = '&larr; Got It';
+ echo tpl(array('message' => $msg, 'link' => $link, 'label' => $label), 'dash_fatal.tpl').PHP_EOL;
+ require('footer.php');
+ die;
+}
+?>