Allow to call setup.php outside to test PHP version and extensions #1209

This commit is contained in:
the-djmaze 2023-08-28 14:43:53 +02:00
parent 120873c7d6
commit 44c4514622

View file

@ -1,6 +1,5 @@
<?php
if (defined('APP_VERSION')) {
if (PHP_VERSION_ID < 70400) {
echo '<p style="color: red">';
echo '[301] Your PHP version ('.PHP_VERSION.') is lower than the minimal required 7.4.0!';
@ -54,6 +53,7 @@ if (defined('APP_VERSION')) {
exit(302);
}
if (defined('APP_VERSION')) {
$sCheckName = 'delete_if_you_see_it_after_install';
$sCheckFolder = APP_DATA_FOLDER_PATH.$sCheckName;
$sCheckFilePath = APP_DATA_FOLDER_PATH.$sCheckName.'/'.$sCheckName.'.file';