From 1713d87ec20d4d7fe20652aa5588085699fd58ba Mon Sep 17 00:00:00 2001 From: Znote Date: Sun, 22 Jan 2017 19:35:40 +0100 Subject: [PATCH] Google reCaptcha also requires the openSSL php extension. --- engine/init.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/engine/init.php b/engine/init.php index 0699f2b..7bcb070 100644 --- a/engine/init.php +++ b/engine/init.php @@ -24,11 +24,13 @@ session_start(); ob_start(); require_once 'config.php'; $sessionPrefix = $config['session_prefix']; - if ($config['paypal']['enabled'] || $config['use_captcha']) { - $curlcheck = function_exists('curl_version') ? true : false; + $curlcheck = extension_loaded('curl'); 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."); } +if ($config['use_captcha'] && !extension_loaded('openssl')) { + die("php openSSL is not enabled. It is required to for captcha services.
1. Find your php.ini file.
2. Uncomment extension=php_openssl
Restart web server.

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