PluginProbe ʕ •ᴥ•ʔ
FraudLabs Pro for WooCommerce / 2.24.2
FraudLabs Pro for WooCommerce v2.24.2
2.24.2 2.24.1 2.24.0 trunk 2.10.0 2.10.1 2.10.10 2.10.11 2.10.12 2.10.13 2.10.14 2.10.2 2.10.3 2.10.4 2.10.5 2.10.6 2.10.7 2.10.8 2.10.9 2.11.0 2.11.1 2.11.10 2.11.11 2.11.2 2.11.3 2.11.4 2.11.5 2.11.6 2.11.7 2.11.8 2.11.9 2.12.0 2.12.1 2.12.2 2.12.3 2.12.4 2.12.5 2.12.6 2.13.0 2.13.1 2.13.10 2.13.2 2.13.3 2.13.4 2.13.5 2.13.6 2.13.7 2.13.8 2.13.9 2.14.0 2.14.1 2.14.10 2.14.11 2.14.2 2.14.3 2.14.4 2.14.5 2.14.6 2.14.7 2.14.8 2.14.9 2.15.0 2.16.0 2.16.1 2.16.10 2.16.11 2.16.12 2.16.13 2.16.14 2.16.15 2.16.16 2.16.17 2.16.18 2.16.19 2.16.2 2.16.3 2.16.4 2.16.5 2.16.6 2.16.7 2.16.8 2.16.9 2.17.0 2.17.1 2.17.2 2.17.3 2.17.4 2.17.5 2.17.6 2.17.7 2.17.8 2.18.0 2.18.1 2.18.2 2.18.3 2.18.4 2.18.5 2.19.0 2.19.1 2.19.2 2.19.3 2.20.0 2.20.1 2.20.2 2.20.3 2.21.0 2.21.1 2.22.0 2.22.1 2.22.10 2.22.11 2.22.12 2.22.13 2.22.14 2.22.15 2.22.2 2.22.3 2.22.4 2.22.5 2.22.6 2.22.7 2.22.8 2.22.9 2.23.0 2.23.1 2.23.2 2.23.3 2.23.4 2.23.5 2.23.6 2.23.7 2.8.17 2.9.0 2.9.1 2.9.2 2.9.3 2.9.4 2.9.5
fraudlabs-pro-for-woocommerce / init.php
fraudlabs-pro-for-woocommerce Last commit date
assets 3 months ago includes 1 week ago vendor 5 years ago init.php 1 week ago license.txt 9 years ago readme.txt 1 week ago
init.php
98 lines
1 <?php
2 /**
3 * Plugin Name: FraudLabs Pro for WooCommerce
4 * Plugin URI: https://www.fraudlabspro.com
5 * Description: This plugin is an add-on for WooCommerce plugin that help you to screen your order transaction, such as credit card transaction, for online fraud.
6 * Author: FraudLabs Pro
7 * Author URI: https://www.fraudlabspro.com/
8 * Version: 2.24.2
9 * Requires Plugins: woocommerce
10 * Text Domain: fraudlabs-pro-for-woocommerce
11 *
12 * This program is free software: you can redistribute it and/or modify
13 * it under the terms of the GNU General Public License as published by
14 * the Free Software Foundation, either version 3 of the License, or
15 * (at your option) any later version.
16 *
17 * This program is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
21 *
22 * You should have received a copy of the GNU General Public License
23 * along with this program. If not, see <http://www.gnu.org/licenses/>.
24 *
25 */
26
27 if ( ! defined( 'ABSPATH' ) ) {
28 exit;
29 }
30
31 if ( ! defined( 'WC_FLP_DIR' ) ) {
32 define( 'WC_FLP_DIR', __FILE__ );
33 }
34
35 if ( ! function_exists( 'wc_fraudlabspro' ) ) :
36
37 add_action( 'plugins_loaded', 'wc_fraudlabspro' );
38
39 function wc_fraudlabspro() {
40 if ( ! function_exists( 'WC' ) ) {
41 class FraudLabsProWc {
42 function __construct() {
43 add_action( 'admin_init', array( $this, 'check_wc_install' ) );
44 if ( ! function_exists( 'WC' ) ) {
45 return;
46 }
47 }
48
49 static function activation_check() {
50 if ( ! function_exists( 'WC' ) ) {
51 deactivate_plugins( plugin_basename( __FILE__ ) );
52 }
53 }
54
55 function check_wc_install() {
56 if ( ! function_exists( 'WC' ) ) {
57 if ( is_plugin_active( plugin_basename( __FILE__ ) ) ) {
58 deactivate_plugins( plugin_basename( __FILE__ ) );
59 add_action( 'admin_notices', array( $this, 'admin_notice_flp' ) );
60 if ( isset( $_GET['activate'] ) ) {
61 unset( $_GET['activate'] );
62 }
63 }
64 }
65 }
66
67 function admin_notice_flp() {
68 $current_screen = get_current_screen();
69 if ( 'plugins' == $current_screen->parent_base ) {
70 echo '
71 <div id="fraudlabspro-notice" class="error notice">
72 <p>
73 ' . __( 'Please install and activate WooCommerce plugin before activating FraudLabs Pro for WooCommerce plugin.', 'woocommerce-fraudlabs-pro' ) . '
74 </p>
75 </div>';
76 }
77 }
78
79 function wc_fraudlabspro() {
80 require_once plugin_dir_path( __FILE__ ) . 'includes' . DIRECTORY_SEPARATOR . 'class.wc-fraudlabspro.php';
81 WC_FraudLabs_Pro::get_instance();
82 }
83 }
84
85 global $flpwc;
86 $flpwc = new FraudLabsProWc();
87
88 register_activation_hook( __FILE__, array( 'FraudLabsProWc', 'activation_check' ) );
89 } else {
90 require_once plugin_dir_path( __FILE__ ) . 'includes' . DIRECTORY_SEPARATOR . 'class.wc-fraudlabspro.php';
91 WC_FraudLabs_Pro::get_instance();
92 }
93
94 }
95
96 endif;
97
98