Commit graph

2424 commits

Author SHA1 Message Date
nikrou
ace36384ea Merge branch 'bug_1255'
git-svn-id: http://piwigo.org/svn/trunk@4607 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-01-03 09:22:32 +00:00
mathiasm
b2d32672d5 Merge bug:1358 fix into trunk
git-svn-id: http://piwigo.org/svn/trunk@4601 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-01-01 22:35:02 +00:00
ddtddt
d73a51c6c3 [trunk] merge 4598 bug:1353
git-svn-id: http://piwigo.org/svn/trunk@4599 68402e56-0260-453c-a942-63ccdbb3a9ee
2010-01-01 10:48:20 +00:00
vdigital
15a1169723 [language_switch] merge r4582 from branch 2.0 to trunk
New: he_IL (Hebrew: יִשְׂרָאֵל‎, Yisra'el) Israeli flag






git-svn-id: http://piwigo.org/svn/trunk@4583 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-12-30 21:15:27 +00:00
rub
f7788450b8 Feature 1255: modification in sql queries
correction


git-svn-id: http://piwigo.org/svn/trunk@4542 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-12-21 15:11:35 +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
nikrou
9bbe72df1e Bug 1328 : improve check function
git-svn-id: http://piwigo.org/svn/trunk@4493 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-12-14 22:38:04 +00:00
nikrou
c76b39da6f Bug 1328 add function to check token
git-svn-id: http://piwigo.org/svn/trunk@4492 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-12-14 22:16:52 +00:00
ddtddt
8938db7136 [trunk] merge 4483 BR2 -> T
git-svn-id: http://piwigo.org/svn/trunk@4484 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-12-13 20:42:54 +00:00
ddtddt
2dbc9fb1c5 [trunk] merge 4480 BR2 -> T
add config_database.inc.php to ignore list

git-svn-id: http://piwigo.org/svn/trunk@4481 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-12-13 19:45:51 +00:00
riopwg
57b865044e Update language IT
git-svn-id: http://piwigo.org/svn/trunk@4465 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-12-10 06:26:26 +00:00
plegall
56d0934080 merge r4462 from branch 2.0 to trunk
bug 1317 fixed: force the HTTP response charset (ie encoding) to UTF-8.


git-svn-id: http://piwigo.org/svn/trunk@4463 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-12-09 23:34:57 +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
Eric
4f09b7836d fix r3751 regression
git-svn-id: http://piwigo.org/svn/trunk@4455 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-12-09 20:10:11 +00:00
nikrou
5bbe11c2d1 Bug 1314 : warning because of undefined variables in installation
git-svn-id: http://piwigo.org/svn/trunk@4454 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-12-09 19:20:34 +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
vdigital
8d75d404da [language_switch] merge r4434 from branch 2.0 to trunk
New: mk_MK (Macedonian) Republic of Macedonia flag





git-svn-id: http://piwigo.org/svn/trunk@4435 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-12-06 22:46:08 +00:00
nikrou
6f21d436fe Feature 1255 : file not needed. Job is done is install.php
git-svn-id: http://piwigo.org/svn/trunk@4433 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-12-06 21:17:42 +00:00
Eric
1b601a37de Feature 0000796 fixed : Strengthen login handling
git-svn-id: http://piwigo.org/svn/trunk@4429 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-12-05 19:55:21 +00:00
plegall
9c5cfbc789 merge r4426 from branch 2.0 to trunk
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/trunk@4427 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-12-04 23:19:26 +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
eaacc88183 Feature 1255 : migration script
git-svn-id: http://piwigo.org/svn/trunk@4423 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-12-04 18:59:05 +00:00
nikrou
fdfaefd17a Feature 1255 :
- add postgres database engine
- change installation process to allow postgres or mysql database

git-svn-id: http://piwigo.org/svn/trunk@4410 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-12-02 20:27:06 +00:00
plegall
b8c33dcf20 merge r4400 from branch 2.0 to trunk
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/trunk@4401 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-12-01 00:14:50 +00:00
nikrou
f7222bf601 Feature 1255 :
sql functions for calendar (interval, year, month, ...)

git-svn-id: http://piwigo.org/svn/trunk@4398 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-11-30 20:41:11 +00:00
nikrou
2f8800b35b Feature 1255 :
misspelled function
parenthesis missing

git-svn-id: http://piwigo.org/svn/trunk@4388 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-11-29 14:08:43 +00:00
nikrou
ad796f152f Feature_1255:
- bug fix : function pwg_db_get_recent_period_expression
- add extra fields for select based on "order by"

git-svn-id: http://piwigo.org/svn/trunk@4387 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-11-29 14:06:16 +00:00
nikrou
c96097529e Feature_1255 :
- single quotes in queries
- start using $conf['dblayer']

git-svn-id: http://piwigo.org/svn/trunk@4385 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-11-29 12:35:19 +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
nikrou
d30639ec98 Feature 928 :
partial revert of svn:4280 for external authentification.

git-svn-id: http://piwigo.org/svn/trunk@4357 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-11-24 10:19:27 +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
96aa29d484 Feature 1241 : revert pwg_db_fetch_row because we use $row[0]
git-svn-id: http://piwigo.org/svn/trunk@4335 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-11-21 21:05:22 +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
daa877aa8a Feature 1244 : misspelled functions pwg_db_free_result() (db missing)
git-svn-id: http://piwigo.org/svn/trunk@4332 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-11-21 12:41:13 +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
nikrou
8c17d369fa Feature 1244 : bug fix
functions_mysql.inc.php must be loaded for install

git-svn-id: http://piwigo.org/svn/trunk@4326 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-11-20 14:55:32 +00:00
nikrou
924dd262ec Feature 1244 resolved
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-20 14:17:04 +00:00
Eric
c020cd0d7c Rollback to preview commit
git-svn-id: http://piwigo.org/svn/trunk@4306 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-11-18 22:02:21 +00:00
Eric
41fe69917c Forgotten Comments author name to be escaped and correctly displayed
git-svn-id: http://piwigo.org/svn/trunk@4305 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-11-18 21:14:58 +00:00
Eric
1235bab527 Escape all login and username characters in database
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-11-18 20:07:20 +00:00
nikrou
8a29965450 Feature 928 resolved.
Replace include/mysql.inc.php by include/config_database.inc.php to be independant of database engine
Rename database configurations variables by ones in $conf array.

git-svn-id: http://piwigo.org/svn/trunk@4280 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-11-16 19:17:01 +00:00
voyteckst
9a773f003c git-svn-id: http://piwigo.org/svn/trunk@4278 68402e56-0260-453c-a942-63ccdbb3a9ee 2009-11-16 06:46:48 +00:00
nikrou
1040cae210 Feature 1241 resolved. replace mysql_fetch_array by mysql_fetch_assoc for small php code improvements
git-svn-id: http://piwigo.org/svn/trunk@4265 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-11-15 12:26:09 +00:00
rvelices
dda7f4571b quick search on image file name is not case sensitive anymore
git-svn-id: http://piwigo.org/svn/trunk@4261 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-11-13 03:07:44 +00:00
vdigital
2855c5372f [language_switch] merge r4257 from branch 2.0 to trunk
UPDATE: ir_IR (Persian) flag renamed in fa_IR



git-svn-id: http://piwigo.org/svn/trunk@4258 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-11-11 19:58:14 +00:00
vdigital
97be245316 [language_switch] merge r4255 from branch 2.0 to trunk
New: ar_SA (Arabic) Saudi Arabia (officially Kingdom of Saudi Arabia) flag


git-svn-id: http://piwigo.org/svn/trunk@4256 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-11-11 19:28:27 +00:00
patdenice
8d2297ecc3 merge r4230 from branch 2.0 to trunk
Add Hungarian to LocalFiles Editor (thanks to samli).

git-svn-id: http://piwigo.org/svn/trunk@4231 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-11-08 16:56:17 +00:00