Version Description
- Change: Added better support to detect if mbstring is available for usage.
Download this release
Release Info
Developer | iqpascal |
Plugin | iQ Block Country |
Version | 1.2.6 |
Comparing to | |
See all releases |
Code changes from version 1.2.5 to 1.2.6
- iq-block-country.php +1 -1
- libs/blockcountry-settings.php +12 -0
- readme.txt +6 -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.2.
|
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.
|
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.2.6
|
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.
|
libs/blockcountry-settings.php
CHANGED
@@ -1696,11 +1696,23 @@ function iqblockcountry_settings_logging()
|
|
1696 |
$mysqldate = date($format, $datetime);
|
1697 |
if ($lookupstats)
|
1698 |
{
|
|
|
1699 |
echo $mysqldate . '</td><td>' . $row->ipaddress . '</td><td>' . $row->ipaddress . 'S</td><td>' . mb_strimwidth($row->url,0,75,'...') . '</td><td>' . $countryurl . $countrylist[$row->country] . '<td>';
|
|
|
|
|
|
|
|
|
|
|
|
|
1700 |
}
|
1701 |
else
|
1702 |
{
|
|
|
1703 |
echo $mysqldate . '</td><td>' . $row->ipaddress . '</td><td>' . gethostbyaddr( $row->ipaddress ) . '</td><td>' . mb_strimwidth($row->url,0,75,'...') . '</td><td>' . $countryurl . $countrylist[$row->country] . '<td>';
|
|
|
|
|
|
|
|
|
1704 |
}
|
1705 |
if ($row->banned == "F") _e('Frontend', 'iq-block-country'); elseif ($row->banned == "A") { _e('Backend banlist','iq-block-country'); } elseif ($row->banned == "T") { _e('Backend & Backend banlist','iq-block-country'); } else { _e('Backend', 'iq-block-country'); }
|
1706 |
echo "</td></tr></tbody>";
|
1696 |
$mysqldate = date($format, $datetime);
|
1697 |
if ($lookupstats)
|
1698 |
{
|
1699 |
+
if (extension_loaded('mbstring')) {
|
1700 |
echo $mysqldate . '</td><td>' . $row->ipaddress . '</td><td>' . $row->ipaddress . 'S</td><td>' . mb_strimwidth($row->url,0,75,'...') . '</td><td>' . $countryurl . $countrylist[$row->country] . '<td>';
|
1701 |
+
}
|
1702 |
+
else
|
1703 |
+
{
|
1704 |
+
echo $mysqldate . '</td><td>' . $row->ipaddress . '</td><td>' . $row->ipaddress . 'S</td><td>' . $row->url . '</td><td>' . $countryurl . $countrylist[$row->country] . '<td>';
|
1705 |
+
|
1706 |
+
}
|
1707 |
}
|
1708 |
else
|
1709 |
{
|
1710 |
+
if (extension_loaded('mbstring')) {
|
1711 |
echo $mysqldate . '</td><td>' . $row->ipaddress . '</td><td>' . gethostbyaddr( $row->ipaddress ) . '</td><td>' . mb_strimwidth($row->url,0,75,'...') . '</td><td>' . $countryurl . $countrylist[$row->country] . '<td>';
|
1712 |
+
}
|
1713 |
+
else {
|
1714 |
+
echo $mysqldate . '</td><td>' . $row->ipaddress . '</td><td>' . gethostbyaddr( $row->ipaddress ) . '</td><td>' . $row->url . '</td><td>' . $countryurl . $countrylist[$row->country] . '<td>';
|
1715 |
+
}
|
1716 |
}
|
1717 |
if ($row->banned == "F") _e('Frontend', 'iq-block-country'); elseif ($row->banned == "A") { _e('Backend banlist','iq-block-country'); } elseif ($row->banned == "T") { _e('Backend & Backend banlist','iq-block-country'); } else { _e('Backend', 'iq-block-country'); }
|
1718 |
echo "</td></tr></tbody>";
|
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: 5.2.
|
7 |
-
Stable tag: 1.2.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
Requires PHP: 5.6
|
@@ -233,6 +233,10 @@ be used.
|
|
233 |
|
234 |
== Changelog ==
|
235 |
|
|
|
|
|
|
|
|
|
236 |
= 1.2.5 =
|
237 |
|
238 |
* New: Mediapartners-Google service added
|
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: 5.2.2
|
7 |
+
Stable tag: 1.2.6
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
Requires PHP: 5.6
|
233 |
|
234 |
== Changelog ==
|
235 |
|
236 |
+
= 1.2.6 =
|
237 |
+
|
238 |
+
* Change: Added better support to detect if mbstring is available for usage.
|
239 |
+
|
240 |
= 1.2.5 =
|
241 |
|
242 |
* New: Mediapartners-Google service added
|