From 83ee24fc90a2e4edd1e880229e069f6ee823ba83 Mon Sep 17 00:00:00 2001 From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com> Date: Thu, 4 Nov 2021 10:41:25 +0800 Subject: [PATCH] check if exist curl in vps at php start, not install --- platform/Normal.php | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/platform/Normal.php b/platform/Normal.php index 880fdf9..5002b19 100644 --- a/platform/Normal.php +++ b/platform/Normal.php @@ -279,13 +279,8 @@ language:
'; return message($html, $title, 201); } - if (function_exists('curl_init')) { - $title = 'Install'; - $html = '' . getconstStr('ClickInstall') . ', ' . getconstStr('LogintoBind'); - } else { - $title = 'Error'; - $html = 'Need curl, please install php-curl.'; - } + $title = 'Install'; + $html = '' . getconstStr('ClickInstall') . ', ' . getconstStr('LogintoBind'); return message($html, $title, 201); }