7 Commits

Author SHA1 Message Date
RushLana
5563ea98fd Add a more granular container detection (#2501)
Add a more granular container detection

Replace is_in_container by  get_container_info
Currently detect Official container (once they update a version with a tagfile) and LinuxServer container
All other container are marked as Unknown

Report two field :
- container_type ( none | Official | LinuxServer | Unknown
- container_version ( build Version number like 16.2.0a, only reported if Official container is detected )
2026-01-14 13:00:14 +01: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
plegall
71cd92c04d fixes #2166 add feature to send anonymous stats to piwigo.org 2024-06-10 21:32:04 +02:00
Matthieu Leproux
450b99a2a4 fixed #1758 added link to update page after update check 2022-10-19 14:31:47 +02:00
plegall
870f1a8129 issue #1707 display Piwigo age on maintenance page instead of dashboard 2022-08-19 11:18:57 +02:00
Matthieu Leproux
286e8ad5b1 related to #1316 Calculates cache size and cache size derivatives 2021-07-07 18:14:00 +02:00
Louis
fb683b7517 #1264 tab layout
adding tab layout, css and classes for the page
2021-06-22 14:28:55 +02:00