Commit graph

124 commits

Author SHA1 Message Date
mistic100
5dfc3b350a merge r10061 from trunk : ws_getInfos is restrcited to admins (bug:1023)
git-svn-id: http://piwigo.org/svn/branches/2.2@10062 68402e56-0260-453c-a942-63ccdbb3a9ee
2011-04-05 13:12:57 +00:00
mistic100
91b0ba38ab merge r10017 from trunk to 2.2 (bug:1023)
git-svn-id: http://piwigo.org/svn/branches/2.2@10022 68402e56-0260-453c-a942-63ccdbb3a9ee
2011-04-03 15:59:35 +00:00
plegall
438e1252bd bug fixed: for metadata synchronization, use the same behavior in
pwg.images.addSimple as in pwg.images.add, ie the metadata mapping is
prioritary compared to values given to the web API methods (author,
description, title...)


git-svn-id: http://piwigo.org/svn/trunk@9944 68402e56-0260-453c-a942-63ccdbb3a9ee
2011-03-30 21:25:32 +00:00
cljosse
6cfd6e78fc ws_getVersion -> add test for admin , sendResponse -> add a trigger for debug ws
git-svn-id: http://piwigo.org/svn/trunk@9742 68402e56-0260-453c-a942-63ccdbb3a9ee
2011-03-17 14:40:26 +00:00
rvelices
ad99a1c652 bug 2195: webservices f_min_date_available not working
git-svn-id: http://piwigo.org/svn/trunk@9576 68402e56-0260-453c-a942-63ccdbb3a9ee
2011-03-08 20:42:04 +00:00
plegall
e79538be5c feature 2189 added: ability to update a photo (the JPEG/PNG file) with
pwg.images.addSimple, simply by adding an $image_id as argument.


git-svn-id: http://piwigo.org/svn/trunk@9191 68402e56-0260-453c-a942-63ccdbb3a9ee
2011-02-11 22:57:23 +00:00
plegall
6db359c622 Happy new year 2011
Change "Piwigo - a PHP based picture gallery" into "Piwigo - a PHP based photo gallery"


git-svn-id: http://piwigo.org/svn/trunk@8728 68402e56-0260-453c-a942-63ccdbb3a9ee
2011-01-18 00:02:52 +00:00
rvelices
e123585dde bug 2105 : Browsing tags is slow if tags contains many photos
git-svn-id: http://piwigo.org/svn/trunk@8726 68402e56-0260-453c-a942-63ccdbb3a9ee
2011-01-17 21:16:42 +00:00
plegall
b4d2a1362f feature 2095 added: new column images.added_by (foreign key on users.id)
git-svn-id: http://piwigo.org/svn/trunk@8464 68402e56-0260-453c-a942-63ccdbb3a9ee
2011-01-04 10:55:08 +00:00
plegall
2f90ae9251 feature 2085 added: new method pwg.themes.performAction
git-svn-id: http://piwigo.org/svn/trunk@8297 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-12-24 18:03:30 +00:00
plegall
55788d5875 feature 2060: remove adivser mode on web API methods imported from the pwg.images.addSimple plugin
git-svn-id: http://piwigo.org/svn/trunk@8274 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-12-23 23:15:24 +00:00
plegall
ae5438fbce feature 2084 added: new method pwg.plugins.getList and pwg.plugins.performAction
git-svn-id: http://piwigo.org/svn/trunk@8273 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-12-23 23:12:03 +00:00
plegall
c1d517c285 feature 2082 added: new method pwg.categories.move from the pwg.images.addSimple plugin
git-svn-id: http://piwigo.org/svn/trunk@8272 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-12-23 22:41:28 +00:00
plegall
130c83652e feature 2080 added: add methods pwg.images.delete and pwg.categories.delete from
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-23 20:51:33 +00:00
plegall
16371ed5fd feature 2083 added: implement method pwg.images.addSimple in core
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-23 10:22:51 +00:00
patdenice
731f8888a4 feature 2060: Remove adviser mode.
First commit: only php files.

