Commit graph

2404 commits

Author SHA1 Message Date
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
rvelices
b36d4475cc admin multi view plugin : new option "do not save page visits to history table"
git-svn-id: http://piwigo.org/svn/trunk@4208 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-11-05 20:13:41 +00:00
vdigital
821b4e7222 [language_switch] merge r4184 from branch 2.0 to trunk
New: zh_TW (Chinese (Traditional))  flag




git-svn-id: http://piwigo.org/svn/trunk@4187 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-11-04 20:56:16 +00:00
nikrou
9e6a254290 bug 1220 : fix regression in display when search by author or by keyword contains quote.
git-svn-id: http://piwigo.org/svn/trunk@4182 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-11-04 20:50:17 +00:00
nikrou
d7f6cbb5fd 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/trunk@4139 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-10-28 20:34:29 +00:00
vdigital
5c9929b62e [language_switch]
New: de_AT (Austrian) flag
New: ir_IR (Persian) flag

git-svn-id: http://piwigo.org/svn/trunk@4130 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-10-27 22:45:37 +00:00
rvelices
c3beef869a avoid php warning in template when debug template option is activated
git-svn-id: http://piwigo.org/svn/trunk@4068 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-10-20 19:29:09 +00:00
rvelices
05d508beab remove jquery.dimensions as they are already included in the standard jQuery distribution
git-svn-id: http://piwigo.org/svn/trunk@4067 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-10-20 19:13:56 +00:00
ddtddt
a0a640fa10 [trunk] Merge 4046 new: de.piwigo.org/forum / es.piwigo.org/forum are online, PHPWG_DOMAIN updated inside Piwigo.
git-svn-id: http://piwigo.org/svn/trunk@4047 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-10-15 15:17:33 +00:00
patdenice
6d5d2133cf merge r4033 from branch 2.0 to trunk
Plugins upgrade now delete obsolete files from obsolete.list.

git-svn-id: http://piwigo.org/svn/trunk@4034 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-10-14 15:01:20 +00:00
Eric
69d4be7677 [Piwigo] Bug 1189 fixed :
Adding {$NAVBAR} at top of users list.

git-svn-id: http://piwigo.org/svn/trunk@4024 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-10-11 13:38:56 +00:00
patdenice
7e47a77f2e merge r4013 from branch 2.0 to trunk
bug 1079: don't save settings in database when restore default settings.

git-svn-id: http://piwigo.org/svn/trunk@4014 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-10-10 12:36:09 +00:00
nikrou
44315512d1 Bug fix 1185 : missing %s in admin vocab
git-svn-id: http://piwigo.org/svn/trunk@4012 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-10-10 11:38:39 +00:00
Eric
47ae5c316c [Bug 1041] Switchable double/single password input with text or password type in admin using new $conf
Coding guidelines improvement

git-svn-id: http://piwigo.org/svn/trunk@4008 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-10-09 15:56:21 +00:00
patdenice
f83b8815c6 merge r4005 from branch 2.0 to trunk
bug 1187: 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/trunk@4006 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-10-09 14:41:30 +00:00
patdenice
f28bfd6bae Issue 1079: re-refactoring of code ;-)
git-svn-id: http://piwigo.org/svn/trunk@4003 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-10-09 08:47:33 +00:00
nikrou
a5c93713b6 Issue 1079: refactoring of code
git-svn-id: http://piwigo.org/svn/trunk@4001 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-10-09 08:25:34 +00:00
Eric
3a5c8759d1 [Piwigo] Bug 1079 fixed : Return to default settings in user profile page.
(I don't really enjoy the code but it's the simplest way i've found)

git-svn-id: http://piwigo.org/svn/trunk@3995 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-10-08 21:05:08 +00:00
nikrou
2afb92238d Feature 1026 : update database structure (adding author_id)
git-svn-id: http://piwigo.org/svn/trunk@3979 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-10-06 08:42:25 +00:00
patdenice
9e1b542796 Simplification of commit 3951.
git-svn-id: http://piwigo.org/svn/trunk@3953 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-10-01 15:11:58 +00:00
patdenice
162a4d1b78 Allow to add prefilters, postfilters and output filters to templates.
git-svn-id: http://piwigo.org/svn/trunk@3951 68402e56-0260-453c-a942-63ccdbb3a9ee
2009-10-01 10:46:48 +00:00