]> granicus.if.org Git - php/commitdiff
Finish phpinfo() HTML 4.01 tweaking.
authorSebastian Bergmann <sbergmann@php.net>
Tue, 19 Jun 2001 15:21:28 +0000 (15:21 +0000)
committerSebastian Bergmann <sbergmann@php.net>
Tue, 19 Jun 2001 15:21:28 +0000 (15:21 +0000)
ext/standard/info.c
ext/standard/info.h
main/php_ini.c

index 29a09a01e18ad2e4912974497dd10f003bfac060..8f911d2f68d41df2ca24a77f10e4eabacd1224b8 100644 (file)
@@ -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();
index 3a246f0a081fc733a64c751bc06302b363beeac5..b4666f0fdbfd34b42e698b19111a8c3bba7ded6c 100644 (file)
@@ -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)
index b705971cd459c71dcf554084706b17f183197a42..1358f6cdae5db395b1b8dcdbd88fae6d8366efac 100644 (file)
@@ -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;
 }
 /* }}} */