summaryrefslogtreecommitdiffstats
path: root/inc
diff options
context:
space:
mode:
authorSimon Rettberg2014-11-28 18:03:09 +0100
committerSimon Rettberg2014-11-28 18:03:09 +0100
commitc2ae2b56413d877ca415aa88531795d061719eba (patch)
treec009b0da2ed5afedf4e79edc71e4400d0abcc775 /inc
parentAdd link to https config to menu (diff)
downloadslx-admin-c2ae2b56413d877ca415aa88531795d061719eba.tar.gz
slx-admin-c2ae2b56413d877ca415aa88531795d061719eba.tar.xz
slx-admin-c2ae2b56413d877ca415aa88531795d061719eba.zip
Return status code 500 on Util::traceError()
Diffstat (limited to 'inc')
-rw-r--r--inc/util.inc.php28
1 files changed, 28 insertions, 0 deletions
diff --git a/inc/util.inc.php b/inc/util.inc.php
index 6e97e0bd..cce46536 100644
--- a/inc/util.inc.php
+++ b/inc/util.inc.php
@@ -11,12 +11,40 @@ class Util
*/
public static function traceError($message)
{
+ Header('HTTP/1.1 500 Internal Server Error');
Header('Content-Type: text/plain; charset=utf-8');
echo "--------------------\nFlagrant system error:\n$message\n--------------------\n\n";
if (defined('CONFIG_DEBUG') && CONFIG_DEBUG) {
debug_print_backtrace();
echo "\n\nSome variables for your entertainment:\n";
print_r($GLOBALS);
+ } else {
+ echo <<<SADFACE
+
+________________________¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶________
+____________________¶¶¶___________________¶¶¶¶_____
+________________¶¶¶_________________________¶¶¶¶___
+______________¶¶______________________________¶¶¶__
+___________¶¶¶_________________________________¶¶¶_
+_________¶¶_____________________________________¶¶¶
+________¶¶_________¶¶¶¶¶___________¶¶¶¶¶_________¶¶
+______¶¶__________¶¶¶¶¶¶__________¶¶¶¶¶¶_________¶¶
+_____¶¶___________¶¶¶¶____________¶¶¶¶___________¶¶
+____¶¶___________________________________________¶¶
+___¶¶___________________________________________¶¶_
+__¶¶____________________¶¶¶¶____________________¶¶_
+_¶¶_______________¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶______________¶¶__
+_¶¶____________¶¶¶¶___________¶¶¶¶¶___________¶¶___
+¶¶¶_________¶¶¶__________________¶¶__________¶¶____
+¶¶_________¶______________________¶¶________¶¶_____
+¶¶¶______¶________________________¶¶_______¶¶______
+¶¶¶_____¶_________________________¶¶_____¶¶________
+_¶¶¶___________________________________¶¶__________
+__¶¶¶________________________________¶¶____________
+___¶¶¶____________________________¶¶_______________
+____¶¶¶¶______________________¶¶¶__________________
+_______¶¶¶¶¶_____________¶¶¶¶¶_____________________
+SADFACE;
}
exit(0);
}