PluginProbe
Loginizer / 1.8.3
Loginizer v1.8.3
2.1.0 2.0.9 2.0.8 1.9.8 1.9.9 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.0.7 trunk 1.0 1.0.1 1.0.2 1.1.0 1.1.1 1.2.0 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 All 74 releases
← All changes | loginizer.php +11 -31 trunk1.8.3 View file →
@@ -2,9 +2,9 @@
2 2 /*
3 3 Plugin Name: Loginizer
4 4 Plugin URI: https://wordpress.org/extend/plugins/loginizer/
5 5 Description: Loginizer is a WordPress plugin which helps you fight against bruteforce attack by blocking login for the IP after it reaches maximum retries allowed. You can blacklist or whitelist IPs for login using Loginizer.
6 -Version: 2.1.0
6 +Version: 1.8.3
7 7 Text Domain: loginizer
8 8 Author: Softaculous
9 9 Author URI: https://www.loginizer.com
10 10 License: LGPLv2.1
@@ -30,48 +30,28 @@
30 30 echo 'You are not allowed to access this page directly.';
31 31 exit;
32 32 }
33 33
34 -$_tmp_plugins = get_option('active_plugins', []);
34 +function loginizer_load_plugin_textdomain(){
35 + load_plugin_textdomain( 'loginizer', FALSE, basename( dirname( __FILE__ ) ) . '/languages/' );
36 +}
35 37
36 -if(!defined('SITEPAD') && in_array('loginizer-security/loginizer-security.php', $_tmp_plugins)){
38 +add_action( 'plugins_loaded', 'loginizer_load_plugin_textdomain' );
37 39
38 - // Was introduced in 1.9.0
39 - $loginizer_pro_info = get_option('loginizer_pro_version');
40 -
41 - if(!empty($loginizer_pro_info) && version_compare($loginizer_pro_info, '1.9.0', '>=')){
42 - // Let Loginizer load
43 -
44 - // Lets check for older versions
45 - }else{
40 +$_ltmp_plugins = get_option('active_plugins');
46 41
47 - if(!function_exists('get_plugin_data')){
48 - include_once ABSPATH . 'wp-admin/includes/plugin.php';
49 - }
50 -
51 - $loginizer_pro_info = get_plugin_data(WP_PLUGIN_DIR . '/loginizer-security/loginizer-security.php');
52 -
53 - if(!empty($loginizer_pro_info) && version_compare($loginizer_pro_info['Version'], '1.8.9', '<')){
54 - return;
55 - }
56 - }
42 +// Is the premium plugin loaded ?
43 +if(in_array('loginizer-security/loginizer-security.php', $_ltmp_plugins)){
44 + return;
57 45 }
58 46
59 -
60 -function loginizer_load_plugin_textdomain(){
61 - if(defined('LOGINIZER_PREMIUM')){
62 - return;
63 - }
64 - load_plugin_textdomain('loginizer', FALSE, basename( dirname( __FILE__ ) ) . '/languages/');
65 -}
66 -
67 -add_action('init', 'loginizer_load_plugin_textdomain', 0);
68 -
69 47 // Is the premium plugin active ?
70 48 if(defined('LOGINIZER_VERSION')){
71 49 return;
72 50 }
73 51
52 +$plugin_loginizer = plugin_basename(__FILE__);
74 53 define('LOGINIZER_FILE', __FILE__);
54 +define('LOGINIZER_API', 'https://api.loginizer.com/');
75 55
76 56 include_once(dirname(__FILE__).'/init.php');
77 57