| 1 |
<?php |
| 2 |
|
| 3 |
/** |
| 4 |
* @package ip-based-login |
| 5 |
* @version 2.4.5 |
| 6 |
*/ |
| 7 |
/* |
| 8 |
Plugin Name: IP Based Login |
| 9 |
Plugin URI: http://wordpress.org/extend/plugins/ip-based-login/ |
| 10 |
Description: IP Based Login is a plugin which allows you to directly login from an allowed IP. You can create ranges and define the IP range which can get access to a particular user. So if you want to allow someone to login but you do not want to share the login details just add their IP using IP Based Login. |
| 11 |
Version: 2.4.5 |
| 12 |
Text Domain: ip-based-login |
| 13 |
Domain Path: /languages/ |
| 14 |
Author: Brijesh Kothari |
| 15 |
Author URI: https://profiles.wordpress.org/brijeshk89/ |
| 16 |
License: GPLv3 or later |
| 17 |
*/ |
| 18 |
|
| 19 |
/* |
| 20 |
Copyright (C) 2013 Brijesh Kothari (email : admin@wp-inspired.com) |
| 21 |
This program is free software: you can redistribute it and/or modify |
| 22 |
it under the terms of the GNU General Public License as published by |
| 23 |
the Free Software Foundation, either version 3 of the License, or |
| 24 |
(at your option) any later version. |
| 25 |
|
| 26 |
This program is distributed in the hope that it will be useful, |
| 27 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 28 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 29 |
GNU General Public License for more details. |
| 30 |
|
| 31 |
You should have received a copy of the GNU General Public License |
| 32 |
along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 33 |
*/ |
| 34 |
|
| 35 |
if(!function_exists('add_action')){ |
| 36 |
echo 'You are not allowed to access this page directly.'; |
| 37 |
exit; |
| 38 |
} |
| 39 |
|
| 40 |
function ip_based_login_load_plugin_textdomain(){ |
| 41 |
load_plugin_textdomain( 'ip-based-login', FALSE, basename( dirname( __FILE__ ) ) . '/languages/' ); |
| 42 |
} |
| 43 |
|
| 44 |
add_action( 'plugins_loaded', 'ip_based_login_load_plugin_textdomain' ); |
| 45 |
|
| 46 |
$_ltmp_plugins = get_option('active_plugins'); |
| 47 |
|
| 48 |
define('IPBL_FREE', 1); |
| 49 |
|
| 50 |
// Is the premium plugin loaded ? |
| 51 |
if(in_array('ip-based-login-pro/ip-based-login-pro.php', $_ltmp_plugins)){ |
| 52 |
return; |
| 53 |
} |
| 54 |
|
| 55 |
// Is the premium plugin active ? |
| 56 |
if(defined('ipbl_version')){ |
| 57 |
return; |
| 58 |
} |
| 59 |
|
| 60 |
$plugin_ipbl = plugin_basename(__FILE__); |
| 61 |
define('IPBL_FILE', __FILE__); |
| 62 |
define('IPBL_API', 'https://api.wp-inspired.com/'); |
| 63 |
define('IPBL_UPDATES_API', 'https://wp-inspired.com/wp-content/uploads/packages/'); |
| 64 |
|
| 65 |
include_once(dirname(__FILE__).'/init.php'); |