Commit Graph

1968 Commits

Author SHA1 Message Date
plegall
f78b10d1be (cp ea25f5b) Fix PHP-7.4 Issue
PHP-7.4 Issue  = "Trying to access array offset on value of type null" in functions_category.inc.php
2020-02-07 15:09:17 +01:00
plegall
6a8104b92b (cp f62ee77) Fix count() warning
In PHP 7.2 and later you will get a warning if you call count() on null. So either initialize $errors to an empty array here, or use empty() to check it as I have done here.
2019-12-16 10:51:51 +01:00
plegall
0d9bc4da7d (cp 8573e35) include/functions_cookie: use proper brackets for offset access
Fixes #1134
2019-12-04 10:42:07 +01:00
plegall
6d0d335200 (cp 41b4230) fixes #1102 limit the number of tags shown in the menubar 2019-10-15 16:03:19 +02:00
plegall
181c85699c next version is 2.10.1 2019-10-14 15:26:30 +02:00
plegall
5cbe5aadd9 (cp 9b695da)(cp 15d8a19) fixes #988 no more warning on PHP 7.3
This fix was initially only for branch 2.9, and branch master should have
received a new version of jshrink, but I forgot to do it before 2.10 and now
we have a regression in 2.10. This commit will be cherry-picked to 2.10 and
we also have it on master so that we don't have a new regression in 2.11 (in
case jshrink is not properly updated)
2019-10-14 12:35:09 +02:00
plegall
d8e2e52e88 (cp ac5d00e) fixes #1098 make checksum computation block size configurable, and smaller by default 2019-10-14 12:23:40 +02:00
plegall
7223594dbc (cp a58d87e) change default configuration settings for a stable branch.
Developers who need previous configuration settings can modify them in their local configuration
2019-10-08 12:31:16 +02:00
plegall
8fe4305d35 during upgrade, use the new default Piwigo theme (modus) instead of hardcoded "elegant"
... and make sure the default Piwigo theme is active before that.
2019-10-08 12:23:54 +02:00
plegall
087284eafc next version is 2.10.0 2019-10-07 16:07:57 +02:00
plegall
fa8996e10f issue #1073 prevents from making uploaded file executable
* for the name of the file in buffer directory, do not use the name given by the user, but the md5 of the name without extension
* function add_uploaded_file deletes uploaded file if not expected
2019-09-20 16:26:21 +02:00
plegall
5b65fca36c fixes #1068 escape the rank new MySQL 8 reserved word
This time, we do it right before sending the query to MySQL, in the pwg_query
function. This is not optimal, because we add extra processing, useless most
of the time. This solution has less impact on code, and automatically work for
all core and plugins SQL queries.
2019-08-30 12:11:47 +02:00
plegall
18460716e3 next release is 2.10.0RC1 2019-08-19 15:16:55 +02:00
Sam Wilson
7b6912ba98 Use default theme if loaded one is not found
When loading a user's theme, make sure it's installed. Also, when
determining the default theme, account for the situation in which
zero themes are installed (and use 'default' then).

