mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-06-02 04:15:05 +02:00
Web Service Revise ws_checker and ws_functions.inc.php
(Next steps: - Restrict Method need to be more generic maybe - Delete functions_webserv.inc.php - Activate $partner in ws.php - Include checked access in tools - ...) git-svn-id: http://piwigo.org/svn/trunk@1760 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -821,21 +821,21 @@ LIMIT '.$params['per_page']*$params['page'].','.$params['per_page'];
|
||||
* */
|
||||
function official_req()
|
||||
{
|
||||
return array(
|
||||
'random' /* Random order */
|
||||
, 'list' /* list on MBt & z0rglub request */
|
||||
, 'maxviewed' /* hit > 0 and hit desc order */
|
||||
, 'recent' /* recent = Date_available desc order */
|
||||
, 'highrated' /* avg_rate > 0 and desc order */
|
||||
, 'oldest' /* Date_available asc order */
|
||||
, 'lessviewed' /* hit asc order */
|
||||
, 'lowrated' /* avg_rate asc order */
|
||||
, 'undescribed' /* description missing */
|
||||
, 'unnamed' /* new name missing */
|
||||
, 'portraits' /* width < height (portrait oriented) */
|
||||
, 'landscapes' /* width > height (landscape oriented) */
|
||||
, 'squares' /* width ~ height (square form) */
|
||||
);
|
||||
$official = array( /* Requests are limited to */
|
||||
'categories.' /* all categories. methods */
|
||||
, 'categories.getImages' /* <= see */
|
||||
, 'categories.getList' /* <= see */
|
||||
, 'images.' /* all images. methods */
|
||||
, 'images.getInfo' /* <= see */
|
||||
, 'tags.' /* all tags. methods */
|
||||
, 'tags.getImages' /* <= see */
|
||||
, 'tags.getList' /* <= see */
|
||||
);
|
||||
if (function_exists('local_req')) {
|
||||
$local = local_req();
|
||||
return array_merge( $official, $local );
|
||||
}
|
||||
return $official;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user