summaryrefslogtreecommitdiff
path: root/public_html/functions.php
diff options
context:
space:
mode:
Diffstat (limited to 'public_html/functions.php')
-rw-r--r--public_html/functions.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/public_html/functions.php b/public_html/functions.php
index c185bd5..51979da 100644
--- a/public_html/functions.php
+++ b/public_html/functions.php
@@ -5,13 +5,15 @@ function failure($reason, $httpcode, $ajax = true, $heading = NULL){
# send header with $httpcode
header($_SERVER['SERVER_PROTOCOL'] . " " . $httpcode)
+ # just echo the reason to the ajax response
if($ajax){
- # just echo the reason to the ajax response
echo htmlentities($reason);
exit
}
// TODO: Put pretty HTML here, please
+
+ # print full error page
if($heading != NULL)
echo htmlentities($heading);