mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-08-21 20:35:38 +02:00
Add source check.
This commit is contained in:
@@ -8,5 +8,10 @@ if (!function_exists('version_compare') || version_compare(PHP_VERSION, MIN_PHP_
|
|||||||
exit('[ERR] h5ai requires PHP ' . MIN_PHP_VERSION . ' or later, but found PHP ' . PHP_VERSION);
|
exit('[ERR] h5ai requires PHP ' . MIN_PHP_VERSION . ' or later, but found PHP ' . PHP_VERSION);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (substr(H5AI_VERSION, 0, 2) === '{{') {
|
||||||
|
header('Content-type: text/plain;charset=utf-8');
|
||||||
|
exit('[ERR] h5ai sources must be preprocessed to work correctly');
|
||||||
|
}
|
||||||
|
|
||||||
require_once __DIR__ . '/../private/php/class-bootstrap.php';
|
require_once __DIR__ . '/../private/php/class-bootstrap.php';
|
||||||
Bootstrap::run();
|
Bootstrap::run();
|
||||||
|
Reference in New Issue
Block a user