Error: Your PHP version ' . PHP_VERSION . ' does not fulfill the minimum requirements for this Admidio version. You need at least PHP ' . MIN_PHP_VERSION . ' or higher.'); } /** * includes WITHOUT database connections */ // Add polyfills for backwards compatibility with older PHP versions require_once(ADMIDIO_PATH . '/adm_program/system/polyfill.php'); // Add Class autoloader require_once(ADMIDIO_PATH . '/adm_program/system/autoload.php'); // Enable Logging require_once(ADMIDIO_PATH . '/adm_program/system/logging.php'); // Add shutdown function require_once(ADMIDIO_PATH . '/adm_program/system/shutdown.php'); // Add some common functions require_once(ADMIDIO_PATH . FOLDER_LIBS_SERVER . '/htmLawed/htmLawed.php'); require_once(ADMIDIO_PATH . '/adm_program/system/function.php'); require_once(ADMIDIO_PATH . '/adm_program/system/string.php'); // Remove HTML & PHP-Code and escape all quotes from all request parameters // If debug is on and change is made, log it require_once(ADMIDIO_PATH . '/adm_program/system/global_request_params.php'); // Force permanent HTTPS redirect if ($gForceHTTPS && !HTTPS) { $url = str_replace('http://', 'https://', CURRENT_URL); $gLogger->notice('REDIRECT: Redirecting permanent to HTTPS!', array('url' => $url, 'statusCode' => 301)); header('Location: ' . $url, true, 301); exit(); }