check if exist curl in vps at php start, not install
parent
2dfd11c8d1
commit
83ee24fc90
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue