Beutify phpinfo() output.

This commit is contained in:
foobar 2001-05-06 06:14:12 +00:00
parent 60ad79335c
commit 9ce123076f
2 changed files with 11 additions and 2 deletions

View File

@ -90,6 +90,7 @@ if test "$PHP_IMAP" != "no"; then
fi
if test "$PHP_KERBEROS" != "no"; then
AC_DEFINE(HAVE_IMAP_KRB,1,[ ])
PHP_ADD_LIBPATH($PHP_KERBEROS_LIBDIR, IMAP_SHARED_LIBADD)
PHP_ADD_LIBRARY(com_err,, IMAP_SHARED_LIBADD)
PHP_ADD_LIBRARY(k5crypto,, IMAP_SHARED_LIBADD)

View File

@ -387,11 +387,19 @@ void mail_free_messagelist(MESSAGELIST **msglist)
PHP_MINFO_FUNCTION(imap)
{
php_info_print_table_start();
php_info_print_table_row(2, "IMAP Support", "enabled");
#ifdef IMAP41
php_info_print_table_header(2, "IMAP Support", "enabled" );
#if HAVE_IMAP2000
php_info_print_table_row(2, "IMAP c-Client Version", "2000");
#elif IMAP41
php_info_print_table_row(2, "IMAP c-Client Version", "4.1");
#else
php_info_print_table_row(2, "IMAP c-Client Version", "4.0");
#endif
#if HAVE_IMAP_SSL
php_info_print_table_row(2, "SSL Support", "enabled");
#endif
#if HAVE_IMAP_KRB
php_info_print_table_row(2, "Kerberos Support", "enabled");
#endif
php_info_print_table_end();
}