diff options
author | Colin Viebrock <cmv@php.net> | 2002-09-19 21:57:25 +0000 |
---|---|---|
committer | Colin Viebrock <cmv@php.net> | 2002-09-19 21:57:25 +0000 |
commit | 14a6cc8847c1ba35604aee6c96720dbe213c12ac (patch) | |
tree | 7717ac8459c7aa90b5e10f75571e7b7ee49077c3 /main | |
parent | cd47bf286fb2a09cf3627e69d0bbe7fd937b7ea3 (diff) | |
download | php-git-14a6cc8847c1ba35604aee6c96720dbe213c12ac.tar.gz |
Change phpinfo() to use CSS styling instead of HTML code.
It doesn't render as nicely as it used to on older browsers, but it
does result in smaller files, and opens the door to using your own CSS
to style it differently.
There is a patch to Zend/zend_ini.c, but I don't have enough Karma, so
Derick has the patch.
Diffstat (limited to 'main')
-rw-r--r-- | main/php_ini.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/main/php_ini.c b/main/php_ini.c index fcc8373a9b..6349f9d722 100644 --- a/main/php_ini.c +++ b/main/php_ini.c @@ -100,12 +100,12 @@ static int php_ini_displayer(zend_ini_entry *ini_entry, int module_number TSRMLS return 0; } if (PG(html_errors)) { - PUTS("<tr valign=\"baseline\" bgcolor=\"" PHP_CONTENTS_COLOR "\">"); - PUTS("<td bgcolor=\"" PHP_ENTRY_NAME_COLOR "\"><b>"); + PUTS("<tr>"); + PUTS("<td class=\"entry\">"); PHPWRITE(ini_entry->name, ini_entry->name_length-1); - PUTS("</b><br /></td><td align=\"center\">"); + PUTS("</td><td class=\"value\">"); php_ini_displayer_cb(ini_entry, ZEND_INI_DISPLAY_ACTIVE); - PUTS("</td><td align=\"center\">"); + PUTS("</td><td class=\"value\">"); php_ini_displayer_cb(ini_entry, ZEND_INI_DISPLAY_ORIG); PUTS("</td></tr>\n"); } else { |