Version Description
- Change: Changed when the buffer is flushed (if selected) (Thanks to Nextendweb)
- Change: Changed cleanup on debug logging table.
Download this release
Release Info
Developer | iqpascal |
Plugin | iQ Block Country |
Version | 1.1.49 |
Comparing to | |
See all releases |
Code changes from version 1.1.48 to 1.1.49
- iq-block-country.php +3 -3
- libs/blockcountry-logging.php +3 -3
- readme.txt +7 -2
iq-block-country.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/*
|
3 |
Plugin Name: iQ Block Country
|
4 |
Plugin URI: https://www.webence.nl/plugins/iq-block-country-the-wordpress-plugin-that-blocks-countries-for-you/
|
5 |
-
Version: 1.1.
|
6 |
Author: Pascal
|
7 |
Author URI: https://www.webence.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.
|
@@ -250,7 +250,7 @@ define("GEOIPAPIURLASIA","https://us2.geoip.webence.nl/geoipapi.php");
|
|
250 |
define("GEOIPAPICHECKURL","https://eu.geoip.webence.nl/geoipapi-keycheck.php");
|
251 |
define("ADMINAPICHECKURL","https://tracking.webence.nl/adminapi-keycheck.php");
|
252 |
define("IPLOOKUPURL",'https://geoip.webence.nl/iplookup/iplookup.php');
|
253 |
-
define("VERSION","1.1.
|
254 |
define("DBVERSION","122");
|
255 |
define("PLUGINPATH",plugin_dir_path( __FILE__ ));
|
256 |
|
@@ -365,7 +365,7 @@ add_action ( 'blockcountry_retrievebanlist', 'iqblockcountry_tracking_retrieve_
|
|
365 |
if (get_option('blockcountry_buffer') == "on")
|
366 |
{
|
367 |
add_action ( 'init', 'iqblockcountry_buffer',1);
|
368 |
-
add_action ( '
|
369 |
}
|
370 |
|
371 |
|
2 |
/*
|
3 |
Plugin Name: iQ Block Country
|
4 |
Plugin URI: https://www.webence.nl/plugins/iq-block-country-the-wordpress-plugin-that-blocks-countries-for-you/
|
5 |
+
Version: 1.1.49
|
6 |
Author: Pascal
|
7 |
Author URI: https://www.webence.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.
|
250 |
define("GEOIPAPICHECKURL","https://eu.geoip.webence.nl/geoipapi-keycheck.php");
|
251 |
define("ADMINAPICHECKURL","https://tracking.webence.nl/adminapi-keycheck.php");
|
252 |
define("IPLOOKUPURL",'https://geoip.webence.nl/iplookup/iplookup.php');
|
253 |
+
define("VERSION","1.1.49");
|
254 |
define("DBVERSION","122");
|
255 |
define("PLUGINPATH",plugin_dir_path( __FILE__ ));
|
256 |
|
365 |
if (get_option('blockcountry_buffer') == "on")
|
366 |
{
|
367 |
add_action ( 'init', 'iqblockcountry_buffer',1);
|
368 |
+
add_action ( 'shutdown', 'iqblockcountry_buffer_flush');
|
369 |
}
|
370 |
|
371 |
|
libs/blockcountry-logging.php
CHANGED
@@ -40,8 +40,7 @@ function iqblockcountry_clean_db()
|
|
40 |
$nrdays = get_option('blockcountry_daysstatistics');
|
41 |
|
42 |
$table_name = $wpdb->prefix . "iqblock_logging";
|
43 |
-
|
44 |
-
$sql = "DELETE FROM " . $table_name . " WHERE `datetime` < DATE_SUB(NOW(), INTERVAL " . $nrdays . " DAY)";
|
45 |
$wpdb->query($sql);
|
46 |
|
47 |
}
|
@@ -91,7 +90,8 @@ function iqblockcountry_clean_loggingdb()
|
|
91 |
global $wpdb;
|
92 |
|
93 |
$table_name = $wpdb->prefix . "iqblock_debug_logging";
|
94 |
-
$sql = "DELETE FROM " . $table_name . " WHERE DATE_SUB(
|
|
|
95 |
$wpdb->query($sql);
|
96 |
}
|
97 |
|
40 |
$nrdays = get_option('blockcountry_daysstatistics');
|
41 |
|
42 |
$table_name = $wpdb->prefix . "iqblock_logging";
|
43 |
+
$sql = "DELETE FROM " . $table_name . " WHERE `datetime` < DATE_SUB(NOW(), INTERVAL " . $nrdays . " DAY);";
|
|
|
44 |
$wpdb->query($sql);
|
45 |
|
46 |
}
|
90 |
global $wpdb;
|
91 |
|
92 |
$table_name = $wpdb->prefix . "iqblock_debug_logging";
|
93 |
+
$sql = "DELETE FROM " . $table_name . " WHERE `datetime` < DATE_SUB(NOW(), INTERVAL 14 DAY);";
|
94 |
+
// $sql = "DELETE FROM " . $table_name . " WHERE DATE_SUB(CURDATE(),INTERVAL 14 DAY) >= datetime;";
|
95 |
$wpdb->query($sql);
|
96 |
}
|
97 |
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: iqpascal
|
|
3 |
Donate link: https://www.webence.nl/plugins/donate
|
4 |
Tags: spam, block, country, comments, ban, geo, geo blocking, geo ip, block country, block countries, ban countries, ban country, blacklist, whitelist, security
|
5 |
Requires at least: 3.5.2
|
6 |
-
Tested up to: 4.9.
|
7 |
-
Stable tag: 1.1.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -206,6 +206,11 @@ As the basic rule is to block all and every post you have to configure this in a
|
|
206 |
|
207 |
== Changelog ==
|
208 |
|
|
|
|
|
|
|
|
|
|
|
209 |
= 1.1.48 =
|
210 |
|
211 |
* Bugfix: Fixed small bug
|
3 |
Donate link: https://www.webence.nl/plugins/donate
|
4 |
Tags: spam, block, country, comments, ban, geo, geo blocking, geo ip, block country, block countries, ban countries, ban country, blacklist, whitelist, security
|
5 |
Requires at least: 3.5.2
|
6 |
+
Tested up to: 4.9.5
|
7 |
+
Stable tag: 1.1.49
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
206 |
|
207 |
== Changelog ==
|
208 |
|
209 |
+
= 1.1.49 =
|
210 |
+
|
211 |
+
* Change: Changed when the buffer is flushed (if selected) (Thanks to Nextendweb)
|
212 |
+
* Change: Changed cleanup on debug logging table.
|
213 |
+
|
214 |
= 1.1.48 =
|
215 |
|
216 |
* Bugfix: Fixed small bug
|