d96a86aa9e8ab73fd3b81d878ecaa669a4cfb1be
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');
bernd Mehr config-optionen und co...

bernd authored 14 years ago

4) $debugmode = (isset($_GET['debug']) && config('enable_debug'));
bernd Menü-Includes sinnvoller /...

bernd authored 16 years ago

5) 
bernd webinterface => /webinterface

bernd authored 17 years ago

6) function DEBUG($str)
7) {
bernd some updates

bernd authored 15 years ago

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

bernd authored 16 years ago

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

bernd authored 15 years ago

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

bernd authored 16 years ago

17)     }
bernd webinterface => /webinterface

bernd authored 17 years ago

18) }
19) 
bernd DEBUG-Ausgaben zentralisiert

bernd authored 16 years ago

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