diff options
author | Urban Müller | 2012-01-09 16:32:23 +0000 |
---|---|---|
committer | Urban Müller | 2012-01-09 16:32:23 +0000 |
commit | 4279e7b79da13bbf013c7d5394a5f34182709e56 (patch) | |
tree | 827532db593aaf0b07d1a0c37cff432bec03da77 /it_debug.class | |
parent | 9ac919dad1b02042493d765f85511ab0221671c3 (diff) | |
download | itools-4279e7b79da13bbf013c7d5394a5f34182709e56.tar.gz itools-4279e7b79da13bbf013c7d5394a5f34182709e56.tar.bz2 itools-4279e7b79da13bbf013c7d5394a5f34182709e56.zip |
style cleanup
Diffstat (limited to 'it_debug.class')
-rw-r--r-- | it_debug.class | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/it_debug.class b/it_debug.class index 672e0f5..c558f52 100644 --- a/it_debug.class +++ b/it_debug.class @@ -83,10 +83,7 @@ function dump($args) if (preg_match('/csv|txt|gif|jpg/', $_SERVER['PHP_SELF']) || preg_grep('#text/(calendar|css|javascript|json|plain|rfc822|xml)#', headers_list())) $plain = 1; else if ($_SERVER['REMOTE_ADDR']) - { - $blue = "<span style='color:#00c'>"; - $noblue = "</span>"; - } + list($blue, $noblue) = array("<span style='color:#00c'>", "</span>"); else if (posix_isatty(STDOUT)) list($blue, $noblue, $red, $nored) = getenv('IT_ED_BRIGHT') ? array("\033[34m", "\033[m", "\033[33m", "\033[m") : array("\033[34m", "\033[m", "\033[31m", "\033[m"); |