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
This commit is contained in:
rvelices
2007-02-06 01:02:06 +00:00
parent 01be744d07
commit dd339aa6c5
5 changed files with 195 additions and 167 deletions
+7 -5
View File
@@ -588,18 +588,20 @@ $conf['enable_plugins']=true;
// | Set default for Web Service |
// +-----------------------------------------------------------------------+
// Web services are allowed (true) or completely forbidden (false)
$conf['allow_web_services'] = true;
// Maximum number of images to be returned foreach call to the web service
$conf['ws_max_images_per_page'] = 500;
// On Access control false
// Controls are done on public basis or
// if connected on member authorization basis
$conf['ws_access_control'] = false;
$conf['ws_access_control'] = false;
// On Access control true
// Additionnal controls are made based on Web Service Access Table
// Web services are accepted
$conf['allow_web_services'] = true;
// Max returned rows number ( > 0 )
$conf['ws_allowed_limit'] = array(1,2,3,5,10,25);