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