1
0
Fork 0
mirror of https://github.com/Yetangitu/ampache synced 2025-10-04 18:29:40 +02:00

Check cURL before install.

if cURL have not installed, get_like() should be return false.
This commit is contained in:
momo-i 2010-07-30 00:11:07 +00:00
parent 720dd019a0
commit bb8900e6c4
3 changed files with 32 additions and 0 deletions

View file

@ -156,6 +156,21 @@ function check_php_pcre() {
} // check_php_pcre
/**
* check_php_curl
* This makes sure they have cURL (curl_???) support
* compiled into PHP this is optional
*/
function check_php_curl() {
if (!extension_loaded('curl')) {
return false;
}
return true;
} // check_php_curl
/**
* check_config_values
* checks to make sure that they have at least set the needed variables