From 2dfd11c8d11b3b6f9f42265738d276b66a1c2ab3 Mon Sep 17 00:00:00 2001 From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com> Date: Thu, 4 Nov 2021 10:39:57 +0800 Subject: [PATCH] check if exist curl in vps at begin #462 check curl mod --- index.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/index.php b/index.php index 56fecf2..a06dc76 100644 --- a/index.php +++ b/index.php @@ -49,6 +49,9 @@ if (isset($_SERVER['USER'])&&$_SERVER['USER']==='qcloud') { else echo $re['body']; } else { include 'platform/Normal.php'; + if (!function_exists('curl_init')) { + return message('Need curl, please install php-curl.', 'Error', 500); + } $path = getpath(); //echo 'path:'. $path; $_GET = getGET();