From 1a7fa60f6cb2ee26843ca19e37bb4ff44104ad55 Mon Sep 17 00:00:00 2001 From: Bulletin Date: Thu, 29 Dec 2016 16:42:32 -0500 Subject: Added existing progress --- inc/functions.php | 67 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 inc/functions.php (limited to 'inc/functions.php') diff --git a/inc/functions.php b/inc/functions.php new file mode 100644 index 0000000..4e98342 --- /dev/null +++ b/inc/functions.php @@ -0,0 +1,67 @@ + $msg, 'link' => $link, 'label' => $label), 'fatal.tpl')); +} + +function gohome () { + global $b_config; + redirect($b_config['base_url']); +} + +function goin () { + l_redirect('dash/'); +} + +function loggedin () { + goin(); +} + +function l_redirect ($page) { + global $b_config; + redirect($b_config['base_url'].$page); +} + +function redirect ($url) { + header('Location: '.$url); + fatal('Redirecting...', $url); +} +?> -- cgit v1.2.3