Commit Graph

3332 Commits

Author SHA1 Message Date
HWFord
27caef885e fixes #2486 add stdPgs config tab in admin
add skins and screenshots for skins
add admin tpl and css
update stdPgs tpl to have dynamic header section
2025-12-19 16:05:24 +01:00
HWFord
0c92a8ba33 fixes #2481 change hover scale 2025-12-08 14:24:26 +01:00
plegall
66f0ef574d fixes #2462 magick Vs convert: return only command name, not full path 2025-12-01 15:08:41 +01:00
HWFord
fbaf2fdafb fixes #2467 change integer cast 2025-12-01 10:21:48 +01:00
HWFord
e13a25ffce fixes #2464 don't activate smartpocket by default 2025-11-28 15:57:35 +01:00
plegall
b1288115f5 fixes #2454 remove useless variables 2025-11-21 18:04:21 +01:00
Linty
31d8f4516c fixes #2450 add user agent in activities performed with api key
Updated user activity display to show when a user is connected via API key, including an icon and updated tooltip. Modified backend to set a 'connected_with' flag in activity details when API key authentication is used.
2025-11-18 15:48:42 +01:00
HWFord
c04374928a issue #2439 update popin
Add translations
remove last major update conf when in piwigo Upgrade
don't send popin template if not needed
2025-11-17 10:00:53 +01:00
Linty
c6e4a3f0a5 fixes #2441 add password fields for generic users in user creation
Introduces password and password confirmation fields when creating a user with 'generic' status. The password fields are shown or hidden based on the selected user status, and validation is added to ensure passwords are entered and match. Also adds a button to generate random passwords for new generic users.
2025-11-14 17:45:06 +01:00
Linty
0f494baa0c fixes #2440 enhance login security and user activity display
Improves login security by:
- implementing constant-time authentication to reduce timing attacks
- refactoring user lookup into find_user_by_username_or_email() for username or email login
- introducing a fake user to keep password verification time consistent
- adding a finalize_login hook so plugins can control the authentication flow (2FA, rate limiting, etc.)

Also updates user activity JS to:
- better display action details
- properly handle user lists (login/logout with multiple users)
2025-11-13 14:05:35 +01:00
HWFord
17829fdc52 fixes #2439 update whats new popup 2025-11-12 11:37:26 +01:00
plegall
bc9526f323 fixes #2433 protect picture_modify.php from HTML just like pwg.images.setInfo
... and a extra check on input parameters
2025-11-10 16:04:51 +01:00
Ben Becker
1647147a9c Remove comment 2025-11-10 12:01:00 +01:00
Ben Becker
24c51f7225 Issue 2331 fix large file sync timeouts
Put `getimagesize` behind a mimetype check, so it doesn't waste processing
time on large files like videos that are incompatible.
2025-11-10 12:01:00 +01:00
plegall
a04c93cf76 fixes #2092 redesigned handling of return to gallery after photo edit
* instead of using the provided cat_id in the URL parameters, registers the "context" of the last 10 photos viewed. Be it an album, a search, a tag...
* maybe not the cleanest way to do it (because we do not rebuild the url string) but simple and straightforward
2025-11-03 21:49:23 +01:00
Linty
8fb8f9f8f1 fixes #2430 use configurable user_fields in sql query
Replaced hardcoded 'username' and 'id' fields in the user query with configurable fields from $conf['user_fields'] to improve flexibility and compatibility with custom user schemas.
2025-11-02 13:48:40 +01:00
plegall
b416bdb7c9 fixes #2417 ability to hide the new filter "expert mode"
... and removes 2 other duplicates of the filters_views configuration
2025-10-28 18:39:18 +01:00
plegall
f0f4b30ce2 search filters: avoid to write 3 times the same default configuration 2025-10-28 16:35:05 +01:00
HWFord
ac15835422 issue #2414 remove config and update css 2025-10-03 17:43:35 +02:00
HWFord
b682fd0cd3 fixes #2414 change related tags display
Add conf to display or not the related tag options by default
Add templates and css for new display
2025-10-03 15:43:29 +02:00
Linty
58a9447e01 fixes #2413 tag edit/duplicate now use raw_name as editable value 2025-09-26 13:39:28 +02:00
Linty
18bb865a23 fixes #2411 disable 3xl and 4xl by default
- Add 3XL and 4XL sizes to defaults but keep them disabled by default
- Update admin restore default derivatives resets sizes and clears cache
- Update migration 177 => updates existing installs: set 3XL/4XL as disabled
2025-09-19 18:49:05 +02:00
plegall
ad88ed9d5f fixes #2361 explicit action to empty lounge 2025-09-19 16:49:14 +02:00
Linty
1be0527523 issue #2405 update smarty
and made Piwigo compatible with smarty 5.x
2025-09-17 12:05:48 +02:00
Linty
77c1fdd138 fixes #2225 redesign quick search help popin 2025-09-11 16:54:52 +02:00
plegall
f270e82a06 fixes #2408 add CR as line end (Classic Mac Os) to split IPTC keywords 2025-09-10 19:20:51 +02:00
Renarde-dev
21e77002bc 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 or podman
2025-09-05 13:32:34 +02:00
HWFord
2bd5751e8b issue #2386 edit css for filter button 2025-09-05 12:18:33 +02:00
HWFord
aed52cc79a issue #2353 update color for previous commit 2025-09-03 11:51:17 +02:00
HWFord
15d62dc586 issue #2353 update css for photo uplaod options 2025-09-02 15:13:15 +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