iQ Block Country - Version 1.1.9

Version Description

Download this release

Release Info

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

Code changes from version 1.1.8 to 1.1.9

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.8
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.
@@ -305,7 +305,6 @@ require_once('libs/blockcountry-checks.php');
305
  require_once('libs/blockcountry-settings.php');
306
  require_once('libs/blockcountry-validation.php');
307
  require_once('libs/blockcountry-logging.php');
308
- require_once('libs/blockcountry-tracking.php');
309
 
310
 
311
  /*
@@ -318,7 +317,7 @@ define("IPV4DB","http://geolite.maxmind.com/download/geoip/database/GeoLiteCount
318
  define("IPV4DBFILE",WP_PLUGIN_DIR . "/" . dirname ( plugin_basename ( __FILE__ ) ) . "/GeoIP.dat");
319
  define("IPV6DBFILE",WP_PLUGIN_DIR . "/" . dirname ( plugin_basename ( __FILE__ ) ) . "/GeoIPv6.dat");
320
  define("TRACKINGURL","http://tracking.webence.nl/iq-block-country-tracking.php");
321
- define("VERSION","1.1.8");
322
  define("DBVERSION","118");
323
  define("PLUGINPATH",plugin_dir_path( __FILE__ ));
324
 
@@ -356,4 +355,4 @@ add_filter ( 'add_option_blockcountry_tracking', 'iqblockcountry_schedule_tracki
356
  add_action ( 'blockcountry_tracking', 'iqblockcountry_tracking' );
357
 
358
 
359
- ?>
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.9
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.
305
  require_once('libs/blockcountry-settings.php');
306
  require_once('libs/blockcountry-validation.php');
307
  require_once('libs/blockcountry-logging.php');
 
308
 
309
 
310
  /*
317
  define("IPV4DBFILE",WP_PLUGIN_DIR . "/" . dirname ( plugin_basename ( __FILE__ ) ) . "/GeoIP.dat");
318
  define("IPV6DBFILE",WP_PLUGIN_DIR . "/" . dirname ( plugin_basename ( __FILE__ ) ) . "/GeoIPv6.dat");
319
  define("TRACKINGURL","http://tracking.webence.nl/iq-block-country-tracking.php");
320
+ define("VERSION","1.1.9");
321
  define("DBVERSION","118");
322
  define("PLUGINPATH",plugin_dir_path( __FILE__ ));
323
 
355
  add_action ( 'blockcountry_tracking', 'iqblockcountry_tracking' );
356
 
357
 
358
+ ?>
libs/blockcountry-checks.php CHANGED
@@ -114,7 +114,7 @@ function iqblockcountry_check($country,$badcountries,$ip_address)
114
  }
115
  if ($flagged) { $blocked = TRUE; } else { $blocked = FALSE; }
116
  }
117
- if (is_home() && (get_option('blockcountry_blockhome')) == FALSE)
118
  {
119
  $blocked = FALSE;
120
  }
114
  }
115
  if ($flagged) { $blocked = TRUE; } else { $blocked = FALSE; }
116
  }
117
+ if (is_home() && (get_option('blockcountry_blockhome')) == FALSE && $blockedcategory == "on")
118
  {
119
  $blocked = FALSE;
120
  }
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.8.2
7
- Stable tag: 1.1.8
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
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.8.2
7
+ Stable tag: 1.1.9
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10