8e32b7863e9b6364ab78364473c0455cc3e04af0
bernd webinterface => /webinterface

bernd authored 17 years ago

1) <?php
2) 
bernd MenĂ¼-Includes sinnvoller /...

bernd authored 16 years ago

3) require_once('config.php');
4) global $config;
5) $debugmode = (isset($_GET['debug']) && $config['enable_debug']);
6) 
bernd webinterface => /webinterface

bernd authored 17 years ago

7) function DEBUG($str)
8) {
9) 	global $debugmode;
10) 	if ($debugmode)
bernd MenĂ¼-Includes sinnvoller /...

bernd authored 16 years ago

11)     if (is_array($str))
12)     {
13)       echo "<pre>".print_r($str, true)."</pre>\n";
14)     }
15)     else
16)     {
17) 	  	echo $str."<br />\n";
18)     }
bernd webinterface => /webinterface

bernd authored 17 years ago

19) }
20) 
bernd DEBUG-Ausgaben zentralisiert

bernd authored 16 years ago

21) 
22) DEBUG("GET: ".htmlentities(print_r($_GET, true))." / POST: ".htmlentities(print_r($_POST, true)));
23)