From dd339aa6c50267337e786e9e20811b535edd985b Mon Sep 17 00:00:00 2001 From: rvelices Date: Tue, 6 Feb 2007 01:02:06 +0000 Subject: web services: - respect conf['allow_web_services'] - added conf['ws_max_images_per_page'] to limit the number of images returned per web call - fixes for Vincent's partners - added comments git-svn-id: http://piwigo.org/svn/trunk@1781 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/ws_core.inc.php | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'include/ws_core.inc.php') diff --git a/include/ws_core.inc.php b/include/ws_core.inc.php index 77f79388c..a3e8c7770 100644 --- a/include/ws_core.inc.php +++ b/include/ws_core.inc.php @@ -3,11 +3,10 @@ // | PhpWebGallery - a PHP based picture gallery | // | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net | // +-----------------------------------------------------------------------+ -// | branch : BSF (Best So Far) -// | file : $URL: svn+ssh://rvelices@svn.gna.org/svn/phpwebgallery/trunk/action.php $ -// | last update : $Date: 2006-12-21 18:49:12 -0500 (Thu, 21 Dec 2006) $ -// | last modifier : $Author: rvelices $ -// | revision : $Rev: 1678 $ +// | file : $Id$ +// | last update : $Date$ +// | last modifier : $Author$ +// | revision : $Revision$ // +-----------------------------------------------------------------------+ // | This program is free software; you can redistribute it and/or modify | // | it under the terms of the GNU General Public License as published by | @@ -142,7 +141,7 @@ class PwgNamedStruct * @link http://php.net/function.array_walk_recursive * @author Tom Buskens * @author Aidan Lister - * @version $Revision: 1.7 $ + * @version $Revision$ * @since PHP 5 * @require PHP 4.0.6 (is_callable) */ @@ -556,6 +555,10 @@ Response format: ".@$this->_responseFormat." encoder:".$this->_responseEncoder." { $this->makeArrayParam( $the_param ); } + if ( isset($options['maxValue']) and $the_param>$options['maxValue']) + { + $the_param = $options['maxValue']; + } $params[$name] = $the_param; } } -- cgit v1.2.3