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';