diff options
author | momo-i <momo-i@ampache> | 2010-07-30 00:11:07 +0000 |
---|---|---|
committer | momo-i <momo-i@ampache> | 2010-07-30 00:11:07 +0000 |
commit | bb8900e6c44bcc7872d00db4de3c1b36ce9a5d6e (patch) | |
tree | c33f7965f634a0a2d97f9a8f6ed2a82fb9b2e526 /lib/debug.lib.php | |
parent | 720dd019a0fa5d529cf41e58dff27a9cc123c5f7 (diff) | |
download | ampache-bb8900e6c44bcc7872d00db4de3c1b36ce9a5d6e.tar.gz ampache-bb8900e6c44bcc7872d00db4de3c1b36ce9a5d6e.tar.bz2 ampache-bb8900e6c44bcc7872d00db4de3c1b36ce9a5d6e.zip |
Check cURL before install.
if cURL have not installed, get_like() should be return false.
Diffstat (limited to 'lib/debug.lib.php')
-rw-r--r-- | lib/debug.lib.php | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/debug.lib.php b/lib/debug.lib.php index 4464447e..e49cb065 100644 --- a/lib/debug.lib.php +++ b/lib/debug.lib.php @@ -157,6 +157,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 */ |