Verify that curl is installed when using captcha

This commit is contained in:
Znote 2017-01-22 05:11:51 +01:00
parent 984e62e095
commit c842e33857

View File

@ -25,9 +25,9 @@ ob_start();
require_once 'config.php';
$sessionPrefix = $config['session_prefix'];
if ($config['paypal']['enabled']) {
if ($config['paypal']['enabled'] || $config['use_captcha']) {
$curlcheck = function_exists('curl_version') ? true : false;
if (!$curlcheck) die("php cURL is not enabled. It is required to for paypal services.<br>1. Find your php.ini file.<br>2. Uncomment extension=php_curl<br>Restart web server.<br><br><b>If you don't want this then disable paypal in config.php.</b>");
if (!$curlcheck) die("php cURL is not enabled. It is required to for paypal or captcha services.<br>1. Find your php.ini file.<br>2. Uncomment extension=php_curl<br>Restart web server.<br><br><b>If you don't want this then disable paypal & use_captcha in config.php.</b>");
}
require_once 'database/connect.php';