diff --git a/pandora_console/vendor/composer/platform_check.php b/pandora_console/vendor/composer/platform_check.php index d32d90c6a9..51c545e82f 100644 --- a/pandora_console/vendor/composer/platform_check.php +++ b/pandora_console/vendor/composer/platform_check.php @@ -16,7 +16,35 @@ if ($issues) { if (PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg') { fwrite(STDERR, 'Composer detected issues in your platform:' . PHP_EOL.PHP_EOL . implode(PHP_EOL, $issues) . PHP_EOL.PHP_EOL); } elseif (!headers_sent()) { - echo 'Composer detected issues in your platform:' . PHP_EOL.PHP_EOL . str_replace('You are running '.PHP_VERSION.'.', '', implode(PHP_EOL, $issues)) . PHP_EOL.PHP_EOL; + require_once __DIR__.'/../../include/functions_ui.php'; + + $url = str_replace('/var/www/html/', '', __DIR__); + $url = str_replace('/vendor/composer', '', $url); + + echo ''; + ?> + + + + '; + echo '
'; + echo '

Composer detected issues in your platform:

'; + echo '
'; + echo sprintf( + 'PandoraFMS requires PHP 8.2 to work properly and the version %s has been detected. Please update the PHP version of the system.', + PHP_VERSION, + ); + echo '
'; } } trigger_error(