mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-08 17:07:03 +03:00
Allow to call setup.php outside to test PHP version and extensions #1209
This commit is contained in:
parent
120873c7d6
commit
44c4514622
1 changed files with 48 additions and 48 deletions
|
|
@ -1,6 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
if (defined('APP_VERSION')) {
|
|
||||||
if (PHP_VERSION_ID < 70400) {
|
if (PHP_VERSION_ID < 70400) {
|
||||||
echo '<p style="color: red">';
|
echo '<p style="color: red">';
|
||||||
echo '[301] Your PHP version ('.PHP_VERSION.') is lower than the minimal required 7.4.0!';
|
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);
|
exit(302);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (defined('APP_VERSION')) {
|
||||||
$sCheckName = 'delete_if_you_see_it_after_install';
|
$sCheckName = 'delete_if_you_see_it_after_install';
|
||||||
$sCheckFolder = APP_DATA_FOLDER_PATH.$sCheckName;
|
$sCheckFolder = APP_DATA_FOLDER_PATH.$sCheckName;
|
||||||
$sCheckFilePath = APP_DATA_FOLDER_PATH.$sCheckName.'/'.$sCheckName.'.file';
|
$sCheckFilePath = APP_DATA_FOLDER_PATH.$sCheckName.'/'.$sCheckName.'.file';
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue