907 Commits

Author SHA1 Message Date
laurent.duretz
4dccf25776 Issue 1521 : report trunk on branch 2.0
git-svn-id: http://piwigo.org/svn/branches/2.0@5938 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-04-22 13:11:32 +00:00
laurent.duretz
d6cc2b0a0a Issue 1521 : Integration of LinkRoot plugin in Piwigo core
git-svn-id: http://piwigo.org/svn/branches/2.0@5254 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-22 11:09:32 +00:00
ddtddt
a4ea2a0085 [Branche2] localisation hu/RU feature:1526 and feature:1527
git-svn-id: http://piwigo.org/svn/branches/2.0@5233 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-21 21:42:21 +00:00
ddtddt
3a0e03407c [Branche2] bug:1523 / Compatibility with PHP 5.3
git-svn-id: http://piwigo.org/svn/branches/2.0@5210 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-21 07:51:07 +00:00
rvelices
26e605d4b6 use fatal_error instead of die function (fatal_error leaves a trace in php error log making easier to see potential problems on "production" galleries)
git-svn-id: http://piwigo.org/svn/branches/2.0@5017 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-01 21:23:51 +00:00
plegall
117baff95c 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/branches/2.0@5013 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-03-01 16:20:24 +00:00
plegall
f1f59e937a improvement: avoid the use of @ instead of a real test
git-svn-id: http://piwigo.org/svn/branches/2.0@5003 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-02-28 20:58:45 +00:00
plegall
db5c5f9518 bug 1047 fixed: avoid warnings when the creation date is 0000-00-00 (which
happens when date_creation comes from corrupted EXIF)

bug 859 fixed: at display time only. Piwigo still inserts wrong date in the
database, to be fixed later.

git-svn-id: http://piwigo.org/svn/branches/2.0@4965 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-02-26 12:00:45 +00:00
plegall
d0f215731d 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/branches/2.0@4953 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-02-23 14:38:38 +00:00
plegall
c36a3d5adc 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/branches/2.0@4910 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-02-19 09:19:21 +00:00
rub
ce326d88f3 Feature 0001142: notification on category, current user language depends on last group user
Thanks to cljosse and Eric for their help!


git-svn-id: http://piwigo.org/svn/branches/2.0@4907 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-02-18 23:10:16 +00:00
plegall
3ab6df98e8 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/branches/2.0@4902 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-02-17 16:15:41 +00:00
plegall
bf81ad9332 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/branches/2.0@4899 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-02-17 15:06:47 +00:00
nikrou
213eb3b736 Bug 1426 fixed : admin help popup use gallery theme instead of admin theme
merge from trunk

git-svn-id: http://piwigo.org/svn/branches/2.0@4894 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-02-15 21:40:52 +00:00
plegall
ac67da8a03 bug 1431: Community users now can see empty categories just like any admin.
git-svn-id: http://piwigo.org/svn/branches/2.0@4883 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-02-12 23:04:07 +00:00
ddtddt
4f10762d68 [Branche2] localisation
git-svn-id: http://piwigo.org/svn/branches/2.0@4758 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-01-26 22:42:32 +00:00
plegall
62139d941a feature 1381: pwg.images.add automatically synchronizes metadata. Thank you to
Jochen Roth (Polly) for the patch.

git-svn-id: http://piwigo.org/svn/branches/2.0@4684 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-01-15 11:27:53 +00:00
rvelices
8b66788392 web method images.setPrivacyLevel (ws_images_setPrivacyLevel) is POST only
git-svn-id: http://piwigo.org/svn/branches/2.0@4512 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-12-18 21:08:21 +00:00
plegall
2a9b358dc8 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/branches/2.0@4510 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-12-18 00:44:30 +00:00
plegall
093eeb2564 bug 1328: implements check_pwg_token for comment deletion on picture.php
git-svn-id: http://piwigo.org/svn/branches/2.0@4509 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-12-17 23:00:09 +00:00
plegall
2119631cd7 bug 1328: implement check_pwg_token for emails on user comments management.
The check_pwg_token and get_pwg_token functions were moved to the public side
(for use on comments.php)

The email sent to admins on new user comment does not directly includes
validate/delete actions.

git-svn-id: http://piwigo.org/svn/branches/2.0@4508 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-12-17 22:47:31 +00:00
plegall
742e2a7c0a bug 1329 fixed: add a check_input_parameter function to prevent hacking
attempts.

git-svn-id: http://piwigo.org/svn/branches/2.0@4495 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-12-15 00:33:57 +00:00
plegall
6ddcd4fc87 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/branches/2.0@4459 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-12-09 22:14:01 +00:00
plegall
34014e496e 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/branches/2.0@4444 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-12-07 22:28:40 +00:00
plegall
4d706af6f5 bug 1211 fixed: with PHP 5.3, the get_class function requires the input
parameter to be an object, or else throws a E_WARNING message. In webservices
files, I have replaced all "get_class" calls by "@get_class".

git-svn-id: http://piwigo.org/svn/branches/2.0@4426 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-12-04 23:18:46 +00:00
plegall
cbe2d9a168 bug 1210 fixed: check if the memory_get_usage function is available before
using it.

