mirror of
https://github.com/chevereto/chevereto.git
synced 2026-05-07 12:55:58 +02:00
Automatic push 4.0.5
This commit is contained in:
20
app/legacy/load/php-boot.php
Normal file
20
app/legacy/load/php-boot.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?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.
|
||||
*/
|
||||
|
||||
if (version_compare(PHP_VERSION, '8.0.0', '<')) {
|
||||
if (PHP_SAPI !== 'cli') {
|
||||
http_response_code(503);
|
||||
}
|
||||
echo 'This server is currently running PHP ' . PHP_VERSION . ' and Chevereto needs at least PHP 8.0.0 to run.' . PHP_EOL;
|
||||
die(255);
|
||||
}
|
||||
|
||||
require_once __DIR__ . '/loader.php';
|
||||
Reference in New Issue
Block a user