Commit graph

2429 commits

Author SHA1 Message Date
plegall
d6e1139528 bug 1328: implements check_pwg_token at group management level.
git-svn-id: http://piwigo.org/svn/branches/2.0@4529 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-12-19 20:22:13 +00:00
ddtddt
87b1686ae6 [branche2] update doc/readme
git-svn-id: http://piwigo.org/svn/branches/2.0@4528 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-12-19 20:13:31 +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
587aaa0210 bug 1328: implements check_pwg_token at plugin management level.
git-svn-id: http://piwigo.org/svn/branches/2.0@4506 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-12-17 01:02:44 +00:00
plegall
f2fa6c16d9 bug 1328: check_pwg_token implemented on admin/cat_list forms (+delete action)
git-svn-id: http://piwigo.org/svn/branches/2.0@4505 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-12-16 21:48:09 +00:00
plegall
54ed1bfcdb bug 1328: first specific implementation of the check_pwg_token for the
admin/tags page (all actions : add/edit/delete).

The "check_token" function was renammed into check_pwg_token because the
word "token" is too much generic.

git-svn-id: http://piwigo.org/svn/branches/2.0@4503 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-12-15 23:22:49 +00:00
plegall
5d017241d3 merge r4493 from trunk to branch 2.0
Bug 1328 : improve check function


git-svn-id: http://piwigo.org/svn/branches/2.0@4502 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-12-15 22:54:11 +00:00
plegall
aca87d534d merge r4492 from trunk to branch 2.0
Bug 1328 add function to check token


git-svn-id: http://piwigo.org/svn/branches/2.0@4501 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-12-15 22:53:51 +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
ddtddt
8bbbe6c794 [branche2] update es_AR
git-svn-id: http://piwigo.org/svn/branches/2.0@4485 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-12-13 20:47:15 +00:00
ddtddt
49fe88575d [branche2] bug:1323 update maintenance.html
git-svn-id: http://piwigo.org/svn/branches/2.0@4483 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-12-13 20:33:09 +00:00
ddtddt
bbfa5520ba [branche2] update DE thanks to el ninjo
git-svn-id: http://piwigo.org/svn/branches/2.0@4480 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-12-13 19:38:04 +00:00
plegall
f405878c3d bug 1317 fixed: force the HTTP response charset (ie encoding) to UTF-8.
git-svn-id: http://piwigo.org/svn/branches/2.0@4462 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-12-09 23:33:09 +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
ddtddt
a649fb4029 [branche2]- another step in Hungarian translation delivery thanks to sámli
git-svn-id: http://piwigo.org/svn/branches/2.0@4449 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-12-07 23:52:22 +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
vdigital
72082dcc8b [language_switch]
New: mk_MK (Macedonian) Republic of Macedonia flag


git-svn-id: http://piwigo.org/svn/branches/2.0@4434 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-12-06 22:40:50 +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
3a542bdb31 bug 1301 fixed: it is now possible to move root category 4 into root category
49. Sometimes a single comma makes a huge difference!

git-svn-id: http://piwigo.org/svn/branches/2.0@4400 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-12-01 00:03:17 +00:00
plegall
49988ab23a merge back r4364, test is OK
git-svn-id: http://piwigo.org/svn/branches/2.0@4365 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-11-24 22:43:17 +00:00
plegall
eac5275ecd no regression labelled commit to check the automatic update of code.piwigo.org with post-commit hook
git-svn-id: http://piwigo.org/svn/branches/2.0@4364 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-11-24 22:39:20 +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
ad5763f68a feature 1237:[branche 2] add ar_SA thanks to mohammed
git-svn-id: http://piwigo.org/svn/branches/2.0@4259 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-11-11 21:34:05 +00:00
vdigital
5a2f3a9a22 [language_switch]
UPDATE: ir_IR (Persian) flag renamed in fa_IR



