From d8543707426d6a4645c270929f999df8209bb587 Mon Sep 17 00:00:00 2001 From: cflem Date: Sun, 1 Jan 2017 19:32:37 -0700 Subject: Added inc/config.php to the gitignore, opting for a sample version instead --- inc/dash_fatal.tpl | 9 +++++++++ inc/functions.php | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 inc/dash_fatal.tpl (limited to 'inc') 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 @@ +
+

[tpl:message]

+
+

+ + [tpl:label] + +

+
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 = '← Got It'; die(tpl(array('message' => $msg, 'link' => $link, 'label' => $label), 'fatal.tpl')); -- cgit v1.2.3