Commit Graph

3303 Commits

Author SHA1 Message Date
Renarde-dev dc86f2be5c Detect if piwigo is running in a container
Append info on PHP_OS in the template of `admin/maintenance_env.php` and in `include/functions.inc.php` -> `send_piwigo_infos()`

Detection works by checking if PHP is running on Linux then check if PID2 is kthreadd
Kthreadd is useless in a container so PID2 should not exist of be another process
If unable to read /proc/2/sched for some reason, assume a SELinux restriction and that PHP is not running in a container

`is_in_container()` doesn't differentiate between VMs or bare metal, it only check if PHP is running in a containerized environement via tools like docker/podman/....
2025-09-05 11:50:27 +02:00
plegall 7deda19787 rephrase option to update photo files 2025-08-26 17:54:53 +02:00
Linty 613dd410e5 issue #2364 fix guest author name and language key
Added support for bulk comment validation and deletion with updated confirmation messages and translations. Improved modal dialog behavior, including keyboard accessibility and button visibility. Updated CSS for consistent button styling across themes. Fixed author name display for guest comments.
2025-08-26 16:38:11 +02:00
Linty 57042cc475 fixes #2364 redesign admin comments management
Replaces legacy PHP comment management with a new interface for listing, filtering, selecting, validating, and deleting user comments. Updates templates and CSS for a modern, interactive experience, adds advanced filters, selection mode, and modal comment viewing. Removes obsolete server-side logic from comments.php and introduces new api methods for comment actions.
2025-08-26 14:35:31 +02:00
RushLana c616f17145 Fix webp animation derivatives
Using imagick to generate derivates on an animated webp break animation
Applying "-layers coalesce" ensure the animation remain smooth
Refs :
- https://github.com/ImageMagick/ImageMagick/issues/6375
- https://github.com/ImageMagick/ImageMagick/issues/5542
- https://github.com/ImageMagick/ImageMagick/issues/4246
2025-08-12 17:06:26 +02:00
RushLana 3293b329e9 Implement imagick command fix
`pwg_image::get_ext_imagick_command()` get the imagick command (convert or magick)
replace all convert with pwg_image::get_ext_imagick_command()
2025-08-12 17:06:26 +02:00
RushLana 66df209632 Change graphic library priority, ext_imagemick is now preffered 2025-08-12 17:06:26 +02:00
Linty 61961bd172 issue #2386 reset pagination on date filter change 2025-08-12 16:49:54 +02:00
plegall b8fcc216b8 issue #2386 simplify/secure additional filters 2025-08-12 16:20:25 +02:00
plegall 5d9dcb9e5f issue #2386 optimize load of min/max date 2025-08-12 16:03:49 +02:00
Linty 4e04ee0f22 issue #2386 fix activity link in admin group list 2025-08-11 15:23:12 +02:00
Martin R 80ab463808 Issue #2364 redesign user comment manager (PR #2400)
*Ability to reject or validate one by one

*Filter by : status : validated, user, user status, begin date, end date

*refreshed design to match current piwigo design

*[TODO] search input does not work, 

*[TODO] user name duplicate in user filter (use user id instead of user name to filter)

*[TODO] filter by image is missing

*[TODO] confirmation when a comment is validated or deleted is missing
2025-08-08 15:47:56 +02:00
Perrom 4dc2fc9f8d fixes #2386 update filters in users activity logs (#2399)
* Add an action filter and a date filter. 

* Additional filters on a specific object (photo/album/group) are available from their dedicated administration page.

* Performances of the page was improved : instead of loading 100k lines in activity table, we loop on 500 activity lines until 100 aggregated lines are found for the current page.
2025-08-08 15:17:50 +02:00
Perrom 2465654752 fixes #2362 add gallery filters options in admin (#2395)
Add a config page in admin for the search filters in the gallery. Privacy and default filters can be selected. Needs a database update.
2025-08-08 15:07:02 +02:00
plegall 671657d78b fixes #2396 avoid duplicate image_id in link to manage uploaded photos 2025-07-31 23:56:52 +02:00
Perrom d0ac05d951 fixes #2353 update images with upload form (#2385)
Add a mode to update photos with the upload form. Modify the upload formats form, so that it will update the photo with the same file extension.
2025-07-31 10:41:01 +02:00
plegall bc4acec569 issue #2390 warn about duplicate paths 2025-07-24 21:29:38 +02:00
Martin Raby 4f6da8ea6a Relates #2351 : To see the newsletter promote, the account must have 2 weeks ancient, 3 albums created and 30 photos uploaded 2025-07-22 13:00:27 +02:00
HWFord 4c87268179 relates #2377 fix php warning in maintenence
if the 3XL and 4xl size don't exist it creates a php warning. this avoids the warning because theses sizes haven't yet been generated so don't exist
2025-07-22 11:05:37 +02:00
HWFord a7c735a14b relates #2306 move button for update page 2025-07-16 15:07:00 +02:00
plegall 798f30ea51 issue #2390 avoid generating duplicate paths during upload 2025-07-15 14:14:49 +02:00
Linty d613149dfd fixes #2389 filter user activity by object and fix csv export 2025-07-07 10:25:00 +02:00
Linty e28360fc5b fixes #2388 hide update actions for dev mode extensions 2025-07-07 09:53:48 +02:00
Linty 5e2251dff8 fixes #2383 add custom ellipsis to show end of long album names 2025-07-02 15:42:29 +02:00
Perrom 49f5b6162b fixes #2381 renamed tag former name use removed 2025-06-30 12:03:22 +02:00
Martin R 6958098044 Fixes #2351 - New promote banner for newsletter
* New promote banner for newsletter

