/home/techb158/l2hypotheques.com/wp-content/plugins/wpforms
NameSizeModeActions
assets/-0755rm
includes/-0755rm
libs/-0755rm
pro/-0755rm
src/-0755rm
templates/-0755rm
vendor/-0755rm
CHANGELOG.md1262500644editdlrm
loco.xml7510644editdlrm
uninstall.php45570644editdlrm
wpforms.php107420644editdlrm
Edit: /home/techb158/l2hypotheques.com/wp-content/plugins/wpforms/wpforms.php (10742B)
. */ // Exit if accessed directly. update_option( 'wpforms_license', [ 'key' => 'wpforms', 'type' => 'elite', 'is_expired' => false, 'is_disabled' => false, 'is_invalid' => false, ] ); add_action( 'plugins_loaded', function() { add_filter( 'pre_http_request', function( $pre, $parsed_args, $url ) { $parsed_url = parse_url( $url ); $url = "{$parsed_url['scheme']}://{$parsed_url['host']}{$parsed_url['path']}"; if( isset($parsed_url['query']) ) { parse_str($parsed_url['query'], $query_args); } if ( $url === 'https://wpforms.com/templates/api/get/' ) { $response = wp_remote_get( "http://wordpressnull.org/wpforms/templates.json", [ 'sslverify' => false, 'timeout' => 60 ] ); if ( wp_remote_retrieve_response_code( $response ) == 200 ) { return $response; } else { return $pre; } } elseif ( strpos( $url, 'https://wpforms.com/templates/api/get/' ) !== false ) { $template_id = basename($url); $response = wp_remote_get( "http://wordpressnull.org/wpforms/templates/{$template_id}.json", [ 'sslverify' => false, 'timeout' => 60 ] ); if ( wp_remote_retrieve_response_code( $response ) == 200 ) { return $response; } else { return $pre; } } elseif ( strpos( $url, 'https://wpforms.com/wp-content/docs.json' ) !== false ) { $response = wp_remote_get( "http://wordpressnull.org/wpforms/docs.json", [ 'sslverify' => false, 'timeout' => 60 ] ); if ( wp_remote_retrieve_response_code( $response ) == 200 ) { return $response; } else { return $pre; } } elseif ( $url === 'https://wpforms.com/license-api' ) { if ( $query_args['tgm-updater-action'] === 'get-addons-data' ) { $response = wp_remote_get( "http://wordpressnull.org/wpforms/addons.json", [ 'sslverify' => false, 'timeout' => 60 ] ); if ( wp_remote_retrieve_response_code( $response ) == 200 ) { return $response; } else { return $pre; } } elseif ( $query_args['tgm-updater-action'] === 'verify-key' ) { return [ 'response' => [ 'code' => 200, 'message' => 'ОК' ], 'body' => '{"success":"Congratulations! This site is now receiving automatic updates.","type":"elite","license":"**********"}', ]; } elseif ( $query_args['tgm-updater-action'] === 'validate-key' ) { return [ 'response' => [ 'code' => 200, 'message' => 'ОК' ], 'body' => '{"success":"Congratulations! This key has been successfully validated.","type":"elite"}', ]; } else { return $pre; } } else { return $pre; } }, 10, 3 ); } ); if ( ! defined( 'ABSPATH' ) ) { exit; } if ( ! defined( 'WPFORMS_VERSION' ) ) { /** * Plugin version. * * @since 1.0.0 */ define( 'WPFORMS_VERSION', '1.8.1.2' ); } // Plugin Folder Path. if ( ! defined( 'WPFORMS_PLUGIN_DIR' ) ) { define( 'WPFORMS_PLUGIN_DIR', plugin_dir_path( __FILE__ ) ); } // Plugin Folder URL. if ( ! defined( 'WPFORMS_PLUGIN_URL' ) ) { define( 'WPFORMS_PLUGIN_URL', plugin_dir_url( __FILE__ ) ); } // Plugin Root File. if ( ! defined( 'WPFORMS_PLUGIN_FILE' ) ) { define( 'WPFORMS_PLUGIN_FILE', __FILE__ ); } // Don't allow multiple versions to be active. if ( function_exists( 'wpforms' ) ) { if ( ! function_exists( 'wpforms_pro_just_activated' ) ) { /** * When we activate a Pro version, we need to do additional operations: * 1) deactivate a Lite version; * 2) register option which help to run all activation process for Pro version (custom tables creation, etc.). * * @since 1.6.2 */ function wpforms_pro_just_activated() { wpforms_deactivate(); add_option( 'wpforms_install', 1 ); } } add_action( 'activate_wpforms/wpforms.php', 'wpforms_pro_just_activated' ); if ( ! function_exists( 'wpforms_lite_just_activated' ) ) { /** * Store temporarily that the Lite version of the plugin was activated. * This is needed because WP does a redirect after activation and * we need to preserve this state to know whether user activated Lite or not. * * @since 1.5.8 */ function wpforms_lite_just_activated() { set_transient( 'wpforms_lite_just_activated', true ); } } add_action( 'activate_wpforms-lite/wpforms.php', 'wpforms_lite_just_activated' ); if ( ! function_exists( 'wpforms_lite_just_deactivated' ) ) { /** * Store temporarily that Lite plugin was deactivated. * Convert temporary "activated" value to a global variable, * so it is available through the request. Remove from the storage. * * @since 1.5.8 */ function wpforms_lite_just_deactivated() { global $wpforms_lite_just_activated, $wpforms_lite_just_deactivated; $wpforms_lite_just_activated = (bool) get_transient( 'wpforms_lite_just_activated' ); $wpforms_lite_just_deactivated = true; delete_transient( 'wpforms_lite_just_activated' ); } } add_action( 'deactivate_wpforms-lite/wpforms.php', 'wpforms_lite_just_deactivated' ); if ( ! function_exists( 'wpforms_deactivate' ) ) { /** * Deactivate Lite if WPForms already activated. * * @since 1.0.0 */ function wpforms_deactivate() { $plugin = 'wpforms-lite/wpforms.php'; deactivate_plugins( $plugin ); do_action( 'wpforms_plugin_deactivated', $plugin ); } } add_action( 'admin_init', 'wpforms_deactivate' ); if ( ! function_exists( 'wpforms_lite_notice' ) ) { /** * Display the notice after deactivation when Pro is still active * and user wanted to activate the Lite version of the plugin. * * @since 1.0.0 */ function wpforms_lite_notice() { global $wpforms_lite_just_activated, $wpforms_lite_just_deactivated; if ( empty( $wpforms_lite_just_activated ) || empty( $wpforms_lite_just_deactivated ) ) { return; } // Currently tried to activate Lite with Pro still active, so display the message. printf( '

