summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
authorcflem <carson.fl3ming@gmail.com>2017-01-01 19:32:37 -0700
committercflem <carson.fl3ming@gmail.com>2017-01-01 19:32:37 -0700
commitd8543707426d6a4645c270929f999df8209bb587 (patch)
tree7ae008b2844bad684e9b4b81f1281939be37bdee /inc
parentcab89c911147b4dcf9027d972995b981b8247673 (diff)
downloadbulletin-d8543707426d6a4645c270929f999df8209bb587.tar.gz
Added inc/config.php to the gitignore, opting for a sample version instead
Diffstat (limited to 'inc')
-rw-r--r--inc/dash_fatal.tpl9
-rw-r--r--inc/functions.php2
2 files changed, 10 insertions, 1 deletions
diff --git a/inc/dash_fatal.tpl b/inc/dash_fatal.tpl
new file mode 100644
index 0000000..31106a2
--- /dev/null
+++ b/inc/dash_fatal.tpl
@@ -0,0 +1,9 @@
+ <div class="errbox">
+ <p>[tpl:message]</p>
+ <div class="hr"></div>
+ <p class="back">
+ <a href="[tpl:link]">
+ [tpl:label]
+ </a>
+ </p>
+ </div>
diff --git a/inc/functions.php b/inc/functions.php
index 4e98342..4793d3d 100644
--- a/inc/functions.php
+++ b/inc/functions.php
@@ -36,7 +36,7 @@ function tpl ($options, $file) {
return $tpl_htm;
}
-function fatal ($msg, $link, $label) {
+function fatal ($msg = null, $link = null, $label = null) {
if ($link === null) $link = 'javascript:history.go(-1);';
if ($label === null) $label = '&larr; Got It';
die(tpl(array('message' => $msg, 'link' => $link, 'label' => $label), 'fatal.tpl'));