diff options
author | Colin Viebrock <cmv@php.net> | 2000-04-05 20:17:02 +0000 |
---|---|---|
committer | Colin Viebrock <cmv@php.net> | 2000-04-05 20:17:02 +0000 |
commit | 1ddc9ff852b8698fd395ff771c6aa214d9543d9a (patch) | |
tree | 332fbb70e93af5b2ce61d554854af2570ed690e2 /main/php_ini.c | |
parent | 794f3121766c8f807f587803950e4d61b39c2950 (diff) | |
download | php-git-1ddc9ff852b8698fd395ff771c6aa214d9543d9a.tar.gz |
Prettying up the output of phpinfo(). Someone has to tell me how
to get a new .gif logo in there, and why the ZEND_DEBUG output is
causing seg faults.
I also need to go through all the modules and fix up the output they
create.
Diffstat (limited to 'main/php_ini.c')
-rw-r--r-- | main/php_ini.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/main/php_ini.c b/main/php_ini.c index a49a3c9e28..55c51a357b 100644 --- a/main/php_ini.c +++ b/main/php_ini.c @@ -359,13 +359,14 @@ static int php_ini_displayer(php_ini_entry *ini_entry, int module_number) return 0; } - PUTS("<tr><td align=\"center\" bgcolor=\"" PHP_ENTRY_NAME_COLOR "\"><b>"); + PUTS("<TR VALIGN=\"baseline\" BGCOLOR=\"" PHP_CONTENTS_COLOR "\">"); + PUTS("<TD BGCOLOR=\"" PHP_ENTRY_NAME_COLOR "\"><B>"); PHPWRITE(ini_entry->name, ini_entry->name_length-1); - PUTS("</b></td><td align=\"center\" bgcolor=\"" PHP_CONTENTS_COLOR "\">"); + PUTS("</B><BR></TD><TD ALIGN=\"center\">"); php_ini_displayer_cb(ini_entry, PHP_INI_DISPLAY_ACTIVE); - PUTS("</td><td align=\"center\" bgcolor=\"" PHP_CONTENTS_COLOR "\">"); + PUTS("</TD><TD ALIGN=\"center\">"); php_ini_displayer_cb(ini_entry, PHP_INI_DISPLAY_ORIG); - PUTS("</td></tr>\n"); + PUTS("</TD></TR>\n"); return 0; } @@ -379,10 +380,10 @@ PHPAPI void display_ini_entries(zend_module_entry *module) } else { module_number = 0; } - PUTS("<table border=5 width=\"600\">\n"); + php_info_print_table_start(); php_info_print_table_header(3, "Directive", "Local Value", "Master Value"); zend_hash_apply_with_argument(&known_directives, (int (*)(void *, void *)) php_ini_displayer, (void *) (long) module_number); - PUTS("</table>\n"); + php_info_print_table_end(); } |