git-svn-id: http://piwigo.org/svn/trunk@8126 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-12-14 13:47:24 +00:00
plegall
4ae463a2fb merge r7781 from branch 2.1 to trunk
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-15 09:48:47 +00:00
plegall
6603613892 merge r7612 from branch 2.1 to trunk
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-03 22:24:48 +00:00
plegall
3eb3e323b1 merge r7549 from branch 2.1 to trunk
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-11-01 19:30:59 +00:00
rvelices
d8ec9b9fdd feature 1915: add protection on user registration against robots
git-svn-id: http://piwigo.org/svn/trunk@7495 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-10-30 11:32:11 +00:00
plegall
7ee4f2b076 merge r7210 from branch 2.1 to trunk
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-10-15 20:36:02 +00:00
nikrou
dd955526ae Bug 1754 fixed : The keyword AS is mandatory for alias in PostgreSQL queries
git-svn-id: http://piwigo.org/svn/trunk@6652 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-07-03 12:12:25 +00:00
nikrou
a629994ea9 Bug 1716 fixed : Check upgrades failed in intro
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-09 09:55:54 +00:00
rvelices
2a99a22130 - do not remove slashes before calling insert_user_comment (homogeneity with 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-06-01 19:52:44 +00:00
nikrou
a34af69677 Amend bug 1559. standard deviation was not removed in some places.
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-08 18:43:50 +00:00
plegall
89384aa6b1 improvement: use the same code to check upload readiness in admin>photos>add
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-03 09:56:22 +00:00
plegall
2de8344c97 bug 1635 fixed: new API method pwg.images.checkUpload tells pLoader if Piwigo
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-05-03 09:09:40 +00:00
nikrou
c277a646c3 Fix missing argument for pwg_db_changes()
git-svn-id: http://piwigo.org/svn/trunk@5930 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-04-20 21:08:48 +00:00
plegall
86ad1d5b49 increase copyright year to 2010
git-svn-id: http://piwigo.org/svn/trunk@5196 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-19 22:37:10 +00:00
nikrou
2e890e9597 Feature 1451 : localization with gettext
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-02 14:54:22 +00:00
plegall
35694a636e merge r5013 from branch 2.0 to trunk
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-03-01 16:22:34 +00:00
plegall
570c905556 merge r4953 from branch 2.0 to trunk
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-23 14:41:45 +00:00
plegall
6ba826eb32 merge r4910 from branch 2.0 to trunk
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-19 09:20:11 +00:00
plegall
b73d129a17 merge r4902 from branch 2.0 to trunk
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-17 16:15:56 +00:00
plegall
a8539c990f merge r4899 from branch 2.0 to trunk
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-17 15:09:44 +00:00
nikrou
c1d6177df9 Feature 1255 :
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-15 19:49:04 +00:00
plegall
ddf51992f0 merge r4883 from branch 2.0 to trunk
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-02-12 23:05:37 +00:00
nikrou
386864cd26 Feature 511 : add support for sqlite database engine
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-28 11:30:36 +00:00
plegall
4e26a5480e merge r4684 from branch 2.0 to trunk
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
2010-01-15 11:28:18 +00:00
rvelices
8c051ea526 merge -r4512 from branch 2.0 to trunk
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-18 21:12:41 +00:00
plegall
975188d088 merge r4510 from branch 2.0 to trunk
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-18 00:45:03 +00:00
plegall
57db55318a merge r4459 from branch 2.0 to trunk
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-09 22:19:06 +00:00
plegall
17dd6ed3ae merge r4444 from branch 2.0 to trunk
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-07 22:30:02 +00:00
plegall
110ce79b3c merge r4424 from branch 2.0 to trunk
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-12-04 21:57:50 +00:00
nikrou
13ea9d50e3 Feature 1255: modification in sql queries
- 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-25 19:02:57 +00:00
plegall
f974668ef5 merge r4345 from branch 2.0 to trunk
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-22 23:59:14 +00:00
plegall
858b43e87a merge r4344 from branch 2.0 to trunk
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-22 23:58:44 +00:00
plegall
7ee33e9c0c merge r4328 from branch 2.0 to trunk
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-22 23:57:44 +00:00
nikrou
ce3fe0d460 Feature 1255 : limit params in sql queries were in wrong order (LIMIT count OFFSET offset)
git-svn-id: http://piwigo.org/svn/trunk@4334 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-11-21 19:52:50 +00:00
nikrou
f0d0a0952c Feature 1255 : improve sql
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-21 12:15:22 +00:00