aboutsummaryrefslogtreecommitdiffstats
path: root/include/ws_functions.inc.php (follow)
Commit message (Collapse)AuthorAgeFilesLines
* feature 1448 added: ability to set the upload directory (for pwg.images.addplegall2010-03-011-3/+7
| | | | | | | | | API method). Warning: due to risk on img src construction, the upload_dir must be relative to the Piwigo directory itself. git-svn-id: http://piwigo.org/svn/branches/2.0@5013 68402e56-0260-453c-a942-63ccdbb3a9ee
* feature 1453 added: ability to check for uniqueness on filename. No change onplegall2010-02-231-16/+64
| | | | | | the default behavior: uniqueness is set on md5sum. git-svn-id: http://piwigo.org/svn/branches/2.0@4953 68402e56-0260-453c-a942-63ccdbb3a9ee
* feature 967: optionnaly transmit the original filename to pwg.images.add. Whenplegall2010-02-191-1/+1
| | | | | | transmitted, it fills the images.file column. git-svn-id: http://piwigo.org/svn/branches/2.0@4910 68402e56-0260-453c-a942-63ccdbb3a9ee
* bug 1423 fixed: support for ExtendedDescription (and all the ones using theplegall2010-02-171-0/+15
| | | | | | "render_category_name" event) in category names. git-svn-id: http://piwigo.org/svn/branches/2.0@4902 68402e56-0260-453c-a942-63ccdbb3a9ee
* bug 1422 fixed: pwg.images.add (and sub methods) can create recursiveplegall2010-02-171-0/+22
| | | | | | | | directories for windows. add trace in ws_logfile for add_file + ws_images_add_chunk git-svn-id: http://piwigo.org/svn/branches/2.0@4899 68402e56-0260-453c-a942-63ccdbb3a9ee
* bug 1431: Community users now can see empty categories just like any admin.plegall2010-02-121-5/+15
| | | | git-svn-id: http://piwigo.org/svn/branches/2.0@4883 68402e56-0260-453c-a942-63ccdbb3a9ee
* feature 1381: pwg.images.add automatically synchronizes metadata. Thank you toplegall2010-01-151-0/+4
| | | | | | Jochen Roth (Polly) for the patch. git-svn-id: http://piwigo.org/svn/branches/2.0@4684 68402e56-0260-453c-a942-63ccdbb3a9ee
* web method images.setPrivacyLevel (ws_images_setPrivacyLevel) is POST onlyrvelices2009-12-181-23/+28
| | | | git-svn-id: http://piwigo.org/svn/branches/2.0@4512 68402e56-0260-453c-a942-63ccdbb3a9ee
* bug 1334 fixed: for POST mode on pwg.categories.setInfo, pwg.images.setInfo,plegall2009-12-181-0/+15
| | | | | | pwg.images.addChunk web API methods. git-svn-id: http://piwigo.org/svn/branches/2.0@4510 68402e56-0260-453c-a942-63ccdbb3a9ee
* feature 1316 added: we now have the ability to only fill the single valueplegall2009-12-091-17/+38
| | | | | | | | | | | properties that are currently empty in the database instead of automatically replacing. feature 1312: as a matter of consistency, I have changed the replace_mode (that was only for multiple values properties) into multiple_value_mode + single_value_mode. git-svn-id: http://piwigo.org/svn/branches/2.0@4459 68402e56-0260-453c-a942-63ccdbb3a9ee
* feature 1312 added: pwg.images.setInfo can replace multiple values propretiesplegall2009-12-071-46/+122
| | | | | | | | | | | | | | | (tags/categories). The primary condition is to provide "tag_ids" and/or "categories" input parameters, ie pwg.images.set won't create emptiness. You can reduce the set of tags/categories but not remove all tags/categories. bug 1277 fixed: with a stronger algorithm for adding/replacing categories, we now avoid to recreate an existing image_category association. When a remote client calls pwg.images.setInfo, Piwigo returns an error 500 if: 1. the "categories" parameter is malformed (no numeric id inside) 2. one of the input categories does not exist at database level. git-svn-id: http://piwigo.org/svn/branches/2.0@4444 68402e56-0260-453c-a942-63ccdbb3a9ee
* bug 1210 fixed: check if the memory_get_usage function is available beforeplegall2009-12-041-3/+9
| | | | | | using it. git-svn-id: http://piwigo.org/svn/branches/2.0@4424 68402e56-0260-453c-a942-63ccdbb3a9ee
* feature 1051: ability to add/update a file for an existing photo. For example,plegall2009-11-221-0/+84
| | | | | | | | | you can add the "high" later. Another example is to update the "web resized" file (new dimensions is a common example). It also works for thumbnails. Updating an existing file has no impact on the logical level (list of tags, list of categories, title, description and so on). git-svn-id: http://piwigo.org/svn/branches/2.0@4345 68402e56-0260-453c-a942-63ccdbb3a9ee
* feature 1051: new API method pwg.images.checkFiles. This method will be usefulplegall2009-11-221-19/+85
| | | | | | | | before asking for an update on photo files. Enhancement in code factorization. git-svn-id: http://piwigo.org/svn/branches/2.0@4344 68402e56-0260-453c-a942-63ccdbb3a9ee
* improvement: to prepare feature 1051, the code to add a single file (works forplegall2009-11-201-127/+83
| | | | | | | | | | | | the 3 picture types, ie thumb/file/high) has been factorized into a single add_file function. bug fixed: when a function not directly called by the API (such as merge_chunks or the new add_file function) returning a PwgError, it was not stopping the execution, it just sets the error code/message. Now we don't return PwgError, we only create one and then exit(). git-svn-id: http://piwigo.org/svn/branches/2.0@4328 68402e56-0260-453c-a942-63ccdbb3a9ee
* feature 1071: improve log system on API calls. The log can be activated by aplegall2009-07-211-19/+15
| | | | | | | | | | configuration setting. The log file can be changed also with a configuration setting. improvement: pwg.images.add API methods gets a cleaner way to log received parameters. git-svn-id: http://piwigo.org/svn/branches/2.0@3661 68402e56-0260-453c-a942-63ccdbb3a9ee
* bug 1070: fix a pLoader bug on Piwigo side. Catch the bad communication:plegall2009-07-211-1/+1
| | | | | | don't try to find tags if tag_ids parameter is empty (but not null). git-svn-id: http://piwigo.org/svn/branches/2.0@3659 68402e56-0260-453c-a942-63ccdbb3a9ee
* bug 1043 fixed: avoid warning when merging chunks. This warning was preventingplegall2009-07-031-0/+2
| | | | | | the PwgError to work correctly and the error code was not transmitted. git-svn-id: http://piwigo.org/svn/branches/2.0@3513 68402e56-0260-453c-a942-63ccdbb3a9ee
* feature 1033 added: new API method pwg.categories.setInfo makes possible toplegall2009-06-241-0/+53
| | | | | | change the name and comment of a given category. git-svn-id: http://piwigo.org/svn/branches/2.0@3453 68402e56-0260-453c-a942-63ccdbb3a9ee
* bug 949 fixed: to avoid memory limit on server side, base64 encode chunks oneplegall2009-04-141-9/+18
| | | | | | | by one on client side and base64 decode chunks one by one on server side. git-svn-id: http://piwigo.org/svn/branches/2.0@3239 68402e56-0260-453c-a942-63ccdbb3a9ee
* bug 941 fixed: to be able to upload heavy photo, chunk the files, send partsplegall2009-03-121-23/+111
| | | | | | | | one by one, and then pwg.images.add merge chunks together. Now big uploads works and you can even have a fine progress bar on client side. git-svn-id: http://piwigo.org/svn/branches/2.0@3192 68402e56-0260-453c-a942-63ccdbb3a9ee
* merge 3145-3146 from trunkrvelices2009-02-141-7/+4
| | | | | | | | | | Last (I hope) paranoic optims ... - move get_uysername and get_groupname from public to admin/functions.inc.php - optim in index.php - tags.tpl does not need smarty modifier included - move func get_comment_post_key from functions_comment to functions (avoid extra inclusion every time on picture page) git-svn-id: http://piwigo.org/svn/branches/2.0@3147 68402e56-0260-453c-a942-63ccdbb3a9ee
* bug 912 fixed: we need an extra original_sum to pwg.images.add API method toplegall2009-01-081-2/+2
| | | | | | | check photo existence. Using the file_sum was a bad idea. git-svn-id: http://piwigo.org/svn/branches/2.0@3064 68402e56-0260-453c-a942-63ccdbb3a9ee
* Administration: happy new year 2009, all PHP headers updated.plegall2009-01-041-1/+1
| | | | git-svn-id: http://piwigo.org/svn/branches/2.0@3046 68402e56-0260-453c-a942-63ccdbb3a9ee
* bug 907 fixed: avoid PHP warning when pwg.images.add adds a photo in aplegall2008-12-031-0/+5
| | | | | | | category that either contains no "ranked" image or when category is empty. git-svn-id: http://piwigo.org/svn/branches/2.0@2921 68402e56-0260-453c-a942-63ccdbb3a9ee
* bug 905 fixed: avoid PHP notice when rank is implicit in the categoriesplegall2008-12-021-1/+1
| | | | | | | parameter of the pwg.images.add web API method. git-svn-id: http://piwigo.org/svn/branches/2.0@2918 68402e56-0260-453c-a942-63ccdbb3a9ee
* bug 904 fixed: an index.htm is created in directories created byplegall2008-12-021-0/+6
| | | | | | | pwg.images.add web API method, only directories that contains pictures. git-svn-id: http://piwigo.org/svn/branches/2.0@2916 68402e56-0260-453c-a942-63ccdbb3a9ee
* bug 897 fixed: controls added in pwg.images.add to have clear error messagesplegall2008-10-201-6/+57
| | | | | | | if permission is denied or any error occur during file write. git-svn-id: http://piwigo.org/svn/branches/2.0@2785 68402e56-0260-453c-a942-63ccdbb3a9ee
* - mysql potential injection paranoia + code compaction in common.inc.phprvelices2008-10-171-4/+6
| | | | git-svn-id: http://piwigo.org/svn/branches/2.0@2765 68402e56-0260-453c-a942-63ccdbb3a9ee
* - security paranoia: protect session/remember me cookies from XSS attacks ↵rvelices2008-10-161-15/+7
| | | | | | (works only if php>=5.2 and with IE/FF maybe others) git-svn-id: http://piwigo.org/svn/branches/2.0@2756 68402e56-0260-453c-a942-63ccdbb3a9ee
* feature 892 added: pwg.images.setInfo added so that once we have discoveredplegall2008-10-111-81/+178
| | | | | | | | the photo was already in the database (thanks to pwg.images.exist), we can only set the photo metadata. git-svn-id: http://piwigo.org/svn/branches/2.0@2722 68402e56-0260-453c-a942-63ccdbb3a9ee
* feature 889 added: pwg.images.exist check the existence of a photo in theplegall2008-10-071-0/+39
| | | | | | | database based on its md5sum. (avoid failing on pwg.images.add). git-svn-id: http://piwigo.org/svn/trunk@2683 68402e56-0260-453c-a942-63ccdbb3a9ee
* bug 888 fixed: pwg.images.add updates the associated categories so that aplegall2008-10-051-1/+3
| | | | | | | category doesn't remain without representant while containing photos. git-svn-id: http://piwigo.org/svn/trunk@2672 68402e56-0260-453c-a942-63ccdbb3a9ee
* feature 885 added: pwg.images.add web API method now supports additionalplegall2008-10-051-4/+41
| | | | | | | high resolution format. git-svn-id: http://piwigo.org/svn/trunk@2670 68402e56-0260-453c-a942-63ccdbb3a9ee
* bug 880 fixed: pwg.categories.add invalidate the user cache so that the newplegall2008-10-031-0/+2
| | | | | | | category is added to the user category tree. git-svn-id: http://piwigo.org/svn/trunk@2644 68402e56-0260-453c-a942-63ccdbb3a9ee
* feature 874 added: new Web API method pwg.tags.add.plegall2008-10-011-0/+19
| | | | git-svn-id: http://piwigo.org/svn/trunk@2634 68402e56-0260-453c-a942-63ccdbb3a9ee
* feature 868 added: pwg.images.add checks if the same file has not alreadplegall2008-09-251-0/+13
| | | | | | | been uploaded. git-svn-id: http://piwigo.org/svn/trunk@2592 68402e56-0260-453c-a942-63ccdbb3a9ee
* - some checks for admins that are advisers (no write access)rvelices2008-09-251-11/+11
| | | | | | | - send the charset in http header for web services - tag name becomes an xml attribute instead of content for tags.getList and related tags in images.getInfo (more logical and coherent with tags.getAdminList) git-svn-id: http://piwigo.org/svn/trunk@2585 68402e56-0260-453c-a942-63ccdbb3a9ee
* new: WebService method pwg.tags.getAdminList was added. The difference withplegall2008-09-241-0/+27
| | | | | | | | pwg.tags.getList is that this new method doesn't take permissions into account, and so is available only for administrator connected users. git-svn-id: http://piwigo.org/svn/trunk@2584 68402e56-0260-453c-a942-63ccdbb3a9ee
* new: WebService method pwg.categories.add so that pLoader can create aplegall2008-09-241-0/+22
| | | | | | | virtual category. git-svn-id: http://piwigo.org/svn/trunk@2583 68402e56-0260-453c-a942-63ccdbb3a9ee
* - removed #debug css rule (why would we need that in default-layout?)rvelices2008-09-231-2/+2
| | | | | | | | - order by rank is not available in calendar/chronology mode - small non-functional change in functions_search.inc.php (handy for plugin) - unused variables/smaller code/unused params in func call git-svn-id: http://piwigo.org/svn/trunk@2572 68402e56-0260-453c-a942-63ccdbb3a9ee
* improvement: WebService method pwg.images.add can set fill #images tableplegall2008-09-221-19/+104
| | | | | | | | | columns. rank is directly related to a category and several categories can be linked at once. Basic technical metadata {filesize, width, height} are automaticaly filled. git-svn-id: http://piwigo.org/svn/trunk@2569 68402e56-0260-453c-a942-63ccdbb3a9ee
* new: webservice method pwg.categories.getAdminList was added so that pLoaderplegall2008-09-211-0/+56
| | | | | | | | can see the list of categories as you can see in the administration interface : not filtered by individual permissions. git-svn-id: http://piwigo.org/svn/trunk@2563 68402e56-0260-453c-a942-63ccdbb3a9ee
* improvement: instead of sending the images_max_rank of each category inplegall2008-09-191-21/+19
| | | | | | | | | pwg.categories.getList so that you can correctly set the rank in pwg.images.add, the rank is calculated automatically in pwg.images.add so that the image is added at the end of the category. git-svn-id: http://piwigo.org/svn/trunk@2553 68402e56-0260-453c-a942-63ccdbb3a9ee
* improvement: webservice methode pwg.categories.getList returns theplegall2008-09-171-4/+34
| | | | | | | | | images_max_rank for each category, based on #image_category.rank content. So that a remote client can correctly add photos with webservice method pwg.images.add. git-svn-id: http://piwigo.org/svn/trunk@2548 68402e56-0260-453c-a942-63ccdbb3a9ee
* feature added: ability to set rank from webservice upload.plegall2008-09-111-1/+3
| | | | git-svn-id: http://piwigo.org/svn/trunk@2520 68402e56-0260-453c-a942-63ccdbb3a9ee
* remove ws access table/partners functionalityrvelices2008-09-111-154/+2
| | | | git-svn-id: http://piwigo.org/svn/trunk@2516 68402e56-0260-453c-a942-63ccdbb3a9ee
* bug fixed: it seems that the upload file.jpg had -rw------- permissionsplegall2008-09-081-0/+2
| | | | | | | | | which is not enough if the http server user is different from the file owner (which is the case when suphp is running). The permissions are set to -rw-r--r--. git-svn-id: http://piwigo.org/svn/trunk@2511 68402e56-0260-453c-a942-63ccdbb3a9ee
* improvement: ws method pwg.images.add checks the dumped files against theplegall2008-09-041-3/+22
| | | | | | | | | | expected md5 sum. bug fixed: ws method pwg.images.add invalidate the user cache so that category date_last and category nb_images (and related data) git-svn-id: http://piwigo.org/svn/trunk@2501 68402e56-0260-453c-a942-63ccdbb3a9ee
* - remove hello_world plugin (not working anymore)rvelices2008-09-041-8/+12
| | | | | | | | | - web service method images.add works only for admins now - fix template-common js web service calls did not have the parameters url encoded - improve admin user_list - submitting the form with no user selected triggers a javascript alert (had fun with jquery selectors) git-svn-id: http://piwigo.org/svn/trunk@2496 68402e56-0260-453c-a942-63ccdbb3a9ee