diff options
-rw-r--r-- | ext/standard/info.c | 22 | ||||
-rw-r--r-- | ext/standard/info.h | 6 | ||||
-rw-r--r-- | main/php_ini.c | 10 |
3 files changed, 19 insertions, 19 deletions
diff --git a/ext/standard/info.c b/ext/standard/info.c index 29a09a01e1..8f911d2f68 100644 --- a/ext/standard/info.c +++ b/ext/standard/info.c @@ -69,7 +69,7 @@ static void php_print_gpcse_array(char *name, uint name_length ELS_DC) zend_hash_internal_pointer_reset((*data)->value.ht); while (zend_hash_get_current_data((*data)->value.ht, (void **) &tmp) == SUCCESS) { PUTS("<tr valign=\"baseline\" bgcolor=\"" PHP_CONTENTS_COLOR "\">"); - PUTS("<td bgcolor=\"" PHP_ENTRY_NAME_COLOR "\"><B>"); + PUTS("<td bgcolor=\"" PHP_ENTRY_NAME_COLOR "\"><b>"); PUTS(name); PUTS("[\""); switch (zend_hash_get_current_key((*data)->value.ht, &string_key, &num_key, 0)) { @@ -80,7 +80,7 @@ static void php_print_gpcse_array(char *name, uint name_length ELS_DC) php_printf("%ld",num_key); break; } - PUTS("\"]</B></td><td>"); + PUTS("\"]</b></td><td>"); if ((*tmp)->type == IS_ARRAY) { PUTS("<pre>"); zend_print_zval_r(*tmp, 0); @@ -105,14 +105,14 @@ static void php_print_gpcse_array(char *name, uint name_length ELS_DC) */ void php_info_print_style(void) { - php_printf("<STYLE TYPE=\"text/css\"><!--\n"); - php_printf("A { text-decoration: none; }\n"); - php_printf("A:hover { text-decoration: underline; }\n"); - php_printf("H1 { font-family: arial,helvetica,sans-serif; font-size: 18pt; font-weight: bold;}\n"); - php_printf("H2 { font-family: arial,helvetica,sans-serif; font-size: 14pt; font-weight: bold;}\n"); - php_printf("BODY,TD { font-family: arial,helvetica,sans-serif; font-size: 10pt; }\n"); - php_printf("TH { font-family: arial,helvetica,sans-serif; font-size: 11pt; font-weight: bold; }\n"); - php_printf("//--></STYLE>\n"); + php_printf("<style type=\"text/css\"><!--\n"); + php_printf("a { text-decoration: none; }\n"); + php_printf("a:hover { text-decoration: underline; }\n"); + php_printf("h1 { font-family: arial,helvetica,sans-serif; font-size: 18pt; font-weight: bold;}\n"); + php_printf("h2 { font-family: arial,helvetica,sans-serif; font-size: 14pt; font-weight: bold;}\n"); + php_printf("body,td { font-family: arial,helvetica,sans-serif; font-size: 10pt; }\n"); + php_printf("th { font-family: arial,helvetica,sans-serif; font-size: 11pt; font-weight: bold; }\n"); + php_printf("//--></style>\n"); } /* }}} */ @@ -158,7 +158,7 @@ PHPAPI void php_print_info(int flag) the_time = time(NULL); ta = php_localtime_r(&the_time, &tmbuf); - PUTS("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\"\n \"http://www.w3.org/TR/html4/loose.dtd\">\n<html>\n"); + PUTS("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n<html>\n"); if (flag & PHP_INFO_GENERAL) { char *zend_version = get_zend_version(); diff --git a/ext/standard/info.h b/ext/standard/info.h index 3a246f0a08..b4666f0fdb 100644 --- a/ext/standard/info.h +++ b/ext/standard/info.h @@ -22,9 +22,9 @@ #ifndef INFO_H #define INFO_H -#define PHP_ENTRY_NAME_COLOR "#CCCCFF" -#define PHP_CONTENTS_COLOR "#CCCCCC" -#define PHP_HEADER_COLOR "#9999CC" +#define PHP_ENTRY_NAME_COLOR "#ccccff" +#define PHP_CONTENTS_COLOR "#cccccc" +#define PHP_HEADER_COLOR "#9999cc" #define PHP_INFO_GENERAL (1<<0) #define PHP_INFO_CREDITS (1<<1) diff --git a/main/php_ini.c b/main/php_ini.c index b705971cd4..1358f6cdae 100644 --- a/main/php_ini.c +++ b/main/php_ini.c @@ -83,14 +83,14 @@ static int php_ini_displayer(zend_ini_entry *ini_entry, int module_number) return 0; } - PUTS("<TR VALIGN=\"baseline\" BGCOLOR=\"" PHP_CONTENTS_COLOR "\">"); - PUTS("<TD 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><BR></TD><TD ALIGN=\"center\">"); + PUTS("</b><br></td><td align=\"center\">"); php_ini_displayer_cb(ini_entry, ZEND_INI_DISPLAY_ACTIVE); - PUTS("</TD><TD ALIGN=\"center\">"); + PUTS("</td><td align=\"center\">"); php_ini_displayer_cb(ini_entry, ZEND_INI_DISPLAY_ORIG); - PUTS("</TD></TR>\n"); + PUTS("</td></tr>\n"); return 0; } /* }}} */ |