mirror of
https://github.com/Encryptshell/Pritunl-API-crack.git
synced 2025-11-29 08:33:10 +00:00
Added PHP version check
This commit is contained in:
@@ -15,7 +15,10 @@ $clientVersion = isset($body->version) ? $body->version : null;
|
||||
|
||||
// Fake API
|
||||
$result = null;
|
||||
if(isset($_GET['path'])) {
|
||||
if (version_compare(PHP_VERSION, '8.0.0', '<')) {
|
||||
$result = array('error_msg' => 'This API only supports PHP 8 or higher.');
|
||||
$code = 500;
|
||||
} else if(isset($_GET['path'])) {
|
||||
$path = trim($_GET['path'], ' /');
|
||||
$pathParts = explode('/', $_GET['path']);
|
||||
if(count($pathParts) > 0 && $pathParts[0] == 'healthz') {
|
||||
|
||||
Reference in New Issue
Block a user