PluginProbe
Loginizer / 1.1.1
Loginizer v1.1.1
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 +16 -39 trunk1.1.1 View file →
@@ -1,18 +1,21 @@
1 1 <?php
2 +/**
3 + * @package loginizer
4 + * @version 1.1.1
5 + */
2 6 /*
3 7 Plugin Name: Loginizer
4 -Plugin URI: https://wordpress.org/extend/plugins/loginizer/
8 +Plugin URI: http://wordpress.org/extend/plugins/loginizer/
5 9 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
7 -Text Domain: loginizer
8 -Author: Softaculous
9 -Author URI: https://www.loginizer.com
10 -License: LGPLv2.1
10 +Version: 1.1.1
11 +Author: Raj Kothari
12 +Author URI: http://www.loginizer.com
13 +License: GPLv3 or later
11 14 */
12 15
13 16 /*
14 -Copyright (C) 2013 Loginizer (email : support@loginizer.com)
17 +Copyright (C) 2013 Raj Kothari (email : support@loginizer.com)
15 18 This program is free software: you can redistribute it and/or modify
16 19 it under the terms of the GNU General Public License as published by
17 20 the Free Software Foundation, either version 3 of the License, or
18 21 (at your option) any later version.
@@ -30,48 +33,22 @@
30 33 echo 'You are not allowed to access this page directly.';
31 34 exit;
32 35 }
33 36
34 -$_tmp_plugins = get_option('active_plugins', []);
37 +$_ltmp_plugins = get_option('active_plugins');
35 38
36 -if(!defined('SITEPAD') && in_array('loginizer-security/loginizer-security.php', $_tmp_plugins)){
37 -
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{
46 -
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 - }
39 +// Is the premium plugin loaded ?
40 +if(in_array('loginizer-security/loginizer-security.php', $_ltmp_plugins)){
41 + return;
57 42 }
58 43
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 44 // Is the premium plugin active ?
70 45 if(defined('LOGINIZER_VERSION')){
71 46 return;
72 47 }
73 48
49 +$plugin_loginizer = plugin_basename(__FILE__);
74 50 define('LOGINIZER_FILE', __FILE__);
51 +define('LOGINIZER_API', 'http://api.loginizer.com/');
75 52
76 53 include_once(dirname(__FILE__).'/init.php');
77 54