git-svn-id: http://piwigo.org/svn/branches/2.0@4424 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-12-04 21:54:32 +00:00
plegall
d7f0f0f9b2 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/branches/2.0@4345 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-11-22 23:38:57 +00:00
plegall
6768482bcf 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/branches/2.0@4344 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-11-22 22:09:41 +00:00
plegall
2bba9bc48a 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/branches/2.0@4328 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-11-20 21:19:04 +00:00
rvelices
7cc7cb7817 merge -r4261 from trunk
quick search on image file name is not case sensitive anymore

git-svn-id: http://piwigo.org/svn/branches/2.0@4262 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-11-13 03:08:36 +00:00
ddtddt
dc63ea09c3 [branche 2] new: de.piwigo.org/forum / es.piwigo.org/forum are online, PHPWG_DOMAIN updated inside Piwigo.
git-svn-id: http://piwigo.org/svn/branches/2.0@4046 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-10-15 15:15:55 +00:00
patdenice
e04bd969cb Replace another depreciated functions.
Depreciated functions were removed in trunk in commit 3747 by Eric.

git-svn-id: http://piwigo.org/svn/branches/2.0@4036 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-10-14 16:13:25 +00:00
patdenice
246634cb72 Replace some ereg function (depreciated) by preg_match.
git-svn-id: http://piwigo.org/svn/branches/2.0@4035 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-10-14 15:06:36 +00:00
patdenice
57225129b2 set_magic_quote_runtime and get_magic_quote_gpc are depreciated and can produce notices from PHP 5.3.
Add a @ to avoid this notices.
This functions need to be removed with PHP 6

git-svn-id: http://piwigo.org/svn/branches/2.0@4005 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-10-09 14:38:54 +00:00
patdenice
7042db4041 merge r3927, r3928, r3951, r3953 from trunk to branch 2.0
r3927: Add Smarty's prefilter capability. see topic:16219 (FR).
r3928: Improve template prefilter functions
r3951: Allow to add prefilters, postfilters and output filters to templates.
r3953: Simplification of commit 3951.

git-svn-id: http://piwigo.org/svn/branches/2.0@3998 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-10-09 01:00:33 +00:00
Eric
6d85089c9a [Bug 1041] Merged form trunk to branch : Switchable double/single password input with text or password type in admin using new $conf
git-svn-id: http://piwigo.org/svn/branches/2.0@3945 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-09-29 10:59:12 +00:00
rub
e4146c27da Bug 1176: Mail are not sent on Free sites
Add text/plain like alternative content-type

git-svn-id: http://piwigo.org/svn/branches/2.0@3937 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-09-28 20:47:55 +00:00
rub
36609cc5be Bug 1176: Mail are not sent on Free sites
"To: undisclosed-recipients: ;" are removed

git-svn-id: http://piwigo.org/svn/branches/2.0@3925 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-09-27 20:02:11 +00:00
rub
13872e6e92 merge -c3798 from trunk to branch 2.0
Bug 1145: Mails are sent in double


git-svn-id: http://piwigo.org/svn/branches/2.0@3799 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-08-26 20:17:28 +00:00
rvelices
de08354729 merge r3703 from trunk - fix smarty debugging info (not important)
git-svn-id: http://piwigo.org/svn/branches/2.0@3704 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-07-30 04:00:04 +00:00
plegall
7edf366f8b 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/branches/2.0@3661 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-07-21 21:40:47 +00:00
plegall
881aa5ab22 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/branches/2.0@3659 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-07-21 21:18:51 +00:00
rvelices
d8f1c262de - bug fix (use uasort for computed categories instead of usort) - I think this is an old bug and somehow it worked before)
git-svn-id: http://piwigo.org/svn/branches/2.0@3643 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-07-20 05:37:37 +00:00
rvelices
30f0e85768 correct bug in commit r3623 ( feature 1053 )
git-svn-id: http://piwigo.org/svn/branches/2.0@3641 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-07-20 05:19:37 +00:00
rvelices
17087ea615 merge r3622 from trunk to branch 2.0
- feature 1053: hide categories that contain no photo due to privacy level

git-svn-id: http://piwigo.org/svn/branches/2.0@3623 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-07-18 10:34:39 +00:00
patdenice
74476e34e0 Update smarty to 2.6.26
git-svn-id: http://piwigo.org/svn/branches/2.0@3583 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-07-15 11:41:41 +00:00
plegall
153c32e8ff 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/branches/2.0@3513 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-07-03 22:59:32 +00:00
vdigital
a61dfc631d Reverse of 3484
git-svn-id: http://piwigo.org/svn/branches/2.0@3490 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-07-01 21:06:55 +00:00
vdigital
7ee363b9f9 New: Extend of available fields within a category page for a template-extension simple usage.
Add thumbnail dimensions to remove as much as possible some PHP in tpl extensions.

{$thumbnails.FILE_TN_WIDTH}
{$thumbnails.FILE_TN_HEIGHT}

git-svn-id: http://piwigo.org/svn/branches/2.0@3484 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-07-01 19:19:24 +00:00
plegall
91c7200b59 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/branches/2.0@3453 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-06-24 21:42:39 +00:00