check if exist curl in vps at php start, not install
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user