mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
#10098 changed message
This commit is contained in:
parent
c889f092ce
commit
3eee3d8866
@ -16,9 +16,25 @@ if ($issues) {
|
|||||||
if (PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg') {
|
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);
|
fwrite(STDERR, 'Composer detected issues in your platform:' . PHP_EOL.PHP_EOL . implode(PHP_EOL, $issues) . PHP_EOL.PHP_EOL);
|
||||||
} elseif (!headers_sent()) {
|
} 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 '<link rel="stylesheet" type="text/css" href="include/styles/pandora.css">';
|
||||||
|
echo '<div style="display:flex;align-items:center; justify-content:center;height:100%;background: linear-gradient(74deg, #02020255 36%, transparent 36%), url('.$url.'/../images/backgrounds/background_pandora_console_keys.jpg);background-repeat: repeat;">';
|
||||||
|
echo '<center><div align="middle" class="license_databox w600px pdd_10px" style="background-color: white;">';
|
||||||
|
echo '<img style="width: 600px" src="images/custom_logo/logo-default-pandorafms.png"><h3> Composer detected issues in your platform:</h3>';
|
||||||
|
echo '<div class="w90p height_100px" style="text-align:left;">';
|
||||||
|
echo sprintf(
|
||||||
|
'PandoraFMS requires PHP 8.0 to work properly and the version %s has been detected. Please update the PHP version of the system. More info %s. The latest version with PHP 7.4 support is PandoraFMS 767 hope LTS.',
|
||||||
|
PHP_VERSION,
|
||||||
|
'<a target="_blank" href="https://pandorafms.com/manual/en/documentation/07_technical_annexes/18_php_8">here</a>'
|
||||||
|
);
|
||||||
|
echo '</div></div></center></div>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
trigger_error(
|
trigger_error(
|
||||||
'Composer detected issues in your platform: ' . implode(' ', $issues),
|
'Composer detected issues in your platform: ' . implode(' ', $issues),
|
||||||
E_USER_ERROR
|
E_USER_ERROR
|
||||||
|
Loading…
x
Reference in New Issue
Block a user