Files
Piwigo/include
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
..
2025-02-18 10:24:33 +01:00
2024-03-27 15:00:21 +01:00
2024-10-21 15:31:53 +02:00
2023-08-02 11:50:19 +02:00