deedc3e35d94c0d716ccb63996c7d4cafd95267d
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) 
8) function DEBUG($str)
9) {
10) 	global $debugmode;
11) 	if ($debugmode)
bernd MenĂ¼-Includes sinnvoller /...

bernd authored 16 years ago

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