Commit graph

1289 commits

Author SHA1 Message Date
plegall
b581ba81b7 merge r12760 from branch 2.3 to trunk
bug 2502 fixed: better handling of non-latin tags and multilanguage tags on
tags.php with mode letter.

We can't rely on url_name because it always start with "_" when the tag looks
like "[lang...". Instead we compute a str2url on the name, but once it has been
rendered by Extended Description. To avoid useless computations, I have added a
cache on the tag_alpha_compare function. Tested on a 175 tags set, speed is
good.



git-svn-id: http://piwigo.org/svn/trunk@12761 68402e56-0260-453c-a942-63ccdbb3a9ee
2011-12-17 22:52:19 +00:00
plegall
1c84017d23 better get_boolean function: able to detect "0" as false, (bool)false as false
and (int)0 as false.


git-svn-id: http://piwigo.org/svn/trunk@12752 68402e56-0260-453c-a942-63ccdbb3a9ee
2011-12-16 20:57:55 +00:00
patdenice
1ea0155ad7 bug:2535
Image is not cropped and ressized if requested size is bigger than image size.

git-svn-id: http://piwigo.org/svn/trunk@12749 68402e56-0260-453c-a942-63ccdbb3a9ee
2011-12-16 17:00:06 +00:00
plegall
d827eacab4 merge r12747 from branch 2.3 to trunk
bug 2534 fixed: clean (as clean as possible with MySQL+MyISAM) handle of
concurrency on user cache refresh. No more error when regenerating several
thumbnails at once.



git-svn-id: http://piwigo.org/svn/trunk@12748 68402e56-0260-453c-a942-63ccdbb3a9ee
2011-12-16 13:53:24 +00:00
plegall
8796a85ab7 merge r12738 from branch 2.3 to trunk
feature 2489 updated: photos added by synchronization can't update their "file" field



git-svn-id: http://piwigo.org/svn/trunk@12739 68402e56-0260-453c-a942-63ccdbb3a9ee
2011-12-16 09:10:30 +00:00
plegall
5bdba6b0bc merge r12729 from branch 2.3 to trunk
feature 2489 added: ability to update "file" info in pwg.images.setInfo


git-svn-id: http://piwigo.org/svn/trunk@12730 68402e56-0260-453c-a942-63ccdbb3a9ee
2011-12-13 15:21:36 +00:00
plegall
b129ee5c13 merge r12727 from branch 2.3 to trunk
feature 2532 added: pwg.images.add returns image_id (+url)


git-svn-id: http://piwigo.org/svn/trunk@12728 68402e56-0260-453c-a942-63ccdbb3a9ee
2011-12-13 15:00:32 +00:00
plegall
5338ef80ef merge r12725 from branch 2.3 to trunk
feature 2533 added: ability to deactivate uniqueness check on pwg.images.add


git-svn-id: http://piwigo.org/svn/trunk@12726 68402e56-0260-453c-a942-63ccdbb3a9ee
2011-12-13 14:42:54 +00:00
plegall
4bc17c2e40 merge r12722 from branch 2.3 into trunk
merge r12723 from branch 2.3 into trunk

feature 2531 added: pwg.images.add is able to generate web size + thumbnail
(remote client needs to set "resize" option to something else than 0). When
the "resize" is On, only the "file" must be send with pwg.images.addChunk.

Small improvement compared to code implemented in branch 2.3 : use of
single_insert when resize is Off, single algorithm to update $info_colums (resize On/Off)


git-svn-id: http://piwigo.org/svn/trunk@12724 68402e56-0260-453c-a942-63ccdbb3a9ee
2011-12-13 14:01:10 +00:00
rvelices
8ce9bc9d39 removed unused css rules
git-svn-id: http://piwigo.org/svn/trunk@12670 68402e56-0260-453c-a942-63ccdbb3a9ee
2011-11-29 04:44:13 +00:00
rvelices
45dcf686ee bug 2516: compiled_template_cache_language option does not work properly (again)
git-svn-id: http://piwigo.org/svn/trunk@12656 68402e56-0260-453c-a942-63ccdbb3a9ee
2011-11-22 21:18:15 +00:00
plegall
f6a6701fb7 merge r12629 from branch 2.3 to trunk
bug 2506 fixed: Batch Manager does not take permissions into account when
filtering on tags

