Ngiler SH3LL 360
Home
Information
Create File
Create Folder
:
/
home
/
tbf
/
public_html_old
/
wp-content
/
plugins
/
wpforms-activecampaign
/
Information Server
MySQL :
OFF
Perl :
OFF
CURL :
ON
WGET :
OFF
PKEXEC :
OFF
Directive
Local Value
IP Address
89.40.16.97
System
Linux server.atelieruldeit.ro 3.10.0-1160.el7.x86_64 #1 SMP Mon Oct 19 16:18:59 UTC 2020 x86_64
User
tbf
PHP Version
7.3.33
Software
Apache
Doc root
Writable
close
Edit File :
wpforms-activecampaign.php
| Size :
3.92
KB
Copy
<?php /** * Plugin Name: WPForms ActiveCampaign * Plugin URI: https://wpforms.com * Description: ActiveCampaign integration with WPForms. * Requires at least: 4.9 * Requires PHP: 5.6 * Author: WPForms * Author URI: https://wpforms.com * Version: 1.2.1 * Text Domain: wpforms-activecampaign * Domain Path: languages * * WPForms is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 2 of the License, or * any later version. * * WPForms is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with WPForms. If not, see <https://www.gnu.org/licenses/>. * * @since 1.0.0 * @author WPForms * @package WPFormsActiveCampaign * @license GPL-2.0+ * @copyright Copyright (c) 2020, WPForms LLC */ // Exit if accessed directly. if ( ! defined( 'ABSPATH' ) ) { exit; } /** * Plugin constants. */ define( 'WPFORMS_ACTIVECAMPAIGN_VERSION', '1.2.1' ); define( 'WPFORMS_ACTIVECAMPAIGN_FILE', __FILE__ ); define( 'WPFORMS_ACTIVECAMPAIGN_PATH', plugin_dir_path( WPFORMS_ACTIVECAMPAIGN_FILE ) ); define( 'WPFORMS_ACTIVECAMPAIGN_URL', plugin_dir_url( WPFORMS_ACTIVECAMPAIGN_FILE ) ); /** * Check addon requirements. * We do it on `wpforms_loaded` hook. If earlier - core is still not loaded. * * @since 1.0.0 * @since 1.2.0 Changed autoloader - started using composer things. */ function wpforms_activecampaign_required() { if ( version_compare( PHP_VERSION, '5.6', '<' ) ) { add_action( 'admin_init', 'wpforms_activecampaign_deactivation' ); add_action( 'admin_notices', 'wpforms_activecampaign_fail_php_version' ); } elseif ( ! function_exists( 'wpforms' ) || ! wpforms()->pro || version_compare( wpforms()->version, '1.5.9', '<' ) ) { add_action( 'admin_init', 'wpforms_activecampaign_deactivation' ); add_action( 'admin_notices', 'wpforms_activecampaign_fail_wpforms_version' ); } else { // Actually, load the ActiveCampaign addon now. require_once WPFORMS_ACTIVECAMPAIGN_PATH . 'vendor/autoload.php'; \WPFormsActiveCampaign\Plugin::get_instance(); } } add_action( 'wpforms_loaded', 'wpforms_activecampaign_required' ); /** * Deactivate the plugin. * * @since 1.0.0 */ function wpforms_activecampaign_deactivation() { deactivate_plugins( plugin_basename( __FILE__ ) ); } /** * Admin notice for minimum PHP version. * * @since 1.0.0 */ function wpforms_activecampaign_fail_php_version() { echo '<div class="notice notice-error"><p>'; printf( wp_kses( /* translators: %s - WPForms.com documentation page URI. */ __( 'The WPForms ActiveCampaign plugin has been deactivated. Your site is running an outdated version of PHP that is no longer supported and is not compatible with the ActiveCampaign plugin. <a href="%s" target="_blank" rel="noopener noreferrer">Read more</a> for additional information.', 'wpforms-activecampaign' ), array( 'a' => array( 'href' => array(), 'rel' => array(), 'target' => array(), ), ) ), 'https://wpforms.com/docs/supported-php-version/' ); echo '</p></div>'; // phpcs:disable if ( isset( $_GET['activate'] ) ) { unset( $_GET['activate'] ); } // phpcs:enable } /** * Admin notice for minimum WPForms version. * * @since 1.0.0 */ function wpforms_activecampaign_fail_wpforms_version() { echo '<div class="notice notice-error"><p>'; esc_html_e( 'The WPForms ActiveCampaign plugin has been deactivated, because it requires WPForms v1.5.9 or later to work.', 'wpforms-activecampaign' ); echo '</p></div>'; // phpcs:disable if ( isset( $_GET['activate'] ) ) { unset( $_GET['activate'] ); } // phpcs:enable }
Back