git-svn-id: http://piwigo.org/svn/branches/2.0@4257 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-11-11 19:55:12 +00:00
vdigital
4c92e48174 [language_switch]
New: ar_SA (Arabic) Saudi Arabia (officially Kingdom of Saudi Arabia) flag


git-svn-id: http://piwigo.org/svn/branches/2.0@4255 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-11-11 19:23:35 +00:00
patdenice
c05b8e808b Add Hungarian to LocalFiles Editor (thanks to samli).
git-svn-id: http://piwigo.org/svn/branches/2.0@4230 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-11-08 16:55:04 +00:00
plegall
00c0d36632 feature 1231: subscribe to cn.piwigo.org/announcement when current language is
zh_CN

git-svn-id: http://piwigo.org/svn/branches/2.0@4213 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-11-05 21:51:49 +00:00
ddtddt
1467945f2a [branche 2] update cz_CZ
git-svn-id: http://piwigo.org/svn/branches/2.0@4212 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-11-05 21:42:36 +00:00
rvelices
0257c3b2f1 merge -r4208 fro; trunk
admin multi view plugin : new option "do not save page visits to history table"

git-svn-id: http://piwigo.org/svn/branches/2.0@4209 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-11-05 20:15:16 +00:00
nikrou
ad1c1c1f5d Bug 1220 : partial revert of r4140 commit. No author id in branch 2.0
git-svn-id: http://piwigo.org/svn/branches/2.0@4191 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-11-05 09:52:20 +00:00
ddtddt
c68aa12c5a [branche 2] add localisation IT/DE/ES
git-svn-id: http://piwigo.org/svn/branches/2.0@4189 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-11-04 22:45:40 +00:00
vdigital
fd7786bea0 [language_switch]
New: zh_TW (Chinese (Traditional))  flag


git-svn-id: http://piwigo.org/svn/branches/2.0@4184 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-11-04 20:52:46 +00:00
nikrou
bf79a365b5 bug 1220 : merge from trunk
fix regression when search by author or keyword contains quote

git-svn-id: http://piwigo.org/svn/branches/2.0@4183 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-11-04 20:51:56 +00:00
ddtddt
9a86950ebd [branche 2] update hu_HU
git-svn-id: http://piwigo.org/svn/branches/2.0@4172 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-11-02 18:44:12 +00:00
nikrou
2696a1a759 merge from trunk
bug 1220 : fix XSS vulnerability.
filter on since parameter (is_numeric)
use only htmlspecialchars to filter vars to display
revert rev:3600 add left join on users table

Todo : use only left join on users table when a search by author is made

git-svn-id: http://piwigo.org/svn/branches/2.0@4140 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-10-28 20:39:00 +00:00
vdigital
e0e12306cc [language_switch] merge 4130 from trunk
New: de_AT (Austrian) flag
New: ir_IR (Persian) flag


git-svn-id: http://piwigo.org/svn/branches/2.0@4131 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-10-27 22:48:33 +00:00
ddtddt
1de6cc7dec [extensions]- pLoader / trunk - Add hu language thanks to Pal Mehesz
Feature 1214 added

git-svn-id: http://piwigo.org/svn/branches/2.0@4123 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-10-26 22:34:06 +00:00
rvelices
989343b5c9 merge -r2048 from trunk to branch 2
- avoid php warning in template when debug template option is activated

git-svn-id: http://piwigo.org/svn/branches/2.0@4069 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-10-20 19:30:09 +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
916fa5ea70 Plugins upgrade now delete obsolete files from obsolete.list.
git-svn-id: http://piwigo.org/svn/branches/2.0@4033 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-10-14 14:59:23 +00:00
Eric
676c314c58 [Piwigo] r4024 merged from Trunk to Branch
Bug 1189 fixed :
Adding {$NAVBAR} at top of users list.

git-svn-id: http://piwigo.org/svn/branches/2.0@4025 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-10-11 13:42:30 +00:00