From c842e3385748e4d93d869583d0d628ac0ab6b460 Mon Sep 17 00:00:00 2001 From: Znote Date: Sun, 22 Jan 2017 05:11:51 +0100 Subject: [PATCH] Verify that curl is installed when using captcha --- engine/init.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/init.php b/engine/init.php index 112289f..0699f2b 100644 --- a/engine/init.php +++ b/engine/init.php @@ -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.
1. Find your php.ini file.
2. Uncomment extension=php_curl
Restart web server.

If you don't want this then disable paypal in config.php."); + if (!$curlcheck) die("php cURL is not enabled. It is required to for paypal or captcha services.
1. Find your php.ini file.
2. Uncomment extension=php_curl
Restart web server.

If you don't want this then disable paypal & use_captcha in config.php."); } require_once 'database/connect.php';