mirror of
https://github.com/Znote/ZnoteAAC.git
synced 2025-04-30 19:29:22 +02:00
Verify that curl is installed when using captcha
This commit is contained in:
parent
984e62e095
commit
c842e33857
@ -25,9 +25,9 @@ ob_start();
|
|||||||
require_once 'config.php';
|
require_once 'config.php';
|
||||||
$sessionPrefix = $config['session_prefix'];
|
$sessionPrefix = $config['session_prefix'];
|
||||||
|
|
||||||
if ($config['paypal']['enabled']) {
|
if ($config['paypal']['enabled'] || $config['use_captcha']) {
|
||||||
$curlcheck = function_exists('curl_version') ? true : false;
|
$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';
|
require_once 'database/connect.php';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user