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();
}
#include "cal.h"
#include "php_icap.h"
#include "modules.h"
+#include "ext/standard/info.h"
#if (WIN32|WINNT)
#include "winsock.h"
#endif
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)
#include "php_ini.h"
#include "php_imap.h"
#include "ext/standard/php_string.h"
+#include "ext/standard/info.h"
ZEND_DECLARE_MODULE_GLOBALS(imap)
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();
}
#include <ibase.h>
#include <time.h>
#include "ext/standard/fsock.h"
+#include "ext/standard/info.h"
/*
#include "php_list.h"
#include "php_string.h"
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();
}
/* }}} */
#endif
#include "ext/standard/php_string.h"
-
+#include "ext/standard/info.h"
ZEND_DECLARE_MODULE_GLOBALS(ldap)
RETURN_STRING(ldap_err2string(ld_errno), 1);
}
-/* }}} */
\ No newline at end of file
+/* }}} */
#include "mcal.h"
#include "php_mcal.h"
#include "modules.h"
+#include "ext/standard/info.h"
#ifdef PHP_WIN32
#include "winsock.h"
#endif
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)