feature 2507 added: Batch Manager can filter on "all tags" or "any tag"



git-svn-id: http://piwigo.org/svn/trunk@12630 68402e56-0260-453c-a942-63ccdbb3a9ee
2011-11-15 11:58:10 +00:00
rvelices
2f87684e09 feature 2486: Add an admin view for rates by user
git-svn-id: http://piwigo.org/svn/trunk@12624 68402e56-0260-453c-a942-63ccdbb3a9ee
2011-11-14 20:10:37 +00:00
mistic100
2650003a54 feature 2500: make 'validate_user_comment' and 'delete_user_comment' working with array
git-svn-id: http://piwigo.org/svn/trunk@12596 68402e56-0260-453c-a942-63ccdbb3a9ee
2011-11-11 10:19:44 +00:00
mistic100
5e8423c38b feature:2495 add triggers for comment validation and deletion
git-svn-id: http://piwigo.org/svn/trunk@12556 68402e56-0260-453c-a942-63ccdbb3a9ee
2011-11-05 22:56:13 +00:00
patdenice
e859d5ac6d feature:2322
feature:2493
Add a trigger for multi language tags in quick search and url

git-svn-id: http://piwigo.org/svn/trunk@12553 68402e56-0260-453c-a942-63ccdbb3a9ee
2011-11-05 16:15:58 +00:00
plegall
a808d23130 merge r12545 from branch 2.3 to trunk
feature 2397 added: add details about the album thumbnail for extra templates.

Algorithm changed for FILE_HAS_HD : we don't care about the $user['enabled_high']

Fields added in category_default : high_filesize, high_width, high_height, rating_score

We send the same fields on category_cats but for album thumbnail only.



git-svn-id: http://piwigo.org/svn/trunk@12546 68402e56-0260-453c-a942-63ccdbb3a9ee
2011-11-04 23:54:12 +00:00
plegall
ee79c8516a merge r12539 from branch 2.3 to trunk
feature 2352: a bug had been introduced by r12537, the piwigo_user_cache_categories.count_categories
was missing (the list of albums was not refreshing correctly on the upload form)



git-svn-id: http://piwigo.org/svn/trunk@12544 68402e56-0260-453c-a942-63ccdbb3a9ee
2011-11-04 21:27:18 +00:00
plegall
7b1964c511 merge r12537 from branch 2.3 to trunk
feature 2352 added: pwg.categories.getList now returns a tn_url parameter.
This is the album thumbnail.

Warning: if the API method is called with $params['public'], the album
thumbnail may be not accurate. The thumbnail can be viewed by the connected
user, but maybe not by the guest. Changing the filtering method would be too
complicated for now. We will simply avoid to persist the
user_representative_picture_id in the database if $params['public']



git-svn-id: http://piwigo.org/svn/trunk@12543 68402e56-0260-453c-a942-63ccdbb3a9ee
2011-11-04 21:22:55 +00:00
plegall
2c33148c60 merge r12540 from branch 2.3 to trunk
bug 2492 fixed: no need to transmit ['hit'] to get_thumbnail_title, this parameter becomes optional to avoid errors in plugins


git-svn-id: http://piwigo.org/svn/trunk@12541 68402e56-0260-453c-a942-63ccdbb3a9ee
2011-11-04 10:13:00 +00:00
rvelices
ef9766a291 feature 2477: Remove unused CSS / html elements from version 2.3
git-svn-id: http://piwigo.org/svn/trunk@12479 68402e56-0260-453c-a942-63ccdbb3a9ee
2011-10-17 20:51:49 +00:00
patdenice
c6406762f0 feature:2473
Apply trigger render_element_description for thumbnail title

