projects
/
misc
/
kostenrechnung
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ac90efb
)
Provide debug information on demand
author
Joey Schulze
<joey@infodrom.org>
Wed, 20 Jan 2010 12:32:13 +0000
(13:32 +0100)
committer
Joey Schulze
<joey@infodrom.org>
Wed, 20 Jan 2010 12:32:13 +0000
(13:32 +0100)
lib/general.php
patch
|
blob
|
history
diff --git
a/lib/general.php
b/lib/general.php
index
f088db0
..
279b701
100644
(file)
--- a/
lib/general.php
+++ b/
lib/general.php
@@
-55,4
+55,13
@@
function process()
return $ret;
}
+function debug_info()
+{
+ $html = '<div style="background: #DDD; margin: 5px; padding-left: 4px; border: 1px solid #AAA;clear:both;">';
+ $html .= "\n<pre>\n\$_SESSION = " . var_export($_SESSION,true) . "\n";
+ $html .= "\n\$_COOKIE = " . var_export($_COOKIE,true) . "\n</pre>\n";
+ $html .= '</div>';
+ return $html;
+}
+
?>