diff options
Diffstat (limited to 'sapi/aolserver/aolserver.c')
-rw-r--r-- | sapi/aolserver/aolserver.c | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/sapi/aolserver/aolserver.c b/sapi/aolserver/aolserver.c index 0c844d034e..024221809f 100644 --- a/sapi/aolserver/aolserver.c +++ b/sapi/aolserver/aolserver.c @@ -205,7 +205,7 @@ static void php_info_aolserver(ZEND_MODULE_INFO_FUNC_ARGS) int i; NSLS_FETCH(); - 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()); @@ -222,24 +222,21 @@ static void php_info_aolserver(ZEND_MODULE_INFO_FUNC_ARGS) (uptime / 60) % 60, uptime % 60); php_info_print_table_row(2, "Server uptime", buf); - PUTS("</table>"); + php_info_print_table_end(); - PUTS("<hr><h2>HTTP Headers Information</h2>"); - PUTS("<table border=5 width=\"600\">\n"); - PUTS("<tr><th colspan=2 bgcolor=\"" PHP_HEADER_COLOR "\">HTTP Request Headers</th></tr>\n"); + SECTION("HTTP Headers Information"); + php_info_print_table_start(); + php_info_print_table_colspan_header(2, "HTTP Request Headers"); php_info_print_table_row(2, "HTTP Request", NSG(conn)->request->line); - for (i = 0; i < Ns_SetSize(NSG(conn)->headers); i++) { php_info_print_table_row(2, Ns_SetKey(NSG(conn)->headers, i), Ns_SetValue(NSG(conn)->headers, i)); } - - PUTS("<tr><th colspan=2 bgcolor=\"" PHP_HEADER_COLOR "\">HTTP Response Headers</th></tr>\n"); - + + php_info_print_table_colspan_header(2, "HTTP Response Headers"); for (i = 0; i < Ns_SetSize(NSG(conn)->outputheaders); i++) { php_info_print_table_row(2, Ns_SetKey(NSG(conn)->outputheaders, i), Ns_SetValue(NSG(conn)->outputheaders, i)); } - - PUTS("</table>"); + php_info_print_table_end(); } PHP_FUNCTION(getallheaders); |