git-svn-id: http://piwigo.org/svn/trunk@12451 68402e56-0260-453c-a942-63ccdbb3a9ee
2011-10-15 15:27:33 +00:00
rvelices
1cd0cda111 bug 2469 compiled_template_cache_language option does not work properly on some language keys because of double escaping
git-svn-id: http://piwigo.org/svn/trunk@12429 68402e56-0260-453c-a942-63ccdbb3a9ee
2011-10-13 18:18:05 +00:00
rvelices
143637d30e bug 2469 compiled_template_cache_language option does not work properly on some language keys because of double escaping
git-svn-id: http://piwigo.org/svn/trunk@12427 68402e56-0260-453c-a942-63ccdbb3a9ee
2011-10-13 18:00:53 +00:00
rvelices
0320e1f874 avoid division by 0 warning when there are no rates in the database
git-svn-id: http://piwigo.org/svn/trunk@12412 68402e56-0260-453c-a942-63ccdbb3a9ee
2011-10-11 20:09:08 +00:00
rvelices
2967d4d11b moved up one line of code added in 2.3 (plugin compatibility)
git-svn-id: http://piwigo.org/svn/trunk@12391 68402e56-0260-453c-a942-63ccdbb3a9ee
2011-10-08 20:01:20 +00:00
plegall
7ad0971cf7 next release on trunk is 2.4.0beta1
git-svn-id: http://piwigo.org/svn/trunk@12346 68402e56-0260-453c-a942-63ccdbb3a9ee
2011-10-04 13:46:45 +00:00
plegall
c1dd676c5c postpone warning on is_adviser to Piwigo 2.4 to avoid breaking compatibility with plugins
git-svn-id: http://piwigo.org/svn/trunk@12339 68402e56-0260-453c-a942-63ccdbb3a9ee
2011-10-04 09:06:22 +00:00
plegall
2b607f0b0f next version is 2.3.0
git-svn-id: http://piwigo.org/svn/trunk@12294 68402e56-0260-453c-a942-63ccdbb3a9ee
2011-10-01 22:44:21 +00:00
rvelices
cf2fc7a424 feature 2439: ability to sync more metadata from plusigns (send the mapping to plugins)
git-svn-id: http://piwigo.org/svn/trunk@12254 68402e56-0260-453c-a942-63ccdbb3a9ee
2011-09-29 04:11:26 +00:00
plegall
fafb6c3368 feature 2441 added: no need to have the HD to regenerate the websize if the
current websize is bigger than resize settings. When it occurs, we move the
current websize as HD and create the new websize from it.


git-svn-id: http://piwigo.org/svn/trunk@12175 68402e56-0260-453c-a942-63ccdbb3a9ee
2011-09-17 21:03:58 +00:00
plegall
eac273db56 change version number to 2.3.0RC3
git-svn-id: http://piwigo.org/svn/trunk@12137 68402e56-0260-453c-a942-63ccdbb3a9ee
2011-09-12 13:06:18 +00:00
ddtddt
1c0f3d46c4 [trunk] - language - add key - feature:2428
git-svn-id: http://piwigo.org/svn/trunk@12131 68402e56-0260-453c-a942-63ccdbb3a9ee
2011-09-12 06:19:51 +00:00
rvelices
bfd6bc92dd - fix protection against session hijacking for IPv4; ti be done later for ipv6
git-svn-id: http://piwigo.org/svn/trunk@12119 68402e56-0260-453c-a942-63ccdbb3a9ee
2011-09-08 18:47:30 +00:00
rvelices
1d3fc9005f - reoptimize queries for MySql
- week starts on monday/sunday applies also to weekly calendar

git-svn-id: http://piwigo.org/svn/trunk@12118 68402e56-0260-453c-a942-63ccdbb3a9ee
2011-09-08 18:22:27 +00:00
plegall
6a4096f8b9 change version number to 2.3.0RC2
git-svn-id: http://piwigo.org/svn/trunk@12101 68402e56-0260-453c-a942-63ccdbb3a9ee
2011-09-08 09:30:16 +00:00
laurent.duretz
b470527e68 Issue 2433 : resizing of php.ini parameter pcre.backtrack_limit for remote site synchronisation
git-svn-id: http://piwigo.org/svn/trunk@12067 68402e56-0260-453c-a942-63ccdbb3a9ee
2011-09-06 14:45:14 +00:00
plegall
a4cfa43b26 merge r12022 from branch 2.2 to trunk
bug 2421 fixed: no more warning on comments.php when $_SERVER['QUERY_STRING'] is not defined



