gluke           Sun Aug 31 03:00:30 2003 EDT

  Modified files:              
    /php-src/ext/mnogosearch    php_mnogo.c 
  Log:
  - a new UDM_PARAM_SEARCH_RESULTS mnogosearch API command added to limit
    maximum number of search results
  
  
Index: php-src/ext/mnogosearch/php_mnogo.c
diff -u php-src/ext/mnogosearch/php_mnogo.c:1.81 
php-src/ext/mnogosearch/php_mnogo.c:1.82
--- php-src/ext/mnogosearch/php_mnogo.c:1.81    Fri Aug 29 09:35:25 2003
+++ php-src/ext/mnogosearch/php_mnogo.c Sun Aug 31 03:00:28 2003
@@ -1,5 +1,5 @@
 /* $Source: /usr/repository/php-src/ext/mnogosearch/php_mnogo.c,v $ */
-/* $Id: php_mnogo.c,v 1.81 2003/08/29 13:35:25 gluke Exp $ */
+/* $Id: php_mnogo.c,v 1.82 2003/08/31 07:00:28 gluke Exp $ */
 
 /*
    +----------------------------------------------------------------------+
@@ -86,6 +86,7 @@
 #define UDM_PARAM_SITEID               28
 #define UDM_PARAM_DETECT_CLONES                29
 #define UDM_PARAM_SORT_ORDER           30
+#define UDM_PARAM_RESULTS_LIMIT                31
 
 /* udm_add_search_limit constants */
 #define UDM_LIMIT_URL          1
@@ -324,6 +325,7 @@
        REGISTER_LONG_CONSTANT("UDM_PARAM_SITEID",      UDM_PARAM_SITEID,CONST_CS | 
CONST_PERSISTENT);
        
REGISTER_LONG_CONSTANT("UDM_PARAM_DETECT_CLONES",UDM_PARAM_DETECT_CLONES,CONST_CS | 
CONST_PERSISTENT);
        REGISTER_LONG_CONSTANT("UDM_PARAM_SORT_ORDER",UDM_PARAM_SORT_ORDER,CONST_CS | 
CONST_PERSISTENT);
+       
REGISTER_LONG_CONSTANT("UDM_PARAM_RESULTS_LIMIT",UDM_PARAM_RESULTS_LIMIT,CONST_CS | 
CONST_PERSISTENT);
        
        /* udm_add_search_limit constants */
        REGISTER_LONG_CONSTANT("UDM_LIMIT_CAT",         UDM_LIMIT_CAT,CONST_CS | 
CONST_PERSISTENT);
@@ -1100,6 +1102,12 @@
                        break;
 #endif
 
+#if UDM_VERSION_ID >= 30215
+               case UDM_PARAM_RESULTS_LIMIT: 
+                       UdmVarListReplaceStr(&Agent->Conf->Vars,"ResultsLimit",val);
+               
+                       break;
+#endif
                default:
                        php_error_docref(NULL TSRMLS_CC, E_WARNING,"Unknown agent 
session parameter");
                        RETURN_FALSE;

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to