cvs: php4 /ext/dba dba.c
| From: | Jani Taskinen | Date: | Fri, 01 Dec 2000 01:25:37 +0000 |
| Subject: | cvs: php4 /ext/dba dba.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-2833@lists.php.net to get a copy of this message | ||
sniper Thu Nov 30 17:25:37 2000 EDT
Modified files:
/php4/ext/dba dba.c
Log:
Beautifying of phpinfo().
Index: php4/ext/dba/dba.c
diff -u php4/ext/dba/dba.c:1.26 php4/ext/dba/dba.c:1.27
--- php4/ext/dba/dba.c:1.26 Wed Nov 22 13:47:15 2000
+++ php4/ext/dba/dba.c Thu Nov 30 17:25:36 2000
@@ -27,7 +27,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: dba.c,v 1.26 2000/11/22 21:47:15 sas Exp $ */
+/* $Id: dba.c,v 1.27 2000/12/01 01:25:36 sniper Exp $ */
#include "php.h"
@@ -206,19 +206,23 @@
return SUCCESS;
}
+
static PHP_MINFO_FUNCTION(dba)
{
- /* could be prettier (cmv) */
dba_handler *hptr;
-
- php_info_print_box_start(0);
- PUTS("V1 ($Id: dba.c,v 1.26 2000/11/22 21:47:15 sas Exp $)");
+ static char handlers[80], tmp[5];
+
for(hptr = handler; hptr->name; hptr++) {
- PUTS(" ");
- PUTS(hptr->name);
- }
- php_info_print_box_end();
+ sprintf(tmp, "%s ", hptr->name);
+ strcat(handlers, tmp);
+ }
+
+ php_info_print_table_start();
+ php_info_print_table_row(2, "DBA support", "enabled");
+ php_info_print_table_row(2, "Supported handlers", handlers);
+ php_info_print_table_end();
}
+
static void php_dba_update(INTERNAL_FUNCTION_PARAMETERS, int mode)
{