3e33855cff22766978c6813833157ce58160acd9
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) {
bernd some updates

bernd authored 15 years ago

9)   global $debugmode;
10)   if ($debugmode)
11)     if (is_array($str) || is_object($str))
bernd Menü-Includes sinnvoller /...

bernd authored 16 years ago

12)     {
13)       echo "<pre>".print_r($str, true)."</pre>\n";
14)     }
15)     else
16)     {
bernd some updates

bernd authored 15 years ago

17)       echo $str . "<br />\n";
bernd Menü-Includes sinnvoller /...

bernd authored 16 years ago

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)