Commit Graph

332 Commits

Author SHA1 Message Date
plegall
179ccd274f fixes #2203 purge persistent cache in invalidate_user_cache 2024-08-07 22:15:13 +02:00
plegall
71cd92c04d fixes #2166 add feature to send anonymous stats to piwigo.org 2024-06-10 21:32:04 +02:00
plegall
0a6f235db8 fixes #2110 avoid insert errors in the lounge table
If you upload several times the same photo, Piwigo detects the photo already exists
and re-use its existing id. If the lounge is active, Piwigo tries to insert the
same image_id/category_id. Let's simply acknowledge it may happen and tell MySQL to
act accordingly (ignore).
2024-04-11 12:18:21 +02:00
plegall
917cab5a44 fixes GHSA-7379-w44f-mfw4 and fixes GHSA-8g2g-6f2c-6h7j protect tag name from XSS 2024-03-01 11:24:50 +01:00
plegall
e95036b92a fixes GHSA-p362-cfpj-q55f protect against CSRF on batch manager unit mode 2024-02-12 16:51:53 +01:00
plegall
14e8ba664b fixes #1735 new API method pwg.images.setCategory to associate/dissociate/move a list of images 2023-10-11 16:58:14 +02:00
plegall
09890487cd fixes #1830 faster way to calculate number of orphans
* store count result in config table, as a cache
* resets this cache on invalidate_user_cache
* instead of a costly SQL query with a LEFT JOIN, use 2 simple COUNT in the 2 tables, and compare
2023-10-06 15:03:22 +02:00
plegall
51a413b453 fixes #1907 use porg.news.getLatest on piwigo.org
... instead of directly requesting the forum
2023-04-27 18:01:54 +02:00
plegall
4b33001c15 fixes #1902 ability to set a specific group to notify user registrations 2023-04-22 17:21:29 +02:00
plegall
da3d07cb1b issue #1827 bug fixe, do not try to check when sample is empty 2022-12-16 15:54:36 +01:00
plegall
97b665d8f3 issue #1827 new check on filesystem compared to what is listed in the database
While not fixing issue #1827 it helps users to detect if they have been
affected by the problem.
2022-12-16 15:11:58 +01:00
Matthieu Leproux
e2245b1938 related to #1757 fix php8 warning when going on album edit after creating it 2022-10-19 12:35:23 +02:00
plegall
3377cb5d8c fixes #1738 in case piwigo.org news cannot be read, abort 2022-09-30 15:59:35 +02:00
Matthieu Leproux
988cad6a94 fix #1722 fixing number_format() error on fresh install 2022-09-27 11:59:49 +02:00
plegall
076acc2035 fixes #1709 incorrect pattern to delete custom sizes 2022-09-09 12:42:11 +02:00
plegall
8d1e97c8b7 fixes #1712 fallback to fetchRemote function, works best 2022-08-27 17:27:03 +02:00
plegall
630aba70f9 issue #28 display Piwigo.org news on dashboard 2022-07-15 09:57:52 +02:00
Matthieu Leproux
0b6b786129 fixes #1668 left menu opens correctly when on activity page 2022-06-08 15:06:50 +02:00
Matthieu Leproux
425467e15f related to #1609 Renamed 'cat_move' to 'albums' and linked variables so it works with new name 2022-05-04 15:17:28 +02:00
plegall
fb84527e3b issue #164 add new API method pwg.images.uploadCompleted
+ trigger ws_images_uploadCompleted when this API method is called
+ trigger empty_lounge (can be called at another moment with different effect)
2021-09-15 13:50:15 +02:00
Matthieu Leproux
286e8ad5b1 related to #1316 Calculates cache size and cache size derivatives 2021-07-07 18:14:00 +02:00
Matthieu Leproux
817e007f04 Fixes #1432 Removed the duplicate pwg_activity() call that doubled the number if tags added in activity tab 2021-06-17 15:22:25 +02:00
plegall
ac0d1a5b47 fixes #1419 add photos in a lounge as a temporary space
* at the end of the upload of after a maximum duration, move the photos from the lounge to their actual categories.
* do not invalidate user cache when photos are added in the lounge, thus avoiding to rebuild cache on every photo uploaded
* the lounge system activates itself only beyond 50k (by default) photo
2021-06-11 16:42:48 +02:00
plegall
ea69988eac fixes #1317 remove cache directory size calculation 2021-02-05 10:12:05 +01:00
plegall
cac24635a9 fixes #1300 fall back on exec(du) instead of pure PHP to calculate cache size
This algorithm does not work for Windows and when "exec" is disabled. But not having this cache size is not a major issue. What is a problem is when calculating the cache size breaks the execution, which must be avoided.
2021-01-27 19:46:53 +01:00
plegall
ab81e7707f fixes #1290 avoid calling external command to calculate directory size
+ add a 5 minutes cache to avoid calculating cache size too often
* tested with anold PHP 5.5 (could work with earlier versions, but I prefer to not take the risk)
2021-01-21 10:39:47 +01:00
Louis
f8f219b6ee #1237 menubar closed in dashboard/plugin
menubar doesn t open an extension like it used to, for example dashboard opend photos and plugins opened tools below
2020-10-22 15:40:29 +02:00
Zacharie
d527c47023 Add a new tab to manage album page : search album (based on Hannah mock up), minor changes in button behaviour on add photo page 2020-09-03 15:18:44 +02:00
Zacharie
d4436b825d Issue #1208 : Implementation of the new album edit page 2020-08-13 11:56:57 +02:00
Zacharie
e6b0574cde Issue #1206 : Minor design fix 2020-08-13 11:49:31 +02:00
Zacharie
c4b38d1a41 Issue #1167 : Fixes and code cleaning 2020-05-19 17:28:22 +02:00
Zacharie
df46475e1b Issue #1167 : Implement group merge function
* Implement new API function pwg.groups.merge
 * Generalize the delete group function in admin/include/functions.php
 * Implement merge action in Group Manager
 * Add loading state on grouped delete in group manager
 * Member manager's design fixes
