mirror of
https://github.com/Znote/ZnoteAAC.git
synced 2025-10-13 18:04:54 +02:00
Verify that curl is installed when using captcha
This commit is contained in:
@@ -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';
|
||||
|
Reference in New Issue
Block a user