iQ Block Country - Version 1.1.12

Version Description

  • Bugfix on the backend blacklist / whitelist
Download this release

Release Info

Developer iqpascal
Plugin Icon 128x128 iQ Block Country
Version 1.1.12
Comparing to
See all releases

Code changes from version 1.1.11 to 1.1.12

iq-block-country.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  Plugin Name: iQ Block Country
4
  Plugin URI: http://www.redeo.nl/2013/12/iq-block-country-wordpress-plugin-blocks-countries/
5
- Version: 1.1.11
6
  Author: Pascal
7
  Author URI: http://www.redeo.nl/
8
  Description: Block visitors from visiting your website and backend website based on which country their IP address is from. The Maxmind GeoIP lite database is used for looking up from which country an ip address is from.
@@ -323,7 +323,7 @@ define("IPV4DB","http://geolite.maxmind.com/download/geoip/database/GeoLiteCount
323
  define("IPV4DBFILE",WP_PLUGIN_DIR . "/" . dirname ( plugin_basename ( __FILE__ ) ) . "/GeoIP.dat");
324
  define("IPV6DBFILE",WP_PLUGIN_DIR . "/" . dirname ( plugin_basename ( __FILE__ ) ) . "/GeoIPv6.dat");
325
  define("TRACKINGURL","http://tracking.webence.nl/iq-block-country-tracking.php");
326
- define("VERSION","1.1.11");
327
  define("DBVERSION","120");
328
  define("PLUGINPATH",plugin_dir_path( __FILE__ ));
329
 
2
  /*
3
  Plugin Name: iQ Block Country
4
  Plugin URI: http://www.redeo.nl/2013/12/iq-block-country-wordpress-plugin-blocks-countries/
5
+ Version: 1.1.12
6
  Author: Pascal
7
  Author URI: http://www.redeo.nl/
8
  Description: Block visitors from visiting your website and backend website based on which country their IP address is from. The Maxmind GeoIP lite database is used for looking up from which country an ip address is from.
323
  define("IPV4DBFILE",WP_PLUGIN_DIR . "/" . dirname ( plugin_basename ( __FILE__ ) ) . "/GeoIP.dat");
324
  define("IPV6DBFILE",WP_PLUGIN_DIR . "/" . dirname ( plugin_basename ( __FILE__ ) ) . "/GeoIPv6.dat");
325
  define("TRACKINGURL","http://tracking.webence.nl/iq-block-country-tracking.php");
326
+ define("VERSION","1.1.12");
327
  define("DBVERSION","120");
328
  define("PLUGINPATH",plugin_dir_path( __FILE__ ));
329
 
libs/blockcountry-checks.php CHANGED
@@ -51,8 +51,8 @@ function iqblockcountry_check($country,$badcountries,$ip_address)
51
 
52
  $frontendblacklistip = array(); $frontendblacklist = get_option ( 'blockcountry_frontendblacklist' );
53
  $frontendwhitelistip = array(); $frontendwhitelist = get_option ( 'blockcountry_frontendwhitelist' );
54
- $backendblacklistip = array(); $backendblacklist = get_option ( 'blockcountry_frontendblacklist' );
55
- $backendwhitelistip = array(); $backendwhitelist = get_option ( 'blockcountry_frontendwhitelist' );
56
 
57
  $backendbanlistip = unserialize(get_option('blockcountry_backendbanlistip'));
58
  $blockredirect = get_option ( 'blockcountry_redirect');
@@ -250,9 +250,7 @@ function iqblockcountry_CheckCountry() {
250
  * Check if page is the login page
251
  */
252
  function iqblockcountry_is_login_page() {
253
- // return !strncmp($_SERVER['REQUEST_URI'], '/wp-login.php', strlen('/wp-login.php'));
254
- if ( in_array( $GLOBALS['pagenow'], array( 'wp-login.php', 'wp-register.php' ) ) )
255
- { return TRUE; } else { return FALSE; }
256
  }
257
 
258
  /*
51
 
52
  $frontendblacklistip = array(); $frontendblacklist = get_option ( 'blockcountry_frontendblacklist' );
53
  $frontendwhitelistip = array(); $frontendwhitelist = get_option ( 'blockcountry_frontendwhitelist' );
54
+ $backendblacklistip = array(); $backendblacklist = get_option ( 'blockcountry_backendblacklist' );
55
+ $backendwhitelistip = array(); $backendwhitelist = get_option ( 'blockcountry_backendwhitelist' );
56
 
57
  $backendbanlistip = unserialize(get_option('blockcountry_backendbanlistip'));
58
  $blockredirect = get_option ( 'blockcountry_redirect');
250
  * Check if page is the login page
251
  */
252
  function iqblockcountry_is_login_page() {
253
+ return !strncmp($_SERVER['REQUEST_URI'], '/wp-login.php', strlen('/wp-login.php'));
 
 
254
  }
255
 
256
  /*
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.redeo.nl/plugins/donate
4
  Tags: spam, block, countries, country, comments, ban, geo, geo blocking, geo ip, block country, block countries, ban countries, ban country, blacklist, whitelist
5
  Requires at least: 3.5.2
6
  Tested up to: 3.9.1
7
- Stable tag: 1.1.11
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -177,6 +177,10 @@ If storing or sharing an IP address is illegal in your country do not select thi
177
 
178
  == Changelog ==
179
 
 
 
 
 
180
  = 1.1.11 =
181
 
182
  * Added select box on how many rows to display on the logging tab
4
  Tags: spam, block, countries, country, comments, ban, geo, geo blocking, geo ip, block country, block countries, ban countries, ban country, blacklist, whitelist
5
  Requires at least: 3.5.2
6
  Tested up to: 3.9.1
7
+ Stable tag: 1.1.12
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
177
 
178
  == Changelog ==
179
 
180
+ = 1.1.12 =
181
+
182
+ * Bugfix on the backend blacklist / whitelist
183
+
184
  = 1.1.11 =
185
 
186
  * Added select box on how many rows to display on the logging tab