2020-05-19 17:28:22 +02:00
plegall
b31d68fbd9 fixes #1182 with inheritance_by_default, copy only permissions from parents and do not add admins 2020-05-07 12:30:47 +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
Sam Wilson
8e9cb6de23 Quote 'rank' field name in SQL
Add backticks to reserved word 'rank' in SQL queries.

Bug: GH #919
2019-06-27 17:50:59 +02:00
plegall
fc193f7474 issue #830 simplify PHP files header, remove copyright/license info 2019-06-04 17:13:51 +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
2cf5c63ca1 fixes #854 adding trigger on tag deletion 2019-02-01 14:07:56 +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
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
f520f82736 fixes #726, add trigger in create_virtual_category 2017-07-03 15:56:21 +02:00
plegall
346f5c3849 fixes #707, hide decimal for "158.0 pages seen" 2017-06-14 19:42:21 +02:00
plegall
6b88073449 function get_fs is no longer used (since 2.4) 2017-04-07 15:28:17 +02:00
plegall
ea7e6d76e6 fixes #291, add function categories_integrity
to check and repair integrity on categories. For example,
image_category.category_id should always be linked to a categorie.id,
if not we delete the orphan line.
2017-03-02 12:27:31 +01:00
plegall
a93dba2f52 feature #606, make sure we delete oldest images first 2017-01-24 15:12:13 +01:00
plegall
42d56b658d fixes #584, better check and error for image_id on edition 2016-12-21 14:01:54 +01:00
plegall
102e0f0608 Merge branch 'jeremydurand-bug/403-configuration-new-album-position' 2016-12-05 15:36:50 +01:00
plegall
8564f1e773 fixes #537, do not consider new tags as orphan
Wait a least 1 day before!
2016-11-25 18:31:58 +01:00