aboutsummaryrefslogtreecommitdiffstats
path: root/include/ws_functions.inc.php (unfollow)
Commit message (Collapse)AuthorFilesLines
2011-01-04feature 2095 added: new column images.added_by (foreign key on users.id)plegall1-1/+2
git-svn-id: http://piwigo.org/svn/trunk@8464 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-12-24feature 2085 added: new method pwg.themes.performActionplegall1-0/+32
git-svn-id: http://piwigo.org/svn/trunk@8297 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-12-23feature 2060: remove adivser mode on web API methods imported from the ↵plegall1-4/+4
pwg.images.addSimple plugin git-svn-id: http://piwigo.org/svn/trunk@8274 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-12-23feature 2084 added: new method pwg.plugins.getList and pwg.plugins.performActionplegall1-0/+75
git-svn-id: http://piwigo.org/svn/trunk@8273 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-12-23feature 2082 added: new method pwg.categories.move from the ↵plegall1-0/+121
pwg.images.addSimple plugin git-svn-id: http://piwigo.org/svn/trunk@8272 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-12-23feature 2080 added: add methods pwg.images.delete and pwg.categories.delete fromplegall1-0/+107
pwg.images.addSimple plugin. pwg.categories.delete implements the new photo_deletion_mode (see feature:2081) and set it to "delete_orphans" by default. git-svn-id: http://piwigo.org/svn/trunk@8266 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-12-23feature 2083 added: implement method pwg.images.addSimple in coreplegall1-60/+99
makes admin/include/function_upload.inc.php not dependant from include/ws_functions.inc.php (moves functions file_path_for_type and ready_for_upload_message) cleaner method to initialize the upload settings git-svn-id: http://piwigo.org/svn/trunk@8249 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-12-14feature 2060: Remove adviser mode.patdenice1-11/+11
First commit: only php files. git-svn-id: http://piwigo.org/svn/trunk@8126 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-11-15merge r7781 from branch 2.1 to trunkplegall1-1/+1
bug 2035 fixed: avoid sending multiple line error code in HTTP header. This was breaking the JSON parsing on pwg.images.addComment response from Piwigo because of an raw HTML warning. git-svn-id: http://piwigo.org/svn/trunk@7782 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-11-03merge r7612 from branch 2.1 to trunkplegall1-3/+2
bug 2003 fixed: random failure on calling invalidate_user_cache. I move the include of admin functions outside conditional blocks, even if we should also enter the first block. git-svn-id: http://piwigo.org/svn/trunk@7613 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-11-01merge r7549 from branch 2.1 to trunkplegall1-0/+17
bug 1986 fixed: add category description in pwg.categories.getList and pwg.categories.getAdminList. git-svn-id: http://piwigo.org/svn/trunk@7550 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-10-30feature 1915: add protection on user registration against robots rvelices1-1/+1
git-svn-id: http://piwigo.org/svn/trunk@7495 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-10-15merge r7210 from branch 2.1 to trunkplegall1-0/+1
feature 1756 added: returns the security token in method pwg.session.getStatus git-svn-id: http://piwigo.org/svn/trunk@7212 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-07-03Bug 1754 fixed : The keyword AS is mandatory for alias in PostgreSQL queriesnikrou1-3/+3
git-svn-id: http://piwigo.org/svn/trunk@6652 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-06-09Bug 1716 fixed : Check upgrades failed in intronikrou1-3/+3
Incorrect use of database dependant functions. Fixed same problem for ws functions git-svn-id: http://piwigo.org/svn/trunk@6500 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-06-01- do not remove slashes before calling insert_user_comment (homogeneity with ↵rvelices1-3/+3
update_user_comment and general use of slashes in piwigo) - when using a modifier on a non array variable use @| instead of | (generated code is simpler and faster) git-svn-id: http://piwigo.org/svn/trunk@6437 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-05-08Amend bug 1559. standard deviation was not removed in some places.nikrou1-1/+0
So, sqlite crashed because std function has been removed. git-svn-id: http://piwigo.org/svn/trunk@6125 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-05-03improvement: use the same code to check upload readiness in admin>photos>addplegall1-11/+18
screen and in web API. bug fixed: UploadForm partly takes into account the configurable upload directory (must be propagated everywhere in the UploadForm process) git-svn-id: http://piwigo.org/svn/trunk@6051 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-05-03bug 1635 fixed: new API method pwg.images.checkUpload tells pLoader if Piwigoplegall1-0/+48
is ready for upload (currently, it checks write access on the upload directory) git-svn-id: http://piwigo.org/svn/trunk@6049 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-04-20Fix missing argument for pwg_db_changes()nikrou1-1/+1
git-svn-id: http://piwigo.org/svn/trunk@5930 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-19increase copyright year to 2010plegall1-1/+1
git-svn-id: http://piwigo.org/svn/trunk@5196 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-02Feature 1451 : localization with gettextnikrou1-1/+1
Use php-gettext (developpement version rev43, because of php5.3) as fallback Use native language (english) instead of key for translation Keep directory en_UK for english customization Need some refactoring for plurals Todo : managing plugins in the same way git-svn-id: http://piwigo.org/svn/trunk@5021 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-01merge r5013 from branch 2.0 to trunkplegall1-3/+7
feature 1448 added: ability to set the upload directory (for pwg.images.add 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/trunk@5014 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-02-23merge r4953 from branch 2.0 to trunkplegall1-16/+64
feature 1453 added: ability to check for uniqueness on filename. No change on the default behavior: uniqueness is set on md5sum. git-svn-id: http://piwigo.org/svn/trunk@4954 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-02-19merge r4910 from branch 2.0 to trunkplegall1-1/+1
feature 967: optionnaly transmit the original filename to pwg.images.add. When transmitted, it fills the images.file column. git-svn-id: http://piwigo.org/svn/trunk@4911 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-02-17merge r4902 from branch 2.0 to trunkplegall1-0/+15
bug 1423 fixed: support for ExtendedDescription (and all the ones using the "render_category_name" event) in category names. git-svn-id: http://piwigo.org/svn/trunk@4903 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-02-17merge r4899 from branch 2.0 to trunkplegall1-0/+22
bug 1422 fixed: pwg.images.add (and sub methods) can create recursive directories for windows. add trace in ws_logfile for add_file + ws_images_add_chunk git-svn-id: http://piwigo.org/svn/trunk@4900 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-02-15Feature 1255 :nikrou1-1/+1
update pwg_db_insert_id() function. PosgreSQL needs table name to retrieve last insert auto increment id. git-svn-id: http://piwigo.org/svn/trunk@4892 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-02-12merge r4883 from branch 2.0 to trunkplegall1-5/+15
bug 1431: Community users now can see empty categories just like any admin. git-svn-id: http://piwigo.org/svn/trunk@4884 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-01-28Feature 511 : add support for sqlite database enginenikrou1-1/+1
Using session_write_close function when session handler use database because write is called after object destruction. git-svn-id: http://piwigo.org/svn/trunk@4781 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-01-15merge r4684 from branch 2.0 to trunkplegall1-0/+4
feature 1381: pwg.images.add automatically synchronizes metadata. Thank you to Jochen Roth (Polly) for the patch. git-svn-id: http://piwigo.org/svn/trunk@4685 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-12-18merge -r4512 from branch 2.0 to trunkrvelices1-16/+21
web method images.setPrivacyLevel (ws_images_setPrivacyLevel) is POST only git-svn-id: http://piwigo.org/svn/trunk@4513 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-12-18merge r4510 from branch 2.0 to trunkplegall1-0/+15
bug 1334 fixed: for POST mode on pwg.categories.setInfo, pwg.images.setInfo, pwg.images.addChunk web API methods. git-svn-id: http://piwigo.org/svn/trunk@4511 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-12-09merge r4459 from branch 2.0 to trunkplegall1-17/+38
feature 1316 added: we now have the ability to only fill the single value 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/trunk@4460 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-12-07merge r4444 from branch 2.0 to trunkplegall1-46/+122
feature 1312 added: pwg.images.setInfo can replace multiple values propreties (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/trunk@4445 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-12-04merge r4424 from branch 2.0 to trunkplegall1-3/+9
bug 1210 fixed: check if the memory_get_usage function is available before using it. git-svn-id: http://piwigo.org/svn/trunk@4425 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-11-25Feature 1255: modification in sql queriesnikrou1-5/+5
- manage random function - manage regex syntax - manage quote (single instead of double) - manage interval git-svn-id: http://piwigo.org/svn/trunk@4367 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-11-22merge r4345 from branch 2.0 to trunkplegall1-0/+84
feature 1051: ability to add/update a file for an existing photo. For example, 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/trunk@4348 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-11-22merge r4344 from branch 2.0 to trunkplegall1-19/+85
feature 1051: new API method pwg.images.checkFiles. This method will be useful before asking for an update on photo files. Enhancement in code factorization. git-svn-id: http://piwigo.org/svn/trunk@4347 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-11-22merge r4328 from branch 2.0 to trunkplegall1-127/+83
improvement: to prepare feature 1051, the code to add a single file (works for 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/trunk@4346 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-11-21Feature 1255 : limit params in sql queries were in wrong order (LIMIT count ↵nikrou1-4/+4
OFFSET offset) git-svn-id: http://piwigo.org/svn/trunk@4334 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-11-21Feature 1255 : improve sqlnikrou1-3/+3
Replace in queries LIMIT N,M by LIMIT N OFFSET M git-svn-id: http://piwigo.org/svn/trunk@4331 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-11-20Feature 1244 resolvednikrou1-18/+18
Replace all mysql functions in core code by ones independant of database engine Fix small php code synxtax : hash must be accessed with [ ] and not { }. git-svn-id: http://piwigo.org/svn/trunk@4325 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-11-18Escape all login and username characters in databaseEric1-4/+4
Display correctly usernames (I hope not to have made mistakes) git-svn-id: http://piwigo.org/svn/trunk@4304 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-08-02New feature : configuration option for thumbnail directorynikrou1-1/+1
git-svn-id: http://piwigo.org/svn/trunk@3720 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-07-21merge r3661 from branch 2.0 to trunkplegall1-19/+15
feature 1071: improve log system on API calls. The log can be activated by a 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/trunk@3662 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-07-21merge r3659 from branch 2.0 to trunkplegall1-1/+1
bug 1070: fix a pLoader bug on Piwigo side. Catch the bad communication: don't try to find tags if tag_ids parameter is empty (but not null). git-svn-id: http://piwigo.org/svn/trunk@3660 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-07-03merge r3513 from branch 2.0 to trunkplegall1-0/+2
bug 1043 fixed: avoid warning when merging chunks. This warning was preventing the PwgError to work correctly and the error code was not transmitted. git-svn-id: http://piwigo.org/svn/trunk@3514 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-07-01- remove warn on unset variablervelices1-10/+10
- insert_user_comment expects now the comment content to be sql safe (works now exactly as update_user_comment) git-svn-id: http://piwigo.org/svn/trunk@3488 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-06-24merge r3453 from branch 2.0 to trunkplegall1-0/+53
feature 1033 added: new API method pwg.categories.setInfo makes possible to change the name and comment of a given category. git-svn-id: http://piwigo.org/svn/trunk@3454 68402e56-0260-453c-a942-63ccdbb3a9ee