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.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/public_html/functions.php b/public_html/functions.php
index 51979da..8c998fc 100644
--- a/public_html/functions.php
+++ b/public_html/functions.php
@@ -3,21 +3,21 @@
function failure($reason, $httpcode, $ajax = true, $heading = NULL){
# send header with $httpcode
- header($_SERVER['SERVER_PROTOCOL'] . " " . $httpcode)
+ header($_SERVER['SERVER_PROTOCOL'] . " " . $httpcode);
# just echo the reason to the ajax response
if($ajax){
- echo htmlentities($reason);
- exit
+ echo $reason;
+ exit;
}
// TODO: Put pretty HTML here, please
# print full error page
if($heading != NULL)
- echo htmlentities($heading);
+ echo $heading;
- echo htmlentities($reason);
+ echo $reason;
# exit the script here
exit;