X-Git-Url: https://git.infodrom.org/?p=misc%2Fkostenrechnung;a=blobdiff_plain;f=lib%2Fgeneral.php;h=c2967285bb015c8dfa070c695b3d7137b8b56945;hp=f088db0b77d8019f60df0e7b1919bfbae19791d3;hb=54045459c06468518b9939531e34629eeb085f09;hpb=335e8c2b5620b9f97d024eaf277e663746d90086 diff --git a/lib/general.php b/lib/general.php index f088db0..c296728 100644 --- a/lib/general.php +++ b/lib/general.php @@ -1,5 +1,21 @@ ' . $text; +} + +function debug_info() +{ + global $jsfiles; + global $debug_info; + + if (DEBUG !== true) return ''; + + $jsfiles[] = 'lib/debug_joey.js'; + + $html = '
'; + $html .= "\n
\n\$_SESSION = " . var_export($_SESSION,true) . "\n";
+  $html .= "\n\$_COOKIE = " . var_export($_COOKIE,true) . "\n
\n"; + $html .= $debug_info; + $html .= '
'; + return $html; +} + ?>