X-Git-Url: http://git.dj3c1t.com/?a=blobdiff_plain;f=web%2Fapp%2Finit%2F0100_functions.php;h=061cef9c02d859729f235f1798f3ebd230c719ba;hb=29b6377f43bf4477e04b57069cf779ac1b913bdb;hp=06f135dcd8c81a26fb1f9f57bde4fe7dea71489f;hpb=a21fbfe1301f83b72d2815899ff334445b7830cf;p=mtweb diff --git a/web/app/init/0100_functions.php b/web/app/init/0100_functions.php index 06f135d..061cef9 100644 --- a/web/app/init/0100_functions.php +++ b/web/app/init/0100_functions.php @@ -1,7 +1,9 @@ \n".htmlentities(print_r($content, true))."\n\n"; + function debug($content){ + echo PHP_SAPI == "cli" ? + "\n".print_r($content, true)."\n" + : "
".htmlentities(print_r($content, true), ENT_QUOTES, "UTF-8")."
"; } ?> \ No newline at end of file