Refs #1061
2019-08-14 12:18:45 +02:00
plegall
63bbba8e36 fixes #1060 always escape table/column names in advanced database functions
which are single_insert, single_update, mass_inserts and mass_updates. The new function
protect_column_name simply surrounds the name with backticks, if needed.
2019-08-13 16:44:54 +02:00
plegall
2842934633 fixes #899 API methods to manage user favorite photos
* rename methods to pwg.users.favorites.getList + pwg.users.favorites.add + pwg.users.favorites.remove (better for alpha ordered listing)
* simplify method ws_users_favorites_getList to only work with current user
* use the new option "ignore" on single_insert
2019-07-17 15:48:06 +02:00
plegall
551457f2b6 fixes #1051 ability to insert ignore on single_insert 2019-07-17 11:15:59 +02:00
Dave Anderson
1d113c002b API call to add/remove favorites (#810)
add API methods pwg.users.addFavorite and pwg.users.removeFavorite
2019-07-15 16:58:23 +02:00
Dave Anderson
d406a12d45 API call to fetch user favorites (#582)
* new api call to get user favorites
2019-07-15 16:04:52 +02:00
plegall
b101869417 update release to 2.10.0beta2 2019-07-04 11:22:09 +02:00
plegall
c1eecab364 fixes #996 escape word "groups" in SQL queries, new reserved word with MySQL 8 2019-06-28 18:07:53 +02:00
plegall
3999bff326 fixes #1042 set Modus as default theme 2019-06-28 11:21:18 +02:00
plegall
4195572563 fixes #904 avoid warnings on PHP 7.2+ with PHPMailer (without updating PHPMailer) 2019-06-21 15:02:02 +02:00
plegall
fc193f7474 issue #830 simplify PHP files header, remove copyright/license info 2019-06-04 17:13:51 +02:00
plegall
305e9c914a update version 2019-06-04 11:35:47 +02:00
Yann Le Boudec
9891c79f25 issue #1019 photo upload redesign
Based on Samuel's mockup.
2019-05-22 16:49:35 +02:00
plegall
dc40d1956e fixes #945 pwg_log automatically creates a new history.section in the enum, when needed 2019-04-02 16:04:01 +02:00
Peter Stimpel
16abd1af28 solves issue 945, if plugin developers add their own sections, Piwigo tries to put them into history table. Since the section column is an enum, php issued a warning. 2019-04-02 14:53:11 +02:00
plegall
1646f5e631 fixes #998 temporary fix for Piwigo Remote Sync compatibility 2019-04-02 11:33:27 +02:00
plegall
940d1d2e8c issue #552
* many more admin actions are logged into activity table
* use the activity.details as an associative array (serialized in database)
2019-04-01 16:19:09 +02:00
plegall
27a6504284 issue #552 new table activity and log add/edit/delete on albums 2019-03-25 16:50:45 +01:00
Teatek
61b7974a8d ability to set album order with web API
* add method pwg.categories.setRank in Piwigo web API
2019-02-13 15:00:22 +01:00
Teatek
f308af3e46 fixes #855 trigger on group deletion
* adding trigger (admin screen)
* adding trigger (API)
* update trigger list
2019-02-11 14:02:30 +01:00
Teatek
1907e678b8 Fixes #273 (Add ui option to display or not the date of an album) 2019-02-04 10:46:16 +01:00
Teatek
743d31c9e0 Fixes #863 Allow delete representative for empty albums 2019-02-01 16:38:47 +01:00
Teatek
b8d6f01b38 fixes #966 progression bar for sync metadata
* [Batch Manager] adding progression bar for metadata sync action
* [Batch Manager] display the number of synchronized photos in the success message
2019-01-27 17:16:13 +01:00
Teatek
beec234478 fixes #958 : protect fields before copying properties from default user to new user 2019-01-27 16:52:15 +01:00
Teatek
b05241f508 Fixes #272 missing md5sum
* dashboard: add warning if missing checksums
* add a "compute all missing md5sum" option in batch manager (inspired by delete orphans)
* progress bar when computing md5sums
2019-01-22 10:26:52 +01:00
Julien Samson
29f938acba display login page if there is no images at the tag (URL) 2019-01-16 15:23:51 +01:00
Akimitsu [Bm]
f2834925bb Fix syntax error 2018-07-12 15:01:32 +02:00
plegall
b1cb4e48c0 due to changes for compatibility with PHP 7.2, Piwigo now requires PHP 5.3 2018-07-12 11:20:53 +02:00
Rob Lensen
144a970a6b Fix for Cssmin with php7.2 and higher 2018-07-12 11:00:59 +02:00
Rob Lensen
68f83a5902 Fix for Msarty and PHP7.2 2018-07-12 10:59:32 +02:00
plegall
063711240a Squashed commit of the following:
commit 7190866ccf15033f27095d635546e46dacbb755e
Author: plegall <plg@piwigo.org>
Date:   Thu Jul 12 10:52:33 2018 +0200

    Revert "Replace not maintained cssmin with fork from github https://github.com/natxet/CssMin"

    This reverts commit c8b12a2ed0.

commit 1dac11ecb6783d0d5353c3d250388f018c30fc5c
Author: plegall <plg@piwigo.org>
Date:   Thu Jul 12 10:52:24 2018 +0200

    Revert "Update Smarty to 3.1.3"

    This reverts commit db684f6151.

commit 3ac752dc93912ba5701d22dadd9bb3b81e5bb383
Merge: d1c2e71 8d58256
Author: plegall <plg@piwigo.org>
Date:   Thu Jul 12 10:50:43 2018 +0200

    Merge branch 'php72' of https://github.com/Infern1/Piwigo into Infern1-php72

commit 8d58256c45
Author: Rob Lensen <rob@bsdfreaks.nl>
Date:   Wed Mar 21 23:40:36 2018 +0100

    new feedcreator version for PHP7

commit bb0fcc3a30
Author: Rob Lensen <rob@bsdfreaks.nl>
Date:   Wed Mar 21 23:26:27 2018 +0100

    php72 fixes, replaces each() function

commit 3db22c0d33
Author: Rob Lensen <rob@bsdfreaks.nl>
Date:   Wed Mar 21 23:02:46 2018 +0100

    More fixes for PHP7.2

commit 50d8aafc77
Author: Rob Lensen <rob@bsdfreaks.nl>
Date:   Mon Mar 19 23:55:21 2018 +0100

    Some more replacements of create_function

commit 8263335c42
Author: Rob Lensen <rob@bsdfreaks.nl>
Date:   Mon Mar 19 22:54:54 2018 +0100

    Fixed indents

commit 8d58b637c6
Merge: c8b12a2 8a57d77
Author: Rob Lensen <rob@bsdfreaks.nl>
Date:   Tue Feb 27 13:51:32 2018 +0100

    Merge remote-tracking branch 'upstream/master' into php72

commit c8b12a2ed0
Author: Rob Lensen <rob@bsdfreaks.nl>
Date:   Thu Jan 18 00:32:46 2018 +0100

    Replace not maintained cssmin with fork from github https://github.com/natxet/CssMin

commit db684f6151
Author: Rob Lensen <rob@bsdfreaks.nl>
Date:   Thu Jan 18 00:23:24 2018 +0100

    Update Smarty to 3.1.3

commit 6a3f8f3e76
Author: Rob Lensen <rob@bsdfreaks.nl>
Date:   Wed Jan 17 23:40:27 2018 +0100

    Initial work to support PHP 7.2
2018-07-12 10:52:55 +02:00
plegall
d1c2e71a56 fixes #891, use HTTPS to piwigo.org in page footer 2018-07-11 15:11:14 +02:00
plegall
86c34737ba fixes #877, avoid conflict with custom user table 2018-07-11 11:48:20 +02:00
plegall
23fa4c1a73 fixes #871, CVE-2018-7722 strip tags on methods pwg.categories.add, pwg.categories.setInfo, pwg.images.setInfo
Adding pwg_token would be a better solution but would break remote applications (like the iOS app)
2018-07-06 18:29:41 +02:00
Bartosz Korczak
7e41e21af4 Fix issue #844 2018-07-05 15:50:38 +02:00
plegall
8a57d777aa fixes #596, compatibility with PHP 7.1 2018-02-27 12:01:45 +01:00
plegall
63932b9390 fixes #735, add API method pwg.users.getAuthKey 2018-02-22 13:26:31 +01:00