mirror of
https://github.com/php/php-src.git
synced 2024-11-28 20:34:29 +08:00
More phpinfo() prettying.
Can someone check my code for the interbase support, and I need someone else to decode the LDAP stuff ... it's beyond me.
This commit is contained in:
parent
a9159c2eec
commit
5115342c6e
@ -3664,7 +3664,10 @@ PHP_FUNCTION(hw_getrellink) {
|
||||
|
||||
PHP_MINFO_FUNCTION(hw)
|
||||
{
|
||||
php_printf("HG-CSP Version: 7.17<BR>\n");
|
||||
php_info_print_table_start();
|
||||
php_info_print_table_row(2, "Hyperwave Support", "enabled");
|
||||
php_info_print_table_row(2, "HG-CSP Version", "7.17");
|
||||
php_info_print_table_end();
|
||||
DISPLAY_INI_ENTRIES();
|
||||
}
|
||||
|
||||
|
@ -50,6 +50,7 @@
|
||||
#include "cal.h"
|
||||
#include "php_icap.h"
|
||||
#include "modules.h"
|
||||
#include "ext/standard/info.h"
|
||||
#if (WIN32|WINNT)
|
||||
#include "winsock.h"
|
||||
#endif
|
||||
@ -127,11 +128,10 @@ CALSTREAM *cal_close_it (pils *icap_le_struct)
|
||||
|
||||
PHP_MINFO_FUNCTION(icap)
|
||||
{
|
||||
php_printf("Icap Support enabled<br>");
|
||||
php_printf("<table>");
|
||||
php_printf("<tr><td>Icap Version:</td>");
|
||||
php_printf("<td>%s</td>",CALVER);
|
||||
php_printf("</tr></table>");
|
||||
php_info_print_table_start();
|
||||
php_info_print_table_row(2, "ICAP Support", "enabled");
|
||||
php_info_print_table_row(2, "ICAP Version", CALVER);
|
||||
php_info_print_table_end();
|
||||
}
|
||||
|
||||
PHP_MINIT_FUNCTION(icap)
|
||||
|
@ -34,6 +34,7 @@
|
||||
#include "php_ini.h"
|
||||
#include "php_imap.h"
|
||||
#include "ext/standard/php_string.h"
|
||||
#include "ext/standard/info.h"
|
||||
|
||||
ZEND_DECLARE_MODULE_GLOBALS(imap)
|
||||
|
||||
@ -345,15 +346,14 @@ void mail_free_messagelist(MESSAGELIST **msglist)
|
||||
|
||||
PHP_MINFO_FUNCTION(imap)
|
||||
{
|
||||
php_printf("Imap Support enabled<br>");
|
||||
php_printf("<table>");
|
||||
php_printf("<tr><td>Imap c-client Version:</td>");
|
||||
php_info_print_table_start();
|
||||
php_info_print_table_row(2, "IMAP Support", "enabled");
|
||||
#ifdef IMAP41
|
||||
php_printf("<td>Imap 4.1</td>");
|
||||
php_info_print_table_row(2, "IMAP c-Client Version", "4.1");
|
||||
#else
|
||||
php_printf("<td>Imap 4.0</td>");
|
||||
php_info_print_table_row(2, "IMAP c-Client Version", "4.0");
|
||||
#endif
|
||||
php_printf("</tr></table>");
|
||||
php_info_print_table_end();
|
||||
}
|
||||
|
||||
|
||||
|
@ -45,6 +45,7 @@ A lot... */
|
||||
#include <ibase.h>
|
||||
#include <time.h>
|
||||
#include "ext/standard/fsock.h"
|
||||
#include "ext/standard/info.h"
|
||||
/*
|
||||
#include "php_list.h"
|
||||
#include "php_string.h"
|
||||
@ -510,35 +511,41 @@ PHP_RSHUTDOWN_FUNCTION(ibase)
|
||||
|
||||
PHP_MINFO_FUNCTION(ibase)
|
||||
{
|
||||
|
||||
char tmp[128];
|
||||
char tmp2[128];
|
||||
|
||||
IBLS_FETCH();
|
||||
|
||||
php_printf(
|
||||
"<table>"
|
||||
"<tr><td>Revision:</td><td>$Revision$</td></tr>\n"
|
||||
php_info_print_table_start();
|
||||
php_info_print_table_row(2, "Interbase Support", "enabled");
|
||||
php_info_print_table_row(2, "Revision", "$Revision$");
|
||||
#ifdef COMPILE_DL
|
||||
"<tr><td>Dynamic module:</td><td>Yes</td></tr>\n"
|
||||
php_info_print_table_row(2, "Dynamic Module", "yes");
|
||||
#endif
|
||||
"<tr><td>Allow persistent links:</td><td>%s</td></tr>\n"
|
||||
"<tr><td>Persistent links:</td><td>%d/",
|
||||
(IBG(allow_persistent)?"Yes":"No"),
|
||||
IBG(num_persistent));
|
||||
php_info_print_table_row(2, "Allow Persistent Links", (IBG(allow_persistent)?"Yes":"No") );
|
||||
|
||||
sprintf(tmp, "%d/", IBG(num_persistent) );
|
||||
if (IBG(max_persistent) == -1) {
|
||||
php_printf("Unlimited");
|
||||
strcat(tmp, "unlimited");
|
||||
} else {
|
||||
php_printf("%ld",IBG(max_persistent));
|
||||
sprintf(tmp2, "%ld", IBG(max_persistent));
|
||||
strcat(tmp, tmp2);
|
||||
}
|
||||
php_printf("</td></tr>\n"
|
||||
"<tr><td>Total links:</td><td>%d/",
|
||||
IBG(num_links));
|
||||
php_info_print_table_row(2, "Persistent Links", tmp );
|
||||
|
||||
sprintf(tmp, "%d/", IBG(num_links) );
|
||||
if (IBG(max_links) == -1) {
|
||||
php_printf("Unlimited");
|
||||
strcat(tmp, "unlimited");
|
||||
} else {
|
||||
php_printf("%ld",IBG(max_links));
|
||||
sprintf(tmp2, "%ld", IBG(max_links));
|
||||
strcat(tmp, tmp2);
|
||||
}
|
||||
php_printf("</td></tr>\n"
|
||||
"<tr><td>Time format:</td><td>\"%s\"</td></tr>\n"
|
||||
"</table>\n",
|
||||
IBG(timeformat));
|
||||
php_info_print_table_row(2, "Total Links", tmp );
|
||||
|
||||
php_info_print_table_row(2, "Time Format", IBG(timeformat) );
|
||||
|
||||
php_info_print_table_end();
|
||||
}
|
||||
/* }}} */
|
||||
|
||||
|
@ -44,7 +44,7 @@
|
||||
#endif
|
||||
|
||||
#include "ext/standard/php_string.h"
|
||||
|
||||
#include "ext/standard/info.h"
|
||||
|
||||
ZEND_DECLARE_MODULE_GLOBALS(ldap)
|
||||
|
||||
@ -1274,4 +1274,4 @@ PHP_FUNCTION(ldap_error) {
|
||||
|
||||
RETURN_STRING(ldap_err2string(ld_errno), 1);
|
||||
}
|
||||
/* }}} */
|
||||
/* }}} */
|
||||
|
@ -50,6 +50,7 @@
|
||||
#include "mcal.h"
|
||||
#include "php_mcal.h"
|
||||
#include "modules.h"
|
||||
#include "ext/standard/info.h"
|
||||
#ifdef PHP_WIN32
|
||||
#include "winsock.h"
|
||||
#endif
|
||||
@ -149,14 +150,16 @@ CALSTREAM *cal_close_it (pils *mcal_le_struct)
|
||||
|
||||
PHP_MINFO_FUNCTION(mcal)
|
||||
{
|
||||
php_printf("Mcal Support enabled<br>");
|
||||
php_printf("<table>");
|
||||
php_printf("<tr><td>Mcal Version:</td>");
|
||||
php_printf("<td>%s</td>", CALVER);
|
||||
char tmp[128];
|
||||
|
||||
php_info_print_table_start();
|
||||
php_info_print_table_row(2, "MCAL Support", "enabled" );
|
||||
php_info_print_table_row(2, "MCAL Version", CALVER );
|
||||
#ifdef MCALVER
|
||||
php_printf("<td>%d</td>", MCALVER);
|
||||
sprintf(tmp, "%d", MCALVER );
|
||||
php_info_print_table_row(2, "", tmp );
|
||||
#endif
|
||||
php_printf("</tr></table>");
|
||||
php_info_print_table_end();
|
||||
}
|
||||
|
||||
PHP_MINIT_FUNCTION(mcal)
|
||||
|
Loading…
Reference in New Issue
Block a user