Version Description
- Bugfix: Category bug squashed
- Change: Altered text-domain
- New: Added export of all logging data to csv. This exports max of 1 month of blocked visitors from frontend & backend.
Download this release
Release Info
Developer | iqpascal |
Plugin | iQ Block Country |
Version | 1.1.22 |
Comparing to | |
See all releases |
Code changes from version 1.1.21 to 1.1.22
- iq-block-country.php +30 -4
- lang/en_EN.mo +0 -0
- lang/en_EN.po +347 -169
- lang/iqblockcountry-nl_NL.mo +0 -0
- lang/iqblockcountry-nl_NL.po +350 -176
- libs/blockcountry-checks.php +7 -6
- libs/blockcountry-settings.php +373 -131
- libs/blockcountry-validation.php +4 -4
- readme.txt +19 -13
iq-block-country.php
CHANGED
@@ -2,11 +2,13 @@
|
|
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.
|
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.
|
9 |
License: GPL2
|
|
|
|
|
10 |
*/
|
11 |
|
12 |
/* This script uses GeoLite Country from MaxMind (http://www.maxmind.com) which is available under terms of GPL/LGPL */
|
@@ -72,7 +74,7 @@ function iqblockcountry_buffer_flush() {
|
|
72 |
*/
|
73 |
function iqblockcountry_localization()
|
74 |
{
|
75 |
-
load_plugin_textdomain( '
|
76 |
}
|
77 |
|
78 |
/*
|
@@ -206,7 +208,7 @@ define("GEOIPAPIURL","http://geoip.webence.nl/geoipapi.php");
|
|
206 |
define("GEOIPAPIURLUS","http://us.geoip.webence.nl/geoipapi.php");
|
207 |
define("GEOIPAPICHECKURL","http://geoip.webence.nl/geoipapi-keycheck.php");
|
208 |
define("ADMINAPICHECKURL","http://tracking.webence.nl/adminapi-keycheck.php");
|
209 |
-
define("VERSION","1.1.
|
210 |
define("DBVERSION","121");
|
211 |
define("PLUGINPATH",plugin_dir_path( __FILE__ ));
|
212 |
|
@@ -221,7 +223,6 @@ require_once('libs/blockcountry-validation.php');
|
|
221 |
require_once('libs/blockcountry-logging.php');
|
222 |
require_once('libs/blockcountry-tracking.php');
|
223 |
require_once('libs/blockcountry-search-engines.php');
|
224 |
-
|
225 |
|
226 |
global $apiblacklist;
|
227 |
$apiblacklist = FALSE;
|
@@ -238,6 +239,31 @@ register_uninstall_hook(__file__, 'iqblockcountry_uninstall');
|
|
238 |
/* Clean logging database */
|
239 |
iqblockcountry_clean_db();
|
240 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
241 |
|
242 |
/*
|
243 |
* Check first if users want to block the backend.
|
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.22
|
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.
|
9 |
License: GPL2
|
10 |
+
Text Domain: iq-block-country
|
11 |
+
Domain Path: /lang
|
12 |
*/
|
13 |
|
14 |
/* This script uses GeoLite Country from MaxMind (http://www.maxmind.com) which is available under terms of GPL/LGPL */
|
74 |
*/
|
75 |
function iqblockcountry_localization()
|
76 |
{
|
77 |
+
load_plugin_textdomain( 'iq-block-country', false, dirname( plugin_basename( __FILE__ ) ) . '/lang' );
|
78 |
}
|
79 |
|
80 |
/*
|
208 |
define("GEOIPAPIURLUS","http://us.geoip.webence.nl/geoipapi.php");
|
209 |
define("GEOIPAPICHECKURL","http://geoip.webence.nl/geoipapi-keycheck.php");
|
210 |
define("ADMINAPICHECKURL","http://tracking.webence.nl/adminapi-keycheck.php");
|
211 |
+
define("VERSION","1.1.22");
|
212 |
define("DBVERSION","121");
|
213 |
define("PLUGINPATH",plugin_dir_path( __FILE__ ));
|
214 |
|
223 |
require_once('libs/blockcountry-logging.php');
|
224 |
require_once('libs/blockcountry-tracking.php');
|
225 |
require_once('libs/blockcountry-search-engines.php');
|
|
|
226 |
|
227 |
global $apiblacklist;
|
228 |
$apiblacklist = FALSE;
|
239 |
/* Clean logging database */
|
240 |
iqblockcountry_clean_db();
|
241 |
|
242 |
+
|
243 |
+
if (isset($_POST['action']))
|
244 |
+
{
|
245 |
+
$iqaction = filter_var($_POST['action'],FILTER_SANITIZE_STRING);
|
246 |
+
if ($iqaction == 'csvoutput') {
|
247 |
+
global $wpdb;
|
248 |
+
$output = "";
|
249 |
+
$table_name = $wpdb->prefix . "iqblock_logging";
|
250 |
+
$format = get_option('date_format') . ' ' . get_option('time_format');
|
251 |
+
foreach ($wpdb->get_results( "SELECT * FROM $table_name ORDER BY datetime ASC" ) as $row)
|
252 |
+
{
|
253 |
+
$datetime = strtotime($row->datetime);
|
254 |
+
$mysqldate = date($format, $datetime);
|
255 |
+
$output .= '"' . $mysqldate . '"' . ';"' . $row->ipaddress . '";"' . $row->url . '"'. "\n";
|
256 |
+
}
|
257 |
+
$iqtempvalue = preg_replace("/[^A-Za-z0-9]/", "", get_bloginfo());
|
258 |
+
$filename = $iqtempvalue . "-iqblockcountry-logging-export.csv";
|
259 |
+
header("Content-type: text/csv");
|
260 |
+
header("Content-Disposition: attachment; filename=$filename");
|
261 |
+
header("Pragma: no-cache");
|
262 |
+
header("Expires: 0");
|
263 |
+
echo $output;
|
264 |
+
exit();
|
265 |
+
}
|
266 |
+
}
|
267 |
|
268 |
/*
|
269 |
* Check first if users want to block the backend.
|
lang/en_EN.mo
CHANGED
Binary file
|
lang/en_EN.po
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: iQ Block Country\n"
|
4 |
-
"POT-Creation-Date: 2015-
|
5 |
-
"PO-Revision-Date: 2015-
|
6 |
"Last-Translator: Pascal <pascal@redeo.nl>\n"
|
7 |
"Language-Team: iQ Block Country <info@redeo.nl>\n"
|
8 |
"Language: English\n"
|
@@ -32,11 +32,17 @@ msgstr ""
|
|
32 |
msgid "Error occured: Could not download the GeoIP database from"
|
33 |
msgstr ""
|
34 |
|
35 |
-
#: libs/blockcountry-
|
36 |
-
msgid "
|
|
|
|
|
37 |
msgstr ""
|
38 |
|
39 |
-
#: libs/blockcountry-
|
|
|
|
|
|
|
|
|
40 |
msgid ""
|
41 |
"Please download this file from your own PC unzip this file and upload it "
|
42 |
"(via FTP for instance) to:"
|
@@ -78,391 +84,594 @@ msgstr ""
|
|
78 |
msgid "For more detailed instructions take a look at the documentation.."
|
79 |
msgstr ""
|
80 |
|
81 |
-
#: libs/blockcountry-settings.php:
|
82 |
msgid ""
|
83 |
"Check which country belongs to an IP Address according to the current "
|
84 |
"database."
|
85 |
msgstr ""
|
86 |
|
87 |
-
#: libs/blockcountry-settings.php:
|
88 |
msgid "IP Address to check:"
|
89 |
msgstr ""
|
90 |
|
91 |
-
#: libs/blockcountry-settings.php:
|
92 |
msgid "No country for"
|
93 |
msgstr ""
|
94 |
|
95 |
-
#: libs/blockcountry-settings.php:
|
96 |
msgid "could be found. Or"
|
97 |
msgstr ""
|
98 |
|
99 |
-
#: libs/blockcountry-settings.php:
|
100 |
msgid "is not a valid IPv4 or IPv6 IP address"
|
101 |
msgstr ""
|
102 |
|
103 |
-
#: libs/blockcountry-settings.php:
|
104 |
msgid "IP Adress"
|
105 |
msgstr ""
|
106 |
|
107 |
-
#: libs/blockcountry-settings.php:
|
108 |
msgid "belongs to"
|
109 |
msgstr ""
|
110 |
|
111 |
-
#: libs/blockcountry-settings.php:
|
112 |
msgid "This country is not permitted to visit the frontend of this website."
|
113 |
msgstr ""
|
114 |
|
115 |
-
#: libs/blockcountry-settings.php:
|
116 |
msgid "This country is not permitted to visit the backend of this website."
|
117 |
msgstr ""
|
118 |
|
119 |
-
#: libs/blockcountry-settings.php:
|
120 |
msgid "This ip is present in the blacklist."
|
121 |
msgstr ""
|
122 |
|
123 |
-
#: libs/blockcountry-settings.php:
|
124 |
msgid "Check IP address"
|
125 |
msgstr ""
|
126 |
|
127 |
-
#: libs/blockcountry-settings.php:
|
128 |
msgid "Active plugins"
|
129 |
msgstr ""
|
130 |
|
131 |
-
#: libs/blockcountry-settings.php:
|
132 |
msgid "Plugin name"
|
133 |
msgstr ""
|
134 |
|
135 |
-
#: libs/blockcountry-settings.php:
|
136 |
msgid "Version"
|
137 |
msgstr ""
|
138 |
|
139 |
-
#: libs/blockcountry-settings.php:
|
140 |
-
#: libs/blockcountry-settings.php:
|
141 |
msgid "URL"
|
142 |
msgstr ""
|
143 |
|
144 |
-
#: libs/blockcountry-settings.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
145 |
msgid "Export"
|
146 |
msgstr ""
|
147 |
|
148 |
-
#: libs/blockcountry-settings.php:
|
149 |
msgid ""
|
150 |
"When you click on <tt>Backup all settings</tt> button a backup of the iQ "
|
151 |
"Block Country configuration will be created."
|
152 |
msgstr ""
|
153 |
|
154 |
-
#: libs/blockcountry-settings.php:
|
155 |
msgid ""
|
156 |
"After exporting, you can either use the backup file to restore your settings "
|
157 |
"on this site again or copy the settings to another WordPress site."
|
158 |
msgstr ""
|
159 |
|
160 |
-
#: libs/blockcountry-settings.php:
|
161 |
msgid "Backup all settings"
|
162 |
msgstr ""
|
163 |
|
164 |
-
#: libs/blockcountry-settings.php:
|
165 |
msgid "Import"
|
166 |
msgstr ""
|
167 |
|
168 |
-
#: libs/blockcountry-settings.php:
|
169 |
msgid "Click the browse button and choose a zip file that you exported before."
|
170 |
msgstr ""
|
171 |
|
172 |
-
#: libs/blockcountry-settings.php:
|
173 |
msgid "Press Restore settings button, and let WordPress do the magic for you."
|
174 |
msgstr ""
|
175 |
|
176 |
-
#: libs/blockcountry-settings.php:
|
177 |
msgid "Restore settings"
|
178 |
msgstr ""
|
179 |
|
180 |
-
#: libs/blockcountry-settings.php:
|
181 |
-
#: libs/blockcountry-settings.php:
|
182 |
msgid "Something went wrong exporting this file"
|
183 |
msgstr ""
|
184 |
|
185 |
-
#: libs/blockcountry-settings.php:
|
186 |
msgid "Exporting settings..."
|
187 |
msgstr ""
|
188 |
|
189 |
-
#: libs/blockcountry-settings.php:
|
190 |
msgid "Something went wrong importing this file"
|
191 |
msgstr ""
|
192 |
|
193 |
-
#: libs/blockcountry-settings.php:
|
194 |
msgid "All options are restored successfully."
|
195 |
msgstr ""
|
196 |
|
197 |
-
#: libs/blockcountry-settings.php:
|
198 |
msgid "Invalid file."
|
199 |
msgstr ""
|
200 |
|
201 |
-
#: libs/blockcountry-settings.php:
|
202 |
msgid "No correct import or export option given."
|
203 |
msgstr ""
|
204 |
|
205 |
-
#: libs/blockcountry-settings.php:
|
206 |
msgid "Select which pages are blocked."
|
207 |
msgstr ""
|
208 |
|
209 |
-
#: libs/blockcountry-settings.php:
|
210 |
msgid "Do you want to block individual pages:"
|
211 |
msgstr ""
|
212 |
|
213 |
-
#: libs/blockcountry-settings.php:
|
214 |
msgid "If you do not select this option all pages will be blocked."
|
215 |
msgstr ""
|
216 |
|
217 |
-
#: libs/blockcountry-settings.php:
|
218 |
msgid "Select pages you want to block:"
|
219 |
msgstr ""
|
220 |
|
221 |
-
#: libs/blockcountry-settings.php:
|
222 |
-
#: libs/blockcountry-settings.php:
|
223 |
-
#: libs/blockcountry-settings.php:
|
224 |
-
#: libs/blockcountry-settings.php:
|
225 |
msgid "Save Changes"
|
226 |
msgstr ""
|
227 |
|
228 |
-
#: libs/blockcountry-settings.php:
|
229 |
msgid "Select which categories are blocked."
|
230 |
msgstr ""
|
231 |
|
232 |
-
#: libs/blockcountry-settings.php:
|
233 |
msgid "Do you want to block individual categories:"
|
234 |
msgstr ""
|
235 |
|
236 |
-
#: libs/blockcountry-settings.php:
|
237 |
msgid "If you do not select this option all blog articles will be blocked."
|
238 |
msgstr ""
|
239 |
|
240 |
-
#: libs/blockcountry-settings.php:
|
241 |
msgid "Do you want to block the homepage:"
|
242 |
msgstr ""
|
243 |
|
244 |
-
#: libs/blockcountry-settings.php:
|
245 |
msgid ""
|
246 |
"If you do not select this option visitors will not be blocked from your "
|
247 |
"homepage regardless of the categories you select."
|
248 |
msgstr ""
|
249 |
|
250 |
-
#: libs/blockcountry-settings.php:
|
251 |
msgid "Select categories you want to block:"
|
252 |
msgstr ""
|
253 |
|
254 |
-
#: libs/blockcountry-settings.php:
|
255 |
msgid "Select which post types are blocked."
|
256 |
msgstr ""
|
257 |
|
258 |
-
#: libs/blockcountry-settings.php:
|
259 |
msgid "Do you want to block individual post types:"
|
260 |
msgstr ""
|
261 |
|
262 |
-
#: libs/blockcountry-settings.php:
|
263 |
msgid "Select post types you want to block:"
|
264 |
msgstr ""
|
265 |
|
266 |
-
#: libs/blockcountry-settings.php:
|
267 |
msgid "Select which search engines are allowed."
|
268 |
msgstr ""
|
269 |
|
270 |
-
#: libs/blockcountry-settings.php:
|
271 |
msgid "Select which search engines you want to allow:"
|
272 |
msgstr ""
|
273 |
|
274 |
-
#: libs/blockcountry-settings.php:
|
275 |
msgid ""
|
276 |
"This will allow a search engine to your site despite if you blocked the "
|
277 |
"country."
|
278 |
msgstr ""
|
279 |
|
280 |
-
#: libs/blockcountry-settings.php:
|
281 |
msgid "Frontend options"
|
282 |
msgstr ""
|
283 |
|
284 |
-
#: libs/blockcountry-settings.php:
|
285 |
msgid ""
|
286 |
"Do not block visitors that are logged in from visiting frontend website:"
|
287 |
msgstr ""
|
288 |
|
289 |
-
#: libs/blockcountry-settings.php:
|
290 |
msgid "Block visitors from visiting the frontend of your website:"
|
291 |
msgstr ""
|
292 |
|
293 |
-
#: libs/blockcountry-settings.php:
|
294 |
msgid "Block visitors from using the search function of your website:"
|
295 |
msgstr ""
|
296 |
|
297 |
-
#: libs/blockcountry-settings.php:
|
298 |
msgid ""
|
299 |
"Select the countries that should be blocked from visiting your frontend:"
|
300 |
msgstr ""
|
301 |
|
302 |
-
#: libs/blockcountry-settings.php:
|
303 |
msgid "Use the CTRL key to select multiple countries"
|
304 |
msgstr ""
|
305 |
|
306 |
-
#: libs/blockcountry-settings.php:
|
307 |
msgid "Inverse the selection above:"
|
308 |
msgstr ""
|
309 |
|
310 |
-
#: libs/blockcountry-settings.php:
|
311 |
msgid ""
|
312 |
"If you select this option only the countries that are selected are "
|
313 |
"<em>allowed</em>."
|
314 |
msgstr ""
|
315 |
|
316 |
-
#: libs/blockcountry-settings.php:
|
317 |
msgid "Frontend whitelist IPv4 and/or IPv6 addresses:"
|
318 |
msgstr ""
|
319 |
|
320 |
-
#: libs/blockcountry-settings.php:
|
321 |
-
#: libs/blockcountry-settings.php:
|
322 |
msgid "Use a semicolon (;) to separate IP addresses"
|
323 |
msgstr ""
|
324 |
|
325 |
-
#: libs/blockcountry-settings.php:
|
326 |
msgid "Frontend blacklist IPv4 and/or IPv6 addresses:"
|
327 |
msgstr ""
|
328 |
|
329 |
-
#: libs/blockcountry-settings.php:
|
330 |
msgid "Backend Options"
|
331 |
msgstr ""
|
332 |
|
333 |
-
#: libs/blockcountry-settings.php:
|
334 |
msgid ""
|
335 |
"Block visitors from visiting the backend (administrator) of your website:"
|
336 |
msgstr ""
|
337 |
|
338 |
-
#: libs/blockcountry-settings.php:
|
339 |
msgid "Your IP address is"
|
340 |
msgstr ""
|
341 |
|
342 |
-
#: libs/blockcountry-settings.php:
|
343 |
msgid "The country that is listed for this IP address is"
|
344 |
msgstr ""
|
345 |
|
346 |
-
#: libs/blockcountry-settings.php:
|
347 |
msgid ""
|
348 |
"Do <strong>NOT</strong> set the 'Block visitors from visiting the backend "
|
349 |
"(administrator) of your website' and also select"
|
350 |
msgstr ""
|
351 |
|
352 |
-
#: libs/blockcountry-settings.php:
|
353 |
msgid "below."
|
354 |
msgstr ""
|
355 |
|
356 |
-
#: libs/blockcountry-settings.php:
|
357 |
msgid ""
|
358 |
"You will NOT be able to login the next time if you DO block your own country "
|
359 |
"from visiting the backend."
|
360 |
msgstr ""
|
361 |
|
362 |
-
#: libs/blockcountry-settings.php:
|
363 |
msgid "Select the countries that should be blocked from visiting your backend:"
|
364 |
msgstr ""
|
365 |
|
366 |
-
#: libs/blockcountry-settings.php:
|
367 |
msgid "Use the x behind the country to remove a country from this blocklist."
|
368 |
msgstr ""
|
369 |
|
370 |
-
#: libs/blockcountry-settings.php:
|
371 |
msgid "Backend whitelist IPv4 and/or IPv6 addresses:"
|
372 |
msgstr ""
|
373 |
|
374 |
-
#: libs/blockcountry-settings.php:
|
375 |
msgid "Backend blacklist IPv4 and/or IPv6 addresses:"
|
376 |
msgstr ""
|
377 |
|
378 |
-
#: libs/blockcountry-settings.php:
|
379 |
msgid "Overall statistics since start"
|
380 |
msgstr ""
|
381 |
|
382 |
-
#: libs/blockcountry-settings.php:
|
383 |
msgid "visitors blocked from the backend."
|
384 |
msgstr ""
|
385 |
|
386 |
-
#: libs/blockcountry-settings.php:
|
387 |
msgid "visitors blocked from the frontend."
|
388 |
msgstr ""
|
389 |
|
390 |
-
#: libs/blockcountry-settings.php:
|
391 |
msgid "Basic Options"
|
392 |
msgstr ""
|
393 |
|
394 |
-
#: libs/blockcountry-settings.php:
|
395 |
msgid "Message to display when people are blocked:"
|
396 |
msgstr ""
|
397 |
|
398 |
-
#: libs/blockcountry-settings.php:
|
399 |
msgid "Page to redirect to:"
|
400 |
msgstr ""
|
401 |
|
402 |
-
#: libs/blockcountry-settings.php:
|
403 |
msgid ""
|
404 |
"If you select a page here blocked visitors will be redirected to this page "
|
405 |
"instead of displaying above block message."
|
406 |
msgstr ""
|
407 |
|
408 |
-
#: libs/blockcountry-settings.php:
|
409 |
msgid "Choose a page..."
|
410 |
msgstr ""
|
411 |
|
412 |
-
#: libs/blockcountry-settings.php:
|
413 |
msgid "URL to redirect to:"
|
414 |
msgstr ""
|
415 |
|
416 |
-
#: libs/blockcountry-settings.php:
|
417 |
msgid ""
|
418 |
"If you enter a URL here blocked visitors will be redirected to this URL "
|
419 |
"instead of displaying above block message or redirected to a local page."
|
420 |
msgstr ""
|
421 |
|
422 |
-
#: libs/blockcountry-settings.php:
|
423 |
msgid "Send headers when user is blocked:"
|
424 |
msgstr ""
|
425 |
|
426 |
-
#: libs/blockcountry-settings.php:
|
427 |
msgid ""
|
428 |
"Under normal circumstances you should keep this selected! Only if you have "
|
429 |
"\"Cannot modify header information - headers already sent\" errors or if you "
|
430 |
"know what you are doing uncheck this."
|
431 |
msgstr ""
|
432 |
|
433 |
-
#: libs/blockcountry-settings.php:
|
434 |
msgid "Buffer output?:"
|
435 |
msgstr ""
|
436 |
|
437 |
-
#: libs/blockcountry-settings.php:
|
438 |
msgid ""
|
439 |
"You can use this option to buffer all output. This can be helpful in case "
|
440 |
"you have \"headers already sent\" issues."
|
441 |
msgstr ""
|
442 |
|
443 |
-
#: libs/blockcountry-settings.php:
|
444 |
msgid "Do not log IP addresses:"
|
445 |
msgstr ""
|
446 |
|
447 |
-
#: libs/blockcountry-settings.php:
|
448 |
msgid ""
|
449 |
"Check this box if the laws in your country do not permit you to log IP "
|
450 |
"addresses or if you do not want to log the ip addresses."
|
451 |
msgstr ""
|
452 |
|
453 |
-
#: libs/blockcountry-settings.php:
|
454 |
msgid "Number of rows on statistics page:"
|
455 |
msgstr ""
|
456 |
|
457 |
-
#: libs/blockcountry-settings.php:
|
458 |
msgid "How many rows do you want to display on each tab the statistics page."
|
459 |
msgstr ""
|
460 |
|
461 |
-
#: libs/blockcountry-settings.php:
|
462 |
msgid "Allow tracking:"
|
463 |
msgstr ""
|
464 |
|
465 |
-
#: libs/blockcountry-settings.php:
|
466 |
msgid ""
|
467 |
"This sends only the IP address and the number of attempts this ip address "
|
468 |
"tried to login to your backend and was blocked doing so to a central server. "
|
@@ -470,183 +679,152 @@ msgid ""
|
|
470 |
"countries."
|
471 |
msgstr ""
|
472 |
|
473 |
-
#: libs/blockcountry-settings.php:
|
474 |
msgid "GeoIP API Key:"
|
475 |
msgstr ""
|
476 |
|
477 |
-
#: libs/blockcountry-settings.php:
|
478 |
msgid ""
|
479 |
"If for some reason you cannot or do not want to download the MaxMind GeoIP "
|
480 |
"databases you will need an API key for the GeoIP api.<br />You can get an "
|
481 |
"API key from: "
|
482 |
msgstr ""
|
483 |
|
484 |
-
#: libs/blockcountry-settings.php:
|
485 |
msgid "GeoIP API Key Server Location:"
|
486 |
msgstr ""
|
487 |
|
488 |
-
#: libs/blockcountry-settings.php:
|
489 |
msgid "Choose a location closest to your own location."
|
490 |
msgstr ""
|
491 |
|
492 |
-
#: libs/blockcountry-settings.php:
|
493 |
msgid "Admin block API Key:"
|
494 |
msgstr ""
|
495 |
|
496 |
-
#: libs/blockcountry-settings.php:
|
497 |
msgid ""
|
498 |
"This is an experimantal feature. You do not need an API key for this plugin "
|
499 |
"to work."
|
500 |
msgstr ""
|
501 |
|
502 |
-
#: libs/blockcountry-settings.php:
|
503 |
msgid "Log all visits to the backend:"
|
504 |
msgstr ""
|
505 |
|
506 |
-
#: libs/blockcountry-settings.php:
|
507 |
msgid ""
|
508 |
"This logs all visits to the backend despite if they are blocked or not. This "
|
509 |
"is mainly for debugging purposes."
|
510 |
msgstr ""
|
511 |
|
512 |
-
#: libs/blockcountry-settings.php:
|
513 |
msgid "Accessibility options:"
|
514 |
msgstr ""
|
515 |
|
516 |
-
#: libs/blockcountry-settings.php:
|
517 |
msgid "Set this option if you cannot use the default country selection box."
|
518 |
msgstr ""
|
519 |
|
520 |
-
#: libs/blockcountry-settings.php:
|
521 |
msgid "Last blocked visits"
|
522 |
msgstr ""
|
523 |
|
524 |
-
#: libs/blockcountry-settings.php:
|
525 |
msgid "Date / Time"
|
526 |
msgstr ""
|
527 |
|
528 |
-
#: libs/blockcountry-settings.php:
|
529 |
msgid "IP Address"
|
530 |
msgstr ""
|
531 |
|
532 |
-
#: libs/blockcountry-settings.php:
|
533 |
msgid "Hostname"
|
534 |
msgstr ""
|
535 |
|
536 |
-
#: libs/blockcountry-settings.php:
|
537 |
msgid "Country"
|
538 |
msgstr ""
|
539 |
|
540 |
-
#: libs/blockcountry-settings.php:
|
541 |
msgid "Frontend/Backend"
|
542 |
msgstr ""
|
543 |
|
544 |
-
#: libs/blockcountry-settings.php:
|
545 |
msgid "Frontend"
|
546 |
msgstr ""
|
547 |
|
548 |
-
#: libs/blockcountry-settings.php:
|
549 |
msgid "Backend banlist"
|
550 |
msgstr ""
|
551 |
|
552 |
-
#: libs/blockcountry-settings.php:
|
553 |
msgid "Backend & Backend banlist"
|
554 |
msgstr ""
|
555 |
|
556 |
-
#: libs/blockcountry-settings.php:
|
557 |
msgid "Backend"
|
558 |
msgstr ""
|
559 |
|
560 |
-
#: libs/blockcountry-settings.php:
|
561 |
msgid "Top countries that are blocked"
|
562 |
msgstr ""
|
563 |
|
564 |
-
#: libs/blockcountry-settings.php:
|
565 |
-
#: libs/blockcountry-settings.php:
|
566 |
msgid "# of blocked attempts"
|
567 |
msgstr ""
|
568 |
|
569 |
-
#: libs/blockcountry-settings.php:
|
570 |
msgid "Top hosts that are blocked"
|
571 |
msgstr ""
|
572 |
|
573 |
-
#: libs/blockcountry-settings.php:
|
574 |
msgid "Top URLs that are blocked"
|
575 |
msgstr ""
|
576 |
|
577 |
-
#: libs/blockcountry-settings.php:
|
578 |
msgid "Clear database"
|
579 |
msgstr ""
|
580 |
|
581 |
-
#: libs/blockcountry-settings.php:
|
|
|
|
|
|
|
|
|
582 |
msgid ""
|
583 |
"You are not logging any information. Please uncheck the option 'Do not log "
|
584 |
"IP addresses' if this is not what you want."
|
585 |
msgstr ""
|
586 |
|
587 |
-
#: libs/blockcountry-settings.php:
|
588 |
msgid "Home"
|
589 |
msgstr ""
|
590 |
|
591 |
-
#: libs/blockcountry-settings.php:
|
592 |
msgid "Pages"
|
593 |
msgstr ""
|
594 |
|
595 |
-
#: libs/blockcountry-settings.php:
|
596 |
msgid "Categories"
|
597 |
msgstr ""
|
598 |
|
599 |
-
#: libs/blockcountry-settings.php:
|
600 |
msgid "Post types"
|
601 |
msgstr ""
|
602 |
|
603 |
-
#: libs/blockcountry-settings.php:
|
604 |
msgid "Search Engines"
|
605 |
msgstr ""
|
606 |
|
607 |
-
#: libs/blockcountry-settings.php:
|
608 |
msgid "Tools"
|
609 |
msgstr ""
|
610 |
|
611 |
-
#: libs/blockcountry-settings.php:
|
612 |
msgid "Logging"
|
613 |
msgstr ""
|
614 |
|
615 |
-
#: libs/blockcountry-settings.php:
|
616 |
msgid "Import/Export"
|
617 |
msgstr ""
|
618 |
-
|
619 |
-
#: libs/blockcountry-retrieve-geodb.php:38
|
620 |
-
#: libs/blockcountry-retrieve-geodb.php:49
|
621 |
-
msgid "Error occured: Could not download the GeoIP database from"
|
622 |
-
msgstr ""
|
623 |
-
|
624 |
-
#: libs/blockcountry-retrieve-geodb.php:39
|
625 |
-
msgid ""
|
626 |
-
"MaxMind has blocked requests from your IP address for 24 hours. Please check "
|
627 |
-
"again in 24 hours or download this file from your own PC"
|
628 |
-
msgstr ""
|
629 |
-
|
630 |
-
#: libs/blockcountry-retrieve-geodb.php:40
|
631 |
-
msgid "Unzip this file and upload it (via FTP for instance) to:"
|
632 |
-
msgstr ""
|
633 |
-
|
634 |
-
#: libs/blockcountry-retrieve-geodb.php:50
|
635 |
-
msgid ""
|
636 |
-
"Please download this file from your own PC unzip this file and upload it "
|
637 |
-
"(via FTP for instance) to:"
|
638 |
-
msgstr ""
|
639 |
-
|
640 |
-
#: libs/blockcountry-retrieve-geodb.php:77
|
641 |
-
msgid "Finished downloading"
|
642 |
-
msgstr ""
|
643 |
-
|
644 |
-
#: libs/blockcountry-retrieve-geodb.php:85
|
645 |
-
msgid "Fatal error: GeoIP"
|
646 |
-
msgstr ""
|
647 |
-
|
648 |
-
#: libs/blockcountry-retrieve-geodb.php:85
|
649 |
-
msgid ""
|
650 |
-
"database does not exists. This plugin will not work until the database file "
|
651 |
-
"is present."
|
652 |
-
msgstr ""
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: iQ Block Country\n"
|
4 |
+
"POT-Creation-Date: 2015-10-02 15:01+0100\n"
|
5 |
+
"PO-Revision-Date: 2015-10-02 15:01+0100\n"
|
6 |
"Last-Translator: Pascal <pascal@redeo.nl>\n"
|
7 |
"Language-Team: iQ Block Country <info@redeo.nl>\n"
|
8 |
"Language: English\n"
|
32 |
msgid "Error occured: Could not download the GeoIP database from"
|
33 |
msgstr ""
|
34 |
|
35 |
+
#: libs/blockcountry-retrieve-geodb.php:39
|
36 |
+
msgid ""
|
37 |
+
"MaxMind has blocked requests from your IP address for 24 hours. Please check "
|
38 |
+
"again in 24 hours or download this file from your own PC"
|
39 |
msgstr ""
|
40 |
|
41 |
+
#: libs/blockcountry-retrieve-geodb.php:40
|
42 |
+
msgid "Unzip this file and upload it (via FTP for instance) to:"
|
43 |
+
msgstr ""
|
44 |
+
|
45 |
+
#: libs/blockcountry-retrieve-geodb.php:50
|
46 |
msgid ""
|
47 |
"Please download this file from your own PC unzip this file and upload it "
|
48 |
"(via FTP for instance) to:"
|
84 |
msgid "For more detailed instructions take a look at the documentation.."
|
85 |
msgstr ""
|
86 |
|
87 |
+
#: libs/blockcountry-settings.php:207
|
88 |
msgid ""
|
89 |
"Check which country belongs to an IP Address according to the current "
|
90 |
"database."
|
91 |
msgstr ""
|
92 |
|
93 |
+
#: libs/blockcountry-settings.php:212
|
94 |
msgid "IP Address to check:"
|
95 |
msgstr ""
|
96 |
|
97 |
+
#: libs/blockcountry-settings.php:228
|
98 |
msgid "No country for"
|
99 |
msgstr ""
|
100 |
|
101 |
+
#: libs/blockcountry-settings.php:228
|
102 |
msgid "could be found. Or"
|
103 |
msgstr ""
|
104 |
|
105 |
+
#: libs/blockcountry-settings.php:228
|
106 |
msgid "is not a valid IPv4 or IPv6 IP address"
|
107 |
msgstr ""
|
108 |
|
109 |
+
#: libs/blockcountry-settings.php:233
|
110 |
msgid "IP Adress"
|
111 |
msgstr ""
|
112 |
|
113 |
+
#: libs/blockcountry-settings.php:233
|
114 |
msgid "belongs to"
|
115 |
msgstr ""
|
116 |
|
117 |
+
#: libs/blockcountry-settings.php:239 libs/blockcountry-settings.php:244
|
118 |
msgid "This country is not permitted to visit the frontend of this website."
|
119 |
msgstr ""
|
120 |
|
121 |
+
#: libs/blockcountry-settings.php:253 libs/blockcountry-settings.php:260
|
122 |
msgid "This country is not permitted to visit the backend of this website."
|
123 |
msgstr ""
|
124 |
|
125 |
+
#: libs/blockcountry-settings.php:266
|
126 |
msgid "This ip is present in the blacklist."
|
127 |
msgstr ""
|
128 |
|
129 |
+
#: libs/blockcountry-settings.php:272
|
130 |
msgid "Check IP address"
|
131 |
msgstr ""
|
132 |
|
133 |
+
#: libs/blockcountry-settings.php:278
|
134 |
msgid "Active plugins"
|
135 |
msgstr ""
|
136 |
|
137 |
+
#: libs/blockcountry-settings.php:285
|
138 |
msgid "Plugin name"
|
139 |
msgstr ""
|
140 |
|
141 |
+
#: libs/blockcountry-settings.php:285
|
142 |
msgid "Version"
|
143 |
msgstr ""
|
144 |
|
145 |
+
#: libs/blockcountry-settings.php:285 libs/blockcountry-settings.php:1310
|
146 |
+
#: libs/blockcountry-settings.php:1353
|
147 |
msgid "URL"
|
148 |
msgstr ""
|
149 |
|
150 |
+
#: libs/blockcountry-settings.php:304
|
151 |
+
msgid "none"
|
152 |
+
msgstr ""
|
153 |
+
|
154 |
+
#: libs/blockcountry-settings.php:310 libs/blockcountry-settings.php:311
|
155 |
+
msgid "unavailable"
|
156 |
+
msgstr ""
|
157 |
+
|
158 |
+
#: libs/blockcountry-settings.php:315
|
159 |
+
msgid "File System Information"
|
160 |
+
msgstr ""
|
161 |
+
|
162 |
+
#: libs/blockcountry-settings.php:318
|
163 |
+
msgid "Website Root Folder"
|
164 |
+
msgstr ""
|
165 |
+
|
166 |
+
#: libs/blockcountry-settings.php:319 libs/blockcountry-settings.php:521
|
167 |
+
msgid "Document Root Path"
|
168 |
+
msgstr ""
|
169 |
+
|
170 |
+
#: libs/blockcountry-settings.php:323
|
171 |
+
msgid "Database Information"
|
172 |
+
msgstr ""
|
173 |
+
|
174 |
+
#: libs/blockcountry-settings.php:325
|
175 |
+
msgid "MySQL Database Version"
|
176 |
+
msgstr ""
|
177 |
+
|
178 |
+
#: libs/blockcountry-settings.php:326
|
179 |
+
msgid "MySQL Client Version"
|
180 |
+
msgstr ""
|
181 |
+
|
182 |
+
#: libs/blockcountry-settings.php:327
|
183 |
+
msgid "Database Host"
|
184 |
+
msgstr ""
|
185 |
+
|
186 |
+
#: libs/blockcountry-settings.php:333
|
187 |
+
msgid "Not Set"
|
188 |
+
msgstr ""
|
189 |
+
|
190 |
+
#: libs/blockcountry-settings.php:335 libs/blockcountry-settings.php:415
|
191 |
+
#: libs/blockcountry-settings.php:423 libs/blockcountry-settings.php:431
|
192 |
+
#: libs/blockcountry-settings.php:439 libs/blockcountry-settings.php:447
|
193 |
+
#: libs/blockcountry-settings.php:456 libs/blockcountry-settings.php:473
|
194 |
+
msgid "Off"
|
195 |
+
msgstr ""
|
196 |
+
|
197 |
+
#: libs/blockcountry-settings.php:338
|
198 |
+
msgid "SQL Mode"
|
199 |
+
msgstr ""
|
200 |
+
|
201 |
+
#: libs/blockcountry-settings.php:342
|
202 |
+
msgid "Server Information"
|
203 |
+
msgstr ""
|
204 |
+
|
205 |
+
#: libs/blockcountry-settings.php:347
|
206 |
+
msgid "Server IP Address"
|
207 |
+
msgstr ""
|
208 |
+
|
209 |
+
#: libs/blockcountry-settings.php:349
|
210 |
+
msgid "Server Type"
|
211 |
+
msgstr ""
|
212 |
+
|
213 |
+
#: libs/blockcountry-settings.php:350
|
214 |
+
msgid "Operating System"
|
215 |
+
msgstr ""
|
216 |
+
|
217 |
+
#: libs/blockcountry-settings.php:351
|
218 |
+
msgid "Browser Compression Supported"
|
219 |
+
msgstr ""
|
220 |
+
|
221 |
+
#: libs/blockcountry-settings.php:367
|
222 |
+
msgid "undefined"
|
223 |
+
msgstr ""
|
224 |
+
|
225 |
+
#: libs/blockcountry-settings.php:374
|
226 |
+
msgid "PHP Process User (UID:GID)"
|
227 |
+
msgstr ""
|
228 |
+
|
229 |
+
#: libs/blockcountry-settings.php:379
|
230 |
+
msgid "PHP Information"
|
231 |
+
msgstr ""
|
232 |
+
|
233 |
+
#: libs/blockcountry-settings.php:384
|
234 |
+
msgid "PHP Version"
|
235 |
+
msgstr ""
|
236 |
+
|
237 |
+
#: libs/blockcountry-settings.php:385
|
238 |
+
msgid "PHP Memory Usage"
|
239 |
+
msgstr ""
|
240 |
+
|
241 |
+
#: libs/blockcountry-settings.php:385
|
242 |
+
msgid " MB"
|
243 |
+
msgstr ""
|
244 |
+
|
245 |
+
#: libs/blockcountry-settings.php:391 libs/blockcountry-settings.php:399
|
246 |
+
#: libs/blockcountry-settings.php:407 libs/blockcountry-settings.php:464
|
247 |
+
msgid "N/A"
|
248 |
+
msgstr ""
|
249 |
+
|
250 |
+
#: libs/blockcountry-settings.php:394
|
251 |
+
msgid "PHP Memory Limit"
|
252 |
+
msgstr ""
|
253 |
+
|
254 |
+
#: libs/blockcountry-settings.php:402
|
255 |
+
msgid "PHP Max Upload Size"
|
256 |
+
msgstr ""
|
257 |
+
|
258 |
+
#: libs/blockcountry-settings.php:410
|
259 |
+
msgid "PHP Max Post Size"
|
260 |
+
msgstr ""
|
261 |
+
|
262 |
+
#: libs/blockcountry-settings.php:413 libs/blockcountry-settings.php:421
|
263 |
+
#: libs/blockcountry-settings.php:429 libs/blockcountry-settings.php:437
|
264 |
+
#: libs/blockcountry-settings.php:445 libs/blockcountry-settings.php:454
|
265 |
+
#: libs/blockcountry-settings.php:471
|
266 |
+
msgid "On"
|
267 |
+
msgstr ""
|
268 |
+
|
269 |
+
#: libs/blockcountry-settings.php:418
|
270 |
+
msgid "PHP Safe Mode"
|
271 |
+
msgstr ""
|
272 |
+
|
273 |
+
#: libs/blockcountry-settings.php:426
|
274 |
+
msgid "PHP Allow URL fopen"
|
275 |
+
msgstr ""
|
276 |
+
|
277 |
+
#: libs/blockcountry-settings.php:434
|
278 |
+
msgid "PHP Allow URL Include"
|
279 |
+
msgstr ""
|
280 |
+
|
281 |
+
#: libs/blockcountry-settings.php:442
|
282 |
+
msgid "PHP Display Errors"
|
283 |
+
msgstr ""
|
284 |
+
|
285 |
+
#: libs/blockcountry-settings.php:450
|
286 |
+
msgid "PHP Display Startup Errors"
|
287 |
+
msgstr ""
|
288 |
+
|
289 |
+
#: libs/blockcountry-settings.php:459
|
290 |
+
msgid "PHP Expose PHP"
|
291 |
+
msgstr ""
|
292 |
+
|
293 |
+
#: libs/blockcountry-settings.php:467
|
294 |
+
msgid "PHP Max Script Execution Time"
|
295 |
+
msgstr ""
|
296 |
+
|
297 |
+
#: libs/blockcountry-settings.php:468
|
298 |
+
msgid "Seconds"
|
299 |
+
msgstr ""
|
300 |
+
|
301 |
+
#: libs/blockcountry-settings.php:476
|
302 |
+
msgid "PHP open_basedir"
|
303 |
+
msgstr ""
|
304 |
+
|
305 |
+
#: libs/blockcountry-settings.php:479 libs/blockcountry-settings.php:487
|
306 |
+
msgid "Yes"
|
307 |
+
msgstr ""
|
308 |
+
|
309 |
+
#: libs/blockcountry-settings.php:481 libs/blockcountry-settings.php:489
|
310 |
+
msgid "No"
|
311 |
+
msgstr ""
|
312 |
+
|
313 |
+
#: libs/blockcountry-settings.php:484
|
314 |
+
msgid "PHP XML Support"
|
315 |
+
msgstr ""
|
316 |
+
|
317 |
+
#: libs/blockcountry-settings.php:492
|
318 |
+
msgid "PHP IPTC Support"
|
319 |
+
msgstr ""
|
320 |
+
|
321 |
+
#: libs/blockcountry-settings.php:494
|
322 |
+
msgid "Disabled PHP Functions"
|
323 |
+
msgstr ""
|
324 |
+
|
325 |
+
#: libs/blockcountry-settings.php:501
|
326 |
+
msgid "Wordpress info"
|
327 |
+
msgstr ""
|
328 |
+
|
329 |
+
#: libs/blockcountry-settings.php:506
|
330 |
+
msgid "is enabled"
|
331 |
+
msgstr ""
|
332 |
+
|
333 |
+
#: libs/blockcountry-settings.php:508
|
334 |
+
msgid "is disabled"
|
335 |
+
msgstr ""
|
336 |
+
|
337 |
+
#: libs/blockcountry-settings.php:511
|
338 |
+
msgid " Multisite"
|
339 |
+
msgstr ""
|
340 |
+
|
341 |
+
#: libs/blockcountry-settings.php:514
|
342 |
+
msgid "are enabled"
|
343 |
+
msgstr ""
|
344 |
+
|
345 |
+
#: libs/blockcountry-settings.php:516
|
346 |
+
msgid "are disabled"
|
347 |
+
msgstr ""
|
348 |
+
|
349 |
+
#: libs/blockcountry-settings.php:519
|
350 |
+
msgid "Permalinks"
|
351 |
+
msgstr ""
|
352 |
+
|
353 |
+
#: libs/blockcountry-settings.php:536
|
354 |
msgid "Export"
|
355 |
msgstr ""
|
356 |
|
357 |
+
#: libs/blockcountry-settings.php:537
|
358 |
msgid ""
|
359 |
"When you click on <tt>Backup all settings</tt> button a backup of the iQ "
|
360 |
"Block Country configuration will be created."
|
361 |
msgstr ""
|
362 |
|
363 |
+
#: libs/blockcountry-settings.php:538
|
364 |
msgid ""
|
365 |
"After exporting, you can either use the backup file to restore your settings "
|
366 |
"on this site again or copy the settings to another WordPress site."
|
367 |
msgstr ""
|
368 |
|
369 |
+
#: libs/blockcountry-settings.php:542
|
370 |
msgid "Backup all settings"
|
371 |
msgstr ""
|
372 |
|
373 |
+
#: libs/blockcountry-settings.php:549
|
374 |
msgid "Import"
|
375 |
msgstr ""
|
376 |
|
377 |
+
#: libs/blockcountry-settings.php:550
|
378 |
msgid "Click the browse button and choose a zip file that you exported before."
|
379 |
msgstr ""
|
380 |
|
381 |
+
#: libs/blockcountry-settings.php:551
|
382 |
msgid "Press Restore settings button, and let WordPress do the magic for you."
|
383 |
msgstr ""
|
384 |
|
385 |
+
#: libs/blockcountry-settings.php:556
|
386 |
msgid "Restore settings"
|
387 |
msgstr ""
|
388 |
|
389 |
+
#: libs/blockcountry-settings.php:579 libs/blockcountry-settings.php:582
|
390 |
+
#: libs/blockcountry-settings.php:591
|
391 |
msgid "Something went wrong exporting this file"
|
392 |
msgstr ""
|
393 |
|
394 |
+
#: libs/blockcountry-settings.php:594
|
395 |
msgid "Exporting settings..."
|
396 |
msgstr ""
|
397 |
|
398 |
+
#: libs/blockcountry-settings.php:609
|
399 |
msgid "Something went wrong importing this file"
|
400 |
msgstr ""
|
401 |
|
402 |
+
#: libs/blockcountry-settings.php:626
|
403 |
msgid "All options are restored successfully."
|
404 |
msgstr ""
|
405 |
|
406 |
+
#: libs/blockcountry-settings.php:629
|
407 |
msgid "Invalid file."
|
408 |
msgstr ""
|
409 |
|
410 |
+
#: libs/blockcountry-settings.php:634
|
411 |
msgid "No correct import or export option given."
|
412 |
msgstr ""
|
413 |
|
414 |
+
#: libs/blockcountry-settings.php:643
|
415 |
msgid "Select which pages are blocked."
|
416 |
msgstr ""
|
417 |
|
418 |
+
#: libs/blockcountry-settings.php:650
|
419 |
msgid "Do you want to block individual pages:"
|
420 |
msgstr ""
|
421 |
|
422 |
+
#: libs/blockcountry-settings.php:651
|
423 |
msgid "If you do not select this option all pages will be blocked."
|
424 |
msgstr ""
|
425 |
|
426 |
+
#: libs/blockcountry-settings.php:656
|
427 |
msgid "Select pages you want to block:"
|
428 |
msgstr ""
|
429 |
|
430 |
+
#: libs/blockcountry-settings.php:678 libs/blockcountry-settings.php:732
|
431 |
+
#: libs/blockcountry-settings.php:780 libs/blockcountry-settings.php:825
|
432 |
+
#: libs/blockcountry-settings.php:953 libs/blockcountry-settings.php:1085
|
433 |
+
#: libs/blockcountry-settings.php:1278
|
434 |
msgid "Save Changes"
|
435 |
msgstr ""
|
436 |
|
437 |
+
#: libs/blockcountry-settings.php:691
|
438 |
msgid "Select which categories are blocked."
|
439 |
msgstr ""
|
440 |
|
441 |
+
#: libs/blockcountry-settings.php:698
|
442 |
msgid "Do you want to block individual categories:"
|
443 |
msgstr ""
|
444 |
|
445 |
+
#: libs/blockcountry-settings.php:699
|
446 |
msgid "If you do not select this option all blog articles will be blocked."
|
447 |
msgstr ""
|
448 |
|
449 |
+
#: libs/blockcountry-settings.php:704
|
450 |
msgid "Do you want to block the homepage:"
|
451 |
msgstr ""
|
452 |
|
453 |
+
#: libs/blockcountry-settings.php:705
|
454 |
msgid ""
|
455 |
"If you do not select this option visitors will not be blocked from your "
|
456 |
"homepage regardless of the categories you select."
|
457 |
msgstr ""
|
458 |
|
459 |
+
#: libs/blockcountry-settings.php:710
|
460 |
msgid "Select categories you want to block:"
|
461 |
msgstr ""
|
462 |
|
463 |
+
#: libs/blockcountry-settings.php:746
|
464 |
msgid "Select which post types are blocked."
|
465 |
msgstr ""
|
466 |
|
467 |
+
#: libs/blockcountry-settings.php:753
|
468 |
msgid "Do you want to block individual post types:"
|
469 |
msgstr ""
|
470 |
|
471 |
+
#: libs/blockcountry-settings.php:758
|
472 |
msgid "Select post types you want to block:"
|
473 |
msgstr ""
|
474 |
|
475 |
+
#: libs/blockcountry-settings.php:795
|
476 |
msgid "Select which search engines are allowed."
|
477 |
msgstr ""
|
478 |
|
479 |
+
#: libs/blockcountry-settings.php:802
|
480 |
msgid "Select which search engines you want to allow:"
|
481 |
msgstr ""
|
482 |
|
483 |
+
#: libs/blockcountry-settings.php:803
|
484 |
msgid ""
|
485 |
"This will allow a search engine to your site despite if you blocked the "
|
486 |
"country."
|
487 |
msgstr ""
|
488 |
|
489 |
+
#: libs/blockcountry-settings.php:840
|
490 |
msgid "Frontend options"
|
491 |
msgstr ""
|
492 |
|
493 |
+
#: libs/blockcountry-settings.php:874
|
494 |
msgid ""
|
495 |
"Do not block visitors that are logged in from visiting frontend website:"
|
496 |
msgstr ""
|
497 |
|
498 |
+
#: libs/blockcountry-settings.php:880
|
499 |
msgid "Block visitors from visiting the frontend of your website:"
|
500 |
msgstr ""
|
501 |
|
502 |
+
#: libs/blockcountry-settings.php:886
|
503 |
msgid "Block visitors from using the search function of your website:"
|
504 |
msgstr ""
|
505 |
|
506 |
+
#: libs/blockcountry-settings.php:892
|
507 |
msgid ""
|
508 |
"Select the countries that should be blocked from visiting your frontend:"
|
509 |
msgstr ""
|
510 |
|
511 |
+
#: libs/blockcountry-settings.php:893
|
512 |
msgid "Use the CTRL key to select multiple countries"
|
513 |
msgstr ""
|
514 |
|
515 |
+
#: libs/blockcountry-settings.php:930 libs/blockcountry-settings.php:1061
|
516 |
msgid "Inverse the selection above:"
|
517 |
msgstr ""
|
518 |
|
519 |
+
#: libs/blockcountry-settings.php:931 libs/blockcountry-settings.php:1062
|
520 |
msgid ""
|
521 |
"If you select this option only the countries that are selected are "
|
522 |
"<em>allowed</em>."
|
523 |
msgstr ""
|
524 |
|
525 |
+
#: libs/blockcountry-settings.php:936
|
526 |
msgid "Frontend whitelist IPv4 and/or IPv6 addresses:"
|
527 |
msgstr ""
|
528 |
|
529 |
+
#: libs/blockcountry-settings.php:936 libs/blockcountry-settings.php:944
|
530 |
+
#: libs/blockcountry-settings.php:1068 libs/blockcountry-settings.php:1076
|
531 |
msgid "Use a semicolon (;) to separate IP addresses"
|
532 |
msgstr ""
|
533 |
|
534 |
+
#: libs/blockcountry-settings.php:944
|
535 |
msgid "Frontend blacklist IPv4 and/or IPv6 addresses:"
|
536 |
msgstr ""
|
537 |
|
538 |
+
#: libs/blockcountry-settings.php:973
|
539 |
msgid "Backend Options"
|
540 |
msgstr ""
|
541 |
|
542 |
+
#: libs/blockcountry-settings.php:1007
|
543 |
msgid ""
|
544 |
"Block visitors from visiting the backend (administrator) of your website:"
|
545 |
msgstr ""
|
546 |
|
547 |
+
#: libs/blockcountry-settings.php:1015
|
548 |
msgid "Your IP address is"
|
549 |
msgstr ""
|
550 |
|
551 |
+
#: libs/blockcountry-settings.php:1015
|
552 |
msgid "The country that is listed for this IP address is"
|
553 |
msgstr ""
|
554 |
|
555 |
+
#: libs/blockcountry-settings.php:1016
|
556 |
msgid ""
|
557 |
"Do <strong>NOT</strong> set the 'Block visitors from visiting the backend "
|
558 |
"(administrator) of your website' and also select"
|
559 |
msgstr ""
|
560 |
|
561 |
+
#: libs/blockcountry-settings.php:1016
|
562 |
msgid "below."
|
563 |
msgstr ""
|
564 |
|
565 |
+
#: libs/blockcountry-settings.php:1017
|
566 |
msgid ""
|
567 |
"You will NOT be able to login the next time if you DO block your own country "
|
568 |
"from visiting the backend."
|
569 |
msgstr ""
|
570 |
|
571 |
+
#: libs/blockcountry-settings.php:1022
|
572 |
msgid "Select the countries that should be blocked from visiting your backend:"
|
573 |
msgstr ""
|
574 |
|
575 |
+
#: libs/blockcountry-settings.php:1023
|
576 |
msgid "Use the x behind the country to remove a country from this blocklist."
|
577 |
msgstr ""
|
578 |
|
579 |
+
#: libs/blockcountry-settings.php:1068
|
580 |
msgid "Backend whitelist IPv4 and/or IPv6 addresses:"
|
581 |
msgstr ""
|
582 |
|
583 |
+
#: libs/blockcountry-settings.php:1076
|
584 |
msgid "Backend blacklist IPv4 and/or IPv6 addresses:"
|
585 |
msgstr ""
|
586 |
|
587 |
+
#: libs/blockcountry-settings.php:1106
|
588 |
msgid "Overall statistics since start"
|
589 |
msgstr ""
|
590 |
|
591 |
+
#: libs/blockcountry-settings.php:1109
|
592 |
msgid "visitors blocked from the backend."
|
593 |
msgstr ""
|
594 |
|
595 |
+
#: libs/blockcountry-settings.php:1111
|
596 |
msgid "visitors blocked from the frontend."
|
597 |
msgstr ""
|
598 |
|
599 |
+
#: libs/blockcountry-settings.php:1115
|
600 |
msgid "Basic Options"
|
601 |
msgstr ""
|
602 |
|
603 |
+
#: libs/blockcountry-settings.php:1150
|
604 |
msgid "Message to display when people are blocked:"
|
605 |
msgstr ""
|
606 |
|
607 |
+
#: libs/blockcountry-settings.php:1161
|
608 |
msgid "Page to redirect to:"
|
609 |
msgstr ""
|
610 |
|
611 |
+
#: libs/blockcountry-settings.php:1162
|
612 |
msgid ""
|
613 |
"If you select a page here blocked visitors will be redirected to this page "
|
614 |
"instead of displaying above block message."
|
615 |
msgstr ""
|
616 |
|
617 |
+
#: libs/blockcountry-settings.php:1168
|
618 |
msgid "Choose a page..."
|
619 |
msgstr ""
|
620 |
|
621 |
+
#: libs/blockcountry-settings.php:1183
|
622 |
msgid "URL to redirect to:"
|
623 |
msgstr ""
|
624 |
|
625 |
+
#: libs/blockcountry-settings.php:1184
|
626 |
msgid ""
|
627 |
"If you enter a URL here blocked visitors will be redirected to this URL "
|
628 |
"instead of displaying above block message or redirected to a local page."
|
629 |
msgstr ""
|
630 |
|
631 |
+
#: libs/blockcountry-settings.php:1191
|
632 |
msgid "Send headers when user is blocked:"
|
633 |
msgstr ""
|
634 |
|
635 |
+
#: libs/blockcountry-settings.php:1192
|
636 |
msgid ""
|
637 |
"Under normal circumstances you should keep this selected! Only if you have "
|
638 |
"\"Cannot modify header information - headers already sent\" errors or if you "
|
639 |
"know what you are doing uncheck this."
|
640 |
msgstr ""
|
641 |
|
642 |
+
#: libs/blockcountry-settings.php:1198
|
643 |
msgid "Buffer output?:"
|
644 |
msgstr ""
|
645 |
|
646 |
+
#: libs/blockcountry-settings.php:1199
|
647 |
msgid ""
|
648 |
"You can use this option to buffer all output. This can be helpful in case "
|
649 |
"you have \"headers already sent\" issues."
|
650 |
msgstr ""
|
651 |
|
652 |
+
#: libs/blockcountry-settings.php:1205
|
653 |
msgid "Do not log IP addresses:"
|
654 |
msgstr ""
|
655 |
|
656 |
+
#: libs/blockcountry-settings.php:1206
|
657 |
msgid ""
|
658 |
"Check this box if the laws in your country do not permit you to log IP "
|
659 |
"addresses or if you do not want to log the ip addresses."
|
660 |
msgstr ""
|
661 |
|
662 |
+
#: libs/blockcountry-settings.php:1213
|
663 |
msgid "Number of rows on statistics page:"
|
664 |
msgstr ""
|
665 |
|
666 |
+
#: libs/blockcountry-settings.php:1214
|
667 |
msgid "How many rows do you want to display on each tab the statistics page."
|
668 |
msgstr ""
|
669 |
|
670 |
+
#: libs/blockcountry-settings.php:1229
|
671 |
msgid "Allow tracking:"
|
672 |
msgstr ""
|
673 |
|
674 |
+
#: libs/blockcountry-settings.php:1230
|
675 |
msgid ""
|
676 |
"This sends only the IP address and the number of attempts this ip address "
|
677 |
"tried to login to your backend and was blocked doing so to a central server. "
|
679 |
"countries."
|
680 |
msgstr ""
|
681 |
|
682 |
+
#: libs/blockcountry-settings.php:1236
|
683 |
msgid "GeoIP API Key:"
|
684 |
msgstr ""
|
685 |
|
686 |
+
#: libs/blockcountry-settings.php:1237
|
687 |
msgid ""
|
688 |
"If for some reason you cannot or do not want to download the MaxMind GeoIP "
|
689 |
"databases you will need an API key for the GeoIP api.<br />You can get an "
|
690 |
"API key from: "
|
691 |
msgstr ""
|
692 |
|
693 |
+
#: libs/blockcountry-settings.php:1245
|
694 |
msgid "GeoIP API Key Server Location:"
|
695 |
msgstr ""
|
696 |
|
697 |
+
#: libs/blockcountry-settings.php:1246
|
698 |
msgid "Choose a location closest to your own location."
|
699 |
msgstr ""
|
700 |
|
701 |
+
#: libs/blockcountry-settings.php:1254
|
702 |
msgid "Admin block API Key:"
|
703 |
msgstr ""
|
704 |
|
705 |
+
#: libs/blockcountry-settings.php:1255
|
706 |
msgid ""
|
707 |
"This is an experimantal feature. You do not need an API key for this plugin "
|
708 |
"to work."
|
709 |
msgstr ""
|
710 |
|
711 |
+
#: libs/blockcountry-settings.php:1262
|
712 |
msgid "Log all visits to the backend:"
|
713 |
msgstr ""
|
714 |
|
715 |
+
#: libs/blockcountry-settings.php:1263
|
716 |
msgid ""
|
717 |
"This logs all visits to the backend despite if they are blocked or not. This "
|
718 |
"is mainly for debugging purposes."
|
719 |
msgstr ""
|
720 |
|
721 |
+
#: libs/blockcountry-settings.php:1270
|
722 |
msgid "Accessibility options:"
|
723 |
msgstr ""
|
724 |
|
725 |
+
#: libs/blockcountry-settings.php:1271
|
726 |
msgid "Set this option if you cannot use the default country selection box."
|
727 |
msgstr ""
|
728 |
|
729 |
+
#: libs/blockcountry-settings.php:1296
|
730 |
msgid "Last blocked visits"
|
731 |
msgstr ""
|
732 |
|
733 |
+
#: libs/blockcountry-settings.php:1310
|
734 |
msgid "Date / Time"
|
735 |
msgstr ""
|
736 |
|
737 |
+
#: libs/blockcountry-settings.php:1310 libs/blockcountry-settings.php:1342
|
738 |
msgid "IP Address"
|
739 |
msgstr ""
|
740 |
|
741 |
+
#: libs/blockcountry-settings.php:1310 libs/blockcountry-settings.php:1342
|
742 |
msgid "Hostname"
|
743 |
msgstr ""
|
744 |
|
745 |
+
#: libs/blockcountry-settings.php:1310 libs/blockcountry-settings.php:1329
|
746 |
msgid "Country"
|
747 |
msgstr ""
|
748 |
|
749 |
+
#: libs/blockcountry-settings.php:1310
|
750 |
msgid "Frontend/Backend"
|
751 |
msgstr ""
|
752 |
|
753 |
+
#: libs/blockcountry-settings.php:1320 libs/blockcountry-settings.php:1422
|
754 |
msgid "Frontend"
|
755 |
msgstr ""
|
756 |
|
757 |
+
#: libs/blockcountry-settings.php:1320
|
758 |
msgid "Backend banlist"
|
759 |
msgstr ""
|
760 |
|
761 |
+
#: libs/blockcountry-settings.php:1320
|
762 |
msgid "Backend & Backend banlist"
|
763 |
msgstr ""
|
764 |
|
765 |
+
#: libs/blockcountry-settings.php:1320 libs/blockcountry-settings.php:1423
|
766 |
msgid "Backend"
|
767 |
msgstr ""
|
768 |
|
769 |
+
#: libs/blockcountry-settings.php:1327
|
770 |
msgid "Top countries that are blocked"
|
771 |
msgstr ""
|
772 |
|
773 |
+
#: libs/blockcountry-settings.php:1329 libs/blockcountry-settings.php:1342
|
774 |
+
#: libs/blockcountry-settings.php:1353
|
775 |
msgid "# of blocked attempts"
|
776 |
msgstr ""
|
777 |
|
778 |
+
#: libs/blockcountry-settings.php:1340
|
779 |
msgid "Top hosts that are blocked"
|
780 |
msgstr ""
|
781 |
|
782 |
+
#: libs/blockcountry-settings.php:1351
|
783 |
msgid "Top URLs that are blocked"
|
784 |
msgstr ""
|
785 |
|
786 |
+
#: libs/blockcountry-settings.php:1369
|
787 |
msgid "Clear database"
|
788 |
msgstr ""
|
789 |
|
790 |
+
#: libs/blockcountry-settings.php:1392
|
791 |
+
msgid "Download as CSV file"
|
792 |
+
msgstr ""
|
793 |
+
|
794 |
+
#: libs/blockcountry-settings.php:1399
|
795 |
msgid ""
|
796 |
"You are not logging any information. Please uncheck the option 'Do not log "
|
797 |
"IP addresses' if this is not what you want."
|
798 |
msgstr ""
|
799 |
|
800 |
+
#: libs/blockcountry-settings.php:1421
|
801 |
msgid "Home"
|
802 |
msgstr ""
|
803 |
|
804 |
+
#: libs/blockcountry-settings.php:1424
|
805 |
msgid "Pages"
|
806 |
msgstr ""
|
807 |
|
808 |
+
#: libs/blockcountry-settings.php:1425
|
809 |
msgid "Categories"
|
810 |
msgstr ""
|
811 |
|
812 |
+
#: libs/blockcountry-settings.php:1426
|
813 |
msgid "Post types"
|
814 |
msgstr ""
|
815 |
|
816 |
+
#: libs/blockcountry-settings.php:1427
|
817 |
msgid "Search Engines"
|
818 |
msgstr ""
|
819 |
|
820 |
+
#: libs/blockcountry-settings.php:1428
|
821 |
msgid "Tools"
|
822 |
msgstr ""
|
823 |
|
824 |
+
#: libs/blockcountry-settings.php:1429
|
825 |
msgid "Logging"
|
826 |
msgstr ""
|
827 |
|
828 |
+
#: libs/blockcountry-settings.php:1430
|
829 |
msgid "Import/Export"
|
830 |
msgstr ""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
lang/iqblockcountry-nl_NL.mo
CHANGED
Binary file
|
lang/iqblockcountry-nl_NL.po
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: iQ Block Country\n"
|
4 |
-
"POT-Creation-Date: 2015-
|
5 |
-
"PO-Revision-Date: 2015-
|
6 |
"Last-Translator: Pascal <pascal@redeo.nl>\n"
|
7 |
"Language-Team: iQ Block Country <info@redeo.nl>\n"
|
8 |
"Language: Dutch\n"
|
@@ -32,11 +32,19 @@ msgstr "De Admin Block API sleutel is incorrect. Corrigeer a.u.b. de sleutel."
|
|
32 |
msgid "Error occured: Could not download the GeoIP database from"
|
33 |
msgstr "Uh oh: Kon de GeoIP database niet downloaden van"
|
34 |
|
35 |
-
#: libs/blockcountry-
|
36 |
-
msgid "
|
37 |
-
|
|
|
|
|
|
|
|
|
38 |
|
39 |
-
#: libs/blockcountry-
|
|
|
|
|
|
|
|
|
40 |
msgid ""
|
41 |
"Please download this file from your own PC unzip this file and upload it "
|
42 |
"(via FTP for instance) to:"
|
@@ -85,77 +93,280 @@ msgstr "Indien je ook IPv6 gebruikt download dan a.u.b. ook de IPv6 database:"
|
|
85 |
msgid "For more detailed instructions take a look at the documentation.."
|
86 |
msgstr "Voor gedetaileerde instructies bekijk de documentatie."
|
87 |
|
88 |
-
#: libs/blockcountry-settings.php:
|
89 |
msgid ""
|
90 |
"Check which country belongs to an IP Address according to the current "
|
91 |
"database."
|
92 |
msgstr ""
|
93 |
"Controleer welk land behoort tot een IP adres volgens de huidige database."
|
94 |
|
95 |
-
#: libs/blockcountry-settings.php:
|
96 |
msgid "IP Address to check:"
|
97 |
msgstr "IP adres om te controleren:"
|
98 |
|
99 |
-
#: libs/blockcountry-settings.php:
|
100 |
msgid "No country for"
|
101 |
msgstr "Geen land voor"
|
102 |
|
103 |
-
#: libs/blockcountry-settings.php:
|
104 |
msgid "could be found. Or"
|
105 |
msgstr "gevonden. Of"
|
106 |
|
107 |
-
#: libs/blockcountry-settings.php:
|
108 |
msgid "is not a valid IPv4 or IPv6 IP address"
|
109 |
msgstr "is geen valide IPv4 of IPv6 ip adres."
|
110 |
|
111 |
-
#: libs/blockcountry-settings.php:
|
112 |
msgid "IP Adress"
|
113 |
msgstr "IP Adres"
|
114 |
|
115 |
-
#: libs/blockcountry-settings.php:
|
116 |
msgid "belongs to"
|
117 |
msgstr "behoort tot"
|
118 |
|
119 |
-
#: libs/blockcountry-settings.php:
|
120 |
msgid "This country is not permitted to visit the frontend of this website."
|
121 |
msgstr ""
|
122 |
"Dit land wordt niet toegestaan om de voorkant van deze website te bezoeken."
|
123 |
|
124 |
-
#: libs/blockcountry-settings.php:
|
125 |
msgid "This country is not permitted to visit the backend of this website."
|
126 |
msgstr ""
|
127 |
"Dit land wordt niet toegestaan om de achterkant van deze website te bezoeken."
|
128 |
|
129 |
-
#: libs/blockcountry-settings.php:
|
130 |
msgid "This ip is present in the blacklist."
|
131 |
msgstr "Dit ip adres staat op de zwarte lijst"
|
132 |
|
133 |
-
#: libs/blockcountry-settings.php:
|
134 |
msgid "Check IP address"
|
135 |
msgstr "Controleer IP adres"
|
136 |
|
137 |
-
#: libs/blockcountry-settings.php:
|
138 |
msgid "Active plugins"
|
139 |
msgstr "Actieve plugins"
|
140 |
|
141 |
-
#: libs/blockcountry-settings.php:
|
142 |
msgid "Plugin name"
|
143 |
msgstr "Plugin naam"
|
144 |
|
145 |
-
#: libs/blockcountry-settings.php:
|
146 |
msgid "Version"
|
147 |
msgstr "Versie"
|
148 |
|
149 |
-
#: libs/blockcountry-settings.php:
|
150 |
-
#: libs/blockcountry-settings.php:
|
151 |
msgid "URL"
|
152 |
msgstr "URL"
|
153 |
|
154 |
-
#: libs/blockcountry-settings.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
155 |
msgid "Export"
|
156 |
msgstr "Exporteren"
|
157 |
|
158 |
-
#: libs/blockcountry-settings.php:
|
159 |
msgid ""
|
160 |
"When you click on <tt>Backup all settings</tt> button a backup of the iQ "
|
161 |
"Block Country configuration will be created."
|
@@ -163,7 +374,7 @@ msgstr ""
|
|
163 |
"Wanneer je klikt op de <tt>Backup alle instellingen</tt> knop zal een backup "
|
164 |
"van alle iQ Block Country instellingen worden gecreerd."
|
165 |
|
166 |
-
#: libs/blockcountry-settings.php:
|
167 |
msgid ""
|
168 |
"After exporting, you can either use the backup file to restore your settings "
|
169 |
"on this site again or copy the settings to another WordPress site."
|
@@ -172,96 +383,96 @@ msgstr ""
|
|
172 |
"te herstellen of je kunt het bestand gebruiken om je instellingen naar een "
|
173 |
"andere WordPress site te exporteren."
|
174 |
|
175 |
-
#: libs/blockcountry-settings.php:
|
176 |
msgid "Backup all settings"
|
177 |
msgstr "Backup alle instellingen"
|
178 |
|
179 |
-
#: libs/blockcountry-settings.php:
|
180 |
msgid "Import"
|
181 |
msgstr "Importeer"
|
182 |
|
183 |
-
#: libs/blockcountry-settings.php:
|
184 |
msgid "Click the browse button and choose a zip file that you exported before."
|
185 |
msgstr ""
|
186 |
"Klik op de Browse button and selecteer een zip file welke je eerder hebt "
|
187 |
"geexporteerd."
|
188 |
|
189 |
-
#: libs/blockcountry-settings.php:
|
190 |
msgid "Press Restore settings button, and let WordPress do the magic for you."
|
191 |
msgstr ""
|
192 |
"Druk op de herstel instellingen knop en laat WordPress haar magie voor je "
|
193 |
"doen."
|
194 |
|
195 |
-
#: libs/blockcountry-settings.php:
|
196 |
msgid "Restore settings"
|
197 |
msgstr "Herstel instellingen"
|
198 |
|
199 |
-
#: libs/blockcountry-settings.php:
|
200 |
-
#: libs/blockcountry-settings.php:
|
201 |
msgid "Something went wrong exporting this file"
|
202 |
msgstr "Er is iets verkeerd gegaan met het exporteren van het bestand."
|
203 |
|
204 |
-
#: libs/blockcountry-settings.php:
|
205 |
msgid "Exporting settings..."
|
206 |
msgstr "Exporteer instellingen"
|
207 |
|
208 |
-
#: libs/blockcountry-settings.php:
|
209 |
msgid "Something went wrong importing this file"
|
210 |
msgstr "Er is iets verkeerd gegaan met het importeren van dit bestand"
|
211 |
|
212 |
-
#: libs/blockcountry-settings.php:
|
213 |
msgid "All options are restored successfully."
|
214 |
msgstr "Alle opties zijn succesvol hersteld"
|
215 |
|
216 |
-
#: libs/blockcountry-settings.php:
|
217 |
msgid "Invalid file."
|
218 |
msgstr "Ongeldig bestand"
|
219 |
|
220 |
-
#: libs/blockcountry-settings.php:
|
221 |
msgid "No correct import or export option given."
|
222 |
msgstr "Geen correcte importeer of exporteer optie gegeven."
|
223 |
|
224 |
-
#: libs/blockcountry-settings.php:
|
225 |
msgid "Select which pages are blocked."
|
226 |
msgstr "Selecteer welke pagina's geblokkeerd worden."
|
227 |
|
228 |
-
#: libs/blockcountry-settings.php:
|
229 |
msgid "Do you want to block individual pages:"
|
230 |
msgstr "Wil je individuele pagina's blokkeren:"
|
231 |
|
232 |
-
#: libs/blockcountry-settings.php:
|
233 |
msgid "If you do not select this option all pages will be blocked."
|
234 |
msgstr "Indien je deze optie niet selecteert worden alle pagina's geblokkeerd."
|
235 |
|
236 |
-
#: libs/blockcountry-settings.php:
|
237 |
msgid "Select pages you want to block:"
|
238 |
msgstr "Selecteer welke pagina's je wil blokkeren."
|
239 |
|
240 |
-
#: libs/blockcountry-settings.php:
|
241 |
-
#: libs/blockcountry-settings.php:
|
242 |
-
#: libs/blockcountry-settings.php:
|
243 |
-
#: libs/blockcountry-settings.php:
|
244 |
msgid "Save Changes"
|
245 |
msgstr "Bewaar wijzigingen"
|
246 |
|
247 |
-
#: libs/blockcountry-settings.php:
|
248 |
msgid "Select which categories are blocked."
|
249 |
msgstr "Selecteer welke categorieen geblokkeerd worden."
|
250 |
|
251 |
-
#: libs/blockcountry-settings.php:
|
252 |
msgid "Do you want to block individual categories:"
|
253 |
msgstr "Wil je individuele categorieen blokkeren:"
|
254 |
|
255 |
-
#: libs/blockcountry-settings.php:
|
256 |
msgid "If you do not select this option all blog articles will be blocked."
|
257 |
msgstr ""
|
258 |
"Indien je deze optie niet selecteert worden alle blog artikelen geblokkeerd."
|
259 |
|
260 |
-
#: libs/blockcountry-settings.php:
|
261 |
msgid "Do you want to block the homepage:"
|
262 |
msgstr "Wil je je homepage blokkeren:"
|
263 |
|
264 |
-
#: libs/blockcountry-settings.php:
|
265 |
msgid ""
|
266 |
"If you do not select this option visitors will not be blocked from your "
|
267 |
"homepage regardless of the categories you select."
|
@@ -270,31 +481,31 @@ msgstr ""
|
|
270 |
"geblokkeerd van het bezoeken van je homepagina ongeacht welke categorieen je "
|
271 |
"selecteert."
|
272 |
|
273 |
-
#: libs/blockcountry-settings.php:
|
274 |
msgid "Select categories you want to block:"
|
275 |
msgstr "Selecteer welke categorieen je wil blokkeren."
|
276 |
|
277 |
-
#: libs/blockcountry-settings.php:
|
278 |
msgid "Select which post types are blocked."
|
279 |
msgstr "Selecteer welke post types geblokkeerd worden."
|
280 |
|
281 |
-
#: libs/blockcountry-settings.php:
|
282 |
msgid "Do you want to block individual post types:"
|
283 |
msgstr "Wil je individuele post types blokkeren:"
|
284 |
|
285 |
-
#: libs/blockcountry-settings.php:
|
286 |
msgid "Select post types you want to block:"
|
287 |
msgstr "Selecteer welke post types je wil blokkeren."
|
288 |
|
289 |
-
#: libs/blockcountry-settings.php:
|
290 |
msgid "Select which search engines are allowed."
|
291 |
msgstr "Selecteer welke zoek machines je wilt toestaan."
|
292 |
|
293 |
-
#: libs/blockcountry-settings.php:
|
294 |
msgid "Select which search engines you want to allow:"
|
295 |
msgstr "Selecteer welke zoek machines je wilt toestaan:"
|
296 |
|
297 |
-
#: libs/blockcountry-settings.php:
|
298 |
msgid ""
|
299 |
"This will allow a search engine to your site despite if you blocked the "
|
300 |
"country."
|
@@ -302,41 +513,41 @@ msgstr ""
|
|
302 |
"Deze optie staat het toe dat zoekmachines je site bezoeken ondanks dat ze "
|
303 |
"uit een land komen welk geblokkeerd is."
|
304 |
|
305 |
-
#: libs/blockcountry-settings.php:
|
306 |
msgid "Frontend options"
|
307 |
msgstr "Voorkant opties"
|
308 |
|
309 |
-
#: libs/blockcountry-settings.php:
|
310 |
msgid ""
|
311 |
"Do not block visitors that are logged in from visiting frontend website:"
|
312 |
msgstr ""
|
313 |
"Blokkeer geen bezoekers welke ingelogd zijn van het bezoeken van de voorkant:"
|
314 |
|
315 |
-
#: libs/blockcountry-settings.php:
|
316 |
msgid "Block visitors from visiting the frontend of your website:"
|
317 |
msgstr "Blokkeer bezoekers van het bezoeken van de voorkant van je website:"
|
318 |
|
319 |
-
#: libs/blockcountry-settings.php:
|
320 |
msgid "Block visitors from using the search function of your website:"
|
321 |
msgstr ""
|
322 |
"Blokkeer bezoekers van het bezoeken van de zoek functie van je website:"
|
323 |
|
324 |
-
#: libs/blockcountry-settings.php:
|
325 |
msgid ""
|
326 |
"Select the countries that should be blocked from visiting your frontend:"
|
327 |
msgstr ""
|
328 |
"Selecteer de landen welke geblokkeerd moeten worden voor het bezoeken van de "
|
329 |
"voorkant van je website:"
|
330 |
|
331 |
-
#: libs/blockcountry-settings.php:
|
332 |
msgid "Use the CTRL key to select multiple countries"
|
333 |
msgstr "Gebruik de CTRL toets om meerdere landen te selecteren"
|
334 |
|
335 |
-
#: libs/blockcountry-settings.php:
|
336 |
msgid "Inverse the selection above:"
|
337 |
msgstr "Keer bovenstaande selectie om:"
|
338 |
|
339 |
-
#: libs/blockcountry-settings.php:
|
340 |
msgid ""
|
341 |
"If you select this option only the countries that are selected are "
|
342 |
"<em>allowed</em>."
|
@@ -344,41 +555,41 @@ msgstr ""
|
|
344 |
"Indien je deze optie selecteert de zijn de landen die hierboven geselecteerd "
|
345 |
"<em>toegestaan</em>."
|
346 |
|
347 |
-
#: libs/blockcountry-settings.php:
|
348 |
msgid "Frontend whitelist IPv4 and/or IPv6 addresses:"
|
349 |
msgstr ""
|
350 |
"Whitelist van IPv4 of IPv6 IP adressen voor de voorkant van je website:"
|
351 |
|
352 |
-
#: libs/blockcountry-settings.php:
|
353 |
-
#: libs/blockcountry-settings.php:
|
354 |
msgid "Use a semicolon (;) to separate IP addresses"
|
355 |
msgstr "Gebruik een puntkomma (;) om adressen van elkaar te scheiden"
|
356 |
|
357 |
-
#: libs/blockcountry-settings.php:
|
358 |
msgid "Frontend blacklist IPv4 and/or IPv6 addresses:"
|
359 |
msgstr ""
|
360 |
"Blacklist van IPv4 of IPv6 IP adressen voor de voorkant van je website:"
|
361 |
|
362 |
-
#: libs/blockcountry-settings.php:
|
363 |
msgid "Backend Options"
|
364 |
msgstr "Achterkant opties"
|
365 |
|
366 |
-
#: libs/blockcountry-settings.php:
|
367 |
msgid ""
|
368 |
"Block visitors from visiting the backend (administrator) of your website:"
|
369 |
msgstr ""
|
370 |
"Blokkeer bezoekers van het bezoeken van de achterkant (administratie "
|
371 |
"gedeelte) van je website:"
|
372 |
|
373 |
-
#: libs/blockcountry-settings.php:
|
374 |
msgid "Your IP address is"
|
375 |
msgstr "Je IP adres is"
|
376 |
|
377 |
-
#: libs/blockcountry-settings.php:
|
378 |
msgid "The country that is listed for this IP address is"
|
379 |
msgstr "Het land waar dit adres toe behoort is"
|
380 |
|
381 |
-
#: libs/blockcountry-settings.php:
|
382 |
msgid ""
|
383 |
"Do <strong>NOT</strong> set the 'Block visitors from visiting the backend "
|
384 |
"(administrator) of your website' and also select"
|
@@ -386,11 +597,11 @@ msgstr ""
|
|
386 |
"Selecteer <strong>NIET</strong> \"Blokkeer bezoekers van het bezoeken van de "
|
387 |
"achterkant (administratie gedeelte) van je website\" en"
|
388 |
|
389 |
-
#: libs/blockcountry-settings.php:
|
390 |
msgid "below."
|
391 |
msgstr "hier beneden."
|
392 |
|
393 |
-
#: libs/blockcountry-settings.php:
|
394 |
msgid ""
|
395 |
"You will NOT be able to login the next time if you DO block your own country "
|
396 |
"from visiting the backend."
|
@@ -398,52 +609,52 @@ msgstr ""
|
|
398 |
"Het zal daarna niet meer mogelijk zijn om nog in te loggen als je je eigen "
|
399 |
"land blokkeert van het bezoeken van de achterkant van je website."
|
400 |
|
401 |
-
#: libs/blockcountry-settings.php:
|
402 |
msgid "Select the countries that should be blocked from visiting your backend:"
|
403 |
msgstr ""
|
404 |
"Selecteer de landen welke geblokkeerd moeten worden voor het bezoeken van de "
|
405 |
"achterkant (administratie gedeelte) van je website:"
|
406 |
|
407 |
-
#: libs/blockcountry-settings.php:
|
408 |
msgid "Use the x behind the country to remove a country from this blocklist."
|
409 |
msgstr ""
|
410 |
"Gebruik de x achter een land om het land te verwijderen uit deze lijst."
|
411 |
|
412 |
-
#: libs/blockcountry-settings.php:
|
413 |
msgid "Backend whitelist IPv4 and/or IPv6 addresses:"
|
414 |
msgstr ""
|
415 |
"Whitelist van IPv4 of IPv6 IP adressen voor de achterkant van je website:"
|
416 |
|
417 |
-
#: libs/blockcountry-settings.php:
|
418 |
msgid "Backend blacklist IPv4 and/or IPv6 addresses:"
|
419 |
msgstr ""
|
420 |
"Blacklist van IPv4 of IPv6 IP adressen voor de achterkant van je website:"
|
421 |
|
422 |
-
#: libs/blockcountry-settings.php:
|
423 |
msgid "Overall statistics since start"
|
424 |
msgstr "Statistieken sinds het begin"
|
425 |
|
426 |
-
#: libs/blockcountry-settings.php:
|
427 |
msgid "visitors blocked from the backend."
|
428 |
msgstr "bezoekers geblokkeerd op de achterkant."
|
429 |
|
430 |
-
#: libs/blockcountry-settings.php:
|
431 |
msgid "visitors blocked from the frontend."
|
432 |
msgstr "bezoekers geblokkeerd op de voorkant."
|
433 |
|
434 |
-
#: libs/blockcountry-settings.php:
|
435 |
msgid "Basic Options"
|
436 |
msgstr "Standaard opties"
|
437 |
|
438 |
-
#: libs/blockcountry-settings.php:
|
439 |
msgid "Message to display when people are blocked:"
|
440 |
msgstr "Welk bericht wil je tonen aan bezoekers welke geblokkeerd worden:"
|
441 |
|
442 |
-
#: libs/blockcountry-settings.php:
|
443 |
msgid "Page to redirect to:"
|
444 |
msgstr "Naar welke pagina wilt u bezoekers toesturen:"
|
445 |
|
446 |
-
#: libs/blockcountry-settings.php:
|
447 |
msgid ""
|
448 |
"If you select a page here blocked visitors will be redirected to this page "
|
449 |
"instead of displaying above block message."
|
@@ -452,15 +663,15 @@ msgstr ""
|
|
452 |
"doorgestuurd naar deze pagina anders wordt bovestaande tekst getoond aan "
|
453 |
"bezoekers."
|
454 |
|
455 |
-
#: libs/blockcountry-settings.php:
|
456 |
msgid "Choose a page..."
|
457 |
msgstr "Kies een pagina..."
|
458 |
|
459 |
-
#: libs/blockcountry-settings.php:
|
460 |
msgid "URL to redirect to:"
|
461 |
msgstr "Naar welke URL wilt u geblokkerde bezoekers verwijzen:"
|
462 |
|
463 |
-
#: libs/blockcountry-settings.php:
|
464 |
msgid ""
|
465 |
"If you enter a URL here blocked visitors will be redirected to this URL "
|
466 |
"instead of displaying above block message or redirected to a local page."
|
@@ -469,11 +680,11 @@ msgstr ""
|
|
469 |
"naar deze url anders wordt bovestaande blokkeer tekst getoond aan bezoekers "
|
470 |
"of worden bezoekers doorverwezen naar de geselecteerde pagina."
|
471 |
|
472 |
-
#: libs/blockcountry-settings.php:
|
473 |
msgid "Send headers when user is blocked:"
|
474 |
msgstr "Stuur headers wanneer een gebruiker is geblokkeerd:"
|
475 |
|
476 |
-
#: libs/blockcountry-settings.php:
|
477 |
msgid ""
|
478 |
"Under normal circumstances you should keep this selected! Only if you have "
|
479 |
"\"Cannot modify header information - headers already sent\" errors or if you "
|
@@ -483,11 +694,11 @@ msgstr ""
|
|
483 |
"deze alleen indien je \"Cannot modify header information - headers already "
|
484 |
"sent\" foutmeldingen krijgt of indien je weet wat je doet."
|
485 |
|
486 |
-
#: libs/blockcountry-settings.php:
|
487 |
msgid "Buffer output?:"
|
488 |
msgstr "Buffer output?"
|
489 |
|
490 |
-
#: libs/blockcountry-settings.php:
|
491 |
msgid ""
|
492 |
"You can use this option to buffer all output. This can be helpful in case "
|
493 |
"you have \"headers already sent\" issues."
|
@@ -495,11 +706,11 @@ msgstr ""
|
|
495 |
"Je kunt deze optie gebruiken om alle output te bufferen. Dit kan helpen "
|
496 |
"indien je \"headers already sent\" problemen hebt."
|
497 |
|
498 |
-
#: libs/blockcountry-settings.php:
|
499 |
msgid "Do not log IP addresses:"
|
500 |
msgstr "Log geen IP adressen"
|
501 |
|
502 |
-
#: libs/blockcountry-settings.php:
|
503 |
msgid ""
|
504 |
"Check this box if the laws in your country do not permit you to log IP "
|
505 |
"addresses or if you do not want to log the ip addresses."
|
@@ -508,19 +719,19 @@ msgstr ""
|
|
508 |
"adressen vast te leggen of indien je zelf deze informatie niet wilt "
|
509 |
"vastleggen."
|
510 |
|
511 |
-
#: libs/blockcountry-settings.php:
|
512 |
msgid "Number of rows on statistics page:"
|
513 |
msgstr "Aantal regels op de statistieken pagina:"
|
514 |
|
515 |
-
#: libs/blockcountry-settings.php:
|
516 |
msgid "How many rows do you want to display on each tab the statistics page."
|
517 |
msgstr "Hoeveel regels wil je tonen op de statistieken pagina."
|
518 |
|
519 |
-
#: libs/blockcountry-settings.php:
|
520 |
msgid "Allow tracking:"
|
521 |
msgstr "Sta traceren toe:"
|
522 |
|
523 |
-
#: libs/blockcountry-settings.php:
|
524 |
msgid ""
|
525 |
"This sends only the IP address and the number of attempts this ip address "
|
526 |
"tried to login to your backend and was blocked doing so to a central server. "
|
@@ -533,11 +744,11 @@ msgstr ""
|
|
533 |
"ons om beter inzicht te krijgen in de landen waarvandaan een hoop hack "
|
534 |
"pogingen worden gedaan. "
|
535 |
|
536 |
-
#: libs/blockcountry-settings.php:
|
537 |
msgid "GeoIP API Key:"
|
538 |
msgstr "GeoIP API sleutel:"
|
539 |
|
540 |
-
#: libs/blockcountry-settings.php:
|
541 |
msgid ""
|
542 |
"If for some reason you cannot or do not want to download the MaxMind GeoIP "
|
543 |
"databases you will need an API key for the GeoIP api.<br />You can get an "
|
@@ -547,19 +758,19 @@ msgstr ""
|
|
547 |
"Maxmind GeoIP heb je een API sleutelnodig voor de GeoIP api.<br />Je kunt "
|
548 |
"een API sleutel verkrijgen op:"
|
549 |
|
550 |
-
#: libs/blockcountry-settings.php:
|
551 |
msgid "GeoIP API Key Server Location:"
|
552 |
msgstr "GeoIP API sleutel server locatie:"
|
553 |
|
554 |
-
#: libs/blockcountry-settings.php:
|
555 |
msgid "Choose a location closest to your own location."
|
556 |
msgstr "Kies een land welke het dichtsbij is bij je eigen land."
|
557 |
|
558 |
-
#: libs/blockcountry-settings.php:
|
559 |
msgid "Admin block API Key:"
|
560 |
msgstr "Admin block API Sleutel:"
|
561 |
|
562 |
-
#: libs/blockcountry-settings.php:
|
563 |
msgid ""
|
564 |
"This is an experimantal feature. You do not need an API key for this plugin "
|
565 |
"to work."
|
@@ -567,11 +778,11 @@ msgstr ""
|
|
567 |
"Dit is een experimentele optie. Je hebt geen API key nodig om deze plugin te "
|
568 |
"laten werken."
|
569 |
|
570 |
-
#: libs/blockcountry-settings.php:
|
571 |
msgid "Log all visits to the backend:"
|
572 |
msgstr "Log alle bezoekers op de achterkant:"
|
573 |
|
574 |
-
#: libs/blockcountry-settings.php:
|
575 |
msgid ""
|
576 |
"This logs all visits to the backend despite if they are blocked or not. This "
|
577 |
"is mainly for debugging purposes."
|
@@ -579,78 +790,82 @@ msgstr ""
|
|
579 |
"Dit logt alle bezoeken aan de achterkant ongeacht of de bezoeker werd "
|
580 |
"geblokkeerd of niet. Dit is voornamelijk bedoeld voor fout opsporing."
|
581 |
|
582 |
-
#: libs/blockcountry-settings.php:
|
583 |
msgid "Accessibility options:"
|
584 |
msgstr "Toegankelijkheids opties:"
|
585 |
|
586 |
-
#: libs/blockcountry-settings.php:
|
587 |
msgid "Set this option if you cannot use the default country selection box."
|
588 |
msgstr ""
|
589 |
"Selecteer deze optie indien je de landen standaard selectie methode niet "
|
590 |
"kunt gebruiken. "
|
591 |
|
592 |
-
#: libs/blockcountry-settings.php:
|
593 |
msgid "Last blocked visits"
|
594 |
msgstr "Laatste geblokkeerde bezoekers"
|
595 |
|
596 |
-
#: libs/blockcountry-settings.php:
|
597 |
msgid "Date / Time"
|
598 |
msgstr "Datum / Tijd"
|
599 |
|
600 |
-
#: libs/blockcountry-settings.php:
|
601 |
msgid "IP Address"
|
602 |
msgstr "IP adres"
|
603 |
|
604 |
-
#: libs/blockcountry-settings.php:
|
605 |
msgid "Hostname"
|
606 |
msgstr "Hostnaam"
|
607 |
|
608 |
-
#: libs/blockcountry-settings.php:
|
609 |
msgid "Country"
|
610 |
msgstr "Land"
|
611 |
|
612 |
-
#: libs/blockcountry-settings.php:
|
613 |
msgid "Frontend/Backend"
|
614 |
msgstr "Voorkant/Achterkant"
|
615 |
|
616 |
-
#: libs/blockcountry-settings.php:
|
617 |
msgid "Frontend"
|
618 |
msgstr "Voorkant"
|
619 |
|
620 |
-
#: libs/blockcountry-settings.php:
|
621 |
msgid "Backend banlist"
|
622 |
msgstr "Achterkant banlist"
|
623 |
|
624 |
-
#: libs/blockcountry-settings.php:
|
625 |
msgid "Backend & Backend banlist"
|
626 |
msgstr "Achterkant & Achterkant banlist"
|
627 |
|
628 |
-
#: libs/blockcountry-settings.php:
|
629 |
msgid "Backend"
|
630 |
msgstr "Achterkant"
|
631 |
|
632 |
-
#: libs/blockcountry-settings.php:
|
633 |
msgid "Top countries that are blocked"
|
634 |
msgstr "Top landen welke zijn geblokkeerd"
|
635 |
|
636 |
-
#: libs/blockcountry-settings.php:
|
637 |
-
#: libs/blockcountry-settings.php:
|
638 |
msgid "# of blocked attempts"
|
639 |
msgstr "# of geblokkeerde pogingen"
|
640 |
|
641 |
-
#: libs/blockcountry-settings.php:
|
642 |
msgid "Top hosts that are blocked"
|
643 |
msgstr "Top hosts welke geblokkeerd zijn"
|
644 |
|
645 |
-
#: libs/blockcountry-settings.php:
|
646 |
msgid "Top URLs that are blocked"
|
647 |
msgstr "Top URLs welke geblokkeerd zijn"
|
648 |
|
649 |
-
#: libs/blockcountry-settings.php:
|
650 |
msgid "Clear database"
|
651 |
msgstr "Leeg database"
|
652 |
|
653 |
-
#: libs/blockcountry-settings.php:
|
|
|
|
|
|
|
|
|
654 |
msgid ""
|
655 |
"You are not logging any information. Please uncheck the option 'Do not log "
|
656 |
"IP addresses' if this is not what you want."
|
@@ -658,79 +873,38 @@ msgstr ""
|
|
658 |
"Je logt geen informatie. Deselecteer alstublieft de optie 'Log geen IP "
|
659 |
"adressen' indien dit niet is wat je wilt."
|
660 |
|
661 |
-
#: libs/blockcountry-settings.php:
|
662 |
msgid "Home"
|
663 |
msgstr "Home"
|
664 |
|
665 |
-
#: libs/blockcountry-settings.php:
|
666 |
msgid "Pages"
|
667 |
msgstr "Pagina's"
|
668 |
|
669 |
-
#: libs/blockcountry-settings.php:
|
670 |
msgid "Categories"
|
671 |
msgstr "Categorieen"
|
672 |
|
673 |
-
#: libs/blockcountry-settings.php:
|
674 |
msgid "Post types"
|
675 |
msgstr "Post types"
|
676 |
|
677 |
-
#: libs/blockcountry-settings.php:
|
678 |
msgid "Search Engines"
|
679 |
msgstr "Zoek machines"
|
680 |
|
681 |
-
#: libs/blockcountry-settings.php:
|
682 |
msgid "Tools"
|
683 |
msgstr "Gereedschap"
|
684 |
|
685 |
-
#: libs/blockcountry-settings.php:
|
686 |
msgid "Logging"
|
687 |
msgstr "Statistieken"
|
688 |
|
689 |
-
#: libs/blockcountry-settings.php:
|
690 |
msgid "Import/Export"
|
691 |
msgstr "Importeren/Exporteren"
|
692 |
|
693 |
-
#: libs/blockcountry-retrieve-geodb.php:38
|
694 |
-
#: libs/blockcountry-retrieve-geodb.php:49
|
695 |
-
msgid "Error occured: Could not download the GeoIP database from"
|
696 |
-
msgstr "Uh oh: Kon de GeoIP database niet downloaden van"
|
697 |
-
|
698 |
-
#: libs/blockcountry-retrieve-geodb.php:39
|
699 |
-
msgid ""
|
700 |
-
"MaxMind has blocked requests from your IP address for 24 hours. Please check "
|
701 |
-
"again in 24 hours or download this file from your own PC"
|
702 |
-
msgstr ""
|
703 |
-
"MaxMind heeft alle verzoeken vanaf dit IP adres voor 24 uur geblokkeerd. "
|
704 |
-
"Controleer nogmaals na 24 uur of download dit bestand via je eigen pc"
|
705 |
-
|
706 |
-
#: libs/blockcountry-retrieve-geodb.php:40
|
707 |
-
msgid "Unzip this file and upload it (via FTP for instance) to:"
|
708 |
-
msgstr "Pak dit bestand uit en upload deze (via FTP bijvoorbeeld) naar:"
|
709 |
-
|
710 |
-
#: libs/blockcountry-retrieve-geodb.php:50
|
711 |
-
msgid ""
|
712 |
-
"Please download this file from your own PC unzip this file and upload it "
|
713 |
-
"(via FTP for instance) to:"
|
714 |
-
msgstr ""
|
715 |
-
"Download dit bestand alsjeblieft naar je eigen PC. Pak het bestand daar uit "
|
716 |
-
"en upload deze (bijvoorbeeld via FTP) naar:"
|
717 |
-
|
718 |
-
#: libs/blockcountry-retrieve-geodb.php:77
|
719 |
-
msgid "Finished downloading"
|
720 |
-
msgstr "Klaar met downloaden"
|
721 |
-
|
722 |
-
#: libs/blockcountry-retrieve-geodb.php:85
|
723 |
-
msgid "Fatal error: GeoIP"
|
724 |
-
msgstr "Fatale fout: GeoIP"
|
725 |
-
|
726 |
-
#: libs/blockcountry-retrieve-geodb.php:85
|
727 |
-
msgid ""
|
728 |
-
"database does not exists. This plugin will not work until the database file "
|
729 |
-
"is present."
|
730 |
-
msgstr ""
|
731 |
-
"database bestaat niet. Deze plugin kan niet werken totdat deze database "
|
732 |
-
"beschikbaar is."
|
733 |
-
|
734 |
#~ msgid "Automatic update is not setup. Last update: "
|
735 |
#~ msgstr "Automatisch updaten is niet geconfigureerd. Laatste update:"
|
736 |
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: iQ Block Country\n"
|
4 |
+
"POT-Creation-Date: 2015-10-02 15:01+0100\n"
|
5 |
+
"PO-Revision-Date: 2015-10-02 15:08+0100\n"
|
6 |
"Last-Translator: Pascal <pascal@redeo.nl>\n"
|
7 |
"Language-Team: iQ Block Country <info@redeo.nl>\n"
|
8 |
"Language: Dutch\n"
|
32 |
msgid "Error occured: Could not download the GeoIP database from"
|
33 |
msgstr "Uh oh: Kon de GeoIP database niet downloaden van"
|
34 |
|
35 |
+
#: libs/blockcountry-retrieve-geodb.php:39
|
36 |
+
msgid ""
|
37 |
+
"MaxMind has blocked requests from your IP address for 24 hours. Please check "
|
38 |
+
"again in 24 hours or download this file from your own PC"
|
39 |
+
msgstr ""
|
40 |
+
"MaxMind heeft alle verzoeken vanaf dit IP adres voor 24 uur geblokkeerd. "
|
41 |
+
"Controleer nogmaals na 24 uur of download dit bestand via je eigen pc"
|
42 |
|
43 |
+
#: libs/blockcountry-retrieve-geodb.php:40
|
44 |
+
msgid "Unzip this file and upload it (via FTP for instance) to:"
|
45 |
+
msgstr "Pak dit bestand uit en upload deze (via FTP bijvoorbeeld) naar:"
|
46 |
+
|
47 |
+
#: libs/blockcountry-retrieve-geodb.php:50
|
48 |
msgid ""
|
49 |
"Please download this file from your own PC unzip this file and upload it "
|
50 |
"(via FTP for instance) to:"
|
93 |
msgid "For more detailed instructions take a look at the documentation.."
|
94 |
msgstr "Voor gedetaileerde instructies bekijk de documentatie."
|
95 |
|
96 |
+
#: libs/blockcountry-settings.php:207
|
97 |
msgid ""
|
98 |
"Check which country belongs to an IP Address according to the current "
|
99 |
"database."
|
100 |
msgstr ""
|
101 |
"Controleer welk land behoort tot een IP adres volgens de huidige database."
|
102 |
|
103 |
+
#: libs/blockcountry-settings.php:212
|
104 |
msgid "IP Address to check:"
|
105 |
msgstr "IP adres om te controleren:"
|
106 |
|
107 |
+
#: libs/blockcountry-settings.php:228
|
108 |
msgid "No country for"
|
109 |
msgstr "Geen land voor"
|
110 |
|
111 |
+
#: libs/blockcountry-settings.php:228
|
112 |
msgid "could be found. Or"
|
113 |
msgstr "gevonden. Of"
|
114 |
|
115 |
+
#: libs/blockcountry-settings.php:228
|
116 |
msgid "is not a valid IPv4 or IPv6 IP address"
|
117 |
msgstr "is geen valide IPv4 of IPv6 ip adres."
|
118 |
|
119 |
+
#: libs/blockcountry-settings.php:233
|
120 |
msgid "IP Adress"
|
121 |
msgstr "IP Adres"
|
122 |
|
123 |
+
#: libs/blockcountry-settings.php:233
|
124 |
msgid "belongs to"
|
125 |
msgstr "behoort tot"
|
126 |
|
127 |
+
#: libs/blockcountry-settings.php:239 libs/blockcountry-settings.php:244
|
128 |
msgid "This country is not permitted to visit the frontend of this website."
|
129 |
msgstr ""
|
130 |
"Dit land wordt niet toegestaan om de voorkant van deze website te bezoeken."
|
131 |
|
132 |
+
#: libs/blockcountry-settings.php:253 libs/blockcountry-settings.php:260
|
133 |
msgid "This country is not permitted to visit the backend of this website."
|
134 |
msgstr ""
|
135 |
"Dit land wordt niet toegestaan om de achterkant van deze website te bezoeken."
|
136 |
|
137 |
+
#: libs/blockcountry-settings.php:266
|
138 |
msgid "This ip is present in the blacklist."
|
139 |
msgstr "Dit ip adres staat op de zwarte lijst"
|
140 |
|
141 |
+
#: libs/blockcountry-settings.php:272
|
142 |
msgid "Check IP address"
|
143 |
msgstr "Controleer IP adres"
|
144 |
|
145 |
+
#: libs/blockcountry-settings.php:278
|
146 |
msgid "Active plugins"
|
147 |
msgstr "Actieve plugins"
|
148 |
|
149 |
+
#: libs/blockcountry-settings.php:285
|
150 |
msgid "Plugin name"
|
151 |
msgstr "Plugin naam"
|
152 |
|
153 |
+
#: libs/blockcountry-settings.php:285
|
154 |
msgid "Version"
|
155 |
msgstr "Versie"
|
156 |
|
157 |
+
#: libs/blockcountry-settings.php:285 libs/blockcountry-settings.php:1310
|
158 |
+
#: libs/blockcountry-settings.php:1353
|
159 |
msgid "URL"
|
160 |
msgstr "URL"
|
161 |
|
162 |
+
#: libs/blockcountry-settings.php:304
|
163 |
+
msgid "none"
|
164 |
+
msgstr "Geen"
|
165 |
+
|
166 |
+
#: libs/blockcountry-settings.php:310 libs/blockcountry-settings.php:311
|
167 |
+
msgid "unavailable"
|
168 |
+
msgstr "niet beschikbaar"
|
169 |
+
|
170 |
+
#: libs/blockcountry-settings.php:315
|
171 |
+
msgid "File System Information"
|
172 |
+
msgstr "File systeem informatie"
|
173 |
+
|
174 |
+
#: libs/blockcountry-settings.php:318
|
175 |
+
msgid "Website Root Folder"
|
176 |
+
msgstr "Website root directory"
|
177 |
+
|
178 |
+
#: libs/blockcountry-settings.php:319 libs/blockcountry-settings.php:521
|
179 |
+
msgid "Document Root Path"
|
180 |
+
msgstr "Document root pad"
|
181 |
+
|
182 |
+
#: libs/blockcountry-settings.php:323
|
183 |
+
msgid "Database Information"
|
184 |
+
msgstr "Database informatie"
|
185 |
+
|
186 |
+
#: libs/blockcountry-settings.php:325
|
187 |
+
msgid "MySQL Database Version"
|
188 |
+
msgstr "MySQL Database versie"
|
189 |
+
|
190 |
+
#: libs/blockcountry-settings.php:326
|
191 |
+
msgid "MySQL Client Version"
|
192 |
+
msgstr "MySQL Client versie"
|
193 |
+
|
194 |
+
#: libs/blockcountry-settings.php:327
|
195 |
+
msgid "Database Host"
|
196 |
+
msgstr "Database Host"
|
197 |
+
|
198 |
+
#: libs/blockcountry-settings.php:333
|
199 |
+
msgid "Not Set"
|
200 |
+
msgstr "Niet gezet"
|
201 |
+
|
202 |
+
#: libs/blockcountry-settings.php:335 libs/blockcountry-settings.php:415
|
203 |
+
#: libs/blockcountry-settings.php:423 libs/blockcountry-settings.php:431
|
204 |
+
#: libs/blockcountry-settings.php:439 libs/blockcountry-settings.php:447
|
205 |
+
#: libs/blockcountry-settings.php:456 libs/blockcountry-settings.php:473
|
206 |
+
msgid "Off"
|
207 |
+
msgstr "Uit"
|
208 |
+
|
209 |
+
#: libs/blockcountry-settings.php:338
|
210 |
+
msgid "SQL Mode"
|
211 |
+
msgstr "SQL Mode"
|
212 |
+
|
213 |
+
#: libs/blockcountry-settings.php:342
|
214 |
+
msgid "Server Information"
|
215 |
+
msgstr "Server informatie"
|
216 |
+
|
217 |
+
#: libs/blockcountry-settings.php:347
|
218 |
+
msgid "Server IP Address"
|
219 |
+
msgstr "Server IP Adres"
|
220 |
+
|
221 |
+
#: libs/blockcountry-settings.php:349
|
222 |
+
msgid "Server Type"
|
223 |
+
msgstr "Server Type"
|
224 |
+
|
225 |
+
#: libs/blockcountry-settings.php:350
|
226 |
+
msgid "Operating System"
|
227 |
+
msgstr "Operating System"
|
228 |
+
|
229 |
+
#: libs/blockcountry-settings.php:351
|
230 |
+
msgid "Browser Compression Supported"
|
231 |
+
msgstr "Browser Compressie ondersteund"
|
232 |
+
|
233 |
+
#: libs/blockcountry-settings.php:367
|
234 |
+
msgid "undefined"
|
235 |
+
msgstr "Ongedefinieerd"
|
236 |
+
|
237 |
+
#: libs/blockcountry-settings.php:374
|
238 |
+
msgid "PHP Process User (UID:GID)"
|
239 |
+
msgstr "PHP Process User (UID:GID)"
|
240 |
+
|
241 |
+
#: libs/blockcountry-settings.php:379
|
242 |
+
msgid "PHP Information"
|
243 |
+
msgstr "PHP Informatie"
|
244 |
+
|
245 |
+
#: libs/blockcountry-settings.php:384
|
246 |
+
msgid "PHP Version"
|
247 |
+
msgstr "PHP versie"
|
248 |
+
|
249 |
+
#: libs/blockcountry-settings.php:385
|
250 |
+
msgid "PHP Memory Usage"
|
251 |
+
msgstr "PHP Memory Usage"
|
252 |
+
|
253 |
+
#: libs/blockcountry-settings.php:385
|
254 |
+
msgid " MB"
|
255 |
+
msgstr " MB"
|
256 |
+
|
257 |
+
#: libs/blockcountry-settings.php:391 libs/blockcountry-settings.php:399
|
258 |
+
#: libs/blockcountry-settings.php:407 libs/blockcountry-settings.php:464
|
259 |
+
msgid "N/A"
|
260 |
+
msgstr "N/A"
|
261 |
+
|
262 |
+
#: libs/blockcountry-settings.php:394
|
263 |
+
msgid "PHP Memory Limit"
|
264 |
+
msgstr "PHP Memory Limit"
|
265 |
+
|
266 |
+
#: libs/blockcountry-settings.php:402
|
267 |
+
msgid "PHP Max Upload Size"
|
268 |
+
msgstr "PHP Max Upload Size"
|
269 |
+
|
270 |
+
#: libs/blockcountry-settings.php:410
|
271 |
+
msgid "PHP Max Post Size"
|
272 |
+
msgstr "PHP Max Post Size"
|
273 |
+
|
274 |
+
#: libs/blockcountry-settings.php:413 libs/blockcountry-settings.php:421
|
275 |
+
#: libs/blockcountry-settings.php:429 libs/blockcountry-settings.php:437
|
276 |
+
#: libs/blockcountry-settings.php:445 libs/blockcountry-settings.php:454
|
277 |
+
#: libs/blockcountry-settings.php:471
|
278 |
+
msgid "On"
|
279 |
+
msgstr "Aan"
|
280 |
+
|
281 |
+
#: libs/blockcountry-settings.php:418
|
282 |
+
msgid "PHP Safe Mode"
|
283 |
+
msgstr "PHP Safe Mode"
|
284 |
+
|
285 |
+
#: libs/blockcountry-settings.php:426
|
286 |
+
msgid "PHP Allow URL fopen"
|
287 |
+
msgstr "PHP Allow URL fopen"
|
288 |
+
|
289 |
+
#: libs/blockcountry-settings.php:434
|
290 |
+
msgid "PHP Allow URL Include"
|
291 |
+
msgstr "PHP Allow URL Include"
|
292 |
+
|
293 |
+
#: libs/blockcountry-settings.php:442
|
294 |
+
msgid "PHP Display Errors"
|
295 |
+
msgstr "PHP Display Errors"
|
296 |
+
|
297 |
+
#: libs/blockcountry-settings.php:450
|
298 |
+
msgid "PHP Display Startup Errors"
|
299 |
+
msgstr "PHP Display Startup Errors"
|
300 |
+
|
301 |
+
#: libs/blockcountry-settings.php:459
|
302 |
+
msgid "PHP Expose PHP"
|
303 |
+
msgstr "PHP Expose PHP"
|
304 |
+
|
305 |
+
#: libs/blockcountry-settings.php:467
|
306 |
+
msgid "PHP Max Script Execution Time"
|
307 |
+
msgstr "PHP Max Script Execution Time"
|
308 |
+
|
309 |
+
#: libs/blockcountry-settings.php:468
|
310 |
+
msgid "Seconds"
|
311 |
+
msgstr "Seconden"
|
312 |
+
|
313 |
+
#: libs/blockcountry-settings.php:476
|
314 |
+
msgid "PHP open_basedir"
|
315 |
+
msgstr "PHP open_basedir"
|
316 |
+
|
317 |
+
#: libs/blockcountry-settings.php:479 libs/blockcountry-settings.php:487
|
318 |
+
msgid "Yes"
|
319 |
+
msgstr "Ja"
|
320 |
+
|
321 |
+
#: libs/blockcountry-settings.php:481 libs/blockcountry-settings.php:489
|
322 |
+
msgid "No"
|
323 |
+
msgstr "Nee"
|
324 |
+
|
325 |
+
#: libs/blockcountry-settings.php:484
|
326 |
+
msgid "PHP XML Support"
|
327 |
+
msgstr "PHP XML Support"
|
328 |
+
|
329 |
+
#: libs/blockcountry-settings.php:492
|
330 |
+
msgid "PHP IPTC Support"
|
331 |
+
msgstr "PHP IPTC Support"
|
332 |
+
|
333 |
+
#: libs/blockcountry-settings.php:494
|
334 |
+
msgid "Disabled PHP Functions"
|
335 |
+
msgstr "Disabled PHP Functions"
|
336 |
+
|
337 |
+
#: libs/blockcountry-settings.php:501
|
338 |
+
msgid "Wordpress info"
|
339 |
+
msgstr "Wordpress Informatie"
|
340 |
+
|
341 |
+
#: libs/blockcountry-settings.php:506
|
342 |
+
msgid "is enabled"
|
343 |
+
msgstr "is aangezet"
|
344 |
+
|
345 |
+
#: libs/blockcountry-settings.php:508
|
346 |
+
msgid "is disabled"
|
347 |
+
msgstr "Is uitgezet"
|
348 |
+
|
349 |
+
#: libs/blockcountry-settings.php:511
|
350 |
+
msgid " Multisite"
|
351 |
+
msgstr "Multisite"
|
352 |
+
|
353 |
+
#: libs/blockcountry-settings.php:514
|
354 |
+
msgid "are enabled"
|
355 |
+
msgstr "is aangezet"
|
356 |
+
|
357 |
+
#: libs/blockcountry-settings.php:516
|
358 |
+
msgid "are disabled"
|
359 |
+
msgstr "Is uitgezet"
|
360 |
+
|
361 |
+
#: libs/blockcountry-settings.php:519
|
362 |
+
msgid "Permalinks"
|
363 |
+
msgstr "Permalinks"
|
364 |
+
|
365 |
+
#: libs/blockcountry-settings.php:536
|
366 |
msgid "Export"
|
367 |
msgstr "Exporteren"
|
368 |
|
369 |
+
#: libs/blockcountry-settings.php:537
|
370 |
msgid ""
|
371 |
"When you click on <tt>Backup all settings</tt> button a backup of the iQ "
|
372 |
"Block Country configuration will be created."
|
374 |
"Wanneer je klikt op de <tt>Backup alle instellingen</tt> knop zal een backup "
|
375 |
"van alle iQ Block Country instellingen worden gecreerd."
|
376 |
|
377 |
+
#: libs/blockcountry-settings.php:538
|
378 |
msgid ""
|
379 |
"After exporting, you can either use the backup file to restore your settings "
|
380 |
"on this site again or copy the settings to another WordPress site."
|
383 |
"te herstellen of je kunt het bestand gebruiken om je instellingen naar een "
|
384 |
"andere WordPress site te exporteren."
|
385 |
|
386 |
+
#: libs/blockcountry-settings.php:542
|
387 |
msgid "Backup all settings"
|
388 |
msgstr "Backup alle instellingen"
|
389 |
|
390 |
+
#: libs/blockcountry-settings.php:549
|
391 |
msgid "Import"
|
392 |
msgstr "Importeer"
|
393 |
|
394 |
+
#: libs/blockcountry-settings.php:550
|
395 |
msgid "Click the browse button and choose a zip file that you exported before."
|
396 |
msgstr ""
|
397 |
"Klik op de Browse button and selecteer een zip file welke je eerder hebt "
|
398 |
"geexporteerd."
|
399 |
|
400 |
+
#: libs/blockcountry-settings.php:551
|
401 |
msgid "Press Restore settings button, and let WordPress do the magic for you."
|
402 |
msgstr ""
|
403 |
"Druk op de herstel instellingen knop en laat WordPress haar magie voor je "
|
404 |
"doen."
|
405 |
|
406 |
+
#: libs/blockcountry-settings.php:556
|
407 |
msgid "Restore settings"
|
408 |
msgstr "Herstel instellingen"
|
409 |
|
410 |
+
#: libs/blockcountry-settings.php:579 libs/blockcountry-settings.php:582
|
411 |
+
#: libs/blockcountry-settings.php:591
|
412 |
msgid "Something went wrong exporting this file"
|
413 |
msgstr "Er is iets verkeerd gegaan met het exporteren van het bestand."
|
414 |
|
415 |
+
#: libs/blockcountry-settings.php:594
|
416 |
msgid "Exporting settings..."
|
417 |
msgstr "Exporteer instellingen"
|
418 |
|
419 |
+
#: libs/blockcountry-settings.php:609
|
420 |
msgid "Something went wrong importing this file"
|
421 |
msgstr "Er is iets verkeerd gegaan met het importeren van dit bestand"
|
422 |
|
423 |
+
#: libs/blockcountry-settings.php:626
|
424 |
msgid "All options are restored successfully."
|
425 |
msgstr "Alle opties zijn succesvol hersteld"
|
426 |
|
427 |
+
#: libs/blockcountry-settings.php:629
|
428 |
msgid "Invalid file."
|
429 |
msgstr "Ongeldig bestand"
|
430 |
|
431 |
+
#: libs/blockcountry-settings.php:634
|
432 |
msgid "No correct import or export option given."
|
433 |
msgstr "Geen correcte importeer of exporteer optie gegeven."
|
434 |
|
435 |
+
#: libs/blockcountry-settings.php:643
|
436 |
msgid "Select which pages are blocked."
|
437 |
msgstr "Selecteer welke pagina's geblokkeerd worden."
|
438 |
|
439 |
+
#: libs/blockcountry-settings.php:650
|
440 |
msgid "Do you want to block individual pages:"
|
441 |
msgstr "Wil je individuele pagina's blokkeren:"
|
442 |
|
443 |
+
#: libs/blockcountry-settings.php:651
|
444 |
msgid "If you do not select this option all pages will be blocked."
|
445 |
msgstr "Indien je deze optie niet selecteert worden alle pagina's geblokkeerd."
|
446 |
|
447 |
+
#: libs/blockcountry-settings.php:656
|
448 |
msgid "Select pages you want to block:"
|
449 |
msgstr "Selecteer welke pagina's je wil blokkeren."
|
450 |
|
451 |
+
#: libs/blockcountry-settings.php:678 libs/blockcountry-settings.php:732
|
452 |
+
#: libs/blockcountry-settings.php:780 libs/blockcountry-settings.php:825
|
453 |
+
#: libs/blockcountry-settings.php:953 libs/blockcountry-settings.php:1085
|
454 |
+
#: libs/blockcountry-settings.php:1278
|
455 |
msgid "Save Changes"
|
456 |
msgstr "Bewaar wijzigingen"
|
457 |
|
458 |
+
#: libs/blockcountry-settings.php:691
|
459 |
msgid "Select which categories are blocked."
|
460 |
msgstr "Selecteer welke categorieen geblokkeerd worden."
|
461 |
|
462 |
+
#: libs/blockcountry-settings.php:698
|
463 |
msgid "Do you want to block individual categories:"
|
464 |
msgstr "Wil je individuele categorieen blokkeren:"
|
465 |
|
466 |
+
#: libs/blockcountry-settings.php:699
|
467 |
msgid "If you do not select this option all blog articles will be blocked."
|
468 |
msgstr ""
|
469 |
"Indien je deze optie niet selecteert worden alle blog artikelen geblokkeerd."
|
470 |
|
471 |
+
#: libs/blockcountry-settings.php:704
|
472 |
msgid "Do you want to block the homepage:"
|
473 |
msgstr "Wil je je homepage blokkeren:"
|
474 |
|
475 |
+
#: libs/blockcountry-settings.php:705
|
476 |
msgid ""
|
477 |
"If you do not select this option visitors will not be blocked from your "
|
478 |
"homepage regardless of the categories you select."
|
481 |
"geblokkeerd van het bezoeken van je homepagina ongeacht welke categorieen je "
|
482 |
"selecteert."
|
483 |
|
484 |
+
#: libs/blockcountry-settings.php:710
|
485 |
msgid "Select categories you want to block:"
|
486 |
msgstr "Selecteer welke categorieen je wil blokkeren."
|
487 |
|
488 |
+
#: libs/blockcountry-settings.php:746
|
489 |
msgid "Select which post types are blocked."
|
490 |
msgstr "Selecteer welke post types geblokkeerd worden."
|
491 |
|
492 |
+
#: libs/blockcountry-settings.php:753
|
493 |
msgid "Do you want to block individual post types:"
|
494 |
msgstr "Wil je individuele post types blokkeren:"
|
495 |
|
496 |
+
#: libs/blockcountry-settings.php:758
|
497 |
msgid "Select post types you want to block:"
|
498 |
msgstr "Selecteer welke post types je wil blokkeren."
|
499 |
|
500 |
+
#: libs/blockcountry-settings.php:795
|
501 |
msgid "Select which search engines are allowed."
|
502 |
msgstr "Selecteer welke zoek machines je wilt toestaan."
|
503 |
|
504 |
+
#: libs/blockcountry-settings.php:802
|
505 |
msgid "Select which search engines you want to allow:"
|
506 |
msgstr "Selecteer welke zoek machines je wilt toestaan:"
|
507 |
|
508 |
+
#: libs/blockcountry-settings.php:803
|
509 |
msgid ""
|
510 |
"This will allow a search engine to your site despite if you blocked the "
|
511 |
"country."
|
513 |
"Deze optie staat het toe dat zoekmachines je site bezoeken ondanks dat ze "
|
514 |
"uit een land komen welk geblokkeerd is."
|
515 |
|
516 |
+
#: libs/blockcountry-settings.php:840
|
517 |
msgid "Frontend options"
|
518 |
msgstr "Voorkant opties"
|
519 |
|
520 |
+
#: libs/blockcountry-settings.php:874
|
521 |
msgid ""
|
522 |
"Do not block visitors that are logged in from visiting frontend website:"
|
523 |
msgstr ""
|
524 |
"Blokkeer geen bezoekers welke ingelogd zijn van het bezoeken van de voorkant:"
|
525 |
|
526 |
+
#: libs/blockcountry-settings.php:880
|
527 |
msgid "Block visitors from visiting the frontend of your website:"
|
528 |
msgstr "Blokkeer bezoekers van het bezoeken van de voorkant van je website:"
|
529 |
|
530 |
+
#: libs/blockcountry-settings.php:886
|
531 |
msgid "Block visitors from using the search function of your website:"
|
532 |
msgstr ""
|
533 |
"Blokkeer bezoekers van het bezoeken van de zoek functie van je website:"
|
534 |
|
535 |
+
#: libs/blockcountry-settings.php:892
|
536 |
msgid ""
|
537 |
"Select the countries that should be blocked from visiting your frontend:"
|
538 |
msgstr ""
|
539 |
"Selecteer de landen welke geblokkeerd moeten worden voor het bezoeken van de "
|
540 |
"voorkant van je website:"
|
541 |
|
542 |
+
#: libs/blockcountry-settings.php:893
|
543 |
msgid "Use the CTRL key to select multiple countries"
|
544 |
msgstr "Gebruik de CTRL toets om meerdere landen te selecteren"
|
545 |
|
546 |
+
#: libs/blockcountry-settings.php:930 libs/blockcountry-settings.php:1061
|
547 |
msgid "Inverse the selection above:"
|
548 |
msgstr "Keer bovenstaande selectie om:"
|
549 |
|
550 |
+
#: libs/blockcountry-settings.php:931 libs/blockcountry-settings.php:1062
|
551 |
msgid ""
|
552 |
"If you select this option only the countries that are selected are "
|
553 |
"<em>allowed</em>."
|
555 |
"Indien je deze optie selecteert de zijn de landen die hierboven geselecteerd "
|
556 |
"<em>toegestaan</em>."
|
557 |
|
558 |
+
#: libs/blockcountry-settings.php:936
|
559 |
msgid "Frontend whitelist IPv4 and/or IPv6 addresses:"
|
560 |
msgstr ""
|
561 |
"Whitelist van IPv4 of IPv6 IP adressen voor de voorkant van je website:"
|
562 |
|
563 |
+
#: libs/blockcountry-settings.php:936 libs/blockcountry-settings.php:944
|
564 |
+
#: libs/blockcountry-settings.php:1068 libs/blockcountry-settings.php:1076
|
565 |
msgid "Use a semicolon (;) to separate IP addresses"
|
566 |
msgstr "Gebruik een puntkomma (;) om adressen van elkaar te scheiden"
|
567 |
|
568 |
+
#: libs/blockcountry-settings.php:944
|
569 |
msgid "Frontend blacklist IPv4 and/or IPv6 addresses:"
|
570 |
msgstr ""
|
571 |
"Blacklist van IPv4 of IPv6 IP adressen voor de voorkant van je website:"
|
572 |
|
573 |
+
#: libs/blockcountry-settings.php:973
|
574 |
msgid "Backend Options"
|
575 |
msgstr "Achterkant opties"
|
576 |
|
577 |
+
#: libs/blockcountry-settings.php:1007
|
578 |
msgid ""
|
579 |
"Block visitors from visiting the backend (administrator) of your website:"
|
580 |
msgstr ""
|
581 |
"Blokkeer bezoekers van het bezoeken van de achterkant (administratie "
|
582 |
"gedeelte) van je website:"
|
583 |
|
584 |
+
#: libs/blockcountry-settings.php:1015
|
585 |
msgid "Your IP address is"
|
586 |
msgstr "Je IP adres is"
|
587 |
|
588 |
+
#: libs/blockcountry-settings.php:1015
|
589 |
msgid "The country that is listed for this IP address is"
|
590 |
msgstr "Het land waar dit adres toe behoort is"
|
591 |
|
592 |
+
#: libs/blockcountry-settings.php:1016
|
593 |
msgid ""
|
594 |
"Do <strong>NOT</strong> set the 'Block visitors from visiting the backend "
|
595 |
"(administrator) of your website' and also select"
|
597 |
"Selecteer <strong>NIET</strong> \"Blokkeer bezoekers van het bezoeken van de "
|
598 |
"achterkant (administratie gedeelte) van je website\" en"
|
599 |
|
600 |
+
#: libs/blockcountry-settings.php:1016
|
601 |
msgid "below."
|
602 |
msgstr "hier beneden."
|
603 |
|
604 |
+
#: libs/blockcountry-settings.php:1017
|
605 |
msgid ""
|
606 |
"You will NOT be able to login the next time if you DO block your own country "
|
607 |
"from visiting the backend."
|
609 |
"Het zal daarna niet meer mogelijk zijn om nog in te loggen als je je eigen "
|
610 |
"land blokkeert van het bezoeken van de achterkant van je website."
|
611 |
|
612 |
+
#: libs/blockcountry-settings.php:1022
|
613 |
msgid "Select the countries that should be blocked from visiting your backend:"
|
614 |
msgstr ""
|
615 |
"Selecteer de landen welke geblokkeerd moeten worden voor het bezoeken van de "
|
616 |
"achterkant (administratie gedeelte) van je website:"
|
617 |
|
618 |
+
#: libs/blockcountry-settings.php:1023
|
619 |
msgid "Use the x behind the country to remove a country from this blocklist."
|
620 |
msgstr ""
|
621 |
"Gebruik de x achter een land om het land te verwijderen uit deze lijst."
|
622 |
|
623 |
+
#: libs/blockcountry-settings.php:1068
|
624 |
msgid "Backend whitelist IPv4 and/or IPv6 addresses:"
|
625 |
msgstr ""
|
626 |
"Whitelist van IPv4 of IPv6 IP adressen voor de achterkant van je website:"
|
627 |
|
628 |
+
#: libs/blockcountry-settings.php:1076
|
629 |
msgid "Backend blacklist IPv4 and/or IPv6 addresses:"
|
630 |
msgstr ""
|
631 |
"Blacklist van IPv4 of IPv6 IP adressen voor de achterkant van je website:"
|
632 |
|
633 |
+
#: libs/blockcountry-settings.php:1106
|
634 |
msgid "Overall statistics since start"
|
635 |
msgstr "Statistieken sinds het begin"
|
636 |
|
637 |
+
#: libs/blockcountry-settings.php:1109
|
638 |
msgid "visitors blocked from the backend."
|
639 |
msgstr "bezoekers geblokkeerd op de achterkant."
|
640 |
|
641 |
+
#: libs/blockcountry-settings.php:1111
|
642 |
msgid "visitors blocked from the frontend."
|
643 |
msgstr "bezoekers geblokkeerd op de voorkant."
|
644 |
|
645 |
+
#: libs/blockcountry-settings.php:1115
|
646 |
msgid "Basic Options"
|
647 |
msgstr "Standaard opties"
|
648 |
|
649 |
+
#: libs/blockcountry-settings.php:1150
|
650 |
msgid "Message to display when people are blocked:"
|
651 |
msgstr "Welk bericht wil je tonen aan bezoekers welke geblokkeerd worden:"
|
652 |
|
653 |
+
#: libs/blockcountry-settings.php:1161
|
654 |
msgid "Page to redirect to:"
|
655 |
msgstr "Naar welke pagina wilt u bezoekers toesturen:"
|
656 |
|
657 |
+
#: libs/blockcountry-settings.php:1162
|
658 |
msgid ""
|
659 |
"If you select a page here blocked visitors will be redirected to this page "
|
660 |
"instead of displaying above block message."
|
663 |
"doorgestuurd naar deze pagina anders wordt bovestaande tekst getoond aan "
|
664 |
"bezoekers."
|
665 |
|
666 |
+
#: libs/blockcountry-settings.php:1168
|
667 |
msgid "Choose a page..."
|
668 |
msgstr "Kies een pagina..."
|
669 |
|
670 |
+
#: libs/blockcountry-settings.php:1183
|
671 |
msgid "URL to redirect to:"
|
672 |
msgstr "Naar welke URL wilt u geblokkerde bezoekers verwijzen:"
|
673 |
|
674 |
+
#: libs/blockcountry-settings.php:1184
|
675 |
msgid ""
|
676 |
"If you enter a URL here blocked visitors will be redirected to this URL "
|
677 |
"instead of displaying above block message or redirected to a local page."
|
680 |
"naar deze url anders wordt bovestaande blokkeer tekst getoond aan bezoekers "
|
681 |
"of worden bezoekers doorverwezen naar de geselecteerde pagina."
|
682 |
|
683 |
+
#: libs/blockcountry-settings.php:1191
|
684 |
msgid "Send headers when user is blocked:"
|
685 |
msgstr "Stuur headers wanneer een gebruiker is geblokkeerd:"
|
686 |
|
687 |
+
#: libs/blockcountry-settings.php:1192
|
688 |
msgid ""
|
689 |
"Under normal circumstances you should keep this selected! Only if you have "
|
690 |
"\"Cannot modify header information - headers already sent\" errors or if you "
|
694 |
"deze alleen indien je \"Cannot modify header information - headers already "
|
695 |
"sent\" foutmeldingen krijgt of indien je weet wat je doet."
|
696 |
|
697 |
+
#: libs/blockcountry-settings.php:1198
|
698 |
msgid "Buffer output?:"
|
699 |
msgstr "Buffer output?"
|
700 |
|
701 |
+
#: libs/blockcountry-settings.php:1199
|
702 |
msgid ""
|
703 |
"You can use this option to buffer all output. This can be helpful in case "
|
704 |
"you have \"headers already sent\" issues."
|
706 |
"Je kunt deze optie gebruiken om alle output te bufferen. Dit kan helpen "
|
707 |
"indien je \"headers already sent\" problemen hebt."
|
708 |
|
709 |
+
#: libs/blockcountry-settings.php:1205
|
710 |
msgid "Do not log IP addresses:"
|
711 |
msgstr "Log geen IP adressen"
|
712 |
|
713 |
+
#: libs/blockcountry-settings.php:1206
|
714 |
msgid ""
|
715 |
"Check this box if the laws in your country do not permit you to log IP "
|
716 |
"addresses or if you do not want to log the ip addresses."
|
719 |
"adressen vast te leggen of indien je zelf deze informatie niet wilt "
|
720 |
"vastleggen."
|
721 |
|
722 |
+
#: libs/blockcountry-settings.php:1213
|
723 |
msgid "Number of rows on statistics page:"
|
724 |
msgstr "Aantal regels op de statistieken pagina:"
|
725 |
|
726 |
+
#: libs/blockcountry-settings.php:1214
|
727 |
msgid "How many rows do you want to display on each tab the statistics page."
|
728 |
msgstr "Hoeveel regels wil je tonen op de statistieken pagina."
|
729 |
|
730 |
+
#: libs/blockcountry-settings.php:1229
|
731 |
msgid "Allow tracking:"
|
732 |
msgstr "Sta traceren toe:"
|
733 |
|
734 |
+
#: libs/blockcountry-settings.php:1230
|
735 |
msgid ""
|
736 |
"This sends only the IP address and the number of attempts this ip address "
|
737 |
"tried to login to your backend and was blocked doing so to a central server. "
|
744 |
"ons om beter inzicht te krijgen in de landen waarvandaan een hoop hack "
|
745 |
"pogingen worden gedaan. "
|
746 |
|
747 |
+
#: libs/blockcountry-settings.php:1236
|
748 |
msgid "GeoIP API Key:"
|
749 |
msgstr "GeoIP API sleutel:"
|
750 |
|
751 |
+
#: libs/blockcountry-settings.php:1237
|
752 |
msgid ""
|
753 |
"If for some reason you cannot or do not want to download the MaxMind GeoIP "
|
754 |
"databases you will need an API key for the GeoIP api.<br />You can get an "
|
758 |
"Maxmind GeoIP heb je een API sleutelnodig voor de GeoIP api.<br />Je kunt "
|
759 |
"een API sleutel verkrijgen op:"
|
760 |
|
761 |
+
#: libs/blockcountry-settings.php:1245
|
762 |
msgid "GeoIP API Key Server Location:"
|
763 |
msgstr "GeoIP API sleutel server locatie:"
|
764 |
|
765 |
+
#: libs/blockcountry-settings.php:1246
|
766 |
msgid "Choose a location closest to your own location."
|
767 |
msgstr "Kies een land welke het dichtsbij is bij je eigen land."
|
768 |
|
769 |
+
#: libs/blockcountry-settings.php:1254
|
770 |
msgid "Admin block API Key:"
|
771 |
msgstr "Admin block API Sleutel:"
|
772 |
|
773 |
+
#: libs/blockcountry-settings.php:1255
|
774 |
msgid ""
|
775 |
"This is an experimantal feature. You do not need an API key for this plugin "
|
776 |
"to work."
|
778 |
"Dit is een experimentele optie. Je hebt geen API key nodig om deze plugin te "
|
779 |
"laten werken."
|
780 |
|
781 |
+
#: libs/blockcountry-settings.php:1262
|
782 |
msgid "Log all visits to the backend:"
|
783 |
msgstr "Log alle bezoekers op de achterkant:"
|
784 |
|
785 |
+
#: libs/blockcountry-settings.php:1263
|
786 |
msgid ""
|
787 |
"This logs all visits to the backend despite if they are blocked or not. This "
|
788 |
"is mainly for debugging purposes."
|
790 |
"Dit logt alle bezoeken aan de achterkant ongeacht of de bezoeker werd "
|
791 |
"geblokkeerd of niet. Dit is voornamelijk bedoeld voor fout opsporing."
|
792 |
|
793 |
+
#: libs/blockcountry-settings.php:1270
|
794 |
msgid "Accessibility options:"
|
795 |
msgstr "Toegankelijkheids opties:"
|
796 |
|
797 |
+
#: libs/blockcountry-settings.php:1271
|
798 |
msgid "Set this option if you cannot use the default country selection box."
|
799 |
msgstr ""
|
800 |
"Selecteer deze optie indien je de landen standaard selectie methode niet "
|
801 |
"kunt gebruiken. "
|
802 |
|
803 |
+
#: libs/blockcountry-settings.php:1296
|
804 |
msgid "Last blocked visits"
|
805 |
msgstr "Laatste geblokkeerde bezoekers"
|
806 |
|
807 |
+
#: libs/blockcountry-settings.php:1310
|
808 |
msgid "Date / Time"
|
809 |
msgstr "Datum / Tijd"
|
810 |
|
811 |
+
#: libs/blockcountry-settings.php:1310 libs/blockcountry-settings.php:1342
|
812 |
msgid "IP Address"
|
813 |
msgstr "IP adres"
|
814 |
|
815 |
+
#: libs/blockcountry-settings.php:1310 libs/blockcountry-settings.php:1342
|
816 |
msgid "Hostname"
|
817 |
msgstr "Hostnaam"
|
818 |
|
819 |
+
#: libs/blockcountry-settings.php:1310 libs/blockcountry-settings.php:1329
|
820 |
msgid "Country"
|
821 |
msgstr "Land"
|
822 |
|
823 |
+
#: libs/blockcountry-settings.php:1310
|
824 |
msgid "Frontend/Backend"
|
825 |
msgstr "Voorkant/Achterkant"
|
826 |
|
827 |
+
#: libs/blockcountry-settings.php:1320 libs/blockcountry-settings.php:1422
|
828 |
msgid "Frontend"
|
829 |
msgstr "Voorkant"
|
830 |
|
831 |
+
#: libs/blockcountry-settings.php:1320
|
832 |
msgid "Backend banlist"
|
833 |
msgstr "Achterkant banlist"
|
834 |
|
835 |
+
#: libs/blockcountry-settings.php:1320
|
836 |
msgid "Backend & Backend banlist"
|
837 |
msgstr "Achterkant & Achterkant banlist"
|
838 |
|
839 |
+
#: libs/blockcountry-settings.php:1320 libs/blockcountry-settings.php:1423
|
840 |
msgid "Backend"
|
841 |
msgstr "Achterkant"
|
842 |
|
843 |
+
#: libs/blockcountry-settings.php:1327
|
844 |
msgid "Top countries that are blocked"
|
845 |
msgstr "Top landen welke zijn geblokkeerd"
|
846 |
|
847 |
+
#: libs/blockcountry-settings.php:1329 libs/blockcountry-settings.php:1342
|
848 |
+
#: libs/blockcountry-settings.php:1353
|
849 |
msgid "# of blocked attempts"
|
850 |
msgstr "# of geblokkeerde pogingen"
|
851 |
|
852 |
+
#: libs/blockcountry-settings.php:1340
|
853 |
msgid "Top hosts that are blocked"
|
854 |
msgstr "Top hosts welke geblokkeerd zijn"
|
855 |
|
856 |
+
#: libs/blockcountry-settings.php:1351
|
857 |
msgid "Top URLs that are blocked"
|
858 |
msgstr "Top URLs welke geblokkeerd zijn"
|
859 |
|
860 |
+
#: libs/blockcountry-settings.php:1369
|
861 |
msgid "Clear database"
|
862 |
msgstr "Leeg database"
|
863 |
|
864 |
+
#: libs/blockcountry-settings.php:1392
|
865 |
+
msgid "Download as CSV file"
|
866 |
+
msgstr "Download als een csv bestand."
|
867 |
+
|
868 |
+
#: libs/blockcountry-settings.php:1399
|
869 |
msgid ""
|
870 |
"You are not logging any information. Please uncheck the option 'Do not log "
|
871 |
"IP addresses' if this is not what you want."
|
873 |
"Je logt geen informatie. Deselecteer alstublieft de optie 'Log geen IP "
|
874 |
"adressen' indien dit niet is wat je wilt."
|
875 |
|
876 |
+
#: libs/blockcountry-settings.php:1421
|
877 |
msgid "Home"
|
878 |
msgstr "Home"
|
879 |
|
880 |
+
#: libs/blockcountry-settings.php:1424
|
881 |
msgid "Pages"
|
882 |
msgstr "Pagina's"
|
883 |
|
884 |
+
#: libs/blockcountry-settings.php:1425
|
885 |
msgid "Categories"
|
886 |
msgstr "Categorieen"
|
887 |
|
888 |
+
#: libs/blockcountry-settings.php:1426
|
889 |
msgid "Post types"
|
890 |
msgstr "Post types"
|
891 |
|
892 |
+
#: libs/blockcountry-settings.php:1427
|
893 |
msgid "Search Engines"
|
894 |
msgstr "Zoek machines"
|
895 |
|
896 |
+
#: libs/blockcountry-settings.php:1428
|
897 |
msgid "Tools"
|
898 |
msgstr "Gereedschap"
|
899 |
|
900 |
+
#: libs/blockcountry-settings.php:1429
|
901 |
msgid "Logging"
|
902 |
msgstr "Statistieken"
|
903 |
|
904 |
+
#: libs/blockcountry-settings.php:1430
|
905 |
msgid "Import/Export"
|
906 |
msgstr "Importeren/Exporteren"
|
907 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
908 |
#~ msgid "Automatic update is not setup. Last update: "
|
909 |
#~ msgstr "Automatisch updaten is niet geconfigureerd. Laatste update:"
|
910 |
|
libs/blockcountry-checks.php
CHANGED
@@ -203,18 +203,19 @@ function iqblockcountry_check($country,$badcountries,$ip_address)
|
|
203 |
}
|
204 |
if ($flagged) { $blocked = TRUE; } else { $blocked = FALSE; }
|
205 |
}
|
|
|
206 |
if (is_category() && $blockedcategory == "on")
|
207 |
{
|
|
|
208 |
$blockedcategories = get_option('blockcountry_categories');
|
209 |
-
if (
|
210 |
-
if (is_category($blockedcategories))
|
211 |
{
|
212 |
-
$
|
213 |
}
|
214 |
-
|
215 |
-
|
216 |
-
$blocked = FALSE;
|
217 |
}
|
|
|
218 |
}
|
219 |
|
220 |
|
203 |
}
|
204 |
if ($flagged) { $blocked = TRUE; } else { $blocked = FALSE; }
|
205 |
}
|
206 |
+
|
207 |
if (is_category() && $blockedcategory == "on")
|
208 |
{
|
209 |
+
$flagged = FALSE;
|
210 |
$blockedcategories = get_option('blockcountry_categories');
|
211 |
+
if (is_category($blockedcategories) && ((is_array ( $badcountries ) && in_array ( $country, $badcountries ) || (is_array ( $frontendblacklistip ) && in_array ( $ip_address, $frontendblacklistip)))))
|
|
|
212 |
{
|
213 |
+
$flagged = TRUE;
|
214 |
}
|
215 |
+
if (is_array ( $frontendwhitelistip ) && in_array ( $ip_address, $frontendwhitelistip)) {
|
216 |
+
$flagged = FALSE;
|
|
|
217 |
}
|
218 |
+
if ($flagged) { $blocked = TRUE; } else { $blocked = FALSE; }
|
219 |
}
|
220 |
|
221 |
|
libs/blockcountry-settings.php
CHANGED
@@ -48,17 +48,17 @@ function iq_missing_db_notice()
|
|
48 |
?>
|
49 |
<div class="error">
|
50 |
<h3>iQ Block Country</h3>
|
51 |
-
<p><?php _e('The MaxMind GeoIP database does not exist. Please download this file manually or if you wish to use the GeoIP API get an API key from: ', '
|
52 |
-
<p><?php _e("Please download the database from: " , '
|
53 |
<?php echo "<a href=\"" . IPV4DB . "\" target=\"_blank\">" . IPV4DB . "</a> "; ?>
|
54 |
-
<?php _e("unzip the file and afterwards upload it to the following location: " , '
|
55 |
<b><?php echo IPV4DBFILE; ?></b></p>
|
56 |
|
57 |
-
<p><?php _e("If you also use IPv6 please also download the database from: " , '
|
58 |
<?php echo "<a href=\"" . IPV6DB . "\" target=\"_blank\">" . IPV6DB . "</a> "; ?>
|
59 |
-
<?php _e("unzip the file and afterwards upload it to the following location: " , '
|
60 |
<b><?php echo IPV6DBFILE; ?></b></p>
|
61 |
-
<p><?php _e('For more detailed instructions take a look at the documentation..', '
|
62 |
|
63 |
</div>
|
64 |
<?php
|
@@ -152,6 +152,7 @@ function iqblockcountry_set_defaults()
|
|
152 |
if (get_option('blockcountry_nrstatistics') === FALSE) { update_option('blockcountry_nrstatistics',15); }
|
153 |
if (get_option('blockcountry_backendwhitelist') === FALSE || (get_option('blockcountry_backendwhitelist') == "")) { update_option('blockcountry_backendwhitelist',$ip_address); }
|
154 |
iqblockcountry_install_db();
|
|
|
155 |
}
|
156 |
|
157 |
|
@@ -203,12 +204,12 @@ function iqblockcountry_uninstall() //deletes all the database entries that the
|
|
203 |
|
204 |
function iqblockcountry_settings_tools() {
|
205 |
?>
|
206 |
-
<h3><?php _e('Check which country belongs to an IP Address according to the current database.', '
|
207 |
|
208 |
<form name="ipcheck" action="#ipcheck" method="post">
|
209 |
<input type="hidden" name="action" value="ipcheck" />
|
210 |
<input name="ipcheck_nonce" type="hidden" value="<?php echo wp_create_nonce('ipcheck_nonce'); ?>" />
|
211 |
-
<?php _e('IP Address to check:', '
|
212 |
<?php
|
213 |
|
214 |
|
@@ -224,23 +225,23 @@ function iqblockcountry_settings_tools() {
|
|
224 |
$countrylist = iqblockcountry_get_countries();
|
225 |
if ($country == "Unknown" || $country == "ipv6" || $country == "" || $country == "FALSE")
|
226 |
{
|
227 |
-
echo "<p>" . __('No country for', '
|
228 |
echo "</p>";
|
229 |
}
|
230 |
else {
|
231 |
$displaycountry = $countrylist[$country];
|
232 |
-
echo "<p>" . __('IP Adress', '
|
233 |
$haystack = get_option('blockcountry_banlist');
|
234 |
if (!is_array($haystack)) { $haystack = array(); }
|
235 |
$inverse = get_option( 'blockcountry_banlist_inverse');
|
236 |
if ($inverse) {
|
237 |
if (is_array($haystack) && !in_array ($country, $haystack )) {
|
238 |
-
_e('This country is not permitted to visit the frontend of this website.', '
|
239 |
echo "<br />";
|
240 |
}
|
241 |
} else {
|
242 |
if (is_array($haystack) && in_array ( $country, $haystack )) {
|
243 |
-
_e('This country is not permitted to visit the frontend of this website.', '
|
244 |
echo "<br />";
|
245 |
}
|
246 |
}
|
@@ -249,39 +250,39 @@ function iqblockcountry_settings_tools() {
|
|
249 |
if (!is_array($haystack)) { $haystack = array(); }
|
250 |
if ($inverse) {
|
251 |
if (is_array($haystack) && !in_array ( $country, $haystack )) {
|
252 |
-
_e('This country is not permitted to visit the backend of this website.', '
|
253 |
echo "<br />";
|
254 |
}
|
255 |
}
|
256 |
else
|
257 |
{
|
258 |
if (is_array($haystack) && in_array ( $country, $haystack )) {
|
259 |
-
_e('This country is not permitted to visit the backend of this website.', '
|
260 |
echo "<br />";
|
261 |
}
|
262 |
}
|
263 |
$backendbanlistip = unserialize(get_option('blockcountry_backendbanlistip'));
|
264 |
if (is_array($backendbanlistip) && in_array($ip_address,$backendbanlistip)) {
|
265 |
-
_e('This ip is present in the blacklist.', '
|
266 |
}
|
267 |
}
|
268 |
}
|
269 |
}
|
270 |
}
|
271 |
-
echo '<div class="submit"><input type="submit" name="test" value="' . __( 'Check IP address', '
|
272 |
wp_nonce_field('iqblockcountry');
|
273 |
?>
|
274 |
</form>
|
275 |
|
276 |
<hr />
|
277 |
-
<h3><?php _e('Active plugins', '
|
278 |
<?php
|
279 |
|
280 |
$plugins = get_plugins();
|
281 |
$plugins_string = '';
|
282 |
|
283 |
echo '<table class="widefat">';
|
284 |
-
echo '<thead><tr><th>' . __('Plugin name', '
|
285 |
|
286 |
foreach( array_keys($plugins) as $key ) {
|
287 |
if ( is_plugin_active( $key ) ) {
|
@@ -295,6 +296,232 @@ function iqblockcountry_settings_tools() {
|
|
295 |
}
|
296 |
echo '</table>';
|
297 |
echo $plugins_string;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
298 |
}
|
299 |
|
300 |
/*
|
@@ -306,27 +533,27 @@ function iqblockcountry_settings_importexport() {
|
|
306 |
?>
|
307 |
<div class="wrap">
|
308 |
<div id="icon-tools" class="icon32"><br /></div>
|
309 |
-
<h2><?php _e('Export', '
|
310 |
-
<p><?php _e('When you click on <tt>Backup all settings</tt> button a backup of the iQ Block Country configuration will be created.', '
|
311 |
-
<p><?php _e('After exporting, you can either use the backup file to restore your settings on this site again or copy the settings to another WordPress site.', '
|
312 |
<form method='post'>
|
313 |
<p class="submit">
|
314 |
<?php wp_nonce_field('iqblockexport'); ?>
|
315 |
-
<input type='submit' name='export' value='<?php _e('Backup all settings', '
|
316 |
</p>
|
317 |
</form>
|
318 |
</div>
|
319 |
|
320 |
<div class="wrap">
|
321 |
<div id="icon-tools" class="icon32"><br /></div>
|
322 |
-
<h2><?php _e('Import', '
|
323 |
-
<p><?php _e('Click the browse button and choose a zip file that you exported before.', '
|
324 |
-
<p><?php _e('Press Restore settings button, and let WordPress do the magic for you.', '
|
325 |
<form method='post' enctype='multipart/form-data'>
|
326 |
<p class="submit">
|
327 |
<?php wp_nonce_field('iqblockimport'); ?>
|
328 |
<input type='file' name='import' />
|
329 |
-
<input type='submit' name='import' value='<?php _e('Restore settings', '
|
330 |
</p>
|
331 |
</form>
|
332 |
</div>
|
@@ -349,10 +576,10 @@ function iqblockcountry_settings_importexport() {
|
|
349 |
|
350 |
|
351 |
if ( !$handle = fopen( $dir['path'] . '/' . 'iqblockcountry.ini', 'w' ) )
|
352 |
-
wp_die(__("Something went wrong exporting this file", '
|
353 |
|
354 |
if ( !fwrite( $handle, $json_file ) )
|
355 |
-
wp_die(__("Something went wrong exporting this file", '
|
356 |
|
357 |
fclose( $handle );
|
358 |
|
@@ -361,10 +588,10 @@ function iqblockcountry_settings_importexport() {
|
|
361 |
chdir( $dir['path'] );
|
362 |
$zip = new PclZip( './' . $json_name . '-iqblockcountry.zip' );
|
363 |
if ( $zip->create( './' . 'iqblockcountry.ini' ) == 0 )
|
364 |
-
wp_die(__("Something went wrong exporting this file", '
|
365 |
|
366 |
$url = $dir['url'] . '/' . $json_name . '-iqblockcountry.zip';
|
367 |
-
$content = "<div class='updated'><p>" . __("Exporting settings...", '
|
368 |
|
369 |
if ( $url ) {
|
370 |
$content .= '<script type="text/javascript">
|
@@ -379,7 +606,7 @@ function iqblockcountry_settings_importexport() {
|
|
379 |
$optarr = iqblockcountry_get_options_arr();
|
380 |
if (isset($_FILES['import']) && check_admin_referer('iqblockimport')) {
|
381 |
if ($_FILES['import']['error'] > 0) {
|
382 |
-
wp_die(__("Something went wrong importing this file", '
|
383 |
}
|
384 |
else {
|
385 |
require_once( ABSPATH . 'wp-admin/includes/class-pclzip.php' );
|
@@ -396,15 +623,15 @@ function iqblockcountry_settings_importexport() {
|
|
396 |
unlink($dir['path'] . '/iqblockcountry.ini');
|
397 |
// check if file exists first.
|
398 |
|
399 |
-
echo "<div class='updated'><p>" . __("All options are restored successfully.", '
|
400 |
}
|
401 |
else {
|
402 |
-
echo "<div class='error'><p>" . __("Invalid file.", '
|
403 |
}
|
404 |
}
|
405 |
}
|
406 |
}
|
407 |
-
else { wp_die(__("No correct import or export option given.", '
|
408 |
|
409 |
}
|
410 |
|
@@ -413,20 +640,20 @@ function iqblockcountry_settings_importexport() {
|
|
413 |
*/
|
414 |
function iqblockcountry_settings_pages() {
|
415 |
?>
|
416 |
-
<h3><?php _e('Select which pages are blocked.', '
|
417 |
<form method="post" action="options.php">
|
418 |
<?php
|
419 |
settings_fields ( 'iqblockcountry-settings-group-pages' );
|
420 |
?>
|
421 |
<table class="form-table" cellspacing="2" cellpadding="5" width="100%">
|
422 |
<tr valign="top">
|
423 |
-
<th width="30%"><?php _e('Do you want to block individual pages:', '
|
424 |
-
<?php _e('If you do not select this option all pages will be blocked.', '
|
425 |
<td width="70%">
|
426 |
<input type="checkbox" name="blockcountry_blockpages" value="on" <?php checked('on', get_option('blockcountry_blockpages'), true); ?> />
|
427 |
</td></tr>
|
428 |
<tr valign="top">
|
429 |
-
<th width="30%"><?php _e('Select pages you want to block:', '
|
430 |
<td width="70%">
|
431 |
|
432 |
<ul>
|
@@ -448,7 +675,7 @@ function iqblockcountry_settings_pages() {
|
|
448 |
</td></tr>
|
449 |
<tr><td></td><td>
|
450 |
<p class="submit"><input type="submit" class="button-primary"
|
451 |
-
value="<?php _e ( 'Save Changes' )?>" /></p>
|
452 |
</td></tr>
|
453 |
</table>
|
454 |
</form>
|
@@ -461,26 +688,26 @@ function iqblockcountry_settings_pages() {
|
|
461 |
*/
|
462 |
function iqblockcountry_settings_categories() {
|
463 |
?>
|
464 |
-
<h3><?php _e('Select which categories are blocked.', '
|
465 |
<form method="post" action="options.php">
|
466 |
<?php
|
467 |
settings_fields ( 'iqblockcountry-settings-group-cat' );
|
468 |
?>
|
469 |
<table class="form-table" cellspacing="2" cellpadding="5" width="100%">
|
470 |
<tr valign="top">
|
471 |
-
<th width="30%"><?php _e('Do you want to block individual categories:', '
|
472 |
-
<?php _e('If you do not select this option all blog articles will be blocked.', '
|
473 |
<td width="70%">
|
474 |
<input type="checkbox" name="blockcountry_blockcategories" value="on" <?php checked('on', get_option('blockcountry_blockcategories'), true); ?> />
|
475 |
</td></tr>
|
476 |
<tr valign="top">
|
477 |
-
<th width="30%"><?php _e('Do you want to block the homepage:', '
|
478 |
-
<?php _e('If you do not select this option visitors will not be blocked from your homepage regardless of the categories you select.', '
|
479 |
<td width="70%">
|
480 |
<input type="checkbox" name="blockcountry_blockhome" value="on" <?php checked('on', get_option('blockcountry_blockhome'), true); ?> />
|
481 |
</td></tr>
|
482 |
<tr valign="top">
|
483 |
-
<th width="30%"><?php _e('Select categories you want to block:', '
|
484 |
<td width="70%">
|
485 |
|
486 |
<ul>
|
@@ -502,7 +729,7 @@ function iqblockcountry_settings_categories() {
|
|
502 |
</td></tr>
|
503 |
<tr><td></td><td>
|
504 |
<p class="submit"><input type="submit" class="button-primary"
|
505 |
-
value="<?php _e ( 'Save Changes' )?>" /></p>
|
506 |
</td></tr>
|
507 |
</table>
|
508 |
</form>
|
@@ -516,19 +743,19 @@ function iqblockcountry_settings_categories() {
|
|
516 |
*/
|
517 |
function iqblockcountry_settings_posttypes() {
|
518 |
?>
|
519 |
-
<h3><?php _e('Select which post types are blocked.', '
|
520 |
<form method="post" action="options.php">
|
521 |
<?php
|
522 |
settings_fields ( 'iqblockcountry-settings-group-posttypes' );
|
523 |
?>
|
524 |
<table class="form-table" cellspacing="2" cellpadding="5" width="100%">
|
525 |
<tr valign="top">
|
526 |
-
<th width="30%"><?php _e('Do you want to block individual post types:', '
|
527 |
<td width="70%">
|
528 |
<input type="checkbox" name="blockcountry_blockposttypes" value="on" <?php checked('on', get_option('blockcountry_blockposttypes'), true); ?> />
|
529 |
</td></tr>
|
530 |
<tr valign="top">
|
531 |
-
<th width="30%"><?php _e('Select post types you want to block:', '
|
532 |
<td width="70%">
|
533 |
|
534 |
<ul>
|
@@ -550,7 +777,7 @@ function iqblockcountry_settings_posttypes() {
|
|
550 |
</td></tr>
|
551 |
<tr><td></td><td>
|
552 |
<p class="submit"><input type="submit" class="button-primary"
|
553 |
-
value="<?php _e ( 'Save Changes' )?>" /></p>
|
554 |
</td></tr>
|
555 |
</table>
|
556 |
</form>
|
@@ -565,15 +792,15 @@ function iqblockcountry_settings_posttypes() {
|
|
565 |
*/
|
566 |
function iqblockcountry_settings_searchengines() {
|
567 |
?>
|
568 |
-
<h3><?php _e('Select which search engines are allowed.', '
|
569 |
<form method="post" action="options.php">
|
570 |
<?php
|
571 |
settings_fields ( 'iqblockcountry-settings-group-se' );
|
572 |
?>
|
573 |
<table class="form-table" cellspacing="2" cellpadding="5" width="100%">
|
574 |
<tr valign="top">
|
575 |
-
<th width="30%"><?php _e('Select which search engines you want to allow:', '
|
576 |
-
<?php _e('This will allow a search engine to your site despite if you blocked the country.', '
|
577 |
<td width="70%">
|
578 |
|
579 |
<ul>
|
@@ -595,7 +822,7 @@ function iqblockcountry_settings_searchengines() {
|
|
595 |
</td></tr>
|
596 |
<tr><td></td><td>
|
597 |
<p class="submit"><input type="submit" class="button-primary"
|
598 |
-
value="<?php _e ( 'Save Changes' )?>" /></p>
|
599 |
</td></tr>
|
600 |
</table>
|
601 |
</form>
|
@@ -610,7 +837,7 @@ function iqblockcountry_settings_searchengines() {
|
|
610 |
function iqblockcountry_settings_frontend()
|
611 |
{
|
612 |
?>
|
613 |
-
<h3><?php _e('Frontend options', '
|
614 |
|
615 |
<form method="post" action="options.php">
|
616 |
<?php
|
@@ -644,26 +871,26 @@ function iqblockcountry_settings_frontend()
|
|
644 |
<table class="form-table" cellspacing="2" cellpadding="5" width="100%">
|
645 |
|
646 |
<tr valign="top">
|
647 |
-
<th width="30%"><?php _e('Do not block visitors that are logged in from visiting frontend website:', '
|
648 |
<td width="70%">
|
649 |
<input type="checkbox" name="blockcountry_blocklogin" <?php checked('on', get_option('blockcountry_blocklogin'), true); ?> />
|
650 |
</td></tr>
|
651 |
|
652 |
<tr valign="top">
|
653 |
-
<th width="30%"><?php _e('Block visitors from visiting the frontend of your website:', '
|
654 |
<td width="70%">
|
655 |
<input type="checkbox" name="blockcountry_blockfrontend" <?php checked('on', get_option('blockcountry_blockfrontend'), true); ?> />
|
656 |
</td></tr>
|
657 |
|
658 |
<tr valign="top">
|
659 |
-
<th width="30%"><?php _e('Block visitors from using the search function of your website:', '
|
660 |
<td width="70%">
|
661 |
<input type="checkbox" name="blockcountry_blocksearch" <?php checked('on', get_option('blockcountry_blocksearch'), true); ?> />
|
662 |
</td></tr>
|
663 |
|
664 |
<tr valign="top">
|
665 |
-
<th scope="row" width="30%"><?php _e('Select the countries that should be blocked from visiting your frontend:', '
|
666 |
-
<?php _e('Use the CTRL key to select multiple countries', '
|
667 |
<td width="70%">
|
668 |
|
669 |
<?php
|
@@ -700,13 +927,13 @@ function iqblockcountry_settings_frontend()
|
|
700 |
?>
|
701 |
</td></tr>
|
702 |
<tr valign="top">
|
703 |
-
<th width="30%"><?php _e('Inverse the selection above:', '
|
704 |
-
<?php _e('If you select this option only the countries that are selected are <em>allowed</em>.', '
|
705 |
<td width="70%">
|
706 |
<input type="checkbox" name="blockcountry_banlist_inverse" <?php checked('on', get_option('blockcountry_banlist_inverse'), true); ?> />
|
707 |
</td></tr>
|
708 |
<tr valign="top">
|
709 |
-
<th width="30%"><?php _e('Frontend whitelist IPv4 and/or IPv6 addresses:', '
|
710 |
<td width="70%">
|
711 |
<?php
|
712 |
$frontendwhitelist = get_option ( 'blockcountry_frontendwhitelist' );
|
@@ -714,7 +941,7 @@ function iqblockcountry_settings_frontend()
|
|
714 |
<textarea cols="70" rows="5" name="blockcountry_frontendwhitelist"><?php echo $frontendwhitelist; ?></textarea>
|
715 |
</td></tr>
|
716 |
<tr valign="top">
|
717 |
-
<th width="30%"><?php _e('Frontend blacklist IPv4 and/or IPv6 addresses:', '
|
718 |
<td width="70%">
|
719 |
<?php
|
720 |
$frontendblacklist = get_option ( 'blockcountry_frontendblacklist' );
|
@@ -723,7 +950,7 @@ function iqblockcountry_settings_frontend()
|
|
723 |
</td></tr>
|
724 |
<tr><td></td><td>
|
725 |
<p class="submit"><input type="submit" class="button-primary"
|
726 |
-
value="<?php _e ( 'Save Changes' )?>" /></p>
|
727 |
</td></tr>
|
728 |
</table>
|
729 |
</form>
|
@@ -743,7 +970,7 @@ function iqblockcountry_settings_frontend()
|
|
743 |
function iqblockcountry_settings_backend()
|
744 |
{
|
745 |
?>
|
746 |
-
<h3><?php _e('Backend Options', '
|
747 |
|
748 |
<form method="post" action="options.php">
|
749 |
<?php
|
@@ -777,7 +1004,7 @@ function iqblockcountry_settings_backend()
|
|
777 |
|
778 |
<table class="form-table" cellspacing="2" cellpadding="5" width="100%">
|
779 |
<tr valign="top">
|
780 |
-
<th width="30%"><?php _e('Block visitors from visiting the backend (administrator) of your website:', '
|
781 |
<td width="70%">
|
782 |
<input type="checkbox" name="blockcountry_blockbackend" <?php checked('on', get_option('blockcountry_blockbackend'), true); ?> />
|
783 |
</td></tr>
|
@@ -785,15 +1012,15 @@ function iqblockcountry_settings_backend()
|
|
785 |
<tr>
|
786 |
<th width="30%"></th>
|
787 |
<th width="70%">
|
788 |
-
<?php _e('Your IP address is', '
|
789 |
-
<?php _e('Do <strong>NOT</strong> set the \'Block visitors from visiting the backend (administrator) of your website\' and also select', '
|
790 |
-
<?php echo "<strong>" . __('You will NOT be able to login the next time if you DO block your own country from visiting the backend.', '
|
791 |
</th>
|
792 |
</tr>
|
793 |
</td></tr>
|
794 |
<tr valign="top">
|
795 |
-
<th scope="row" width="30%"><?php _e('Select the countries that should be blocked from visiting your backend:', '
|
796 |
-
<?php _e('Use the x behind the country to remove a country from this blocklist.', '
|
797 |
<td width="70%">
|
798 |
|
799 |
<?php
|
@@ -831,14 +1058,14 @@ function iqblockcountry_settings_backend()
|
|
831 |
</td></tr>
|
832 |
|
833 |
<tr valign="top">
|
834 |
-
<th width="30%"><?php _e('Inverse the selection above:', '
|
835 |
-
<?php _e('If you select this option only the countries that are selected are <em>allowed</em>.', '
|
836 |
<td width="70%">
|
837 |
<input type="checkbox" name="blockcountry_backendbanlist_inverse" <?php checked('on', get_option('blockcountry_backendbanlist_inverse'), true); ?> />
|
838 |
</td></tr>
|
839 |
|
840 |
<tr valign="top">
|
841 |
-
<th width="30%"><?php _e('Backend whitelist IPv4 and/or IPv6 addresses:', '
|
842 |
<td width="70%">
|
843 |
<?php
|
844 |
$backendwhitelist = get_option ( 'blockcountry_backendwhitelist' );
|
@@ -846,7 +1073,7 @@ function iqblockcountry_settings_backend()
|
|
846 |
<textarea cols="70" rows="5" name="blockcountry_backendwhitelist"><?php echo $backendwhitelist; ?></textarea>
|
847 |
</td></tr>
|
848 |
<tr valign="top">
|
849 |
-
<th width="30%"><?php _e('Backend blacklist IPv4 and/or IPv6 addresses:', '
|
850 |
<td width="70%">
|
851 |
<?php
|
852 |
$backendblacklist = get_option ( 'blockcountry_backendblacklist' );
|
@@ -855,7 +1082,7 @@ function iqblockcountry_settings_backend()
|
|
855 |
</td></tr>
|
856 |
<tr><td></td><td>
|
857 |
<p class="submit"><input type="submit" class="button-primary"
|
858 |
-
value="<?php _e ( 'Save Changes' )?>" /></p>
|
859 |
</td></tr>
|
860 |
</table>
|
861 |
</form>
|
@@ -876,16 +1103,16 @@ function iqblockcountry_settings_backend()
|
|
876 |
function iqblockcountry_settings_home()
|
877 |
{
|
878 |
?>
|
879 |
-
<h3><?php _e('Overall statistics since start', '
|
880 |
|
881 |
<?php $blocked = get_option('blockcountry_backendnrblocks'); ?>
|
882 |
-
<p><?php echo $blocked; ?> <?php _e('visitors blocked from the backend.', '
|
883 |
<?php $blocked = get_option('blockcountry_frontendnrblocks'); ?>
|
884 |
-
<p><?php echo $blocked; ?> <?php _e('visitors blocked from the frontend.', '
|
885 |
|
886 |
<hr />
|
887 |
|
888 |
-
<h3><?php _e('Basic Options', '
|
889 |
|
890 |
<form method="post" action="options.php">
|
891 |
<?php
|
@@ -920,7 +1147,7 @@ function iqblockcountry_settings_home()
|
|
920 |
<table class="form-table" cellspacing="2" cellpadding="5" width="100%">
|
921 |
|
922 |
<tr valign="top">
|
923 |
-
<th width="30%"><?php _e('Message to display when people are blocked:', '
|
924 |
<td width="70%">
|
925 |
<?php
|
926 |
$blockmessage = get_option ( 'blockcountry_blockmessage' );
|
@@ -931,14 +1158,14 @@ function iqblockcountry_settings_home()
|
|
931 |
|
932 |
|
933 |
<tr valign="top">
|
934 |
-
<th width="30%"><?php _e('Page to redirect to:', '
|
935 |
-
<em><?php _e('If you select a page here blocked visitors will be redirected to this page instead of displaying above block message.', '
|
936 |
</th>
|
937 |
<td width="70%">
|
938 |
<select class="chosen" name="blockcountry_redirect" style="width:400px;">
|
939 |
<?php
|
940 |
$haystack = get_option ( 'blockcountry_redirect' );
|
941 |
-
echo "<option value=\"0\">". __("Choose a page...", '
|
942 |
$pages = get_pages();
|
943 |
foreach ( $pages as $page ) {
|
944 |
print "<option value=\"$page->ID\"";
|
@@ -953,38 +1180,38 @@ function iqblockcountry_settings_home()
|
|
953 |
</td></tr>
|
954 |
|
955 |
<tr valign="top">
|
956 |
-
<th width="30%"><?php _e('URL to redirect to:', '
|
957 |
-
<em><?php _e('If you enter a URL here blocked visitors will be redirected to this URL instead of displaying above block message or redirected to a local page.', '
|
958 |
</th>
|
959 |
<td width="70%">
|
960 |
<input type="text" style="width:100%" name="blockcountry_redirect_url" value="<?php echo get_option ( 'blockcountry_redirect_url' );?>">
|
961 |
</td></tr>
|
962 |
|
963 |
<tr valign="top">
|
964 |
-
<th width="30%"><?php _e('Send headers when user is blocked:', '
|
965 |
-
<em><?php _e('Under normal circumstances you should keep this selected! Only if you have "Cannot modify header information - headers already sent" errors or if you know what you are doing uncheck this.', '
|
966 |
<td width="70%">
|
967 |
<input type="checkbox" name="blockcountry_header" <?php checked('on', get_option('blockcountry_header'), true); ?> />
|
968 |
</td></tr>
|
969 |
|
970 |
<tr valign="top">
|
971 |
-
<th width="30%"><?php _e('Buffer output?:', '
|
972 |
-
<em><?php _e('You can use this option to buffer all output. This can be helpful in case you have "headers already sent" issues.', '
|
973 |
<td width="70%">
|
974 |
<input type="checkbox" name="blockcountry_buffer" <?php checked('on', get_option('blockcountry_buffer'), true); ?> />
|
975 |
</td></tr>
|
976 |
|
977 |
<tr valign="top">
|
978 |
-
<th width="30%"><?php _e('Do not log IP addresses:', '
|
979 |
-
<em><?php _e('Check this box if the laws in your country do not permit you to log IP addresses or if you do not want to log the ip addresses.', '
|
980 |
<td width="70%">
|
981 |
<input type="checkbox" name="blockcountry_logging" <?php checked('on', get_option('blockcountry_logging'), true); ?> />
|
982 |
</td></tr>
|
983 |
|
984 |
|
985 |
<tr valign="top">
|
986 |
-
<th width="30%"><?php _e('Number of rows on statistics page:', '
|
987 |
-
<em><?php _e('How many rows do you want to display on each tab the statistics page.', '
|
988 |
<td width="70%">
|
989 |
<?php
|
990 |
$nrrows = get_option('blockcountry_nrstatistics'); ?>
|
@@ -999,15 +1226,15 @@ function iqblockcountry_settings_home()
|
|
999 |
</td></tr>
|
1000 |
|
1001 |
<tr valign="top">
|
1002 |
-
<th width="30%"><?php _e('Allow tracking:', '
|
1003 |
-
<em><?php _e('This sends only the IP address and the number of attempts this ip address tried to login to your backend and was blocked doing so to a central server. No other data is being send. This helps us to get a better picture of rogue countries.', '
|
1004 |
<td width="70%">
|
1005 |
<input type="checkbox" name="blockcountry_tracking" <?php checked('on', get_option('blockcountry_tracking'), true); ?> />
|
1006 |
</td></tr>
|
1007 |
|
1008 |
<tr valign="top">
|
1009 |
-
<th width="30%"><?php _e('GeoIP API Key:', '
|
1010 |
-
<em><?php _e('If for some reason you cannot or do not want to download the MaxMind GeoIP databases you will need an API key for the GeoIP api.<br />You can get an API key from: ', '
|
1011 |
</th>
|
1012 |
<td width="70%">
|
1013 |
<input type="text" size="25" name="blockcountry_geoapikey" value="<?php echo get_option ( 'blockcountry_geoapikey' );?>">
|
@@ -1015,8 +1242,8 @@ function iqblockcountry_settings_home()
|
|
1015 |
|
1016 |
|
1017 |
<tr valign="top">
|
1018 |
-
<th width="30%"><?php _e('GeoIP API Key Server Location:', '
|
1019 |
-
<em><?php _e('Choose a location closest to your own location.', '
|
1020 |
</th>
|
1021 |
<td width="70%">
|
1022 |
|
@@ -1024,31 +1251,31 @@ function iqblockcountry_settings_home()
|
|
1024 |
<input type="radio" name="blockcountry_geoapilocation" value="US" <?php checked('US', get_option('blockcountry_geoapilocation'), true); ?>> United States
|
1025 |
</td></tr>
|
1026 |
<tr valign="top">
|
1027 |
-
<th width="30%"><?php _e('Admin block API Key:', '
|
1028 |
-
<em><?php _e('This is an experimantal feature. You do not need an API key for this plugin to work.', '
|
1029 |
</th>
|
1030 |
<td width="70%">
|
1031 |
<input type="text" size="25" name="blockcountry_apikey" value="<?php echo get_option ( 'blockcountry_apikey' );?>">
|
1032 |
</td></tr>
|
1033 |
<!--
|
1034 |
<tr valign="top">
|
1035 |
-
<th width="30%"><?php _e('Log all visits to the backend:', '
|
1036 |
-
<em><?php _e('This logs all visits to the backend despite if they are blocked or not. This is mainly for debugging purposes.', '
|
1037 |
<td width="70%">
|
1038 |
<input type="checkbox" name="blockcountry_backendlogging" <?php checked('on', get_option('blockcountry_backendlogging'), true); ?> />
|
1039 |
</td></tr>
|
1040 |
-->
|
1041 |
|
1042 |
<tr valign="top">
|
1043 |
-
<th width="30%"><?php _e('Accessibility options:', '
|
1044 |
-
<em><?php _e('Set this option if you cannot use the default country selection box.', '
|
1045 |
<td width="70%">
|
1046 |
<input type="checkbox" name="blockcountry_accessibility" <?php checked('on', get_option('blockcountry_accessibility'), true); ?> />
|
1047 |
</td></tr>
|
1048 |
|
1049 |
<tr><td></td><td>
|
1050 |
<p class="submit"><input type="submit" class="button-primary"
|
1051 |
-
value="<?php _e ( 'Save Changes' )?>" /></p>
|
1052 |
</td></tr>
|
1053 |
</table>
|
1054 |
</form>
|
@@ -1066,7 +1293,7 @@ function iqblockcountry_settings_home()
|
|
1066 |
function iqblockcountry_settings_logging()
|
1067 |
{
|
1068 |
?>
|
1069 |
-
<h3><?php _e('Last blocked visits', '
|
1070 |
<?php
|
1071 |
if (!get_option('blockcountry_logging'))
|
1072 |
{
|
@@ -1080,7 +1307,7 @@ function iqblockcountry_settings_logging()
|
|
1080 |
if ($nrrows == "") { $nrrows = 15;};
|
1081 |
$countrylist = iqblockcountry_get_countries();
|
1082 |
echo '<table class="widefat">';
|
1083 |
-
echo '<thead><tr><th>' . __('Date / Time', '
|
1084 |
|
1085 |
foreach ($wpdb->get_results( "SELECT * FROM $table_name ORDER BY datetime DESC LIMIT $nrrows" ) as $row)
|
1086 |
{
|
@@ -1090,16 +1317,16 @@ function iqblockcountry_settings_logging()
|
|
1090 |
$datetime = strtotime($row->datetime);
|
1091 |
$mysqldate = date($format, $datetime);
|
1092 |
echo $mysqldate . '</td><td>' . $row->ipaddress . '</td><td>' . gethostbyaddr( $row->ipaddress ) . '</td><td>' . $row->url . '</td><td>' . $countryurl . $countrylist[$row->country] . '<td>';
|
1093 |
-
if ($row->banned == "F") _e('Frontend', '
|
1094 |
echo "</td></tr></tbody>";
|
1095 |
}
|
1096 |
echo '</table>';
|
1097 |
|
1098 |
|
1099 |
echo '<hr>';
|
1100 |
-
echo '<h3>' . __('Top countries that are blocked', '
|
1101 |
echo '<table class="widefat">';
|
1102 |
-
echo '<thead><tr><th>' . __('Country', '
|
1103 |
|
1104 |
foreach ($wpdb->get_results( "SELECT count(country) AS count,country FROM $table_name GROUP BY country ORDER BY count(country) DESC LIMIT $nrrows" ) as $row)
|
1105 |
{
|
@@ -1110,9 +1337,9 @@ function iqblockcountry_settings_logging()
|
|
1110 |
echo '</table>';
|
1111 |
|
1112 |
echo '<hr>';
|
1113 |
-
echo '<h3>' . __('Top hosts that are blocked', '
|
1114 |
echo '<table class="widefat">';
|
1115 |
-
echo '<thead><tr><th>' . __('IP Address', '
|
1116 |
|
1117 |
foreach ($wpdb->get_results( "SELECT count(ipaddress) AS count,ipaddress FROM $table_name GROUP BY ipaddress ORDER BY count(ipaddress) DESC LIMIT $nrrows" ) as $row)
|
1118 |
{
|
@@ -1121,9 +1348,9 @@ function iqblockcountry_settings_logging()
|
|
1121 |
echo '</table>';
|
1122 |
|
1123 |
echo '<hr>';
|
1124 |
-
echo '<h3>' . __('Top URLs that are blocked', '
|
1125 |
echo '<table class="widefat">';
|
1126 |
-
echo '<thead><tr><th>' . __('URL', '
|
1127 |
|
1128 |
foreach ($wpdb->get_results( "SELECT count(url) AS count,url FROM $table_name GROUP BY url ORDER BY count(url) DESC LIMIT $nrrows" ) as $row)
|
1129 |
{
|
@@ -1132,13 +1359,17 @@ function iqblockcountry_settings_logging()
|
|
1132 |
echo '</table>';
|
1133 |
|
1134 |
?>
|
1135 |
-
<form name="cleardatabase" action="#
|
1136 |
<input type="hidden" name="action" value="cleardatabase" />
|
|
|
|
|
1137 |
<?php
|
1138 |
-
echo '<div class="submit"><input type="submit" name="test" value="' . __( 'Clear database', '
|
1139 |
wp_nonce_field('iqblockcountry');
|
1140 |
|
1141 |
if ( isset($_POST['action']) && $_POST[ 'action' ] == 'cleardatabase') {
|
|
|
|
|
1142 |
global $wpdb;
|
1143 |
$table_name = $wpdb->prefix . "iqblock_logging";
|
1144 |
$sql = "TRUNCATE " . $table_name . ";";
|
@@ -1146,12 +1377,23 @@ function iqblockcountry_settings_logging()
|
|
1146 |
echo mysql_error();
|
1147 |
echo "Cleared database";
|
1148 |
|
1149 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1150 |
}
|
1151 |
else
|
1152 |
{
|
1153 |
echo "<hr><h3>";
|
1154 |
-
_e('You are not logging any information. Please uncheck the option \'Do not log IP addresses\' if this is not what you want.', '
|
1155 |
echo "<hr></h3>";
|
1156 |
}
|
1157 |
}
|
@@ -1173,16 +1415,16 @@ function iqblockcountry_settings_page() {
|
|
1173 |
?>
|
1174 |
|
1175 |
<h2 class="nav-tab-wrapper">
|
1176 |
-
<a href="?page=iq-block-country/libs/blockcountry-settings.php&tab=home" class="nav-tab <?php echo $active_tab == 'home' ? 'nav-tab-active' : ''; ?>"><?php _e('Home', '
|
1177 |
-
<a href="?page=iq-block-country/libs/blockcountry-settings.php&tab=frontend" class="nav-tab <?php echo $active_tab == 'frontend' ? 'nav-tab-active' : ''; ?>"><?php _e('Frontend', '
|
1178 |
-
<a href="?page=iq-block-country/libs/blockcountry-settings.php&tab=backend" class="nav-tab <?php echo $active_tab == 'backend' ? 'nav-tab-active' : ''; ?>"><?php _e('Backend', '
|
1179 |
-
<a href="?page=iq-block-country/libs/blockcountry-settings.php&tab=pages" class="nav-tab <?php echo $active_tab == 'pages' ? 'nav-tab-active' : ''; ?>"><?php _e('Pages', '
|
1180 |
-
<a href="?page=iq-block-country/libs/blockcountry-settings.php&tab=categories" class="nav-tab <?php echo $active_tab == 'categories' ? 'nav-tab-active' : ''; ?>"><?php _e('Categories', '
|
1181 |
-
<a href="?page=iq-block-country/libs/blockcountry-settings.php&tab=posttypes" class="nav-tab <?php echo $active_tab == 'posttypes' ? 'nav-tab-active' : ''; ?>"><?php _e('Post types', '
|
1182 |
-
<a href="?page=iq-block-country/libs/blockcountry-settings.php&tab=searchengines" class="nav-tab <?php echo $active_tab == 'searchengines' ? 'nav-tab-active' : ''; ?>"><?php _e('Search Engines', '
|
1183 |
-
<a href="?page=iq-block-country/libs/blockcountry-settings.php&tab=tools" class="nav-tab <?php echo $active_tab == 'tools' ? 'nav-tab-active' : ''; ?>"><?php _e('Tools', '
|
1184 |
-
<a href="?page=iq-block-country/libs/blockcountry-settings.php&tab=logging" class="nav-tab <?php echo $active_tab == 'logging' ? 'nav-tab-active' : ''; ?>"><?php _e('Logging', '
|
1185 |
-
<a href="?page=iq-block-country/libs/blockcountry-settings.php&tab=export" class="nav-tab <?php echo $active_tab == 'export' ? 'nav-tab-active' : ''; ?>"><?php _e('Import/Export', '
|
1186 |
</h2>
|
1187 |
|
1188 |
|
48 |
?>
|
49 |
<div class="error">
|
50 |
<h3>iQ Block Country</h3>
|
51 |
+
<p><?php _e('The MaxMind GeoIP database does not exist. Please download this file manually or if you wish to use the GeoIP API get an API key from: ', 'iq-block-country'); ?><a href="http://geoip.webence.nl/" target="_blank">http://geoip.webence.nl/</a></p>
|
52 |
+
<p><?php _e("Please download the database from: " , 'iq-block-country'); ?>
|
53 |
<?php echo "<a href=\"" . IPV4DB . "\" target=\"_blank\">" . IPV4DB . "</a> "; ?>
|
54 |
+
<?php _e("unzip the file and afterwards upload it to the following location: " , 'iq-block-country'); ?>
|
55 |
<b><?php echo IPV4DBFILE; ?></b></p>
|
56 |
|
57 |
+
<p><?php _e("If you also use IPv6 please also download the database from: " , 'iq-block-country'); ?>
|
58 |
<?php echo "<a href=\"" . IPV6DB . "\" target=\"_blank\">" . IPV6DB . "</a> "; ?>
|
59 |
+
<?php _e("unzip the file and afterwards upload it to the following location: " , 'iq-block-country'); ?>
|
60 |
<b><?php echo IPV6DBFILE; ?></b></p>
|
61 |
+
<p><?php _e('For more detailed instructions take a look at the documentation..', 'iq-block-country'); ?></p>
|
62 |
|
63 |
</div>
|
64 |
<?php
|
152 |
if (get_option('blockcountry_nrstatistics') === FALSE) { update_option('blockcountry_nrstatistics',15); }
|
153 |
if (get_option('blockcountry_backendwhitelist') === FALSE || (get_option('blockcountry_backendwhitelist') == "")) { update_option('blockcountry_backendwhitelist',$ip_address); }
|
154 |
iqblockcountry_install_db();
|
155 |
+
iqblockcountry_find_geoip_location();
|
156 |
}
|
157 |
|
158 |
|
204 |
|
205 |
function iqblockcountry_settings_tools() {
|
206 |
?>
|
207 |
+
<h3><?php _e('Check which country belongs to an IP Address according to the current database.', 'iq-block-country'); ?></h3>
|
208 |
|
209 |
<form name="ipcheck" action="#ipcheck" method="post">
|
210 |
<input type="hidden" name="action" value="ipcheck" />
|
211 |
<input name="ipcheck_nonce" type="hidden" value="<?php echo wp_create_nonce('ipcheck_nonce'); ?>" />
|
212 |
+
<?php _e('IP Address to check:', 'iq-block-country'); ?> <input type="text" name="ipaddress" lenth="50" />
|
213 |
<?php
|
214 |
|
215 |
|
225 |
$countrylist = iqblockcountry_get_countries();
|
226 |
if ($country == "Unknown" || $country == "ipv6" || $country == "" || $country == "FALSE")
|
227 |
{
|
228 |
+
echo "<p>" . __('No country for', 'iq-block-country') . ' ' . $ip_address . ' ' . __('could be found. Or', 'iq-block-country') . ' ' . $ip_address . ' ' . __('is not a valid IPv4 or IPv6 IP address', 'iq-block-country');
|
229 |
echo "</p>";
|
230 |
}
|
231 |
else {
|
232 |
$displaycountry = $countrylist[$country];
|
233 |
+
echo "<p>" . __('IP Adress', 'iq-block-country') . ' ' . $ip_address . ' ' . __('belongs to', 'iq-block-country') . ' ' . $displaycountry . ".</p>";
|
234 |
$haystack = get_option('blockcountry_banlist');
|
235 |
if (!is_array($haystack)) { $haystack = array(); }
|
236 |
$inverse = get_option( 'blockcountry_banlist_inverse');
|
237 |
if ($inverse) {
|
238 |
if (is_array($haystack) && !in_array ($country, $haystack )) {
|
239 |
+
_e('This country is not permitted to visit the frontend of this website.', 'iq-block-country');
|
240 |
echo "<br />";
|
241 |
}
|
242 |
} else {
|
243 |
if (is_array($haystack) && in_array ( $country, $haystack )) {
|
244 |
+
_e('This country is not permitted to visit the frontend of this website.', 'iq-block-country');
|
245 |
echo "<br />";
|
246 |
}
|
247 |
}
|
250 |
if (!is_array($haystack)) { $haystack = array(); }
|
251 |
if ($inverse) {
|
252 |
if (is_array($haystack) && !in_array ( $country, $haystack )) {
|
253 |
+
_e('This country is not permitted to visit the backend of this website.', 'iq-block-country');
|
254 |
echo "<br />";
|
255 |
}
|
256 |
}
|
257 |
else
|
258 |
{
|
259 |
if (is_array($haystack) && in_array ( $country, $haystack )) {
|
260 |
+
_e('This country is not permitted to visit the backend of this website.', 'iq-block-country');
|
261 |
echo "<br />";
|
262 |
}
|
263 |
}
|
264 |
$backendbanlistip = unserialize(get_option('blockcountry_backendbanlistip'));
|
265 |
if (is_array($backendbanlistip) && in_array($ip_address,$backendbanlistip)) {
|
266 |
+
_e('This ip is present in the blacklist.', 'iq-block-country');
|
267 |
}
|
268 |
}
|
269 |
}
|
270 |
}
|
271 |
}
|
272 |
+
echo '<div class="submit"><input type="submit" name="test" value="' . __( 'Check IP address', 'iq-block-country' ) . '" /></div>';
|
273 |
wp_nonce_field('iqblockcountry');
|
274 |
?>
|
275 |
</form>
|
276 |
|
277 |
<hr />
|
278 |
+
<h3><?php _e('Active plugins', 'iq-block-country'); ?></h3>
|
279 |
<?php
|
280 |
|
281 |
$plugins = get_plugins();
|
282 |
$plugins_string = '';
|
283 |
|
284 |
echo '<table class="widefat">';
|
285 |
+
echo '<thead><tr><th>' . __('Plugin name', 'iq-block-country') . '</th><th>' . __('Version', 'iq-block-country') . '</th><th>' . __('URL', 'iq-block-country') . '</th></tr></thead>';
|
286 |
|
287 |
foreach( array_keys($plugins) as $key ) {
|
288 |
if ( is_plugin_active( $key ) ) {
|
296 |
}
|
297 |
echo '</table>';
|
298 |
echo $plugins_string;
|
299 |
+
global $wpdb;
|
300 |
+
|
301 |
+
$disabled_functions = @ini_get( 'disable_functions' );
|
302 |
+
|
303 |
+
if ( $disabled_functions == '' || $disabled_functions === false ) {
|
304 |
+
$disabled_functions = '<i>(' . __( 'none', 'iq-block-country' ) . ')</i>';
|
305 |
+
}
|
306 |
+
|
307 |
+
$disabled_functions = str_replace( ', ', ',', $disabled_functions ); // Normalize spaces or lack of spaces between disabled functions.
|
308 |
+
$disabled_functions_array = explode( ',', $disabled_functions );
|
309 |
+
|
310 |
+
$php_uid = __( 'unavailable', 'iq-block-country' );
|
311 |
+
$php_user = __( 'unavailable', 'iq-block-country' );
|
312 |
+
|
313 |
+
|
314 |
+
?>
|
315 |
+
<h3><?php _e('File System Information', 'iq-block-country'); ?></h3>
|
316 |
+
|
317 |
+
<table class="widefat">
|
318 |
+
<tbody><tr><td><?php _e( 'Website Root Folder', 'iq-block-country' ); ?>: <strong><?php echo get_site_url(); ?></strong></td></tr></tbody>
|
319 |
+
<tbody><tr><td><?php _e( 'Document Root Path', 'iq-block-country' ); ?>: <strong><?php echo filter_var( $_SERVER['DOCUMENT_ROOT'], FILTER_SANITIZE_STRING ); ?></strong></td></tr></tbody>
|
320 |
+
</table>
|
321 |
+
|
322 |
+
|
323 |
+
<h3><?php _e('Database Information', 'iq-block-country'); ?></h3>
|
324 |
+
<table class="widefat">
|
325 |
+
<tbody><tr><td><?php _e( 'MySQL Database Version', 'iq-block-country' ); ?>: <?php $sqlversion = $wpdb->get_var( "SELECT VERSION() AS version" ); ?><strong><?php echo $sqlversion; ?></strong></td></tr></tbody>
|
326 |
+
<tbody><tr><td><?php _e( 'MySQL Client Version', 'iq-block-country' ); ?>: <strong><?php echo mysql_get_client_info(); ?></strong></td></tr></tbody>
|
327 |
+
<tbody><tr><td><?php _e( 'Database Host', 'iq-block-country' ); ?>: <strong><?php echo DB_HOST; ?></strong></td></tr></tbody>
|
328 |
+
<?php $mysqlinfo = $wpdb->get_results( "SHOW VARIABLES LIKE 'sql_mode'" );
|
329 |
+
if ( is_array( $mysqlinfo ) ) {
|
330 |
+
$sql_mode = $mysqlinfo[0]->Value;
|
331 |
+
}
|
332 |
+
if ( empty( $sql_mode ) ) {
|
333 |
+
$sql_mode = __( 'Not Set', 'iq-block-country' );
|
334 |
+
} else {
|
335 |
+
$sql_mode = __( 'Off', 'iq-block-country' );
|
336 |
+
}
|
337 |
+
?>
|
338 |
+
<tbody><tr><td><?php _e( 'SQL Mode', 'iq-block-country' ); ?>: <strong><?php echo $sql_mode; ?></strong></td></tr></tbody>
|
339 |
+
</table>
|
340 |
+
|
341 |
+
|
342 |
+
<h3><?php _e('Server Information', 'iq-block-country'); ?></h3>
|
343 |
+
|
344 |
+
<table class="widefat">
|
345 |
+
|
346 |
+
<?php $server_addr = array_key_exists( 'SERVER_ADDR', $_SERVER ) ? $_SERVER['SERVER_ADDR'] : $_SERVER['LOCAL_ADDR']; ?>
|
347 |
+
<tbody><tr><td><?php _e( 'Server IP Address', 'iq-block-country' ); ?>: <strong><?php echo $server_addr; ?></strong></td></tr></tbody>
|
348 |
+
|
349 |
+
<tbody><tr><td><?php _e( 'Server Type', 'iq-block-country' ); ?>: <strong><?php echo filter_var( filter_var( $_SERVER['SERVER_SOFTWARE'], FILTER_SANITIZE_STRING ), FILTER_SANITIZE_STRING ); ?></strong></td></tr></tbody>
|
350 |
+
<tbody><tr><td><?php _e( 'Operating System', 'iq-block-country' ); ?>: <strong><?php echo PHP_OS; ?></strong></td></tr></tbody>
|
351 |
+
<tbody><tr><td><?php _e( 'Browser Compression Supported', 'iq-block-country' ); ?>:
|
352 |
+
<strong><?php echo filter_var( $_SERVER['HTTP_ACCEPT_ENCODING'], FILTER_SANITIZE_STRING ); ?></strong></td></tr></tbody>
|
353 |
+
<?php
|
354 |
+
|
355 |
+
if ( is_callable( 'posix_geteuid' ) && ( false === in_array( 'posix_geteuid', $disabled_functions_array ) ) ) {
|
356 |
+
|
357 |
+
$php_uid = @posix_geteuid();
|
358 |
+
|
359 |
+
if ( is_callable( 'posix_getpwuid' ) && ( false === in_array( 'posix_getpwuid', $disabled_functions_array ) ) ) {
|
360 |
+
|
361 |
+
$php_user = @posix_getpwuid( $php_uid );
|
362 |
+
$php_user = $php_user['name'];
|
363 |
+
|
364 |
+
}
|
365 |
+
}
|
366 |
+
|
367 |
+
$php_gid = __( 'undefined', 'iq-block-country' );
|
368 |
+
|
369 |
+
if ( is_callable( 'posix_getegid' ) && ( false === in_array( 'posix_getegid', $disabled_functions_array ) ) ) {
|
370 |
+
$php_gid = @posix_getegid();
|
371 |
+
}
|
372 |
+
|
373 |
+
?>
|
374 |
+
<tbody><tr><td><?php _e( 'PHP Process User (UID:GID)', 'iq-block-country' ); ?>:
|
375 |
+
<strong><?php echo $php_user . ' (' . $php_uid . ':' . $php_gid . ')'; ?></strong></td></tr></tbody>
|
376 |
+
</table>
|
377 |
+
|
378 |
+
|
379 |
+
<h3><?php _e('PHP Information', 'iq-block-country'); ?></h3>
|
380 |
+
|
381 |
+
<table class="widefat">
|
382 |
+
|
383 |
+
|
384 |
+
<tbody><tr><td><?php _e( 'PHP Version', 'iq-block-country' ); ?>: <strong><?php echo PHP_VERSION; ?></strong></td></tr></tbody>
|
385 |
+
<tbody><tr><td><?php _e( 'PHP Memory Usage', 'iq-block-country' ); ?>: <strong><?php echo round( memory_get_usage() / 1024 / 1024, 2 ) . __( ' MB', 'iq-block-country' ); ?></strong></td></tr></tbody>
|
386 |
+
|
387 |
+
<?php
|
388 |
+
if ( ini_get( 'memory_limit' ) ) {
|
389 |
+
$memory_limit = filter_var( ini_get( 'memory_limit' ), FILTER_SANITIZE_STRING );
|
390 |
+
} else {
|
391 |
+
$memory_limit = __( 'N/A', 'iq-block-country' );
|
392 |
+
}
|
393 |
+
?>
|
394 |
+
<tbody><tr><td><?php _e( 'PHP Memory Limit', 'iq-block-country' ); ?>: <strong><?php echo $memory_limit; ?></strong></td></tr></tbody>
|
395 |
+
<?php
|
396 |
+
if ( ini_get( 'upload_max_filesize' ) ) {
|
397 |
+
$upload_max = filter_var( ini_get( 'upload_max_filesize' ), FILTER_SANITIZE_STRING );
|
398 |
+
} else {
|
399 |
+
$upload_max = __( 'N/A', 'iq-block-country' );
|
400 |
+
}
|
401 |
+
?>
|
402 |
+
<tbody><tr><td><?php _e( 'PHP Max Upload Size', 'iq-block-country' ); ?>: <strong><?php echo $upload_max; ?></strong></td></tr></tbody>
|
403 |
+
<?php
|
404 |
+
if ( ini_get( 'post_max_size' ) ) {
|
405 |
+
$post_max = filter_var( ini_get( 'post_max_size' ), FILTER_SANITIZE_STRING );
|
406 |
+
} else {
|
407 |
+
$post_max = __( 'N/A', 'iq-block-country' );
|
408 |
+
}
|
409 |
+
?>
|
410 |
+
<tbody><tr><td><?php _e( 'PHP Max Post Size', 'iq-block-country' ); ?>: <strong><?php echo $post_max; ?></strong></td></tr></tbody>
|
411 |
+
<?php
|
412 |
+
if ( ini_get( 'safe_mode' ) ) {
|
413 |
+
$safe_mode = __( 'On', 'iq-block-country' );
|
414 |
+
} else {
|
415 |
+
$safe_mode = __( 'Off', 'iq-block-country' );
|
416 |
+
}
|
417 |
+
?>
|
418 |
+
<tbody><tr><td><?php _e( 'PHP Safe Mode', 'iq-block-country' ); ?>: <strong><?php echo $safe_mode; ?></strong></td></tr></tbody>
|
419 |
+
<?php
|
420 |
+
if ( ini_get( 'allow_url_fopen' ) ) {
|
421 |
+
$allow_url_fopen = __( 'On', 'iq-block-country' );
|
422 |
+
} else {
|
423 |
+
$allow_url_fopen = __( 'Off', 'iq-block-country' );
|
424 |
+
}
|
425 |
+
?>
|
426 |
+
<tbody><tr><td><?php _e( 'PHP Allow URL fopen', 'iq-block-country' ); ?>: <strong><?php echo $allow_url_fopen; ?></strong></td></tr></tbody>
|
427 |
+
<?php
|
428 |
+
if ( ini_get( 'allow_url_include' ) ) {
|
429 |
+
$allow_url_include = __( 'On', 'iq-block-country' );
|
430 |
+
} else {
|
431 |
+
$allow_url_include = __( 'Off', 'iq-block-country' );
|
432 |
+
}
|
433 |
+
?>
|
434 |
+
<tbody><tr><td><?php _e( 'PHP Allow URL Include' ); ?>: <strong><?php echo $allow_url_include; ?></strong></td></tr></tbody>
|
435 |
+
<?php
|
436 |
+
if ( ini_get( 'display_errors' ) ) {
|
437 |
+
$display_errors = __( 'On', 'iq-block-country' );
|
438 |
+
} else {
|
439 |
+
$display_errors = __( 'Off', 'iq-block-country' );
|
440 |
+
}
|
441 |
+
?>
|
442 |
+
<tbody><tr><td><?php _e( 'PHP Display Errors', 'iq-block-country' ); ?>: <strong><?php echo $display_errors; ?></strong></td></tr></tbody>
|
443 |
+
<?php
|
444 |
+
if ( ini_get( 'display_startup_errors' ) ) {
|
445 |
+
$display_startup_errors = __( 'On', 'iq-block-country' );
|
446 |
+
} else {
|
447 |
+
$display_startup_errors = __( 'Off', 'iq-block-country' );
|
448 |
+
}
|
449 |
+
?>
|
450 |
+
<tbody><tr><td><?php _e( 'PHP Display Startup Errors', 'iq-block-country' ); ?>:
|
451 |
+
<strong><?php echo $display_startup_errors; ?></strong></td></tr></tbody>
|
452 |
+
<?php
|
453 |
+
if ( ini_get( 'expose_php' ) ) {
|
454 |
+
$expose_php = __( 'On', 'iq-block-country' );
|
455 |
+
} else {
|
456 |
+
$expose_php = __( 'Off', 'iq-block-country' );
|
457 |
+
}
|
458 |
+
?>
|
459 |
+
<tbody><tr><td><?php _e( 'PHP Expose PHP', 'iq-block-country' ); ?>: <strong><?php echo $expose_php; ?></strong></td></tr></tbody>
|
460 |
+
<?php
|
461 |
+
if ( ini_get( 'max_execution_time' ) ) {
|
462 |
+
$max_execute = filter_var( ini_get( 'max_execution_time' ) );
|
463 |
+
} else {
|
464 |
+
$max_execute = __( 'N/A', 'iq-block-country' );
|
465 |
+
}
|
466 |
+
?>
|
467 |
+
<tbody><tr><td><?php _e( 'PHP Max Script Execution Time' ); ?>:
|
468 |
+
<strong><?php echo $max_execute; ?> <?php _e( 'Seconds' ); ?></strong></td></tr></tbody>
|
469 |
+
<?php
|
470 |
+
if ( ini_get( 'open_basedir' ) ) {
|
471 |
+
$open_basedir = __( 'On', 'iq-block-country' );
|
472 |
+
} else {
|
473 |
+
$open_basedir = __( 'Off', 'iq-block-country' );
|
474 |
+
}
|
475 |
+
?>
|
476 |
+
<tbody><tr><td><?php _e( 'PHP open_basedir', 'iq-block-country' ); ?>: <strong><?php echo $open_basedir; ?></strong></td></tr></tbody>
|
477 |
+
<?php
|
478 |
+
if ( is_callable( 'xml_parser_create' ) ) {
|
479 |
+
$xml = __( 'Yes', 'iq-block-country' );
|
480 |
+
} else {
|
481 |
+
$xml = __( 'No', 'iq-block-country' );
|
482 |
+
}
|
483 |
+
?>
|
484 |
+
<tbody><tr><td><?php _e( 'PHP XML Support', 'iq-block-country' ); ?>: <strong><?php echo $xml; ?></strong></td></tr></tbody>
|
485 |
+
<?php
|
486 |
+
if ( is_callable( 'iptcparse' ) ) {
|
487 |
+
$iptc = __( 'Yes', 'iq-block-country' );
|
488 |
+
} else {
|
489 |
+
$iptc = __( 'No', 'iq-block-country' );
|
490 |
+
}
|
491 |
+
?>
|
492 |
+
<tbody><tr><td><?php _e( 'PHP IPTC Support', 'iq-block-country' ); ?>: <strong><?php echo $iptc; ?></strong></td></tr></tbody>
|
493 |
+
<?php $disabled_functions = str_replace( ',', ', ', $disabled_functions ); // Normalize spaces or lack of spaces between disabled functions. ?>
|
494 |
+
<tbody><tr><td><?php _e( 'Disabled PHP Functions', 'iq-block-country' ); ?>: <strong><?php echo $disabled_functions; ?></strong></td></tr></tbody>
|
495 |
+
|
496 |
+
|
497 |
+
</table>
|
498 |
+
|
499 |
+
|
500 |
+
|
501 |
+
<h3><?php _e('Wordpress info', 'iq-block-country'); ?></h3>
|
502 |
+
|
503 |
+
<table class="widefat">
|
504 |
+
<?php
|
505 |
+
if ( is_multisite() ) {
|
506 |
+
$multSite = __( 'is enabled', 'iq-block-country' );
|
507 |
+
} else {
|
508 |
+
$multSite = __( 'is disabled', 'iq-block-country' );
|
509 |
+
}
|
510 |
+
?>
|
511 |
+
<tbody><tr><td><?php _e( ' Multisite', 'iq-block-country' ); ?> <strong><?php echo $multSite; ?></strong></td></tr></tbody>
|
512 |
+
<?php
|
513 |
+
if ( get_option( 'permalink_structure' ) != '' ) {
|
514 |
+
$permalink_structure = __( 'are enabled', 'iq-block-country' );
|
515 |
+
} else {
|
516 |
+
$permalink_structure = __( 'are disabled', 'iq-block-country' );
|
517 |
+
}
|
518 |
+
?>
|
519 |
+
<tbody><tr><td><?php _e( 'Permalinks', 'iq-block-country' ); ?>
|
520 |
+
<strong> <?php echo $permalink_structure; ?></strong></td></tr></tbody>
|
521 |
+
<tbody><tr><td><?php _e( 'Document Root Path', 'iq-block-country' ); ?>: <strong><?php echo WP_CONTENT_DIR ?></strong></td></tr></tbody>
|
522 |
+
</table>
|
523 |
+
|
524 |
+
<?php
|
525 |
}
|
526 |
|
527 |
/*
|
533 |
?>
|
534 |
<div class="wrap">
|
535 |
<div id="icon-tools" class="icon32"><br /></div>
|
536 |
+
<h2><?php _e('Export', 'iq-block-country'); ?></h2>
|
537 |
+
<p><?php _e('When you click on <tt>Backup all settings</tt> button a backup of the iQ Block Country configuration will be created.', 'iq-block-country'); ?></p>
|
538 |
+
<p><?php _e('After exporting, you can either use the backup file to restore your settings on this site again or copy the settings to another WordPress site.', 'iq-block-country'); ?></p>
|
539 |
<form method='post'>
|
540 |
<p class="submit">
|
541 |
<?php wp_nonce_field('iqblockexport'); ?>
|
542 |
+
<input type='submit' name='export' value='<?php _e('Backup all settings', 'iq-block-country'); ?>'/>
|
543 |
</p>
|
544 |
</form>
|
545 |
</div>
|
546 |
|
547 |
<div class="wrap">
|
548 |
<div id="icon-tools" class="icon32"><br /></div>
|
549 |
+
<h2><?php _e('Import', 'iq-block-country'); ?></h2>
|
550 |
+
<p><?php _e('Click the browse button and choose a zip file that you exported before.', 'iq-block-country'); ?></p>
|
551 |
+
<p><?php _e('Press Restore settings button, and let WordPress do the magic for you.', 'iq-block-country'); ?></p>
|
552 |
<form method='post' enctype='multipart/form-data'>
|
553 |
<p class="submit">
|
554 |
<?php wp_nonce_field('iqblockimport'); ?>
|
555 |
<input type='file' name='import' />
|
556 |
+
<input type='submit' name='import' value='<?php _e('Restore settings', 'iq-block-country'); ?>'/>
|
557 |
</p>
|
558 |
</form>
|
559 |
</div>
|
576 |
|
577 |
|
578 |
if ( !$handle = fopen( $dir['path'] . '/' . 'iqblockcountry.ini', 'w' ) )
|
579 |
+
wp_die(__("Something went wrong exporting this file", 'iq-block-country'));
|
580 |
|
581 |
if ( !fwrite( $handle, $json_file ) )
|
582 |
+
wp_die(__("Something went wrong exporting this file", 'iq-block-country'));
|
583 |
|
584 |
fclose( $handle );
|
585 |
|
588 |
chdir( $dir['path'] );
|
589 |
$zip = new PclZip( './' . $json_name . '-iqblockcountry.zip' );
|
590 |
if ( $zip->create( './' . 'iqblockcountry.ini' ) == 0 )
|
591 |
+
wp_die(__("Something went wrong exporting this file", 'iq-block-country'));
|
592 |
|
593 |
$url = $dir['url'] . '/' . $json_name . '-iqblockcountry.zip';
|
594 |
+
$content = "<div class='updated'><p>" . __("Exporting settings...", 'iq-block-country') . "</p></div>";
|
595 |
|
596 |
if ( $url ) {
|
597 |
$content .= '<script type="text/javascript">
|
606 |
$optarr = iqblockcountry_get_options_arr();
|
607 |
if (isset($_FILES['import']) && check_admin_referer('iqblockimport')) {
|
608 |
if ($_FILES['import']['error'] > 0) {
|
609 |
+
wp_die(__("Something went wrong importing this file", 'iq-block-country'));
|
610 |
}
|
611 |
else {
|
612 |
require_once( ABSPATH . 'wp-admin/includes/class-pclzip.php' );
|
623 |
unlink($dir['path'] . '/iqblockcountry.ini');
|
624 |
// check if file exists first.
|
625 |
|
626 |
+
echo "<div class='updated'><p>" . __("All options are restored successfully.", 'iq-block-country') . "</p></div>";
|
627 |
}
|
628 |
else {
|
629 |
+
echo "<div class='error'><p>" . __("Invalid file.", 'iq-block-country') ."</p></div>";
|
630 |
}
|
631 |
}
|
632 |
}
|
633 |
}
|
634 |
+
else { wp_die(__("No correct import or export option given.", 'iq-block-country')); }
|
635 |
|
636 |
}
|
637 |
|
640 |
*/
|
641 |
function iqblockcountry_settings_pages() {
|
642 |
?>
|
643 |
+
<h3><?php _e('Select which pages are blocked.', 'iq-block-country'); ?></h3>
|
644 |
<form method="post" action="options.php">
|
645 |
<?php
|
646 |
settings_fields ( 'iqblockcountry-settings-group-pages' );
|
647 |
?>
|
648 |
<table class="form-table" cellspacing="2" cellpadding="5" width="100%">
|
649 |
<tr valign="top">
|
650 |
+
<th width="30%"><?php _e('Do you want to block individual pages:', 'iq-block-country'); ?><br />
|
651 |
+
<?php _e('If you do not select this option all pages will be blocked.', 'iq-block-country'); ?></th>
|
652 |
<td width="70%">
|
653 |
<input type="checkbox" name="blockcountry_blockpages" value="on" <?php checked('on', get_option('blockcountry_blockpages'), true); ?> />
|
654 |
</td></tr>
|
655 |
<tr valign="top">
|
656 |
+
<th width="30%"><?php _e('Select pages you want to block:', 'iq-block-country'); ?></th>
|
657 |
<td width="70%">
|
658 |
|
659 |
<ul>
|
675 |
</td></tr>
|
676 |
<tr><td></td><td>
|
677 |
<p class="submit"><input type="submit" class="button-primary"
|
678 |
+
value="<?php _e ( 'Save Changes', 'iq-block-country' )?>" /></p>
|
679 |
</td></tr>
|
680 |
</table>
|
681 |
</form>
|
688 |
*/
|
689 |
function iqblockcountry_settings_categories() {
|
690 |
?>
|
691 |
+
<h3><?php _e('Select which categories are blocked.', 'iq-block-country'); ?></h3>
|
692 |
<form method="post" action="options.php">
|
693 |
<?php
|
694 |
settings_fields ( 'iqblockcountry-settings-group-cat' );
|
695 |
?>
|
696 |
<table class="form-table" cellspacing="2" cellpadding="5" width="100%">
|
697 |
<tr valign="top">
|
698 |
+
<th width="30%"><?php _e('Do you want to block individual categories:', 'iq-block-country'); ?><br />
|
699 |
+
<?php _e('If you do not select this option all blog articles will be blocked.', 'iq-block-country'); ?></th>
|
700 |
<td width="70%">
|
701 |
<input type="checkbox" name="blockcountry_blockcategories" value="on" <?php checked('on', get_option('blockcountry_blockcategories'), true); ?> />
|
702 |
</td></tr>
|
703 |
<tr valign="top">
|
704 |
+
<th width="30%"><?php _e('Do you want to block the homepage:', 'iq-block-country'); ?><br />
|
705 |
+
<?php _e('If you do not select this option visitors will not be blocked from your homepage regardless of the categories you select.', 'iq-block-country'); ?></th>
|
706 |
<td width="70%">
|
707 |
<input type="checkbox" name="blockcountry_blockhome" value="on" <?php checked('on', get_option('blockcountry_blockhome'), true); ?> />
|
708 |
</td></tr>
|
709 |
<tr valign="top">
|
710 |
+
<th width="30%"><?php _e('Select categories you want to block:', 'iq-block-country'); ?></th>
|
711 |
<td width="70%">
|
712 |
|
713 |
<ul>
|
729 |
</td></tr>
|
730 |
<tr><td></td><td>
|
731 |
<p class="submit"><input type="submit" class="button-primary"
|
732 |
+
value="<?php _e ( 'Save Changes', 'iq-block-country' )?>" /></p>
|
733 |
</td></tr>
|
734 |
</table>
|
735 |
</form>
|
743 |
*/
|
744 |
function iqblockcountry_settings_posttypes() {
|
745 |
?>
|
746 |
+
<h3><?php _e('Select which post types are blocked.', 'iq-block-country'); ?></h3>
|
747 |
<form method="post" action="options.php">
|
748 |
<?php
|
749 |
settings_fields ( 'iqblockcountry-settings-group-posttypes' );
|
750 |
?>
|
751 |
<table class="form-table" cellspacing="2" cellpadding="5" width="100%">
|
752 |
<tr valign="top">
|
753 |
+
<th width="30%"><?php _e('Do you want to block individual post types:', 'iq-block-country'); ?><br />
|
754 |
<td width="70%">
|
755 |
<input type="checkbox" name="blockcountry_blockposttypes" value="on" <?php checked('on', get_option('blockcountry_blockposttypes'), true); ?> />
|
756 |
</td></tr>
|
757 |
<tr valign="top">
|
758 |
+
<th width="30%"><?php _e('Select post types you want to block:', 'iq-block-country'); ?></th>
|
759 |
<td width="70%">
|
760 |
|
761 |
<ul>
|
777 |
</td></tr>
|
778 |
<tr><td></td><td>
|
779 |
<p class="submit"><input type="submit" class="button-primary"
|
780 |
+
value="<?php _e ( 'Save Changes', 'iq-block-country' )?>" /></p>
|
781 |
</td></tr>
|
782 |
</table>
|
783 |
</form>
|
792 |
*/
|
793 |
function iqblockcountry_settings_searchengines() {
|
794 |
?>
|
795 |
+
<h3><?php _e('Select which search engines are allowed.', 'iq-block-country'); ?></h3>
|
796 |
<form method="post" action="options.php">
|
797 |
<?php
|
798 |
settings_fields ( 'iqblockcountry-settings-group-se' );
|
799 |
?>
|
800 |
<table class="form-table" cellspacing="2" cellpadding="5" width="100%">
|
801 |
<tr valign="top">
|
802 |
+
<th width="30%"><?php _e('Select which search engines you want to allow:', 'iq-block-country'); ?><br />
|
803 |
+
<?php _e('This will allow a search engine to your site despite if you blocked the country.', 'iq-block-country'); ?></th>
|
804 |
<td width="70%">
|
805 |
|
806 |
<ul>
|
822 |
</td></tr>
|
823 |
<tr><td></td><td>
|
824 |
<p class="submit"><input type="submit" class="button-primary"
|
825 |
+
value="<?php _e ( 'Save Changes', 'iq-block-country' )?>" /></p>
|
826 |
</td></tr>
|
827 |
</table>
|
828 |
</form>
|
837 |
function iqblockcountry_settings_frontend()
|
838 |
{
|
839 |
?>
|
840 |
+
<h3><?php _e('Frontend options', 'iq-block-country'); ?></h3>
|
841 |
|
842 |
<form method="post" action="options.php">
|
843 |
<?php
|
871 |
<table class="form-table" cellspacing="2" cellpadding="5" width="100%">
|
872 |
|
873 |
<tr valign="top">
|
874 |
+
<th width="30%"><?php _e('Do not block visitors that are logged in from visiting frontend website:', 'iq-block-country'); ?></th>
|
875 |
<td width="70%">
|
876 |
<input type="checkbox" name="blockcountry_blocklogin" <?php checked('on', get_option('blockcountry_blocklogin'), true); ?> />
|
877 |
</td></tr>
|
878 |
|
879 |
<tr valign="top">
|
880 |
+
<th width="30%"><?php _e('Block visitors from visiting the frontend of your website:', 'iq-block-country'); ?></th>
|
881 |
<td width="70%">
|
882 |
<input type="checkbox" name="blockcountry_blockfrontend" <?php checked('on', get_option('blockcountry_blockfrontend'), true); ?> />
|
883 |
</td></tr>
|
884 |
|
885 |
<tr valign="top">
|
886 |
+
<th width="30%"><?php _e('Block visitors from using the search function of your website:', 'iq-block-country'); ?></th>
|
887 |
<td width="70%">
|
888 |
<input type="checkbox" name="blockcountry_blocksearch" <?php checked('on', get_option('blockcountry_blocksearch'), true); ?> />
|
889 |
</td></tr>
|
890 |
|
891 |
<tr valign="top">
|
892 |
+
<th scope="row" width="30%"><?php _e('Select the countries that should be blocked from visiting your frontend:', 'iq-block-country'); ?><br />
|
893 |
+
<?php _e('Use the CTRL key to select multiple countries', 'iq-block-country'); ?></th>
|
894 |
<td width="70%">
|
895 |
|
896 |
<?php
|
927 |
?>
|
928 |
</td></tr>
|
929 |
<tr valign="top">
|
930 |
+
<th width="30%"><?php _e('Inverse the selection above:', 'iq-block-country'); ?><br />
|
931 |
+
<?php _e('If you select this option only the countries that are selected are <em>allowed</em>.', 'iq-block-country')?></th>
|
932 |
<td width="70%">
|
933 |
<input type="checkbox" name="blockcountry_banlist_inverse" <?php checked('on', get_option('blockcountry_banlist_inverse'), true); ?> />
|
934 |
</td></tr>
|
935 |
<tr valign="top">
|
936 |
+
<th width="30%"><?php _e('Frontend whitelist IPv4 and/or IPv6 addresses:', 'iq-block-country'); ?><br /><?php _e('Use a semicolon (;) to separate IP addresses', 'iq-block-country'); ?></th>
|
937 |
<td width="70%">
|
938 |
<?php
|
939 |
$frontendwhitelist = get_option ( 'blockcountry_frontendwhitelist' );
|
941 |
<textarea cols="70" rows="5" name="blockcountry_frontendwhitelist"><?php echo $frontendwhitelist; ?></textarea>
|
942 |
</td></tr>
|
943 |
<tr valign="top">
|
944 |
+
<th width="30%"><?php _e('Frontend blacklist IPv4 and/or IPv6 addresses:', 'iq-block-country'); ?><br /><?php _e('Use a semicolon (;) to separate IP addresses', 'iq-block-country'); ?></th>
|
945 |
<td width="70%">
|
946 |
<?php
|
947 |
$frontendblacklist = get_option ( 'blockcountry_frontendblacklist' );
|
950 |
</td></tr>
|
951 |
<tr><td></td><td>
|
952 |
<p class="submit"><input type="submit" class="button-primary"
|
953 |
+
value="<?php _e ( 'Save Changes', 'iq-block-country' )?>" /></p>
|
954 |
</td></tr>
|
955 |
</table>
|
956 |
</form>
|
970 |
function iqblockcountry_settings_backend()
|
971 |
{
|
972 |
?>
|
973 |
+
<h3><?php _e('Backend Options', 'iq-block-country'); ?></h3>
|
974 |
|
975 |
<form method="post" action="options.php">
|
976 |
<?php
|
1004 |
|
1005 |
<table class="form-table" cellspacing="2" cellpadding="5" width="100%">
|
1006 |
<tr valign="top">
|
1007 |
+
<th width="30%"><?php _e('Block visitors from visiting the backend (administrator) of your website:', 'iq-block-country'); ?></th>
|
1008 |
<td width="70%">
|
1009 |
<input type="checkbox" name="blockcountry_blockbackend" <?php checked('on', get_option('blockcountry_blockbackend'), true); ?> />
|
1010 |
</td></tr>
|
1012 |
<tr>
|
1013 |
<th width="30%"></th>
|
1014 |
<th width="70%">
|
1015 |
+
<?php _e('Your IP address is', 'iq-block-country'); ?> <i><?php echo $ip_address ?></i>. <?php _e('The country that is listed for this IP address is', 'iq-block-country'); ?> <em><?php echo $displaycountry ?></em>.<br />
|
1016 |
+
<?php _e('Do <strong>NOT</strong> set the \'Block visitors from visiting the backend (administrator) of your website\' and also select', 'iq-block-country'); ?> <?php echo $displaycountry ?> <?php _e('below.', 'iq-block-country'); ?><br />
|
1017 |
+
<?php echo "<strong>" . __('You will NOT be able to login the next time if you DO block your own country from visiting the backend.', 'iq-block-country') . "</strong>"; ?>
|
1018 |
</th>
|
1019 |
</tr>
|
1020 |
</td></tr>
|
1021 |
<tr valign="top">
|
1022 |
+
<th scope="row" width="30%"><?php _e('Select the countries that should be blocked from visiting your backend:', 'iq-block-country'); ?><br />
|
1023 |
+
<?php _e('Use the x behind the country to remove a country from this blocklist.', 'iq-block-country'); ?></th>
|
1024 |
<td width="70%">
|
1025 |
|
1026 |
<?php
|
1058 |
</td></tr>
|
1059 |
|
1060 |
<tr valign="top">
|
1061 |
+
<th width="30%"><?php _e('Inverse the selection above:', 'iq-block-country'); ?><br />
|
1062 |
+
<?php _e('If you select this option only the countries that are selected are <em>allowed</em>.', 'iq-block-country')?></th>
|
1063 |
<td width="70%">
|
1064 |
<input type="checkbox" name="blockcountry_backendbanlist_inverse" <?php checked('on', get_option('blockcountry_backendbanlist_inverse'), true); ?> />
|
1065 |
</td></tr>
|
1066 |
|
1067 |
<tr valign="top">
|
1068 |
+
<th width="30%"><?php _e('Backend whitelist IPv4 and/or IPv6 addresses:', 'iq-block-country'); ?><br /><?php _e('Use a semicolon (;) to separate IP addresses', 'iq-block-country'); ?></th>
|
1069 |
<td width="70%">
|
1070 |
<?php
|
1071 |
$backendwhitelist = get_option ( 'blockcountry_backendwhitelist' );
|
1073 |
<textarea cols="70" rows="5" name="blockcountry_backendwhitelist"><?php echo $backendwhitelist; ?></textarea>
|
1074 |
</td></tr>
|
1075 |
<tr valign="top">
|
1076 |
+
<th width="30%"><?php _e('Backend blacklist IPv4 and/or IPv6 addresses:', 'iq-block-country'); ?><br /><?php _e('Use a semicolon (;) to separate IP addresses', 'iq-block-country'); ?></th>
|
1077 |
<td width="70%">
|
1078 |
<?php
|
1079 |
$backendblacklist = get_option ( 'blockcountry_backendblacklist' );
|
1082 |
</td></tr>
|
1083 |
<tr><td></td><td>
|
1084 |
<p class="submit"><input type="submit" class="button-primary"
|
1085 |
+
value="<?php _e ( 'Save Changes', 'iq-block-country' )?>" /></p>
|
1086 |
</td></tr>
|
1087 |
</table>
|
1088 |
</form>
|
1103 |
function iqblockcountry_settings_home()
|
1104 |
{
|
1105 |
?>
|
1106 |
+
<h3><?php _e('Overall statistics since start', 'iq-block-country'); ?></h3>
|
1107 |
|
1108 |
<?php $blocked = get_option('blockcountry_backendnrblocks'); ?>
|
1109 |
+
<p><?php echo $blocked; ?> <?php _e('visitors blocked from the backend.', 'iq-block-country'); ?></p>
|
1110 |
<?php $blocked = get_option('blockcountry_frontendnrblocks'); ?>
|
1111 |
+
<p><?php echo $blocked; ?> <?php _e('visitors blocked from the frontend.', 'iq-block-country'); ?></p>
|
1112 |
|
1113 |
<hr />
|
1114 |
|
1115 |
+
<h3><?php _e('Basic Options', 'iq-block-country'); ?></h3>
|
1116 |
|
1117 |
<form method="post" action="options.php">
|
1118 |
<?php
|
1147 |
<table class="form-table" cellspacing="2" cellpadding="5" width="100%">
|
1148 |
|
1149 |
<tr valign="top">
|
1150 |
+
<th width="30%"><?php _e('Message to display when people are blocked:', 'iq-block-country'); ?></th>
|
1151 |
<td width="70%">
|
1152 |
<?php
|
1153 |
$blockmessage = get_option ( 'blockcountry_blockmessage' );
|
1158 |
|
1159 |
|
1160 |
<tr valign="top">
|
1161 |
+
<th width="30%"><?php _e('Page to redirect to:', 'iq-block-country'); ?><br />
|
1162 |
+
<em><?php _e('If you select a page here blocked visitors will be redirected to this page instead of displaying above block message.', 'iq-block-country'); ?></em></th>
|
1163 |
</th>
|
1164 |
<td width="70%">
|
1165 |
<select class="chosen" name="blockcountry_redirect" style="width:400px;">
|
1166 |
<?php
|
1167 |
$haystack = get_option ( 'blockcountry_redirect' );
|
1168 |
+
echo "<option value=\"0\">". __("Choose a page...", 'iq-block-country') . "</option>";
|
1169 |
$pages = get_pages();
|
1170 |
foreach ( $pages as $page ) {
|
1171 |
print "<option value=\"$page->ID\"";
|
1180 |
</td></tr>
|
1181 |
|
1182 |
<tr valign="top">
|
1183 |
+
<th width="30%"><?php _e('URL to redirect to:', 'iq-block-country'); ?><br />
|
1184 |
+
<em><?php _e('If you enter a URL here blocked visitors will be redirected to this URL instead of displaying above block message or redirected to a local page.', 'iq-block-country'); ?></em>
|
1185 |
</th>
|
1186 |
<td width="70%">
|
1187 |
<input type="text" style="width:100%" name="blockcountry_redirect_url" value="<?php echo get_option ( 'blockcountry_redirect_url' );?>">
|
1188 |
</td></tr>
|
1189 |
|
1190 |
<tr valign="top">
|
1191 |
+
<th width="30%"><?php _e('Send headers when user is blocked:', 'iq-block-country'); ?><br />
|
1192 |
+
<em><?php _e('Under normal circumstances you should keep this selected! Only if you have "Cannot modify header information - headers already sent" errors or if you know what you are doing uncheck this.', 'iq-block-country'); ?></em></th>
|
1193 |
<td width="70%">
|
1194 |
<input type="checkbox" name="blockcountry_header" <?php checked('on', get_option('blockcountry_header'), true); ?> />
|
1195 |
</td></tr>
|
1196 |
|
1197 |
<tr valign="top">
|
1198 |
+
<th width="30%"><?php _e('Buffer output?:', 'iq-block-country'); ?><br />
|
1199 |
+
<em><?php _e('You can use this option to buffer all output. This can be helpful in case you have "headers already sent" issues.', 'iq-block-country'); ?></em></th>
|
1200 |
<td width="70%">
|
1201 |
<input type="checkbox" name="blockcountry_buffer" <?php checked('on', get_option('blockcountry_buffer'), true); ?> />
|
1202 |
</td></tr>
|
1203 |
|
1204 |
<tr valign="top">
|
1205 |
+
<th width="30%"><?php _e('Do not log IP addresses:', 'iq-block-country'); ?><br />
|
1206 |
+
<em><?php _e('Check this box if the laws in your country do not permit you to log IP addresses or if you do not want to log the ip addresses.', 'iq-block-country'); ?></em></th>
|
1207 |
<td width="70%">
|
1208 |
<input type="checkbox" name="blockcountry_logging" <?php checked('on', get_option('blockcountry_logging'), true); ?> />
|
1209 |
</td></tr>
|
1210 |
|
1211 |
|
1212 |
<tr valign="top">
|
1213 |
+
<th width="30%"><?php _e('Number of rows on statistics page:', 'iq-block-country'); ?><br />
|
1214 |
+
<em><?php _e('How many rows do you want to display on each tab the statistics page.', 'iq-block-country'); ?></em></th>
|
1215 |
<td width="70%">
|
1216 |
<?php
|
1217 |
$nrrows = get_option('blockcountry_nrstatistics'); ?>
|
1226 |
</td></tr>
|
1227 |
|
1228 |
<tr valign="top">
|
1229 |
+
<th width="30%"><?php _e('Allow tracking:', 'iq-block-country'); ?><br />
|
1230 |
+
<em><?php _e('This sends only the IP address and the number of attempts this ip address tried to login to your backend and was blocked doing so to a central server. No other data is being send. This helps us to get a better picture of rogue countries.', 'iq-block-country'); ?></em></th>
|
1231 |
<td width="70%">
|
1232 |
<input type="checkbox" name="blockcountry_tracking" <?php checked('on', get_option('blockcountry_tracking'), true); ?> />
|
1233 |
</td></tr>
|
1234 |
|
1235 |
<tr valign="top">
|
1236 |
+
<th width="30%"><?php _e('GeoIP API Key:', 'iq-block-country'); ?><br />
|
1237 |
+
<em><?php _e('If for some reason you cannot or do not want to download the MaxMind GeoIP databases you will need an API key for the GeoIP api.<br />You can get an API key from: ', 'iq-block-country'); ?> <a href="http://geoip.webence.nl/" target=""_blank>http://geoip.webence.nl/</a></em></th>
|
1238 |
</th>
|
1239 |
<td width="70%">
|
1240 |
<input type="text" size="25" name="blockcountry_geoapikey" value="<?php echo get_option ( 'blockcountry_geoapikey' );?>">
|
1242 |
|
1243 |
|
1244 |
<tr valign="top">
|
1245 |
+
<th width="30%"><?php _e('GeoIP API Key Server Location:', 'iq-block-country'); ?><br />
|
1246 |
+
<em><?php _e('Choose a location closest to your own location.', 'iq-block-country'); ?>
|
1247 |
</th>
|
1248 |
<td width="70%">
|
1249 |
|
1251 |
<input type="radio" name="blockcountry_geoapilocation" value="US" <?php checked('US', get_option('blockcountry_geoapilocation'), true); ?>> United States
|
1252 |
</td></tr>
|
1253 |
<tr valign="top">
|
1254 |
+
<th width="30%"><?php _e('Admin block API Key:', 'iq-block-country'); ?><br />
|
1255 |
+
<em><?php _e('This is an experimantal feature. You do not need an API key for this plugin to work.', 'iq-block-country'); ?></em></th>
|
1256 |
</th>
|
1257 |
<td width="70%">
|
1258 |
<input type="text" size="25" name="blockcountry_apikey" value="<?php echo get_option ( 'blockcountry_apikey' );?>">
|
1259 |
</td></tr>
|
1260 |
<!--
|
1261 |
<tr valign="top">
|
1262 |
+
<th width="30%"><?php _e('Log all visits to the backend:', 'iq-block-country'); ?><br />
|
1263 |
+
<em><?php _e('This logs all visits to the backend despite if they are blocked or not. This is mainly for debugging purposes.', 'iq-block-country'); ?></em></th>
|
1264 |
<td width="70%">
|
1265 |
<input type="checkbox" name="blockcountry_backendlogging" <?php checked('on', get_option('blockcountry_backendlogging'), true); ?> />
|
1266 |
</td></tr>
|
1267 |
-->
|
1268 |
|
1269 |
<tr valign="top">
|
1270 |
+
<th width="30%"><?php _e('Accessibility options:', 'iq-block-country'); ?><br />
|
1271 |
+
<em><?php _e('Set this option if you cannot use the default country selection box.', 'iq-block-country'); ?></em></th>
|
1272 |
<td width="70%">
|
1273 |
<input type="checkbox" name="blockcountry_accessibility" <?php checked('on', get_option('blockcountry_accessibility'), true); ?> />
|
1274 |
</td></tr>
|
1275 |
|
1276 |
<tr><td></td><td>
|
1277 |
<p class="submit"><input type="submit" class="button-primary"
|
1278 |
+
value="<?php _e ( 'Save Changes', 'iq-block-country' )?>" /></p>
|
1279 |
</td></tr>
|
1280 |
</table>
|
1281 |
</form>
|
1293 |
function iqblockcountry_settings_logging()
|
1294 |
{
|
1295 |
?>
|
1296 |
+
<h3><?php _e('Last blocked visits', 'iq-block-country'); ?></h3>
|
1297 |
<?php
|
1298 |
if (!get_option('blockcountry_logging'))
|
1299 |
{
|
1307 |
if ($nrrows == "") { $nrrows = 15;};
|
1308 |
$countrylist = iqblockcountry_get_countries();
|
1309 |
echo '<table class="widefat">';
|
1310 |
+
echo '<thead><tr><th>' . __('Date / Time', 'iq-block-country') . '</th><th>' . __('IP Address', 'iq-block-country') . '</th><th>' . __('Hostname', 'iq-block-country') . '</th><th>' . __('URL', 'iq-block-country') . '</th><th>' . __('Country', 'iq-block-country') . '</th><th>' . __('Frontend/Backend', 'iq-block-country') . '</th></tr></thead>';
|
1311 |
|
1312 |
foreach ($wpdb->get_results( "SELECT * FROM $table_name ORDER BY datetime DESC LIMIT $nrrows" ) as $row)
|
1313 |
{
|
1317 |
$datetime = strtotime($row->datetime);
|
1318 |
$mysqldate = date($format, $datetime);
|
1319 |
echo $mysqldate . '</td><td>' . $row->ipaddress . '</td><td>' . gethostbyaddr( $row->ipaddress ) . '</td><td>' . $row->url . '</td><td>' . $countryurl . $countrylist[$row->country] . '<td>';
|
1320 |
+
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'); }
|
1321 |
echo "</td></tr></tbody>";
|
1322 |
}
|
1323 |
echo '</table>';
|
1324 |
|
1325 |
|
1326 |
echo '<hr>';
|
1327 |
+
echo '<h3>' . __('Top countries that are blocked', 'iq-block-country') . '</h3>';
|
1328 |
echo '<table class="widefat">';
|
1329 |
+
echo '<thead><tr><th>' . __('Country', 'iq-block-country') . '</th><th>' . __('# of blocked attempts', 'iq-block-country') . '</th></tr></thead>';
|
1330 |
|
1331 |
foreach ($wpdb->get_results( "SELECT count(country) AS count,country FROM $table_name GROUP BY country ORDER BY count(country) DESC LIMIT $nrrows" ) as $row)
|
1332 |
{
|
1337 |
echo '</table>';
|
1338 |
|
1339 |
echo '<hr>';
|
1340 |
+
echo '<h3>' . __('Top hosts that are blocked', 'iq-block-country') . '</h3>';
|
1341 |
echo '<table class="widefat">';
|
1342 |
+
echo '<thead><tr><th>' . __('IP Address', 'iq-block-country') . '</th><th>' . __('Hostname', 'iq-block-country') . '</th><th>' . __('# of blocked attempts', 'iq-block-country') . '</th></tr></thead>';
|
1343 |
|
1344 |
foreach ($wpdb->get_results( "SELECT count(ipaddress) AS count,ipaddress FROM $table_name GROUP BY ipaddress ORDER BY count(ipaddress) DESC LIMIT $nrrows" ) as $row)
|
1345 |
{
|
1348 |
echo '</table>';
|
1349 |
|
1350 |
echo '<hr>';
|
1351 |
+
echo '<h3>' . __('Top URLs that are blocked', 'iq-block-country') . '</h3>';
|
1352 |
echo '<table class="widefat">';
|
1353 |
+
echo '<thead><tr><th>' . __('URL', 'iq-block-country') . '</th><th>' . __('# of blocked attempts', 'iq-block-country') . '</th></tr></thead>';
|
1354 |
|
1355 |
foreach ($wpdb->get_results( "SELECT count(url) AS count,url FROM $table_name GROUP BY url ORDER BY count(url) DESC LIMIT $nrrows" ) as $row)
|
1356 |
{
|
1359 |
echo '</table>';
|
1360 |
|
1361 |
?>
|
1362 |
+
<form name="cleardatabase" action="#" method="post">
|
1363 |
<input type="hidden" name="action" value="cleardatabase" />
|
1364 |
+
<input name="cleardatabase_nonce" type="hidden" value="<?php echo wp_create_nonce('cleardatabase_nonce'); ?>" />
|
1365 |
+
|
1366 |
<?php
|
1367 |
+
echo '<div class="submit"><input type="submit" name="test" value="' . __( 'Clear database', 'iq-block-country' ) . '" /></div>';
|
1368 |
wp_nonce_field('iqblockcountry');
|
1369 |
|
1370 |
if ( isset($_POST['action']) && $_POST[ 'action' ] == 'cleardatabase') {
|
1371 |
+
if (!isset($_POST['cleardatabase_nonce'])) die("Failed security check.");
|
1372 |
+
if (!wp_verify_nonce($_POST['cleardatabase_nonce'],'cleardatabase_nonce')) die("Is this a CSRF attempts?");
|
1373 |
global $wpdb;
|
1374 |
$table_name = $wpdb->prefix . "iqblock_logging";
|
1375 |
$sql = "TRUNCATE " . $table_name . ";";
|
1377 |
echo mysql_error();
|
1378 |
echo "Cleared database";
|
1379 |
|
1380 |
+
}
|
1381 |
+
|
1382 |
+
?>
|
1383 |
+
</form>
|
1384 |
+
|
1385 |
+
<form name="csvoutput" action="#" method="post">
|
1386 |
+
<input type="hidden" name="action" value="csvoutput" />
|
1387 |
+
<input name="csv_nonce" type="hidden" value="<?php echo wp_create_nonce('csv_nonce'); ?>" />
|
1388 |
+
<?php
|
1389 |
+
echo '<div class="submit"><input type="submit" name="submit" value="' . __( 'Download as CSV file', 'iq-block-country' ) . '" /></div>';
|
1390 |
+
wp_nonce_field('iqblockcountry');
|
1391 |
+
echo '</form>';
|
1392 |
}
|
1393 |
else
|
1394 |
{
|
1395 |
echo "<hr><h3>";
|
1396 |
+
_e('You are not logging any information. Please uncheck the option \'Do not log IP addresses\' if this is not what you want.', 'iq-block-country');
|
1397 |
echo "<hr></h3>";
|
1398 |
}
|
1399 |
}
|
1415 |
?>
|
1416 |
|
1417 |
<h2 class="nav-tab-wrapper">
|
1418 |
+
<a href="?page=iq-block-country/libs/blockcountry-settings.php&tab=home" class="nav-tab <?php echo $active_tab == 'home' ? 'nav-tab-active' : ''; ?>"><?php _e('Home', 'iq-block-country'); ?></a>
|
1419 |
+
<a href="?page=iq-block-country/libs/blockcountry-settings.php&tab=frontend" class="nav-tab <?php echo $active_tab == 'frontend' ? 'nav-tab-active' : ''; ?>"><?php _e('Frontend', 'iq-block-country'); ?></a>
|
1420 |
+
<a href="?page=iq-block-country/libs/blockcountry-settings.php&tab=backend" class="nav-tab <?php echo $active_tab == 'backend' ? 'nav-tab-active' : ''; ?>"><?php _e('Backend', 'iq-block-country'); ?></a>
|
1421 |
+
<a href="?page=iq-block-country/libs/blockcountry-settings.php&tab=pages" class="nav-tab <?php echo $active_tab == 'pages' ? 'nav-tab-active' : ''; ?>"><?php _e('Pages', 'iq-block-country'); ?></a>
|
1422 |
+
<a href="?page=iq-block-country/libs/blockcountry-settings.php&tab=categories" class="nav-tab <?php echo $active_tab == 'categories' ? 'nav-tab-active' : ''; ?>"><?php _e('Categories', 'iq-block-country'); ?></a>
|
1423 |
+
<a href="?page=iq-block-country/libs/blockcountry-settings.php&tab=posttypes" class="nav-tab <?php echo $active_tab == 'posttypes' ? 'nav-tab-active' : ''; ?>"><?php _e('Post types', 'iq-block-country'); ?></a>
|
1424 |
+
<a href="?page=iq-block-country/libs/blockcountry-settings.php&tab=searchengines" class="nav-tab <?php echo $active_tab == 'searchengines' ? 'nav-tab-active' : ''; ?>"><?php _e('Search Engines', 'iq-block-country'); ?></a>
|
1425 |
+
<a href="?page=iq-block-country/libs/blockcountry-settings.php&tab=tools" class="nav-tab <?php echo $active_tab == 'tools' ? 'nav-tab-active' : ''; ?>"><?php _e('Tools', 'iq-block-country'); ?></a>
|
1426 |
+
<a href="?page=iq-block-country/libs/blockcountry-settings.php&tab=logging" class="nav-tab <?php echo $active_tab == 'logging' ? 'nav-tab-active' : ''; ?>"><?php _e('Logging', 'iq-block-country'); ?></a>
|
1427 |
+
<a href="?page=iq-block-country/libs/blockcountry-settings.php&tab=export" class="nav-tab <?php echo $active_tab == 'export' ? 'nav-tab-active' : ''; ?>"><?php _e('Import/Export', 'iq-block-country'); ?></a>
|
1428 |
</h2>
|
1429 |
|
1430 |
|
libs/blockcountry-validation.php
CHANGED
@@ -95,13 +95,13 @@ function iqblockcountry_check_geoapikey($input)
|
|
95 |
$xml = new SimpleXmlElement($body);
|
96 |
if ($xml->check != "Ok")
|
97 |
{
|
98 |
-
$message = __( 'The GeoIP API key is incorrect. Please update the key.', '
|
99 |
$type = "error";
|
100 |
$input = FALSE;
|
101 |
}
|
102 |
else
|
103 |
{
|
104 |
-
$message = __( 'Setting saved.', '
|
105 |
$type = "updated";
|
106 |
}
|
107 |
}
|
@@ -142,13 +142,13 @@ function iqblockcountry_check_adminapikey($input)
|
|
142 |
$xml = new SimpleXmlElement($body);
|
143 |
if ($xml->check != "Ok")
|
144 |
{
|
145 |
-
$message = __( 'The Admin Block API key is incorrect. Please update the key.', '
|
146 |
$type = "error";
|
147 |
$input = FALSE;
|
148 |
}
|
149 |
else
|
150 |
{
|
151 |
-
$message = __( 'Setting saved.', '
|
152 |
$type = "updated";
|
153 |
}
|
154 |
}
|
95 |
$xml = new SimpleXmlElement($body);
|
96 |
if ($xml->check != "Ok")
|
97 |
{
|
98 |
+
$message = __( 'The GeoIP API key is incorrect. Please update the key.', 'iq-block-country' );
|
99 |
$type = "error";
|
100 |
$input = FALSE;
|
101 |
}
|
102 |
else
|
103 |
{
|
104 |
+
$message = __( 'Setting saved.', 'iq-block-country' );
|
105 |
$type = "updated";
|
106 |
}
|
107 |
}
|
142 |
$xml = new SimpleXmlElement($body);
|
143 |
if ($xml->check != "Ok")
|
144 |
{
|
145 |
+
$message = __( 'The Admin Block API key is incorrect. Please update the key.', 'iq-block-country' );
|
146 |
$type = "error";
|
147 |
$input = FALSE;
|
148 |
}
|
149 |
else
|
150 |
{
|
151 |
+
$message = __( 'Setting saved.', 'iq-block-country' );
|
152 |
$type = "updated";
|
153 |
}
|
154 |
}
|
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: 4.3
|
7 |
-
Stable tag: 1.1.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -169,20 +169,26 @@ You can select the option on the home tab "Do not log IP addresses" to stop iQ B
|
|
169 |
|
170 |
== Changelog ==
|
171 |
|
|
|
|
|
|
|
|
|
|
|
|
|
172 |
= 1.1.21 =
|
173 |
|
174 |
-
* Minor improvements
|
175 |
-
* Added check to detect closest location for GeoIP API users
|
176 |
-
* Fixed an error if you lookup an ip on the tools tab while using the inverse function it sometimes would not display correctly if a country was blocked or not.
|
177 |
-
* Added support for All in one WP Security Change Login URL. If you changed your login URL iQ Block Country will detect this setting and use it with your backend block settings.
|
178 |
|
179 |
= 1.1.20 =
|
180 |
|
181 |
-
* Added Google Ads to search engines
|
182 |
-
* Added Redirect URL (Basic code supplied by Stefan)
|
183 |
-
* Added inverse selection on frontend. (Basic code supplied by Stefan)
|
184 |
-
* Added inverse selection on backend.
|
185 |
-
* Validated input on the tools tab.
|
186 |
|
187 |
= 1.1.19 =
|
188 |
|
@@ -194,12 +200,12 @@ You can select the option on the home tab "Do not log IP addresses" to stop iQ B
|
|
194 |
|
195 |
= 1.1.18 =
|
196 |
|
197 |
-
* Changed working directory for the GeoIP database to /wp-content/uploads
|
198 |
|
199 |
= 1.1.17 =
|
200 |
|
201 |
-
* Due to a conflict of the license where Wordpress is released under and the license the MaxMind databases are released under I was forced to remove all auto downloads of the GeoIP databases. You now have to manually download the databases and upload them yourself.
|
202 |
-
* Added Webence GeoIP API lookup. See http://geoip.webence.nl/ for more information about this API.
|
203 |
|
204 |
= 1.1.16 =
|
205 |
|
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: 4.3
|
7 |
+
Stable tag: 1.1.22
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
169 |
|
170 |
== Changelog ==
|
171 |
|
172 |
+
= 1.1.22 =
|
173 |
+
|
174 |
+
* Bugfix: Category bug squashed
|
175 |
+
* Change: Altered text-domain
|
176 |
+
* New: Added export of all logging data to csv. This exports max of 1 month of blocked visitors from frontend & backend.
|
177 |
+
|
178 |
= 1.1.21 =
|
179 |
|
180 |
+
* Change: Minor improvements
|
181 |
+
* New: Added check to detect closest location for GeoIP API users
|
182 |
+
* Bugfix: Fixed an error if you lookup an ip on the tools tab while using the inverse function it sometimes would not display correctly if a country was blocked or not.
|
183 |
+
* New: Added support for All in one WP Security Change Login URL. If you changed your login URL iQ Block Country will detect this setting and use it with your backend block settings.
|
184 |
|
185 |
= 1.1.20 =
|
186 |
|
187 |
+
* New: Added Google Ads to search engines
|
188 |
+
* New: Added Redirect URL (Basic code supplied by Stefan)
|
189 |
+
* New: Added inverse selection on frontend. (Basic code supplied by Stefan)
|
190 |
+
* New: Added inverse selection on backend.
|
191 |
+
* New: Validated input on the tools tab.
|
192 |
|
193 |
= 1.1.19 =
|
194 |
|
200 |
|
201 |
= 1.1.18 =
|
202 |
|
203 |
+
* Change: Changed working directory for the GeoIP database to /wp-content/uploads
|
204 |
|
205 |
= 1.1.17 =
|
206 |
|
207 |
+
* Change: Due to a conflict of the license where Wordpress is released under and the license the MaxMind databases are released under I was forced to remove all auto downloads of the GeoIP databases. You now have to manually download the databases and upload them yourself.
|
208 |
+
* New: Added Webence GeoIP API lookup. See http://geoip.webence.nl/ for more information about this API.
|
209 |
|
210 |
= 1.1.16 =
|
211 |
|