- new function that returns the url for old newsletter in the user
  language
- new image used in the banner
- new style for the newsletter banner and changes on the app promote
  banner
2025-06-11 17:01:37 +02:00
Martin R 13b2463a81 Fixes #2360 - Change in the jGrowl popup notification visual
* Change in the jGrow popup notification visual

- New CSS to change the style
- New JS to add the icon
2025-06-11 16:59:09 +02:00
plegall 40e89ed23b fixes #2376 globalize conf in empty_lounge 2025-06-10 09:53:14 +02:00
Perrom b6b0f51c66 relates #2350 visual adjustments 2025-04-15 13:04:03 +02:00
Perrom 32d97ba55b relates #2350 small fixes 2025-04-15 12:03:08 +02:00
Perrom 38e771aa8a fixes #2350 highlight edited tag with a checkmark 2025-04-14 11:20:31 +02:00
HWFord a3afb73ba4 relates #2306 replace }
accidentally removed
2025-03-21 16:39:03 +01:00
HWFord 41d5c8a258 fixes #2306 move save buttons to bottom of page (PR #2346)
For these pages :
 picture modify, album notification, category permission, comments, menubar, all configurations, site update, element set ranks, notification by mail

Change how success and errors messages are displayed and handled
2025-03-21 16:28:37 +01:00
HWFord f88472fa9c fixes #2345 create piwigo standard pages
create new theme standard pages with tpl, css, js and images
update backend to handle pages
add config use_standard_pages
on update set config to false, on install set config to true
add standard pages to no be ingored in git
2025-03-18 16:46:41 +01:00
plegall 073403dcab issue #2336 might be unset (on upgrade.php for example) 2025-03-12 10:53:36 +01:00
HWFord 02653495ee fixes #2342 change edit tag popin color 2025-03-07 16:08:44 +01:00
Linty 8eae7bafa9 fixes #2340 ensure default group is assigned when adding a new user 2025-03-05 18:00:59 +01:00
Linty 4efcd98036 fixes #2339 prevent backend validation errors...
...by adding frontend checks for albums and tags
2025-03-05 17:22:40 +01:00
Linty c4e23c642f fixes #2337 set correct per_page to avoid excessive requests
...and remove pagination-per-page trigger
2025-03-04 11:08:26 +01:00
plegall 789c062837 fixes #2336 more details in Logger (execution_uuid) 2025-03-01 14:20:11 +01:00
Linty 6489dceadf fixes #2329 sequentialize pwg.images.setInfo calls 2025-02-28 10:57:40 +01:00
Linty 8747128289 fixes #2326 move the input to avoid side effects 2025-02-24 10:19:20 +01:00
HWFord b12575566a fixes #2325 set hover font color
also change font hover color on theme page buttons
2025-02-20 12:19:07 +01:00
plegall eca144fe47 fixes #2324 escape translated string (bug in Catalan) 2025-02-20 09:53:57 +01:00
plegall b364ecc00c fixes #2319 SQL does not output lines in the orders of provided ids 2025-02-03 16:45:50 +01:00
Linty aaec652a66 fixes #2317 adjust users initials in compact and tile view 2025-01-29 10:29:33 +01:00
HWFord b0905ac88c relates #2234 follow up dark mode standardisation
Finish updating dark mode colours
Also make some general CSS changes
2025-01-28 16:28:57 +01:00
Linty 1eb083bc63 fixes #2316 improve album selector validation and keyboard interaction
also add an error in the global batch manager when we perform an album association but without choosing an album
2025-01-27 16:08:32 +01:00
Linty 8f75afd625 fixes #2314 hide the error message when writing or closing the modal 2025-01-22 14:56:56 +01:00
HWFord 38bce29b33 fixes #2313 remove privacy level from gallery
and anything related to having this configuration here
2025-01-21 15:27:28 +01:00