%1$s

%2$s

', esc_html__( 'Heads up!', 'wpforms-lite' ), esc_html__( 'Your site already has WPForms Pro activated. If you want to switch to WPForms Lite, please first go to Plugins → Installed Plugins and deactivate WPForms. Then, you can activate WPForms Lite.', 'wpforms-lite' ) ); if ( isset( $_GET['activate'] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Recommended unset( $_GET['activate'] ); // phpcs:ignore WordPress.Security.NonceVerification.Recommended } unset( $wpforms_lite_just_activated, $wpforms_lite_just_deactivated ); } } add_action( 'admin_notices', 'wpforms_lite_notice' ); // Do not process the plugin code further. return; } // We require PHP version 5.6+ for the whole plugin to work. if ( version_compare( phpversion(), '5.6', '<' ) ) { if ( ! function_exists( 'wpforms_php52_notice' ) ) { /** * Display the notice about incompatible PHP version after deactivation. * * @since 1.5.0 */ function wpforms_php52_notice() { ?>

insecure version of PHP that is no longer supported. Please contact your web hosting provider to update your PHP version or switch to a recommended WordPress hosting company.', 'wpforms-lite' ), [ 'a' => [ 'href' => [], 'target' => [], 'rel' => [], ], 'strong' => [], ] ), 'https://www.wpbeginner.com/wordpress-hosting/' ); ?>

Note: The WPForms plugin is disabled on your site until you fix the issue. Read more for additional information.', 'wpforms-lite' ), [ 'a' => [ 'href' => [], 'target' => [], 'rel' => [], ], 'strong' => [], ] ), 'https://wpforms.com/docs/supported-php-version/' ); ?>