check if exist curl in vps at php start, not install

This commit is contained in:
qkqpttgf
2021-11-04 10:41:25 +08:00
committed by GitHub
parent 2dfd11c8d1
commit 83ee24fc90
+2 -7
View File
@@ -279,13 +279,8 @@ language:<br>';
return message($html, $title, 201); return message($html, $title, 201);
} }
if (function_exists('curl_init')) { $title = 'Install';
$title = 'Install'; $html = '<a href="?install0">' . getconstStr('ClickInstall') . '</a>, ' . getconstStr('LogintoBind');
$html = '<a href="?install0">' . getconstStr('ClickInstall') . '</a>, ' . getconstStr('LogintoBind');
} else {
$title = 'Error';
$html = '<font color="red">Need curl</font>, please install php-curl.';
}
return message($html, $title, 201); return message($html, $title, 201);
} }