try to check exist curl before install
parent
0d2f38af37
commit
457e2cee18
|
@ -278,8 +278,14 @@ language:<br>';
|
|||
$title = getconstStr('SelectLanguage');
|
||||
return message($html, $title, 201);
|
||||
}
|
||||
$html .= '<a href="?install0">'.getconstStr('ClickInstall').'</a>, '.getconstStr('LogintoBind');
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue