Update Kirby and add password guard

This commit is contained in:
isUnknown 2026-02-09 17:05:41 +01:00
parent aaf1aa7890
commit 55d4e45891
987 changed files with 160116 additions and 66454 deletions

View file

@ -3,33 +3,44 @@
/**
* Validate the PHP version to already
* stop at older or too recent versions
*
* This check can be disabled by setting:
* define('KIRBY_PHP_VERSION_CHECK', false);
* in your `index.php`.
*
* ATTENTION: Set this constant at your own risk only.
* PHP releases contain backward-incompatible changes that can
* cause and have caused unexpected behavior and security impact.
* We strongly advise against disabling the PHP version check
* in production.
*/
if (
version_compare(PHP_VERSION, '7.2.0', '>=') === false ||
version_compare(PHP_VERSION, '7.5.0', '<') === false
(
defined('KIRBY_PHP_VERSION_CHECK') !== true ||
KIRBY_PHP_VERSION_CHECK !== false
) && (
version_compare(PHP_VERSION, '8.2.0', '>=') === false ||
version_compare(PHP_VERSION, '8.6.0', '<') === false
)
) {
die(include __DIR__ . '/views/php.php');
die(include __DIR__ . '/views/php.php');
}
if (is_file($autoloader = dirname(__DIR__) . '/vendor/autoload.php')) {
/**
* Always prefer a site-wide Composer autoloader
* if it exists, it means that the user has probably
* installed additional packages
*/
include $autoloader;
/**
* Always prefer a site-wide Composer autoloader
* if it exists, it means that the user has probably
* installed additional packages
*/
include $autoloader;
} elseif (is_file($autoloader = __DIR__ . '/vendor/autoload.php')) {
/**
* Fall back to the local autoloader if that exists
*/
include $autoloader;
} else {
/**
* If neither one exists, don't bother searching;
* it's a custom directory setup and the users need to
* load the autoloader themselves
*/
/**
* Fall back to the local autoloader if that exists
*/
include $autoloader;
}
/**
* If neither one exists, don't bother searching;
* it's a custom directory setup and the users need to
* load the autoloader themselves
*/