git-svn-id: http://piwigo.org/svn/trunk@12023 68402e56-0260-453c-a942-63ccdbb3a9ee
2011-08-31 20:30:59 +00:00
plegall
9983af7336 merge r12009 from branch 2.2 to trunk
bug 2416 fixed: the CAST function in MySQL seems to return unexpected results,
depending on MySQL version. As a consequence it was producing virtual years in
calendar display.



git-svn-id: http://piwigo.org/svn/trunk@12010 68402e56-0260-453c-a942-63ccdbb3a9ee
2011-08-30 08:48:12 +00:00
plegall
f8226de8e6 feature 2420 added: automatically use the gallery title in the page banner.
Just write %gallery_title% in the page banner (this is written by default).

The default gallery title and tagline are now localized.


git-svn-id: http://piwigo.org/svn/trunk@12008 68402e56-0260-453c-a942-63ccdbb3a9ee
2011-08-30 08:24:42 +00:00
plegall
37156b5053 feature 1797 added: use photo title for thumbnail ALT attribute if possible
git-svn-id: http://piwigo.org/svn/trunk@11999 68402e56-0260-453c-a942-63ccdbb3a9ee
2011-08-26 12:24:32 +00:00
plegall
540c1d5aa0 feature 1729: protect thumbnail title against HTML special chars
git-svn-id: http://piwigo.org/svn/trunk@11998 68402e56-0260-453c-a942-63ccdbb3a9ee
2011-08-26 12:20:51 +00:00
plegall
12ec1dcf5b feature 1729: avoid too long description in tooltips
git-svn-id: http://piwigo.org/svn/trunk@11997 68402e56-0260-453c-a942-63ccdbb3a9ee
2011-08-26 12:09:05 +00:00
plegall
5861549e51 feature 1729: rewrite function get_thumbnail_title to provide a complete tooltip
to the template file. It include the name of the photo, details such as number
of visits, number of comments, rating score, and the description.


git-svn-id: http://piwigo.org/svn/trunk@11996 68402e56-0260-453c-a942-63ccdbb3a9ee
2011-08-26 11:02:11 +00:00
plegall
2de0f01dce feature 2027 implemented: the "lost password" feature was rewritten.
The algorithm is highly inspired from WordPress :

1) in a single field, you give a username or an email
2) Piwigo sends an email with the activation key
3) the user clicks on the link in the email (with the activation key) and is able to set a new password

The "lost password" feature is no longer limited to "classic" users:
administrators and webmasters can use it too (no need to tell webmasters
that they can only change their password in the database)


git-svn-id: http://piwigo.org/svn/trunk@11992 68402e56-0260-453c-a942-63ccdbb3a9ee
2011-08-24 20:03:53 +00:00
plegall
c1d7fbebdd feature 2359: simpler function single_update and single_insert
git-svn-id: http://piwigo.org/svn/trunk@11991 68402e56-0260-453c-a942-63ccdbb3a9ee
2011-08-24 19:50:54 +00:00
plegall
fc1d139741 replace tabs by spaces for indentation introduced in r
git-svn-id: http://piwigo.org/svn/trunk@11981 68402e56-0260-453c-a942-63ccdbb3a9ee
2011-08-22 21:08:14 +00:00
rvelices
ab8deea23b bug fix quick search - file name was not correctly search (typo error)
git-svn-id: http://piwigo.org/svn/trunk@11979 68402e56-0260-453c-a942-63ccdbb3a9ee
2011-08-22 19:14:11 +00:00
plegall
58b18bff0f feature 2413 added: move gallery_url configuration parameter from database to
local configuration file.


git-svn-id: http://piwigo.org/svn/trunk@11978 68402e56-0260-453c-a942-63ccdbb3a9ee
2011-08-22 17:14:13 +00:00
plegall
71848746ba tiny bug fixed in ['graphics_library'] parameter description
git-svn-id: http://piwigo.org/svn/trunk@11965 68402e56-0260-453c-a942-63ccdbb3a9ee
2011-08-18 15:14:39 +00:00