diff --git a/class2.php b/class2.php index aa951f605..69b815a61 100755 --- a/class2.php +++ b/class2.php @@ -56,6 +56,14 @@ if(isset($_E107['cli'], $_SERVER["HTTP_USER_AGENT"]) && !isset($_E107['debug'])) exit(); } +if (PHP_MAJOR_VERSION < 8) +{ + echo "Configuration Error. Check error log for details."; + error_log('PHP 8 or higher is required. Current version: ' . PHP_VERSION); + exit(); +} + + if(function_exists('utf8_encode') === false) { echo "e107 requires the PHP XML package. Please install it to use e107. ";