mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-01-02 21:12:02 +08: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
|
||||
|
||||
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';
|
||||
|
|
Loading…
Reference in a new issue