diff options
author | David Flatz | 2013-09-19 16:02:34 +0000 |
---|---|---|
committer | David Flatz | 2013-09-19 16:02:34 +0000 |
commit | fadd7f279649eb987170fa56bbc2eacf7c531d78 (patch) | |
tree | 6ba92faa075cbf45af7462ea88e819ac938c810b | |
parent | d61d1b2faa02fb7852c13ae9dd1bedc8b60f48e1 (diff) | |
download | itools-fadd7f279649eb987170fa56bbc2eacf7c531d78.tar.gz itools-fadd7f279649eb987170fa56bbc2eacf7c531d78.tar.bz2 itools-fadd7f279649eb987170fa56bbc2eacf7c531d78.zip |
introduce edplain and edhtml debug parameters to enforce debugging output in html or plain-text
-rw-r--r-- | it_debug.class | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/it_debug.class b/it_debug.class index 886484c..a3e6575 100644 --- a/it_debug.class +++ b/it_debug.class @@ -1,7 +1,5 @@ <?php /* -** $Id$ -** ** Copyright (C) 1995-2007 by the ITools Authors. ** This file is part of ITools - the Internet Tools Library ** @@ -80,7 +78,7 @@ static function srcline($stackoffs = 0) */ static function dump($args) { - if (preg_match('/csv|txt|gif|jpg|json/', $_SERVER['PHP_SELF']) || preg_grep('#text/(calendar|css|javascript|json|plain|rfc822|xml)#', headers_list())) + if ((preg_match('/csv|txt|gif|jpg|json/', $_SERVER['PHP_SELF']) || preg_grep('#text/(calendar|css|javascript|json|plain|rfc822|xml)#', headers_list()) || $GLOBALS['debug_edplain']) && !$GLOBALS['debug_edhtml']) $plain = 1; else if ($_SERVER['REMOTE_ADDR']) list($blue, $noblue) = array("<span style='color:#00c'>", "</span>"); |