]> granicus.if.org Git - php/commitdiff
prettying
authorColin Viebrock <cmv@php.net>
Fri, 7 Apr 2000 16:50:55 +0000 (16:50 +0000)
committerColin Viebrock <cmv@php.net>
Fri, 7 Apr 2000 16:50:55 +0000 (16:50 +0000)
sapi/isapi/php4isapi.c
sapi/roxen/roxen.c

index 3597a18e2e4fcee758cf791e820b14e84c714adc..ca9dc4633e98464d96863f654be3a89c83024223 100644 (file)
@@ -102,7 +102,7 @@ static void php_info_isapi(ZEND_MODULE_INFO_FUNC_ARGS)
 
        lpECB = (LPEXTENSION_CONTROL_BLOCK) SG(server_context);
 
-       PUTS("<table border=5 width=\"600\">\n");
+       php_info_print_table_start();
        php_info_print_table_header(2, "Server Variable", "Value");
        while (*p) {
                variable_len = ISAPI_SERVER_VAR_BUF_SIZE;
@@ -121,8 +121,7 @@ static void php_info_isapi(ZEND_MODULE_INFO_FUNC_ARGS)
                }
                p++;
        }
-
-       PUTS("</table>");
+       php_info_print_table_end();
 }
 
 
index ed374305cb40c007cf6ddb70810403c3b5579b67..ac260516b4cef18d730a5332bd39954bff370722 100644 (file)
@@ -26,6 +26,7 @@
 #include "php_globals.h"
 #include "SAPI.h"
 #include "main.h"
+#include "ext/standard/info.h"
 
 #include "php_version.h"
 
@@ -445,9 +446,7 @@ php_roxen_sapi_read_cookies(SLS_D)
 static void php_info_roxen(ZEND_MODULE_INFO_FUNC_ARGS)
 {
   /*  char buf[512]; */
-  extern void php_info_print_table_row( int, ... );
-       
-  PUTS("<table border=5 width=600>\n");
+  php_info_print_table_start();
   php_info_print_table_row(2, "SAPI module version", "$Id$");
   /*  php_info_print_table_row(2, "Build date", Ns_InfoBuildDate());
       php_info_print_table_row(2, "Config file path", Ns_InfoConfigFile());
@@ -465,7 +464,7 @@ static void php_info_roxen(ZEND_MODULE_INFO_FUNC_ARGS)
       uptime % 60);
       php_info_print_table_row(2, "Server uptime", buf);
   */
-  PUTS("</table>");
+  php_info_print_table_end();
 }
 
 static zend_module_entry php_roxen_module = {