#include <udmsearch.h>
function_entry mnogosearch_functions[] = {
+ PHP_FE(udm_api_version, NULL)
+
PHP_FE(udm_alloc_agent, NULL)
PHP_FE(udm_set_agent_param, NULL)
/* }}} */
+/* {{{ proto int udm_api_version()
+ Get mnoGoSearch API version */
+DLEXPORT PHP_FUNCTION(udm_api_version)
+{
+ RETURN_LONG(UDM_VERSION_ID);
+}
+/* }}} */
+
+
#if UDM_VERSION_ID > 30110
/* {{{ proto int udm_get_doc_count(int agent)
Get total number of documents in database */
DLEXPORT PHP_MSHUTDOWN_FUNCTION(mnogosearch);
DLEXPORT PHP_MINFO_FUNCTION(mnogosearch);
+DLEXPORT PHP_FUNCTION(udm_api_version);
+
DLEXPORT PHP_FUNCTION(udm_alloc_agent);
DLEXPORT PHP_FUNCTION(udm_set_agent_param);
<html>
<body>
+mnoGoSearch API version: <? echo Udm_Api_Version(); ?>
+<br>
+
<form method=post>
<input type=text size=30 name=q value="<? echo htmlspecialchars(stripslashes($q)); ?>">
<input type=submit value=" Search ! ">