diff options
author | foobar <sniper@php.net> | 2000-12-01 01:25:36 +0000 |
---|---|---|
committer | foobar <sniper@php.net> | 2000-12-01 01:25:36 +0000 |
commit | 744f1a34ef2be0a810c082bafcc4f207a4242187 (patch) | |
tree | b4a585004e5f4691aaec8f3e10e7d606c2089301 /ext/dba | |
parent | 6cdc90bae3b82eecb408ee191eec830968ae1d51 (diff) | |
download | php-git-744f1a34ef2be0a810c082bafcc4f207a4242187.tar.gz |
Beautifying of phpinfo().
Diffstat (limited to 'ext/dba')
-rw-r--r-- | ext/dba/dba.c | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/ext/dba/dba.c b/ext/dba/dba.c index cc68f5c43b..ee8f7409d1 100644 --- a/ext/dba/dba.c +++ b/ext/dba/dba.c @@ -206,19 +206,23 @@ static PHP_MSHUTDOWN_FUNCTION(dba) return SUCCESS; } + static PHP_MINFO_FUNCTION(dba) { - /* could be prettier (cmv) */ dba_handler *hptr; - - php_info_print_box_start(0); - PUTS("V1 ($Id$)"); + 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) { |