Files

27 lines
649 B
PHP
Raw Permalink Normal View History

2022-11-30 12:33:23 +00:00
<?php
/*
* This file is part of Chevereto.
*
* (c) Rodolfo Berrios <rodolfo@chevereto.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
2024-10-24 14:11:04 +00:00
define('CHEVERETO_PHP_VERSION_REQUIRED', '8.1.28');
if (version_compare(PHP_VERSION, CHEVERETO_PHP_VERSION_REQUIRED, '<')) {
2022-11-30 12:33:23 +00:00
if (PHP_SAPI !== 'cli') {
http_response_code(503);
}
2024-10-24 14:11:04 +00:00
echo 'This server is running PHP '
. PHP_VERSION
. ' and Chevereto needs at least PHP '
. CHEVERETO_PHP_VERSION_REQUIRED
. PHP_EOL;
exit(255);
2022-11-30 12:33:23 +00:00
}
require_once __DIR__ . '/loader.php';