| Server IP : 51.91.236.193 / Your IP : 216.73.216.224 Web Server : Apache System : Linux webm010.cluster128.gra.hosting.ovh.net 6.18.39-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Tue Jul 21 12:03:15 CEST 2026 x86_64 User : institutah ( 16501) PHP Version : 7.2.34 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/institutah/www/wp-content/plugins/visualcomposer/visualcomposer/ |
Upload File : |
<?php
if (!defined('ABSPATH')) {
header('Status: 403 Forbidden');
header('HTTP/1.1 403 Forbidden');
exit;
}
/**
* PHP 5.1! No namespaces must be there!
*/
/**
* Plugin requirements in driver WordPress.
* Class VcvCoreRequirements.
*/
class VcvCoreRequirements
{
/**
* Perform system check for requirements.
*/
public function coreChecks()
{
$message = '';
$die = false;
if (!self::checkVersion(VCV_REQUIRED_PHP_VERSION, PHP_VERSION)) {
$die = true;
$message .= '<li>' .
sprintf(
'PHP version %s or greater (recommended 7 or greater)',
VCV_REQUIRED_PHP_VERSION
) .
'</li>';
}
if (!self::checkVersion(VCV_REQUIRED_BLOG_VERSION, get_bloginfo('version'))) {
$die = true;
$message .= '<li>' .
sprintf(
'WordPress version %s or greater',
VCV_REQUIRED_BLOG_VERSION
) .
'</li>';
}
if (!function_exists('curl_exec') || !function_exists('curl_init')) {
$die = true;
$message .= '<li>' .
'The cURL extension must be loaded' .
'</li>';
}
if (
!function_exists('base64_decode')
|| !function_exists('base64_encode')
|| !function_exists('json_decode')
|| !function_exists('json_encode')
) {
$die = true;
$message .= '<li>' .
'The base64/json functions must be loaded' .
'</li>';
}
if (!function_exists('zlib_decode')) {
$die = true;
$message .= '<li>' .
'The zip extension must be loaded zlib_decode() is not defined' .
'</li>';
}
if ($die) {
$this->deactivate(VCV_PLUGIN_FULL_PATH);
wp_die(
// @codingStandardsIgnoreLine
'To run Visual Composer Website Builder your host needs to have:<ul>' . $message . '</ul>' . '<a href="'
. esc_url(admin_url('plugins.php')) . '">Go back to dashboard</a>'
);
}
return true;
}
/**
* @param string $mustHaveVersion
* @param string $versionToCheck
*
* @return bool
*/
public function checkVersion($mustHaveVersion, $versionToCheck)
{
if (version_compare($mustHaveVersion, $versionToCheck, '>')) {
return false;
}
return true;
}
/**
* @param $path
*/
public function deactivate($path)
{
require_once ABSPATH . '/wp-admin/includes/plugin.php';
if (!defined('VCV_PHPUNIT') || !VCV_PHPUNIT) {
deactivate_plugins($path);
}
}
}