PluginProbe
Loginizer / 1.6.7
Loginizer v1.6.7
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
loginizer / loginizer.php

loginizer.php in Loginizer 1.6.7, at loginizer.php

62 lines 1.9 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * @package loginizer
4 * @version 1.6.7
5 */
6 /*
7 Plugin Name: Loginizer
8 Plugin URI: https://wordpress.org/extend/plugins/loginizer/
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.
10 Version: 1.6.7
11 Text Domain: loginizer
12 Author: Softaculous
13 Author URI: https://www.loginizer.com
14 License: LGPLv2.1
15 */
16
17 /*
18 Copyright (C) 2013 Loginizer (email : support@loginizer.com)
19 This program is free software: you can redistribute it and/or modify
20 it under the terms of the GNU General Public License as published by
21 the Free Software Foundation, either version 3 of the License, or
22 (at your option) any later version.
23
24 This program is distributed in the hope that it will be useful,
25 but WITHOUT ANY WARRANTY; without even the implied warranty of
26 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27 GNU General Public License for more details.
28
29 You should have received a copy of the GNU General Public License
30 along with this program. If not, see <http://www.gnu.org/licenses/>.
31 */
32
33 if(!function_exists('add_action')){
34 echo 'You are not allowed to access this page directly.';
35 exit;
36 }
37
38 function loginizer_load_plugin_textdomain(){
39 load_plugin_textdomain( 'loginizer', FALSE, basename( dirname( __FILE__ ) ) . '/languages/' );
40 }
41
42 add_action( 'plugins_loaded', 'loginizer_load_plugin_textdomain' );
43
44 $_ltmp_plugins = get_option('active_plugins');
45
46 // Is the premium plugin loaded ?
47 if(in_array('loginizer-security/loginizer-security.php', $_ltmp_plugins)){
48 return;
49 }
50
51 // Is the premium plugin active ?
52 if(defined('LOGINIZER_VERSION')){
53 return;
54 }
55
56 $plugin_loginizer = plugin_basename(__FILE__);
57 define('LOGINIZER_FILE', __FILE__);
58 define('LOGINIZER_API', 'https://api.loginizer.com/');
59
60 include_once(dirname(__FILE__).'/init.php');
61
62