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

pull/471/head
qkqpttgf 2021-11-04 10:41:25 +08:00 committed by GitHub
parent 2dfd11c8d1
commit 83ee24fc90
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 7 deletions

View File

@ -279,13 +279,8 @@ language:<br>';
return message($html, $title, 201);
}
if (function_exists('curl_init')) {
$title = 'Install';
$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);
}