detect wrong php version, helps to fix #50

This commit is contained in:
Synox 2018-03-17 22:44:47 +01:00
parent df8559fe3b
commit fd7d5121e4

View File

@ -1,4 +1,8 @@
<?php <?php
if (version_compare(phpversion(), '7.2', '<')) {
die("ERROR! The php version isn't high enough, you need at least 7.2 to run this application! But you have: " . phpversion());
}
# set the new path of config.php (must be in a safe location outside the `public_html`) # set the new path of config.php (must be in a safe location outside the `public_html`)
require_once '../../config.php'; require_once '../../config.php';