git.schokokeks.org
Repositories
Help
Report an Issue
webinterface.git
Code
Commits
Branches
Tags
Suche
Strukturansicht:
f7ff31f
Branches
Tags
master
ticket
webinterface.git
inc
debug.php
some updates
bernd
commited
f7ff31f
at 2008-08-13 07:09:36
debug.php
Blame
History
Raw
<?php require_once('config.php'); global $config; $debugmode = (isset($_GET['debug']) && $config['enable_debug']); function DEBUG($str) { global $debugmode; if ($debugmode) if (is_array($str) || is_object($str)) { echo "<pre>".print_r($str, true)."</pre>\n"; } else { echo $str . "<br />\n"; } } DEBUG("GET: ".htmlentities(print_r($_GET, true))." / POST: ".htmlentities(print_r($_POST, true))); ?>