iQ Block Country - Version 1.1.26

Version Description

  • New: xmlrpc.php is now handled the same way as other backend pages.
  • Change: Updated chosen library to latest version.
  • Change: Added a (de)select all countries to the backend en frontend country list.
  • Change: Changed order of how the plugin detects the ip address.
  • Change: Added detection of more header info that can contain the proper ip address
  • New: Added support forum to the site.
  • Change: Added download urls on database is too old message.
Download this release

Release Info

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

Code changes from version 1.1.25 to 1.1.26

iq-block-country.php CHANGED
@@ -1,10 +1,10 @@
1
  <?php
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.25
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
@@ -13,7 +13,7 @@ Domain Path: /lang
13
 
14
  /* This script uses GeoLite Country from MaxMind (http://www.maxmind.com) which is available under terms of GPL/LGPL */
15
 
16
- /* Copyright 2010-2015 Pascal (email : pascal@redeo.nl)
17
 
18
  This program is free software; you can redistribute it and/or modify
19
  it under the terms of the GNU General Public License, version 2, as
@@ -115,21 +115,40 @@ function iqblockcountry_get_countries()
115
  */
116
  function iqblockcountry_get_ipaddress() {
117
  global $ip_address;
 
118
 
119
- if ( isset($_SERVER['REMOTE_ADDR']) && !empty($_SERVER['REMOTE_ADDR']) ) {
120
- $ip_address = $_SERVER['REMOTE_ADDR'];
 
 
 
 
 
 
121
  }
122
  elseif ( isset($_SERVER['HTTP_X_FORWARDED_FOR']) && !empty($_SERVER['HTTP_X_FORWARDED_FOR']) ) {
123
- $ips = explode(',', $_SERVER['HTTP_X_FORWARDED_FOR']);
124
- $ip_address = trim($ips[0]);
125
- } elseif ( isset($_SERVER['HTTP_X_REAL_IP']) && !empty($_SERVER['HTTP_X_REAL_IP']) ) {
126
- $ip_address = $_SERVER['HTTP_X_REAL_IP'];
127
- } elseif ( isset($_SERVER['HTTP_CLIENT_IP']) && !empty($_SERVER['HTTP_CLIENT_IP']) ) {
 
128
  $ip_address = $_SERVER['HTTP_CLIENT_IP'];
129
- } elseif ( isset($_SERVER['HTTP_X_TM_REMOTE_ADDR']) && !empty($_SERVER['HTTP_X_TM_REMOTE_ADDR']) ) {
130
- $ip_address = $_SERVER['HTTP_X_TM_REMOTE_ADDR'];
131
  }
132
-
 
 
 
 
 
 
 
 
 
 
 
 
 
133
  return $ip_address;
134
  }
135
 
@@ -196,8 +215,9 @@ function iqblockcountry_upgrade()
196
  * Main plugin works.
197
  */
198
  $upload_dir = wp_upload_dir();
199
- define("CHOSENJS", plugins_url('/chosen.jquery.js', __FILE__));
200
  define("CHOSENCSS", plugins_url('/chosen.css', __FILE__));
 
201
  define("IPV6DB","http://geolite.maxmind.com/download/geoip/database/GeoIPv6.dat.gz"); // Used to display download location.
202
  define("IPV4DB","http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz"); // Used to display download location.
203
  define("IPV4DBFILE",$upload_dir['basedir'] . "/GeoIP.dat");
@@ -208,7 +228,7 @@ define("GEOIPAPIURL","http://geoip.webence.nl/geoipapi.php");
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
 
@@ -229,6 +249,7 @@ $apiblacklist = FALSE;
229
  $backendblacklistcheck = FALSE;
230
 
231
  $blockcountry_is_login_page = iqblockcountry_is_login_page();
 
232
 
233
  register_activation_hook(__file__, 'iqblockcountry_this_plugin_first');
234
  register_activation_hook(__file__, 'iqblockcountry_set_defaults');
@@ -270,11 +291,19 @@ if (isset($_POST['action']))
270
  $country = iqblockcountry_check_ipaddress($ip_address);
271
  iqblockcountry_debug_logging($ip_address,$country,'');
272
 
 
 
 
 
 
 
 
 
273
 
274
  /*
275
  * Check first if users want to block the backend.
276
  */
277
- if (($blockcountry_is_login_page || is_admin()) && get_option('blockcountry_blockbackend') == 'on')
278
  {
279
  add_action ( 'init', 'iqblockcountry_checkCountry', 1 );
280
  }
1
  <?php
2
  /*
3
  Plugin Name: iQ Block Country
4
+ Plugin URI: https://www.webence.nl/plugins/iq-block-country-the-wordpress-plugin-that-blocks-countries-for-you/
5
+ Version: 1.1.26
6
  Author: Pascal
7
+ Author URI: http://www.webence.nl/
8
  Description: Block visitors from visiting your website and backend website based on which country their IP address is from. The Maxmind GeoIP lite database is used for looking up from which country an ip address is from.
9
  License: GPL2
10
  Text Domain: iq-block-country
13
 
14
  /* This script uses GeoLite Country from MaxMind (http://www.maxmind.com) which is available under terms of GPL/LGPL */
15
 
16
+ /* Copyright 2010-2016 Pascal (email : pascal@webence.nl)
17
 
18
  This program is free software; you can redistribute it and/or modify
19
  it under the terms of the GNU General Public License, version 2, as
115
  */
116
  function iqblockcountry_get_ipaddress() {
117
  global $ip_address;
118
+
119
 
120
+ if ( isset($_SERVER['HTTP_CF_CONNECTING_IP']) && !empty($_SERVER['HTTP_CF_CONNECTING_IP']) ) {
121
+ $ip_address = $_SERVER['HTTP_CF_CONNECTING_IP'];
122
+ }
123
+ elseif ( isset($_SERVER['HTTP_X_SUCURI_CLIENTIP']) && !empty($_SERVER['HTTP_X_SUCURI_CLIENTIP']) ) {
124
+ $ip_address = $_SERVER['HTTP_X_SUCURI_CLIENTIP'];
125
+ }
126
+ elseif ( isset($_SERVER['HTTP_INCAP_CLIENT_IP']) && !empty($_SERVER['HTTP_INCAP_CLIENT_IP']) ) {
127
+ $ip_address = $_SERVER['HTTP_INCAP_CLIENT_IP'];
128
  }
129
  elseif ( isset($_SERVER['HTTP_X_FORWARDED_FOR']) && !empty($_SERVER['HTTP_X_FORWARDED_FOR']) ) {
130
+ $ip_address = $_SERVER['HTTP_X_FORWARDED_FOR'];
131
+ }
132
+ elseif ( isset($_SERVER['HTTP_X_FORWARDED']) && !empty($_SERVER['HTTP_X_FORWARDED']) ) {
133
+ $ip_address = $_SERVER['HTTP_X_FORWARDED'];
134
+ }
135
+ elseif ( isset($_SERVER['HTTP_CLIENT_IP']) && !empty($_SERVER['HTTP_CLIENT_IP']) ) {
136
  $ip_address = $_SERVER['HTTP_CLIENT_IP'];
 
 
137
  }
138
+ elseif ( isset($_SERVER['HTTP_X_REAL_IP']) && !empty($_SERVER['HTTP_X_REAL_IP']) ) {
139
+ $ip_address = $_SERVER['HTTP_X_REAL_IP'];
140
+ }
141
+ elseif ( isset($_SERVER['HTTP_FORWARDED']) && !empty($_SERVER['HTTP_FORWARDED']) ) {
142
+ $ip_address = $_SERVER['HTTP_FORWARDED'];
143
+ }
144
+ elseif ( isset($_SERVER['REMOTE_ADDR']) && !empty($_SERVER['REMOTE_ADDR']) ) {
145
+ $ip_address = $_SERVER['REMOTE_ADDR'];
146
+ }
147
+
148
+ // Get first ip if ip_address contains multiple addresses
149
+ $ips = explode(',', $ip_address);
150
+ $ip_address = trim($ips[0]);
151
+
152
  return $ip_address;
153
  }
154
 
215
  * Main plugin works.
216
  */
217
  $upload_dir = wp_upload_dir();
218
+ define("CHOSENJS", plugins_url('/js/chosen.jquery.js', __FILE__));
219
  define("CHOSENCSS", plugins_url('/chosen.css', __FILE__));
220
+ define("CHOSENCUSTOM",plugins_url('/js/chosen.custom.js', __FILE__));
221
  define("IPV6DB","http://geolite.maxmind.com/download/geoip/database/GeoIPv6.dat.gz"); // Used to display download location.
222
  define("IPV4DB","http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz"); // Used to display download location.
223
  define("IPV4DBFILE",$upload_dir['basedir'] . "/GeoIP.dat");
228
  define("GEOIPAPIURLUS","http://us.geoip.webence.nl/geoipapi.php");
229
  define("GEOIPAPICHECKURL","http://geoip.webence.nl/geoipapi-keycheck.php");
230
  define("ADMINAPICHECKURL","http://tracking.webence.nl/adminapi-keycheck.php");
231
+ define("VERSION","1.1.26");
232
  define("DBVERSION","121");
233
  define("PLUGINPATH",plugin_dir_path( __FILE__ ));
234
 
249
  $backendblacklistcheck = FALSE;
250
 
251
  $blockcountry_is_login_page = iqblockcountry_is_login_page();
252
+ $blockcountry_is_xmlrpc = iqblockcountry_is_xmlrpc();
253
 
254
  register_activation_hook(__file__, 'iqblockcountry_this_plugin_first');
255
  register_activation_hook(__file__, 'iqblockcountry_set_defaults');
291
  $country = iqblockcountry_check_ipaddress($ip_address);
292
  iqblockcountry_debug_logging($ip_address,$country,'');
293
 
294
+ function iq_add_my_scripts() {
295
+ // Scripts
296
+ wp_enqueue_script( 'chosen', CHOSENJS, array( 'jquery' ), false, true );
297
+ wp_enqueue_script( 'custom', CHOSENCUSTOM, array( 'jquery', 'chosen' ), false, true );
298
+ }
299
+
300
+ add_action( 'admin_enqueue_scripts', 'iq_add_my_scripts' );
301
+
302
 
303
  /*
304
  * Check first if users want to block the backend.
305
  */
306
+ if (($blockcountry_is_login_page || is_admin() || $blockcountry_is_xmlrpc) && get_option('blockcountry_blockbackend') == 'on')
307
  {
308
  add_action ( 'init', 'iqblockcountry_checkCountry', 1 );
309
  }
js/chosen.custom.js ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ jQuery(document).ready(function($) {
2
+ // Call chosen
3
+ $('select.chosen').chosen();
4
+
5
+ // Add select/deselect all toggle to optgroups in chosen
6
+ $(document).on('click', '.group-result', function() {
7
+ // Get unselected items in this group
8
+ var unselected = $(this).nextUntil('.group-result').not('.result-selected');
9
+ if ( unselected.length ) {
10
+ // Select all items in this group
11
+ unselected.trigger('mouseup');
12
+ } else {
13
+ $(this).nextUntil('.group-result').each(function() {
14
+ // Deselect all items in this group
15
+ $('a.search-choice-close[data-option-array-index="' + $(this).data('option-array-index') + '"]').trigger('click');
16
+ });
17
+ }
18
+ });
19
+ });
chosen.jquery.js → js/chosen.jquery.js RENAMED
@@ -1,14 +1,19 @@
1
- // Chosen, a Select Box Enhancer for jQuery and Prototype
2
- // by Patrick Filler for Harvest, http://getharvest.com
3
- //
4
- // Version 0.13.0
5
- // Full source at https://github.com/harvesthq/chosen
6
- // Copyright (c) 2011 Harvest http://getharvest.com
7
-
8
- // MIT License, https://github.com/harvesthq/chosen/blob/master/LICENSE.md
9
- // This file is generated by `grunt build`, do not edit it by hand.
 
 
 
10
  (function() {
11
- var SelectParser;
 
 
12
 
13
  SelectParser = (function() {
14
  function SelectParser() {
@@ -26,14 +31,15 @@
26
 
27
  SelectParser.prototype.add_group = function(group) {
28
  var group_position, option, _i, _len, _ref, _results;
29
-
30
  group_position = this.parsed.length;
31
  this.parsed.push({
32
  array_index: group_position,
33
  group: true,
34
  label: this.escapeExpression(group.label),
 
35
  children: 0,
36
- disabled: group.disabled
 
37
  });
38
  _ref = group.childNodes;
39
  _results = [];
@@ -56,9 +62,11 @@
56
  value: option.value,
57
  text: option.text,
58
  html: option.innerHTML,
 
59
  selected: option.selected,
60
  disabled: group_disabled === true ? group_disabled : option.disabled,
61
  group_array_index: group_position,
 
62
  classes: option.className,
63
  style: option.style.cssText
64
  });
@@ -75,7 +83,6 @@
75
 
76
  SelectParser.prototype.escapeExpression = function(text) {
77
  var map, unsafe_chars;
78
-
79
  if ((text == null) || text === false) {
80
  return "";
81
  }
@@ -101,7 +108,6 @@
101
 
102
  SelectParser.select_to_array = function(select) {
103
  var child, parser, _i, _len, _ref;
104
-
105
  parser = new SelectParser();
106
  _ref = select.childNodes;
107
  for (_i = 0, _len = _ref.length; _i < _len; _i++) {
@@ -111,15 +117,6 @@
111
  return parser.parsed;
112
  };
113
 
114
- this.SelectParser = SelectParser;
115
-
116
- }).call(this);
117
-
118
- (function() {
119
- var AbstractChosen, root;
120
-
121
- root = this;
122
-
123
  AbstractChosen = (function() {
124
  function AbstractChosen(form_field, options) {
125
  this.form_field = form_field;
@@ -133,12 +130,11 @@
133
  this.setup();
134
  this.set_up_html();
135
  this.register_observers();
136
- this.finish_setup();
137
  }
138
 
139
  AbstractChosen.prototype.set_default_values = function() {
140
  var _this = this;
141
-
142
  this.click_test_action = function(evt) {
143
  return _this.test_active_click(evt);
144
  };
@@ -149,16 +145,18 @@
149
  this.mouse_on_container = false;
150
  this.results_showing = false;
151
  this.result_highlighted = null;
152
- this.result_single_selected = null;
153
  this.allow_single_deselect = (this.options.allow_single_deselect != null) && (this.form_field.options[0] != null) && this.form_field.options[0].text === "" ? this.options.allow_single_deselect : false;
154
  this.disable_search_threshold = this.options.disable_search_threshold || 0;
155
  this.disable_search = this.options.disable_search || false;
156
  this.enable_split_word_search = this.options.enable_split_word_search != null ? this.options.enable_split_word_search : true;
157
  this.group_search = this.options.group_search != null ? this.options.group_search : true;
158
  this.search_contains = this.options.search_contains || false;
159
- this.single_backstroke_delete = this.options.single_backstroke_delete || false;
160
  this.max_selected_options = this.options.max_selected_options || Infinity;
161
- return this.inherit_select_classes = this.options.inherit_select_classes || false;
 
 
 
162
  };
163
 
164
  AbstractChosen.prototype.set_default_text = function() {
@@ -172,6 +170,14 @@
172
  return this.results_none_found = this.form_field.getAttribute("data-no_results_text") || this.options.no_results_text || AbstractChosen.default_no_result_text;
173
  };
174
 
 
 
 
 
 
 
 
 
175
  AbstractChosen.prototype.mouse_enter = function() {
176
  return this.mouse_on_container = true;
177
  };
@@ -182,7 +188,6 @@
182
 
183
  AbstractChosen.prototype.input_focus = function(evt) {
184
  var _this = this;
185
-
186
  if (this.is_multiple) {
187
  if (!this.active_field) {
188
  return setTimeout((function() {
@@ -198,7 +203,6 @@
198
 
199
  AbstractChosen.prototype.input_blur = function(evt) {
200
  var _this = this;
201
-
202
  if (!this.mouse_on_container) {
203
  this.active_field = false;
204
  return setTimeout((function() {
@@ -209,21 +213,20 @@
209
 
210
  AbstractChosen.prototype.results_option_build = function(options) {
211
  var content, data, _i, _len, _ref;
212
-
213
  content = '';
214
  _ref = this.results_data;
215
  for (_i = 0, _len = _ref.length; _i < _len; _i++) {
216
  data = _ref[_i];
217
- if (data.group && (data.search_match || data.group_match)) {
218
  content += this.result_add_group(data);
219
- } else if (!data.empty && data.search_match) {
220
  content += this.result_add_option(data);
221
  }
222
  if (options != null ? options.first : void 0) {
223
  if (data.selected && this.is_multiple) {
224
  this.choice_build(data);
225
  } else if (data.selected && !this.is_multiple) {
226
- this.single_set_selected_text(data.text);
227
  }
228
  }
229
  }
@@ -231,8 +234,13 @@
231
  };
232
 
233
  AbstractChosen.prototype.result_add_option = function(option) {
234
- var classes, style;
235
-
 
 
 
 
 
236
  classes = [];
237
  if (!option.disabled && !(option.selected && this.is_multiple)) {
238
  classes.push("active-result");
@@ -249,12 +257,37 @@
249
  if (option.classes !== "") {
250
  classes.push(option.classes);
251
  }
252
- style = option.style.cssText !== "" ? " style=\"" + option.style + "\"" : "";
253
- return "<li class=\"" + (classes.join(' ')) + "\"" + style + " data-option-array-index=\"" + option.array_index + "\">" + option.search_text + "</li>";
 
 
 
 
 
 
 
254
  };
255
 
256
  AbstractChosen.prototype.result_add_group = function(group) {
257
- return "<li class=\"group-result\">" + group.search_text + "</li>";
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
258
  };
259
 
260
  AbstractChosen.prototype.results_update_field = function() {
@@ -263,13 +296,27 @@
263
  this.results_reset_cleanup();
264
  }
265
  this.result_clear_highlight();
266
- this.result_single_selected = null;
267
  this.results_build();
268
  if (this.results_showing) {
269
  return this.winnow_results();
270
  }
271
  };
272
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
273
  AbstractChosen.prototype.results_toggle = function() {
274
  if (this.results_showing) {
275
  return this.results_hide();
@@ -287,26 +334,34 @@
287
  };
288
 
289
  AbstractChosen.prototype.winnow_results = function() {
290
- var option, regex, regexAnchor, results, searchText, startpos, text, zregex, _i, _len, _ref;
291
-
292
  this.no_results_clear();
293
  results = 0;
294
  searchText = this.get_search_text();
295
- regexAnchor = this.search_contains ? "" : "^";
296
- regex = new RegExp(regexAnchor + searchText.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&"), 'i');
297
- zregex = new RegExp(searchText.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&"), 'i');
298
  _ref = this.results_data;
299
  for (_i = 0, _len = _ref.length; _i < _len; _i++) {
300
  option = _ref[_i];
301
- if (!option.empty) {
 
 
302
  if (option.group) {
303
  option.group_match = false;
 
304
  }
 
 
 
 
 
 
 
 
305
  if (!(option.group && !this.group_search)) {
306
- option.search_match = false;
307
- option.search_text = option.group ? option.label : option.html;
308
  option.search_match = this.search_string_match(option.search_text, regex);
309
- if (option.search_match) {
310
  results += 1;
311
  }
312
  if (option.search_match) {
@@ -315,8 +370,8 @@
315
  text = option.search_text.substr(0, startpos + searchText.length) + '</em>' + option.search_text.substr(startpos + searchText.length);
316
  option.search_text = text.substr(0, startpos) + '<em>' + text.substr(startpos);
317
  }
318
- if (option.group_array_index != null) {
319
- this.results_data[option.group_array_index].group_match = true;
320
  }
321
  } else if ((option.group_array_index != null) && this.results_data[option.group_array_index].search_match) {
322
  option.search_match = true;
@@ -324,9 +379,9 @@
324
  }
325
  }
326
  }
 
327
  if (results < 1 && searchText.length) {
328
  this.update_results_content("");
329
- this.result_clear_highlight();
330
  return this.no_results(searchText);
331
  } else {
332
  this.update_results_content(this.results_option_build());
@@ -334,9 +389,14 @@
334
  }
335
  };
336
 
 
 
 
 
 
 
337
  AbstractChosen.prototype.search_string_match = function(search_string, regex) {
338
  var part, parts, _i, _len;
339
-
340
  if (regex.test(search_string)) {
341
  return true;
342
  } else if (this.enable_split_word_search && (search_string.indexOf(" ") >= 0 || search_string.indexOf("[") === 0)) {
@@ -354,7 +414,6 @@
354
 
355
  AbstractChosen.prototype.choices_count = function() {
356
  var option, _i, _len, _ref;
357
-
358
  if (this.selected_option_count != null) {
359
  return this.selected_option_count;
360
  }
@@ -378,7 +437,6 @@
378
 
379
  AbstractChosen.prototype.keyup_checker = function(evt) {
380
  var stroke, _ref;
381
-
382
  stroke = (_ref = evt.which) != null ? _ref : evt.keyCode;
383
  this.search_field_scale();
384
  switch (stroke) {
@@ -413,6 +471,13 @@
413
  }
414
  };
415
 
 
 
 
 
 
 
 
416
  AbstractChosen.prototype.container_width = function() {
417
  if (this.options.width != null) {
418
  return this.options.width;
@@ -421,11 +486,56 @@
421
  }
422
  };
423
 
424
- AbstractChosen.browser_is_supported = function() {
425
- var _ref;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
426
 
 
427
  if (window.navigator.appName === "Microsoft Internet Explorer") {
428
- return (null !== (_ref = document.documentMode) && _ref >= 8);
 
 
 
 
 
 
 
 
429
  }
430
  return true;
431
  };
@@ -440,17 +550,6 @@
440
 
441
  })();
442
 
443
- root.AbstractChosen = AbstractChosen;
444
-
445
- }).call(this);
446
-
447
- (function() {
448
- var $, Chosen, root, _ref,
449
- __hasProp = {}.hasOwnProperty,
450
- __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };
451
-
452
- root = this;
453
-
454
  $ = jQuery;
455
 
456
  $.fn.extend({
@@ -459,11 +558,13 @@
459
  return this;
460
  }
461
  return this.each(function(input_field) {
462
- var $this;
463
-
464
  $this = $(this);
465
- if (!$this.hasClass("chzn-done")) {
466
- return $this.data('chosen', new Chosen(this, options));
 
 
 
467
  }
468
  });
469
  }
@@ -480,23 +581,18 @@
480
  Chosen.prototype.setup = function() {
481
  this.form_field_jq = $(this.form_field);
482
  this.current_selectedIndex = this.form_field.selectedIndex;
483
- return this.is_rtl = this.form_field_jq.hasClass("chzn-rtl");
484
- };
485
-
486
- Chosen.prototype.finish_setup = function() {
487
- return this.form_field_jq.addClass("chzn-done");
488
  };
489
 
490
  Chosen.prototype.set_up_html = function() {
491
  var container_classes, container_props;
492
-
493
- container_classes = ["chzn-container"];
494
- container_classes.push("chzn-container-" + (this.is_multiple ? "multi" : "single"));
495
  if (this.inherit_select_classes && this.form_field.className) {
496
  container_classes.push(this.form_field.className);
497
  }
498
  if (this.is_rtl) {
499
- container_classes.push("chzn-rtl");
500
  }
501
  container_props = {
502
  'class': container_classes.join(' '),
@@ -504,108 +600,146 @@
504
  'title': this.form_field.title
505
  };
506
  if (this.form_field.id.length) {
507
- container_props.id = this.form_field.id.replace(/[^\w]/g, '_') + "_chzn";
508
  }
509
  this.container = $("<div />", container_props);
510
  if (this.is_multiple) {
511
- this.container.html('<ul class="chzn-choices"><li class="search-field"><input type="text" value="' + this.default_text + '" class="default" autocomplete="off" style="width:25px;" /></li></ul><div class="chzn-drop"><ul class="chzn-results"></ul></div>');
512
  } else {
513
- this.container.html('<a href="javascript:void(0)" class="chzn-single chzn-default" tabindex="-1"><span>' + this.default_text + '</span><div><b></b></div></a><div class="chzn-drop"><div class="chzn-search"><input type="text" autocomplete="off" /></div><ul class="chzn-results"></ul></div>');
514
  }
515
  this.form_field_jq.hide().after(this.container);
516
- this.dropdown = this.container.find('div.chzn-drop').first();
517
  this.search_field = this.container.find('input').first();
518
- this.search_results = this.container.find('ul.chzn-results').first();
519
  this.search_field_scale();
520
  this.search_no_results = this.container.find('li.no-results').first();
521
  if (this.is_multiple) {
522
- this.search_choices = this.container.find('ul.chzn-choices').first();
523
  this.search_container = this.container.find('li.search-field').first();
524
  } else {
525
- this.search_container = this.container.find('div.chzn-search').first();
526
- this.selected_item = this.container.find('.chzn-single').first();
527
  }
528
  this.results_build();
529
  this.set_tab_index();
530
- this.set_label_behavior();
531
- return this.form_field_jq.trigger("liszt:ready", {
 
 
 
532
  chosen: this
533
  });
534
  };
535
 
536
  Chosen.prototype.register_observers = function() {
537
  var _this = this;
538
-
539
- this.container.mousedown(function(evt) {
540
  _this.container_mousedown(evt);
 
541
  });
542
- this.container.mouseup(function(evt) {
543
  _this.container_mouseup(evt);
 
544
  });
545
- this.container.mouseenter(function(evt) {
 
 
 
 
 
 
546
  _this.mouse_enter(evt);
547
  });
548
- this.container.mouseleave(function(evt) {
549
  _this.mouse_leave(evt);
550
  });
551
- this.search_results.mouseup(function(evt) {
552
  _this.search_results_mouseup(evt);
553
  });
554
- this.search_results.mouseover(function(evt) {
555
  _this.search_results_mouseover(evt);
556
  });
557
- this.search_results.mouseout(function(evt) {
558
  _this.search_results_mouseout(evt);
559
  });
560
- this.search_results.bind('mousewheel DOMMouseScroll', function(evt) {
561
  _this.search_results_mousewheel(evt);
562
  });
563
- this.form_field_jq.bind("liszt:updated", function(evt) {
 
 
 
 
 
 
 
 
 
564
  _this.results_update_field(evt);
565
  });
566
- this.form_field_jq.bind("liszt:activate", function(evt) {
567
  _this.activate_field(evt);
568
  });
569
- this.form_field_jq.bind("liszt:open", function(evt) {
570
  _this.container_mousedown(evt);
571
  });
572
- this.search_field.blur(function(evt) {
573
  _this.input_blur(evt);
574
  });
575
- this.search_field.keyup(function(evt) {
 
 
 
576
  _this.keyup_checker(evt);
577
  });
578
- this.search_field.keydown(function(evt) {
579
  _this.keydown_checker(evt);
580
  });
581
- this.search_field.focus(function(evt) {
582
  _this.input_focus(evt);
583
  });
 
 
 
 
 
 
584
  if (this.is_multiple) {
585
- return this.search_choices.click(function(evt) {
586
  _this.choices_click(evt);
587
  });
588
  } else {
589
- return this.container.click(function(evt) {
590
  evt.preventDefault();
591
  });
592
  }
593
  };
594
 
 
 
 
 
 
 
 
 
 
 
595
  Chosen.prototype.search_field_disabled = function() {
596
  this.is_disabled = this.form_field_jq[0].disabled;
597
  if (this.is_disabled) {
598
- this.container.addClass('chzn-disabled');
599
  this.search_field[0].disabled = true;
600
  if (!this.is_multiple) {
601
- this.selected_item.unbind("focus", this.activate_action);
602
  }
603
  return this.close_field();
604
  } else {
605
- this.container.removeClass('chzn-disabled');
606
  this.search_field[0].disabled = false;
607
  if (!this.is_multiple) {
608
- return this.selected_item.bind("focus", this.activate_action);
609
  }
610
  }
611
  };
@@ -620,9 +754,9 @@
620
  if (this.is_multiple) {
621
  this.search_field.val("");
622
  }
623
- $(document).click(this.click_test_action);
624
  this.results_show();
625
- } else if (!this.is_multiple && evt && (($(evt.target)[0] === this.selected_item[0]) || $(evt.target).parents("a.chzn-single").length)) {
626
  evt.preventDefault();
627
  this.results_toggle();
628
  }
@@ -638,9 +772,10 @@
638
  };
639
 
640
  Chosen.prototype.search_results_mousewheel = function(evt) {
641
- var delta, _ref1, _ref2;
642
-
643
- delta = -((_ref1 = evt.originalEvent) != null ? _ref1.wheelDelta : void 0) || ((_ref2 = evt.originialEvent) != null ? _ref2.detail : void 0);
 
644
  if (delta != null) {
645
  evt.preventDefault();
646
  if (evt.type === 'DOMMouseScroll') {
@@ -651,30 +786,32 @@
651
  };
652
 
653
  Chosen.prototype.blur_test = function(evt) {
654
- if (!this.active_field && this.container.hasClass("chzn-container-active")) {
655
  return this.close_field();
656
  }
657
  };
658
 
659
  Chosen.prototype.close_field = function() {
660
- $(document).unbind("click", this.click_test_action);
661
  this.active_field = false;
662
  this.results_hide();
663
- this.container.removeClass("chzn-container-active");
664
  this.clear_backstroke();
665
  this.show_search_field_default();
666
  return this.search_field_scale();
667
  };
668
 
669
  Chosen.prototype.activate_field = function() {
670
- this.container.addClass("chzn-container-active");
671
  this.active_field = true;
672
  this.search_field.val(this.search_field.val());
673
  return this.search_field.focus();
674
  };
675
 
676
  Chosen.prototype.test_active_click = function(evt) {
677
- if (this.container.is($(evt.target).closest('.chzn-container'))) {
 
 
678
  return this.active_field = true;
679
  } else {
680
  return this.close_field();
@@ -684,17 +821,17 @@
684
  Chosen.prototype.results_build = function() {
685
  this.parsing = true;
686
  this.selected_option_count = null;
687
- this.results_data = root.SelectParser.select_to_array(this.form_field);
688
  if (this.is_multiple) {
689
  this.search_choices.find("li.search-choice").remove();
690
  } else if (!this.is_multiple) {
691
  this.single_set_selected_text();
692
  if (this.disable_search || this.form_field.options.length <= this.disable_search_threshold) {
693
  this.search_field[0].readOnly = true;
694
- this.container.addClass("chzn-container-single-nosearch");
695
  } else {
696
  this.search_field[0].readOnly = false;
697
- this.container.removeClass("chzn-container-single-nosearch");
698
  }
699
  }
700
  this.update_results_content(this.results_option_build({
@@ -708,7 +845,6 @@
708
 
709
  Chosen.prototype.result_do_highlight = function(el) {
710
  var high_bottom, high_top, maxHeight, visible_bottom, visible_top;
711
-
712
  if (el.length) {
713
  this.result_clear_highlight();
714
  this.result_highlight = el;
@@ -735,19 +871,19 @@
735
 
736
  Chosen.prototype.results_show = function() {
737
  if (this.is_multiple && this.max_selected_options <= this.choices_count()) {
738
- this.form_field_jq.trigger("liszt:maxselected", {
739
  chosen: this
740
  });
741
  return false;
742
  }
743
- this.container.addClass("chzn-with-drop");
744
- this.form_field_jq.trigger("liszt:showing_dropdown", {
745
- chosen: this
746
- });
747
  this.results_showing = true;
748
  this.search_field.focus();
749
  this.search_field.val(this.search_field.val());
750
- return this.winnow_results();
 
 
 
751
  };
752
 
753
  Chosen.prototype.update_results_content = function(content) {
@@ -757,8 +893,8 @@
757
  Chosen.prototype.results_hide = function() {
758
  if (this.results_showing) {
759
  this.result_clear_highlight();
760
- this.container.removeClass("chzn-with-drop");
761
- this.form_field_jq.trigger("liszt:hiding_dropdown", {
762
  chosen: this
763
  });
764
  }
@@ -767,23 +903,21 @@
767
 
768
  Chosen.prototype.set_tab_index = function(el) {
769
  var ti;
770
-
771
- if (this.form_field_jq.attr("tabindex")) {
772
- ti = this.form_field_jq.attr("tabindex");
773
- this.form_field_jq.attr("tabindex", -1);
774
- return this.search_field.attr("tabindex", ti);
775
  }
776
  };
777
 
778
  Chosen.prototype.set_label_behavior = function() {
779
  var _this = this;
780
-
781
  this.form_field_label = this.form_field_jq.parents("label");
782
  if (!this.form_field_label.length && this.form_field.id.length) {
783
  this.form_field_label = $("label[for='" + this.form_field.id + "']");
784
  }
785
  if (this.form_field_label.length > 0) {
786
- return this.form_field_label.click(function(evt) {
787
  if (_this.is_multiple) {
788
  return _this.container_mousedown(evt);
789
  } else {
@@ -805,7 +939,6 @@
805
 
806
  Chosen.prototype.search_results_mouseup = function(evt) {
807
  var target;
808
-
809
  target = $(evt.target).hasClass("active-result") ? $(evt.target) : $(evt.target).parents(".active-result").first();
810
  if (target.length) {
811
  this.result_highlight = target;
@@ -816,7 +949,6 @@
816
 
817
  Chosen.prototype.search_results_mouseover = function(evt) {
818
  var target;
819
-
820
  target = $(evt.target).hasClass("active-result") ? $(evt.target) : $(evt.target).parents(".active-result").first();
821
  if (target) {
822
  return this.result_do_highlight(target);
@@ -832,19 +964,17 @@
832
  Chosen.prototype.choice_build = function(item) {
833
  var choice, close_link,
834
  _this = this;
835
-
836
  choice = $('<li />', {
837
  "class": "search-choice"
838
- }).html("<span>" + item.html + "</span>");
839
  if (item.disabled) {
840
  choice.addClass('search-choice-disabled');
841
  } else {
842
  close_link = $('<a />', {
843
- href: '#',
844
  "class": 'search-choice-close',
845
- rel: item.array_index
846
  });
847
- close_link.click(function(evt) {
848
  return _this.choice_destroy_link_click(evt);
849
  });
850
  choice.append(close_link);
@@ -861,7 +991,7 @@
861
  };
862
 
863
  Chosen.prototype.choice_destroy = function(link) {
864
- if (this.result_deselect(link.attr("rel"))) {
865
  this.show_search_field_default();
866
  if (this.is_multiple && this.choices_count() > 0 && this.search_field.val().length < 1) {
867
  this.results_hide();
@@ -872,8 +1002,8 @@
872
  };
873
 
874
  Chosen.prototype.results_reset = function() {
 
875
  this.form_field.options[0].selected = true;
876
- this.selected_option_count = null;
877
  this.single_set_selected_text();
878
  this.show_search_field_default();
879
  this.results_reset_cleanup();
@@ -890,12 +1020,11 @@
890
 
891
  Chosen.prototype.result_select = function(evt) {
892
  var high, item;
893
-
894
  if (this.result_highlight) {
895
  high = this.result_highlight;
896
  this.result_clear_highlight();
897
  if (this.is_multiple && this.max_selected_options <= this.choices_count()) {
898
- this.form_field_jq.trigger("liszt:maxselected", {
899
  chosen: this
900
  });
901
  return false;
@@ -903,8 +1032,7 @@
903
  if (this.is_multiple) {
904
  high.removeClass("active-result");
905
  } else {
906
- this.search_results.find(".result-selected").removeClass("result-selected");
907
- this.result_single_selected = high;
908
  }
909
  high.addClass("result-selected");
910
  item = this.results_data[high[0].getAttribute("data-option-array-index")];
@@ -914,7 +1042,7 @@
914
  if (this.is_multiple) {
915
  this.choice_build(item);
916
  } else {
917
- this.single_set_selected_text(item.text);
918
  }
919
  if (!((evt.metaKey || evt.ctrlKey) && this.is_multiple)) {
920
  this.results_hide();
@@ -926,6 +1054,7 @@
926
  });
927
  }
928
  this.current_selectedIndex = this.form_field.selectedIndex;
 
929
  return this.search_field_scale();
930
  }
931
  };
@@ -935,17 +1064,16 @@
935
  text = this.default_text;
936
  }
937
  if (text === this.default_text) {
938
- this.selected_item.addClass("chzn-default");
939
  } else {
940
  this.single_deselect_control_build();
941
- this.selected_item.removeClass("chzn-default");
942
  }
943
- return this.selected_item.find("span").text(text);
944
  };
945
 
946
  Chosen.prototype.result_deselect = function(pos) {
947
  var result_data;
948
-
949
  result_data = this.results_data[pos];
950
  if (!this.form_field.options[result_data.options_index].disabled) {
951
  result_data.selected = false;
@@ -972,20 +1100,15 @@
972
  if (!this.selected_item.find("abbr").length) {
973
  this.selected_item.find("span").first().after("<abbr class=\"search-choice-close\"></abbr>");
974
  }
975
- return this.selected_item.addClass("chzn-single-with-deselect");
976
  };
977
 
978
  Chosen.prototype.get_search_text = function() {
979
- if (this.search_field.val() === this.default_text) {
980
- return "";
981
- } else {
982
- return $('<div/>').text($.trim(this.search_field.val())).html();
983
- }
984
  };
985
 
986
  Chosen.prototype.winnow_results_set_highlight = function() {
987
  var do_high, selected_results;
988
-
989
  selected_results = !this.is_multiple ? this.search_results.find(".result-selected.active-result") : [];
990
  do_high = selected_results.length ? selected_results.first() : this.search_results.find(".active-result").first();
991
  if (do_high != null) {
@@ -995,10 +1118,12 @@
995
 
996
  Chosen.prototype.no_results = function(terms) {
997
  var no_results_html;
998
-
999
  no_results_html = $('<li class="no-results">' + this.results_none_found + ' "<span></span>"</li>');
1000
  no_results_html.find("span").first().html(terms);
1001
- return this.search_results.append(no_results_html);
 
 
 
1002
  };
1003
 
1004
  Chosen.prototype.no_results_clear = function() {
@@ -1007,7 +1132,6 @@
1007
 
1008
  Chosen.prototype.keydown_arrow = function() {
1009
  var next_sib;
1010
-
1011
  if (this.results_showing && this.result_highlight) {
1012
  next_sib = this.result_highlight.nextAll("li.active-result").first();
1013
  if (next_sib) {
@@ -1020,7 +1144,6 @@
1020
 
1021
  Chosen.prototype.keyup_arrow = function() {
1022
  var prev_sibs;
1023
-
1024
  if (!this.results_showing && !this.is_multiple) {
1025
  return this.results_show();
1026
  } else if (this.result_highlight) {
@@ -1038,7 +1161,6 @@
1038
 
1039
  Chosen.prototype.keydown_backstroke = function() {
1040
  var next_available_destroy;
1041
-
1042
  if (this.pending_backstroke) {
1043
  this.choice_destroy(this.pending_backstroke.find("a").first());
1044
  return this.clear_backstroke();
@@ -1064,7 +1186,6 @@
1064
 
1065
  Chosen.prototype.keydown_checker = function(evt) {
1066
  var stroke, _ref1;
1067
-
1068
  stroke = (_ref1 = evt.which) != null ? _ref1 : evt.keyCode;
1069
  this.search_field_scale();
1070
  if (stroke !== 8 && this.pending_backstroke) {
@@ -1081,7 +1202,14 @@
1081
  this.mouse_on_container = false;
1082
  break;
1083
  case 13:
1084
- evt.preventDefault();
 
 
 
 
 
 
 
1085
  break;
1086
  case 38:
1087
  evt.preventDefault();
@@ -1096,7 +1224,6 @@
1096
 
1097
  Chosen.prototype.search_field_scale = function() {
1098
  var div, f_width, h, style, style_block, styles, w, _i, _len;
1099
-
1100
  if (this.is_multiple) {
1101
  h = 0;
1102
  w = 0;
@@ -1127,6 +1254,4 @@
1127
 
1128
  })(AbstractChosen);
1129
 
1130
- root.Chosen = Chosen;
1131
-
1132
  }).call(this);
1
+ /*!
2
+ Chosen, a Select Box Enhancer for jQuery and Prototype
3
+ by Patrick Filler for Harvest, http://getharvest.com
4
+
5
+ Version 1.4.2
6
+ Full source at https://github.com/harvesthq/chosen
7
+ Copyright (c) 2011-2015 Harvest http://getharvest.com
8
+
9
+ MIT License, https://github.com/harvesthq/chosen/blob/master/LICENSE.md
10
+ This file is generated by `grunt build`, do not edit it by hand.
11
+ */
12
+
13
  (function() {
14
+ var $, AbstractChosen, Chosen, SelectParser, _ref,
15
+ __hasProp = {}.hasOwnProperty,
16
+ __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };
17
 
18
  SelectParser = (function() {
19
  function SelectParser() {
31
 
32
  SelectParser.prototype.add_group = function(group) {
33
  var group_position, option, _i, _len, _ref, _results;
 
34
  group_position = this.parsed.length;
35
  this.parsed.push({
36
  array_index: group_position,
37
  group: true,
38
  label: this.escapeExpression(group.label),
39
+ title: group.title ? group.title : void 0,
40
  children: 0,
41
+ disabled: group.disabled,
42
+ classes: group.className
43
  });
44
  _ref = group.childNodes;
45
  _results = [];
62
  value: option.value,
63
  text: option.text,
64
  html: option.innerHTML,
65
+ title: option.title ? option.title : void 0,
66
  selected: option.selected,
67
  disabled: group_disabled === true ? group_disabled : option.disabled,
68
  group_array_index: group_position,
69
+ group_label: group_position != null ? this.parsed[group_position].label : null,
70
  classes: option.className,
71
  style: option.style.cssText
72
  });
83
 
84
  SelectParser.prototype.escapeExpression = function(text) {
85
  var map, unsafe_chars;
 
86
  if ((text == null) || text === false) {
87
  return "";
88
  }
108
 
109
  SelectParser.select_to_array = function(select) {
110
  var child, parser, _i, _len, _ref;
 
111
  parser = new SelectParser();
112
  _ref = select.childNodes;
113
  for (_i = 0, _len = _ref.length; _i < _len; _i++) {
117
  return parser.parsed;
118
  };
119
 
 
 
 
 
 
 
 
 
 
120
  AbstractChosen = (function() {
121
  function AbstractChosen(form_field, options) {
122
  this.form_field = form_field;
130
  this.setup();
131
  this.set_up_html();
132
  this.register_observers();
133
+ this.on_ready();
134
  }
135
 
136
  AbstractChosen.prototype.set_default_values = function() {
137
  var _this = this;
 
138
  this.click_test_action = function(evt) {
139
  return _this.test_active_click(evt);
140
  };
145
  this.mouse_on_container = false;
146
  this.results_showing = false;
147
  this.result_highlighted = null;
 
148
  this.allow_single_deselect = (this.options.allow_single_deselect != null) && (this.form_field.options[0] != null) && this.form_field.options[0].text === "" ? this.options.allow_single_deselect : false;
149
  this.disable_search_threshold = this.options.disable_search_threshold || 0;
150
  this.disable_search = this.options.disable_search || false;
151
  this.enable_split_word_search = this.options.enable_split_word_search != null ? this.options.enable_split_word_search : true;
152
  this.group_search = this.options.group_search != null ? this.options.group_search : true;
153
  this.search_contains = this.options.search_contains || false;
154
+ this.single_backstroke_delete = this.options.single_backstroke_delete != null ? this.options.single_backstroke_delete : true;
155
  this.max_selected_options = this.options.max_selected_options || Infinity;
156
+ this.inherit_select_classes = this.options.inherit_select_classes || false;
157
+ this.display_selected_options = this.options.display_selected_options != null ? this.options.display_selected_options : true;
158
+ this.display_disabled_options = this.options.display_disabled_options != null ? this.options.display_disabled_options : true;
159
+ return this.include_group_label_in_selected = this.options.include_group_label_in_selected || false;
160
  };
161
 
162
  AbstractChosen.prototype.set_default_text = function() {
170
  return this.results_none_found = this.form_field.getAttribute("data-no_results_text") || this.options.no_results_text || AbstractChosen.default_no_result_text;
171
  };
172
 
173
+ AbstractChosen.prototype.choice_label = function(item) {
174
+ if (this.include_group_label_in_selected && (item.group_label != null)) {
175
+ return "<b class='group-name'>" + item.group_label + "</b>" + item.html;
176
+ } else {
177
+ return item.html;
178
+ }
179
+ };
180
+
181
  AbstractChosen.prototype.mouse_enter = function() {
182
  return this.mouse_on_container = true;
183
  };
188
 
189
  AbstractChosen.prototype.input_focus = function(evt) {
190
  var _this = this;
 
191
  if (this.is_multiple) {
192
  if (!this.active_field) {
193
  return setTimeout((function() {
203
 
204
  AbstractChosen.prototype.input_blur = function(evt) {
205
  var _this = this;
 
206
  if (!this.mouse_on_container) {
207
  this.active_field = false;
208
  return setTimeout((function() {
213
 
214
  AbstractChosen.prototype.results_option_build = function(options) {
215
  var content, data, _i, _len, _ref;
 
216
  content = '';
217
  _ref = this.results_data;
218
  for (_i = 0, _len = _ref.length; _i < _len; _i++) {
219
  data = _ref[_i];
220
+ if (data.group) {
221
  content += this.result_add_group(data);
222
+ } else {
223
  content += this.result_add_option(data);
224
  }
225
  if (options != null ? options.first : void 0) {
226
  if (data.selected && this.is_multiple) {
227
  this.choice_build(data);
228
  } else if (data.selected && !this.is_multiple) {
229
+ this.single_set_selected_text(this.choice_label(data));
230
  }
231
  }
232
  }
234
  };
235
 
236
  AbstractChosen.prototype.result_add_option = function(option) {
237
+ var classes, option_el;
238
+ if (!option.search_match) {
239
+ return '';
240
+ }
241
+ if (!this.include_option_in_results(option)) {
242
+ return '';
243
+ }
244
  classes = [];
245
  if (!option.disabled && !(option.selected && this.is_multiple)) {
246
  classes.push("active-result");
257
  if (option.classes !== "") {
258
  classes.push(option.classes);
259
  }
260
+ option_el = document.createElement("li");
261
+ option_el.className = classes.join(" ");
262
+ option_el.style.cssText = option.style;
263
+ option_el.setAttribute("data-option-array-index", option.array_index);
264
+ option_el.innerHTML = option.search_text;
265
+ if (option.title) {
266
+ option_el.title = option.title;
267
+ }
268
+ return this.outerHTML(option_el);
269
  };
270
 
271
  AbstractChosen.prototype.result_add_group = function(group) {
272
+ var classes, group_el;
273
+ if (!(group.search_match || group.group_match)) {
274
+ return '';
275
+ }
276
+ if (!(group.active_options > 0)) {
277
+ return '';
278
+ }
279
+ classes = [];
280
+ classes.push("group-result");
281
+ if (group.classes) {
282
+ classes.push(group.classes);
283
+ }
284
+ group_el = document.createElement("li");
285
+ group_el.className = classes.join(" ");
286
+ group_el.innerHTML = group.search_text;
287
+ if (group.title) {
288
+ group_el.title = group.title;
289
+ }
290
+ return this.outerHTML(group_el);
291
  };
292
 
293
  AbstractChosen.prototype.results_update_field = function() {
296
  this.results_reset_cleanup();
297
  }
298
  this.result_clear_highlight();
 
299
  this.results_build();
300
  if (this.results_showing) {
301
  return this.winnow_results();
302
  }
303
  };
304
 
305
+ AbstractChosen.prototype.reset_single_select_options = function() {
306
+ var result, _i, _len, _ref, _results;
307
+ _ref = this.results_data;
308
+ _results = [];
309
+ for (_i = 0, _len = _ref.length; _i < _len; _i++) {
310
+ result = _ref[_i];
311
+ if (result.selected) {
312
+ _results.push(result.selected = false);
313
+ } else {
314
+ _results.push(void 0);
315
+ }
316
+ }
317
+ return _results;
318
+ };
319
+
320
  AbstractChosen.prototype.results_toggle = function() {
321
  if (this.results_showing) {
322
  return this.results_hide();
334
  };
335
 
336
  AbstractChosen.prototype.winnow_results = function() {
337
+ var escapedSearchText, option, regex, results, results_group, searchText, startpos, text, zregex, _i, _len, _ref;
 
338
  this.no_results_clear();
339
  results = 0;
340
  searchText = this.get_search_text();
341
+ escapedSearchText = searchText.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
342
+ zregex = new RegExp(escapedSearchText, 'i');
343
+ regex = this.get_search_regex(escapedSearchText);
344
  _ref = this.results_data;
345
  for (_i = 0, _len = _ref.length; _i < _len; _i++) {
346
  option = _ref[_i];
347
+ option.search_match = false;
348
+ results_group = null;
349
+ if (this.include_option_in_results(option)) {
350
  if (option.group) {
351
  option.group_match = false;
352
+ option.active_options = 0;
353
  }
354
+ if ((option.group_array_index != null) && this.results_data[option.group_array_index]) {
355
+ results_group = this.results_data[option.group_array_index];
356
+ if (results_group.active_options === 0 && results_group.search_match) {
357
+ results += 1;
358
+ }
359
+ results_group.active_options += 1;
360
+ }
361
+ option.search_text = option.group ? option.label : option.html;
362
  if (!(option.group && !this.group_search)) {
 
 
363
  option.search_match = this.search_string_match(option.search_text, regex);
364
+ if (option.search_match && !option.group) {
365
  results += 1;
366
  }
367
  if (option.search_match) {
370
  text = option.search_text.substr(0, startpos + searchText.length) + '</em>' + option.search_text.substr(startpos + searchText.length);
371
  option.search_text = text.substr(0, startpos) + '<em>' + text.substr(startpos);
372
  }
373
+ if (results_group != null) {
374
+ results_group.group_match = true;
375
  }
376
  } else if ((option.group_array_index != null) && this.results_data[option.group_array_index].search_match) {
377
  option.search_match = true;
379
  }
380
  }
381
  }
382
+ this.result_clear_highlight();
383
  if (results < 1 && searchText.length) {
384
  this.update_results_content("");
 
385
  return this.no_results(searchText);
386
  } else {
387
  this.update_results_content(this.results_option_build());
389
  }
390
  };
391
 
392
+ AbstractChosen.prototype.get_search_regex = function(escaped_search_string) {
393
+ var regex_anchor;
394
+ regex_anchor = this.search_contains ? "" : "^";
395
+ return new RegExp(regex_anchor + escaped_search_string, 'i');
396
+ };
397
+
398
  AbstractChosen.prototype.search_string_match = function(search_string, regex) {
399
  var part, parts, _i, _len;
 
400
  if (regex.test(search_string)) {
401
  return true;
402
  } else if (this.enable_split_word_search && (search_string.indexOf(" ") >= 0 || search_string.indexOf("[") === 0)) {
414
 
415
  AbstractChosen.prototype.choices_count = function() {
416
  var option, _i, _len, _ref;
 
417
  if (this.selected_option_count != null) {
418
  return this.selected_option_count;
419
  }
437
 
438
  AbstractChosen.prototype.keyup_checker = function(evt) {
439
  var stroke, _ref;
 
440
  stroke = (_ref = evt.which) != null ? _ref : evt.keyCode;
441
  this.search_field_scale();
442
  switch (stroke) {
471
  }
472
  };
473
 
474
+ AbstractChosen.prototype.clipboard_event_checker = function(evt) {
475
+ var _this = this;
476
+ return setTimeout((function() {
477
+ return _this.results_search();
478
+ }), 50);
479
+ };
480
+
481
  AbstractChosen.prototype.container_width = function() {
482
  if (this.options.width != null) {
483
  return this.options.width;
486
  }
487
  };
488
 
489
+ AbstractChosen.prototype.include_option_in_results = function(option) {
490
+ if (this.is_multiple && (!this.display_selected_options && option.selected)) {
491
+ return false;
492
+ }
493
+ if (!this.display_disabled_options && option.disabled) {
494
+ return false;
495
+ }
496
+ if (option.empty) {
497
+ return false;
498
+ }
499
+ return true;
500
+ };
501
+
502
+ AbstractChosen.prototype.search_results_touchstart = function(evt) {
503
+ this.touch_started = true;
504
+ return this.search_results_mouseover(evt);
505
+ };
506
+
507
+ AbstractChosen.prototype.search_results_touchmove = function(evt) {
508
+ this.touch_started = false;
509
+ return this.search_results_mouseout(evt);
510
+ };
511
+
512
+ AbstractChosen.prototype.search_results_touchend = function(evt) {
513
+ if (this.touch_started) {
514
+ return this.search_results_mouseup(evt);
515
+ }
516
+ };
517
+
518
+ AbstractChosen.prototype.outerHTML = function(element) {
519
+ var tmp;
520
+ if (element.outerHTML) {
521
+ return element.outerHTML;
522
+ }
523
+ tmp = document.createElement("div");
524
+ tmp.appendChild(element);
525
+ return tmp.innerHTML;
526
+ };
527
 
528
+ AbstractChosen.browser_is_supported = function() {
529
  if (window.navigator.appName === "Microsoft Internet Explorer") {
530
+ return document.documentMode >= 8;
531
+ }
532
+ if (/iP(od|hone)/i.test(window.navigator.userAgent)) {
533
+ return false;
534
+ }
535
+ if (/Android/i.test(window.navigator.userAgent)) {
536
+ if (/Mobile/i.test(window.navigator.userAgent)) {
537
+ return false;
538
+ }
539
  }
540
  return true;
541
  };
550
 
551
  })();
552
 
 
 
 
 
 
 
 
 
 
 
 
553
  $ = jQuery;
554
 
555
  $.fn.extend({
558
  return this;
559
  }
560
  return this.each(function(input_field) {
561
+ var $this, chosen;
 
562
  $this = $(this);
563
+ chosen = $this.data('chosen');
564
+ if (options === 'destroy' && chosen instanceof Chosen) {
565
+ chosen.destroy();
566
+ } else if (!(chosen instanceof Chosen)) {
567
+ $this.data('chosen', new Chosen(this, options));
568
  }
569
  });
570
  }
581
  Chosen.prototype.setup = function() {
582
  this.form_field_jq = $(this.form_field);
583
  this.current_selectedIndex = this.form_field.selectedIndex;
584
+ return this.is_rtl = this.form_field_jq.hasClass("chosen-rtl");
 
 
 
 
585
  };
586
 
587
  Chosen.prototype.set_up_html = function() {
588
  var container_classes, container_props;
589
+ container_classes = ["chosen-container"];
590
+ container_classes.push("chosen-container-" + (this.is_multiple ? "multi" : "single"));
 
591
  if (this.inherit_select_classes && this.form_field.className) {
592
  container_classes.push(this.form_field.className);
593
  }
594
  if (this.is_rtl) {
595
+ container_classes.push("chosen-rtl");
596
  }
597
  container_props = {
598
  'class': container_classes.join(' '),
600
  'title': this.form_field.title
601
  };
602
  if (this.form_field.id.length) {
603
+ container_props.id = this.form_field.id.replace(/[^\w]/g, '_') + "_chosen";
604
  }
605
  this.container = $("<div />", container_props);
606
  if (this.is_multiple) {
607
+ this.container.html('<ul class="chosen-choices"><li class="search-field"><input type="text" value="' + this.default_text + '" class="default" autocomplete="off" style="width:25px;" /></li></ul><div class="chosen-drop"><ul class="chosen-results"></ul></div>');
608
  } else {
609
+ this.container.html('<a class="chosen-single chosen-default" tabindex="-1"><span>' + this.default_text + '</span><div><b></b></div></a><div class="chosen-drop"><div class="chosen-search"><input type="text" autocomplete="off" /></div><ul class="chosen-results"></ul></div>');
610
  }
611
  this.form_field_jq.hide().after(this.container);
612
+ this.dropdown = this.container.find('div.chosen-drop').first();
613
  this.search_field = this.container.find('input').first();
614
+ this.search_results = this.container.find('ul.chosen-results').first();
615
  this.search_field_scale();
616
  this.search_no_results = this.container.find('li.no-results').first();
617
  if (this.is_multiple) {
618
+ this.search_choices = this.container.find('ul.chosen-choices').first();
619
  this.search_container = this.container.find('li.search-field').first();
620
  } else {
621
+ this.search_container = this.container.find('div.chosen-search').first();
622
+ this.selected_item = this.container.find('.chosen-single').first();
623
  }
624
  this.results_build();
625
  this.set_tab_index();
626
+ return this.set_label_behavior();
627
+ };
628
+
629
+ Chosen.prototype.on_ready = function() {
630
+ return this.form_field_jq.trigger("chosen:ready", {
631
  chosen: this
632
  });
633
  };
634
 
635
  Chosen.prototype.register_observers = function() {
636
  var _this = this;
637
+ this.container.bind('touchstart.chosen', function(evt) {
 
638
  _this.container_mousedown(evt);
639
+ return evt.preventDefault();
640
  });
641
+ this.container.bind('touchend.chosen', function(evt) {
642
  _this.container_mouseup(evt);
643
+ return evt.preventDefault();
644
  });
645
+ this.container.bind('mousedown.chosen', function(evt) {
646
+ _this.container_mousedown(evt);
647
+ });
648
+ this.container.bind('mouseup.chosen', function(evt) {
649
+ _this.container_mouseup(evt);
650
+ });
651
+ this.container.bind('mouseenter.chosen', function(evt) {
652
  _this.mouse_enter(evt);
653
  });
654
+ this.container.bind('mouseleave.chosen', function(evt) {
655
  _this.mouse_leave(evt);
656
  });
657
+ this.search_results.bind('mouseup.chosen', function(evt) {
658
  _this.search_results_mouseup(evt);
659
  });
660
+ this.search_results.bind('mouseover.chosen', function(evt) {
661
  _this.search_results_mouseover(evt);
662
  });
663
+ this.search_results.bind('mouseout.chosen', function(evt) {
664
  _this.search_results_mouseout(evt);
665
  });
666
+ this.search_results.bind('mousewheel.chosen DOMMouseScroll.chosen', function(evt) {
667
  _this.search_results_mousewheel(evt);
668
  });
669
+ this.search_results.bind('touchstart.chosen', function(evt) {
670
+ _this.search_results_touchstart(evt);
671
+ });
672
+ this.search_results.bind('touchmove.chosen', function(evt) {
673
+ _this.search_results_touchmove(evt);
674
+ });
675
+ this.search_results.bind('touchend.chosen', function(evt) {
676
+ _this.search_results_touchend(evt);
677
+ });
678
+ this.form_field_jq.bind("chosen:updated.chosen", function(evt) {
679
  _this.results_update_field(evt);
680
  });
681
+ this.form_field_jq.bind("chosen:activate.chosen", function(evt) {
682
  _this.activate_field(evt);
683
  });
684
+ this.form_field_jq.bind("chosen:open.chosen", function(evt) {
685
  _this.container_mousedown(evt);
686
  });
687
+ this.form_field_jq.bind("chosen:close.chosen", function(evt) {
688
  _this.input_blur(evt);
689
  });
690
+ this.search_field.bind('blur.chosen', function(evt) {
691
+ _this.input_blur(evt);
692
+ });
693
+ this.search_field.bind('keyup.chosen', function(evt) {
694
  _this.keyup_checker(evt);
695
  });
696
+ this.search_field.bind('keydown.chosen', function(evt) {
697
  _this.keydown_checker(evt);
698
  });
699
+ this.search_field.bind('focus.chosen', function(evt) {
700
  _this.input_focus(evt);
701
  });
702
+ this.search_field.bind('cut.chosen', function(evt) {
703
+ _this.clipboard_event_checker(evt);
704
+ });
705
+ this.search_field.bind('paste.chosen', function(evt) {
706
+ _this.clipboard_event_checker(evt);
707
+ });
708
  if (this.is_multiple) {
709
+ return this.search_choices.bind('click.chosen', function(evt) {
710
  _this.choices_click(evt);
711
  });
712
  } else {
713
+ return this.container.bind('click.chosen', function(evt) {
714
  evt.preventDefault();
715
  });
716
  }
717
  };
718
 
719
+ Chosen.prototype.destroy = function() {
720
+ $(this.container[0].ownerDocument).unbind("click.chosen", this.click_test_action);
721
+ if (this.search_field[0].tabIndex) {
722
+ this.form_field_jq[0].tabIndex = this.search_field[0].tabIndex;
723
+ }
724
+ this.container.remove();
725
+ this.form_field_jq.removeData('chosen');
726
+ return this.form_field_jq.show();
727
+ };
728
+
729
  Chosen.prototype.search_field_disabled = function() {
730
  this.is_disabled = this.form_field_jq[0].disabled;
731
  if (this.is_disabled) {
732
+ this.container.addClass('chosen-disabled');
733
  this.search_field[0].disabled = true;
734
  if (!this.is_multiple) {
735
+ this.selected_item.unbind("focus.chosen", this.activate_action);
736
  }
737
  return this.close_field();
738
  } else {
739
+ this.container.removeClass('chosen-disabled');
740
  this.search_field[0].disabled = false;
741
  if (!this.is_multiple) {
742
+ return this.selected_item.bind("focus.chosen", this.activate_action);
743
  }
744
  }
745
  };
754
  if (this.is_multiple) {
755
  this.search_field.val("");
756
  }
757
+ $(this.container[0].ownerDocument).bind('click.chosen', this.click_test_action);
758
  this.results_show();
759
+ } else if (!this.is_multiple && evt && (($(evt.target)[0] === this.selected_item[0]) || $(evt.target).parents("a.chosen-single").length)) {
760
  evt.preventDefault();
761
  this.results_toggle();
762
  }
772
  };
773
 
774
  Chosen.prototype.search_results_mousewheel = function(evt) {
775
+ var delta;
776
+ if (evt.originalEvent) {
777
+ delta = evt.originalEvent.deltaY || -evt.originalEvent.wheelDelta || evt.originalEvent.detail;
778
+ }
779
  if (delta != null) {
780
  evt.preventDefault();
781
  if (evt.type === 'DOMMouseScroll') {
786
  };
787
 
788
  Chosen.prototype.blur_test = function(evt) {
789
+ if (!this.active_field && this.container.hasClass("chosen-container-active")) {
790
  return this.close_field();
791
  }
792
  };
793
 
794
  Chosen.prototype.close_field = function() {
795
+ $(this.container[0].ownerDocument).unbind("click.chosen", this.click_test_action);
796
  this.active_field = false;
797
  this.results_hide();
798
+ this.container.removeClass("chosen-container-active");
799
  this.clear_backstroke();
800
  this.show_search_field_default();
801
  return this.search_field_scale();
802
  };
803
 
804
  Chosen.prototype.activate_field = function() {
805
+ this.container.addClass("chosen-container-active");
806
  this.active_field = true;
807
  this.search_field.val(this.search_field.val());
808
  return this.search_field.focus();
809
  };
810
 
811
  Chosen.prototype.test_active_click = function(evt) {
812
+ var active_container;
813
+ active_container = $(evt.target).closest('.chosen-container');
814
+ if (active_container.length && this.container[0] === active_container[0]) {
815
  return this.active_field = true;
816
  } else {
817
  return this.close_field();
821
  Chosen.prototype.results_build = function() {
822
  this.parsing = true;
823
  this.selected_option_count = null;
824
+ this.results_data = SelectParser.select_to_array(this.form_field);
825
  if (this.is_multiple) {
826
  this.search_choices.find("li.search-choice").remove();
827
  } else if (!this.is_multiple) {
828
  this.single_set_selected_text();
829
  if (this.disable_search || this.form_field.options.length <= this.disable_search_threshold) {
830
  this.search_field[0].readOnly = true;
831
+ this.container.addClass("chosen-container-single-nosearch");
832
  } else {
833
  this.search_field[0].readOnly = false;
834
+ this.container.removeClass("chosen-container-single-nosearch");
835
  }
836
  }
837
  this.update_results_content(this.results_option_build({
845
 
846
  Chosen.prototype.result_do_highlight = function(el) {
847
  var high_bottom, high_top, maxHeight, visible_bottom, visible_top;
 
848
  if (el.length) {
849
  this.result_clear_highlight();
850
  this.result_highlight = el;
871
 
872
  Chosen.prototype.results_show = function() {
873
  if (this.is_multiple && this.max_selected_options <= this.choices_count()) {
874
+ this.form_field_jq.trigger("chosen:maxselected", {
875
  chosen: this
876
  });
877
  return false;
878
  }
879
+ this.container.addClass("chosen-with-drop");
 
 
 
880
  this.results_showing = true;
881
  this.search_field.focus();
882
  this.search_field.val(this.search_field.val());
883
+ this.winnow_results();
884
+ return this.form_field_jq.trigger("chosen:showing_dropdown", {
885
+ chosen: this
886
+ });
887
  };
888
 
889
  Chosen.prototype.update_results_content = function(content) {
893
  Chosen.prototype.results_hide = function() {
894
  if (this.results_showing) {
895
  this.result_clear_highlight();
896
+ this.container.removeClass("chosen-with-drop");
897
+ this.form_field_jq.trigger("chosen:hiding_dropdown", {
898
  chosen: this
899
  });
900
  }
903
 
904
  Chosen.prototype.set_tab_index = function(el) {
905
  var ti;
906
+ if (this.form_field.tabIndex) {
907
+ ti = this.form_field.tabIndex;
908
+ this.form_field.tabIndex = -1;
909
+ return this.search_field[0].tabIndex = ti;
 
910
  }
911
  };
912
 
913
  Chosen.prototype.set_label_behavior = function() {
914
  var _this = this;
 
915
  this.form_field_label = this.form_field_jq.parents("label");
916
  if (!this.form_field_label.length && this.form_field.id.length) {
917
  this.form_field_label = $("label[for='" + this.form_field.id + "']");
918
  }
919
  if (this.form_field_label.length > 0) {
920
+ return this.form_field_label.bind('click.chosen', function(evt) {
921
  if (_this.is_multiple) {
922
  return _this.container_mousedown(evt);
923
  } else {
939
 
940
  Chosen.prototype.search_results_mouseup = function(evt) {
941
  var target;
 
942
  target = $(evt.target).hasClass("active-result") ? $(evt.target) : $(evt.target).parents(".active-result").first();
943
  if (target.length) {
944
  this.result_highlight = target;
949
 
950
  Chosen.prototype.search_results_mouseover = function(evt) {
951
  var target;
 
952
  target = $(evt.target).hasClass("active-result") ? $(evt.target) : $(evt.target).parents(".active-result").first();
953
  if (target) {
954
  return this.result_do_highlight(target);
964
  Chosen.prototype.choice_build = function(item) {
965
  var choice, close_link,
966
  _this = this;
 
967
  choice = $('<li />', {
968
  "class": "search-choice"
969
+ }).html("<span>" + (this.choice_label(item)) + "</span>");
970
  if (item.disabled) {
971
  choice.addClass('search-choice-disabled');
972
  } else {
973
  close_link = $('<a />', {
 
974
  "class": 'search-choice-close',
975
+ 'data-option-array-index': item.array_index
976
  });
977
+ close_link.bind('click.chosen', function(evt) {
978
  return _this.choice_destroy_link_click(evt);
979
  });
980
  choice.append(close_link);
991
  };
992
 
993
  Chosen.prototype.choice_destroy = function(link) {
994
+ if (this.result_deselect(link[0].getAttribute("data-option-array-index"))) {
995
  this.show_search_field_default();
996
  if (this.is_multiple && this.choices_count() > 0 && this.search_field.val().length < 1) {
997
  this.results_hide();
1002
  };
1003
 
1004
  Chosen.prototype.results_reset = function() {
1005
+ this.reset_single_select_options();
1006
  this.form_field.options[0].selected = true;
 
1007
  this.single_set_selected_text();
1008
  this.show_search_field_default();
1009
  this.results_reset_cleanup();
1020
 
1021
  Chosen.prototype.result_select = function(evt) {
1022
  var high, item;
 
1023
  if (this.result_highlight) {
1024
  high = this.result_highlight;
1025
  this.result_clear_highlight();
1026
  if (this.is_multiple && this.max_selected_options <= this.choices_count()) {
1027
+ this.form_field_jq.trigger("chosen:maxselected", {
1028
  chosen: this
1029
  });
1030
  return false;
1032
  if (this.is_multiple) {
1033
  high.removeClass("active-result");
1034
  } else {
1035
+ this.reset_single_select_options();
 
1036
  }
1037
  high.addClass("result-selected");
1038
  item = this.results_data[high[0].getAttribute("data-option-array-index")];
1042
  if (this.is_multiple) {
1043
  this.choice_build(item);
1044
  } else {
1045
+ this.single_set_selected_text(this.choice_label(item));
1046
  }
1047
  if (!((evt.metaKey || evt.ctrlKey) && this.is_multiple)) {
1048
  this.results_hide();
1054
  });
1055
  }
1056
  this.current_selectedIndex = this.form_field.selectedIndex;
1057
+ evt.preventDefault();
1058
  return this.search_field_scale();
1059
  }
1060
  };
1064
  text = this.default_text;
1065
  }
1066
  if (text === this.default_text) {
1067
+ this.selected_item.addClass("chosen-default");
1068
  } else {
1069
  this.single_deselect_control_build();
1070
+ this.selected_item.removeClass("chosen-default");
1071
  }
1072
+ return this.selected_item.find("span").html(text);
1073
  };
1074
 
1075
  Chosen.prototype.result_deselect = function(pos) {
1076
  var result_data;
 
1077
  result_data = this.results_data[pos];
1078
  if (!this.form_field.options[result_data.options_index].disabled) {
1079
  result_data.selected = false;
1100
  if (!this.selected_item.find("abbr").length) {
1101
  this.selected_item.find("span").first().after("<abbr class=\"search-choice-close\"></abbr>");
1102
  }
1103
+ return this.selected_item.addClass("chosen-single-with-deselect");
1104
  };
1105
 
1106
  Chosen.prototype.get_search_text = function() {
1107
+ return $('<div/>').text($.trim(this.search_field.val())).html();
 
 
 
 
1108
  };
1109
 
1110
  Chosen.prototype.winnow_results_set_highlight = function() {
1111
  var do_high, selected_results;
 
1112
  selected_results = !this.is_multiple ? this.search_results.find(".result-selected.active-result") : [];
1113
  do_high = selected_results.length ? selected_results.first() : this.search_results.find(".active-result").first();
1114
  if (do_high != null) {
1118
 
1119
  Chosen.prototype.no_results = function(terms) {
1120
  var no_results_html;
 
1121
  no_results_html = $('<li class="no-results">' + this.results_none_found + ' "<span></span>"</li>');
1122
  no_results_html.find("span").first().html(terms);
1123
+ this.search_results.append(no_results_html);
1124
+ return this.form_field_jq.trigger("chosen:no_results", {
1125
+ chosen: this
1126
+ });
1127
  };
1128
 
1129
  Chosen.prototype.no_results_clear = function() {
1132
 
1133
  Chosen.prototype.keydown_arrow = function() {
1134
  var next_sib;
 
1135
  if (this.results_showing && this.result_highlight) {
1136
  next_sib = this.result_highlight.nextAll("li.active-result").first();
1137
  if (next_sib) {
1144
 
1145
  Chosen.prototype.keyup_arrow = function() {
1146
  var prev_sibs;
 
1147
  if (!this.results_showing && !this.is_multiple) {
1148
  return this.results_show();
1149
  } else if (this.result_highlight) {
1161
 
1162
  Chosen.prototype.keydown_backstroke = function() {
1163
  var next_available_destroy;
 
1164
  if (this.pending_backstroke) {
1165
  this.choice_destroy(this.pending_backstroke.find("a").first());
1166
  return this.clear_backstroke();
1186
 
1187
  Chosen.prototype.keydown_checker = function(evt) {
1188
  var stroke, _ref1;
 
1189
  stroke = (_ref1 = evt.which) != null ? _ref1 : evt.keyCode;
1190
  this.search_field_scale();
1191
  if (stroke !== 8 && this.pending_backstroke) {
1202
  this.mouse_on_container = false;
1203
  break;
1204
  case 13:
1205
+ if (this.results_showing) {
1206
+ evt.preventDefault();
1207
+ }
1208
+ break;
1209
+ case 32:
1210
+ if (this.disable_search) {
1211
+ evt.preventDefault();
1212
+ }
1213
  break;
1214
  case 38:
1215
  evt.preventDefault();
1224
 
1225
  Chosen.prototype.search_field_scale = function() {
1226
  var div, f_width, h, style, style_block, styles, w, _i, _len;
 
1227
  if (this.is_multiple) {
1228
  h = 0;
1229
  w = 0;
1254
 
1255
  })(AbstractChosen);
1256
 
 
 
1257
  }).call(this);
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-12-13 16:07+0100\n"
5
- "PO-Revision-Date: 2015-12-13 16:07+0100\n"
6
  "Last-Translator: Pascal <pascal@redeo.nl>\n"
7
  "Language-Team: iQ Block Country <info@redeo.nl>\n"
8
  "Language: English\n"
@@ -27,657 +27,633 @@ msgstr ""
27
  msgid "The Admin Block API key is incorrect. Please update the key."
28
  msgstr ""
29
 
30
- #: libs/blockcountry-retrieve-geodb.php:38
31
- #: libs/blockcountry-retrieve-geodb.php:49
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:"
49
- msgstr ""
50
-
51
- #: libs/blockcountry-retrieve-geodb.php:77
52
- msgid "Finished downloading"
53
- msgstr ""
54
-
55
- #: libs/blockcountry-retrieve-geodb.php:85
56
- msgid "Fatal error: GeoIP"
57
- msgstr ""
58
-
59
- #: libs/blockcountry-retrieve-geodb.php:85
60
- msgid ""
61
- "database does not exists. This plugin will not work until the database file "
62
- "is present."
63
- msgstr ""
64
-
65
- #: libs/blockcountry-settings.php:51
66
  msgid ""
67
  "The MaxMind GeoIP database does not exist. Please download this file "
68
  "manually or if you wish to use the GeoIP API get an API key from: "
69
  msgstr ""
70
 
71
- #: libs/blockcountry-settings.php:52
72
  msgid "Please download the database from: "
73
  msgstr ""
74
 
75
- #: libs/blockcountry-settings.php:54 libs/blockcountry-settings.php:59
 
76
  msgid "unzip the file and afterwards upload it to the following location: "
77
  msgstr ""
78
 
79
- #: libs/blockcountry-settings.php:57
80
  msgid "If you also use IPv6 please also download the database from: "
81
  msgstr ""
82
 
83
- #: libs/blockcountry-settings.php:61
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:1327
146
- #: libs/blockcountry-settings.php:1370
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:1295
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:1113
588
- msgid ""
589
- "Your MaxMind GeoIP database is older than 3 months. Please update your "
590
- "database. "
591
- msgstr ""
592
-
593
- #: libs/blockcountry-settings.php:1122
594
  msgid "Overall statistics since start"
595
  msgstr ""
596
 
597
- #: libs/blockcountry-settings.php:1125
598
  msgid "visitors blocked from the backend."
599
  msgstr ""
600
 
601
- #: libs/blockcountry-settings.php:1127
602
  msgid "visitors blocked from the frontend."
603
  msgstr ""
604
 
605
- #: libs/blockcountry-settings.php:1131
606
- msgid "Basic Options"
 
 
 
 
 
 
607
  msgstr ""
608
 
609
- #: libs/blockcountry-settings.php:1166
610
  msgid "Message to display when people are blocked:"
611
  msgstr ""
612
 
613
- #: libs/blockcountry-settings.php:1177
614
  msgid "Page to redirect to:"
615
  msgstr ""
616
 
617
- #: libs/blockcountry-settings.php:1178
618
  msgid ""
619
  "If you select a page here blocked visitors will be redirected to this page "
620
  "instead of displaying above block message."
621
  msgstr ""
622
 
623
- #: libs/blockcountry-settings.php:1184
624
  msgid "Choose a page..."
625
  msgstr ""
626
 
627
- #: libs/blockcountry-settings.php:1199
628
  msgid "URL to redirect to:"
629
  msgstr ""
630
 
631
- #: libs/blockcountry-settings.php:1200
632
  msgid ""
633
  "If you enter a URL here blocked visitors will be redirected to this URL "
634
  "instead of displaying above block message or redirected to a local page."
635
  msgstr ""
636
 
637
- #: libs/blockcountry-settings.php:1207
 
 
 
 
638
  msgid "Send headers when user is blocked:"
639
  msgstr ""
640
 
641
- #: libs/blockcountry-settings.php:1208
642
  msgid ""
643
  "Under normal circumstances you should keep this selected! Only if you have "
644
  "\"Cannot modify header information - headers already sent\" errors or if you "
645
  "know what you are doing uncheck this."
646
  msgstr ""
647
 
648
- #: libs/blockcountry-settings.php:1214
649
  msgid "Buffer output?:"
650
  msgstr ""
651
 
652
- #: libs/blockcountry-settings.php:1215
653
  msgid ""
654
  "You can use this option to buffer all output. This can be helpful in case "
655
  "you have \"headers already sent\" issues."
656
  msgstr ""
657
 
658
- #: libs/blockcountry-settings.php:1221
659
  msgid "Do not log IP addresses:"
660
  msgstr ""
661
 
662
- #: libs/blockcountry-settings.php:1222
663
  msgid ""
664
  "Check this box if the laws in your country do not permit you to log IP "
665
  "addresses or if you do not want to log the ip addresses."
666
  msgstr ""
667
 
668
- #: libs/blockcountry-settings.php:1229
669
  msgid "Number of rows on statistics page:"
670
  msgstr ""
671
 
672
- #: libs/blockcountry-settings.php:1230
673
  msgid "How many rows do you want to display on each tab the statistics page."
674
  msgstr ""
675
 
676
- #: libs/blockcountry-settings.php:1245
677
  msgid "Allow tracking:"
678
  msgstr ""
679
 
680
- #: libs/blockcountry-settings.php:1246
681
  msgid ""
682
  "This sends only the IP address and the number of attempts this ip address "
683
  "tried to login to your backend and was blocked doing so to a central server. "
@@ -685,152 +661,187 @@ msgid ""
685
  "countries."
686
  msgstr ""
687
 
688
- #: libs/blockcountry-settings.php:1252
689
  msgid "GeoIP API Key:"
690
  msgstr ""
691
 
692
- #: libs/blockcountry-settings.php:1253
693
  msgid ""
694
  "If for some reason you cannot or do not want to download the MaxMind GeoIP "
695
  "databases you will need an API key for the GeoIP api.<br />You can get an "
696
  "API key from: "
697
  msgstr ""
698
 
699
- #: libs/blockcountry-settings.php:1261
700
  msgid "GeoIP API Key Server Location:"
701
  msgstr ""
702
 
703
- #: libs/blockcountry-settings.php:1262
704
  msgid "Choose a location closest to your own location."
705
  msgstr ""
706
 
707
- #: libs/blockcountry-settings.php:1270
708
  msgid "Admin block API Key:"
709
  msgstr ""
710
 
711
- #: libs/blockcountry-settings.php:1271
712
  msgid ""
713
  "This is an experimantal feature. You do not need an API key for this plugin "
714
  "to work."
715
  msgstr ""
716
 
717
- #: libs/blockcountry-settings.php:1279
718
  msgid "Accessibility options:"
719
  msgstr ""
720
 
721
- #: libs/blockcountry-settings.php:1280
722
  msgid "Set this option if you cannot use the default country selection box."
723
  msgstr ""
724
 
725
- #: libs/blockcountry-settings.php:1286
726
  msgid "Log all visits:"
727
  msgstr ""
728
 
729
- #: libs/blockcountry-settings.php:1287
730
  msgid ""
731
  "This logs all visits despite if they are blocked or not. This is only for "
732
  "debugging purposes."
733
  msgstr ""
734
 
735
- #: libs/blockcountry-settings.php:1313
736
  msgid "Last blocked visits"
737
  msgstr ""
738
 
739
- #: libs/blockcountry-settings.php:1327
740
  msgid "Date / Time"
741
  msgstr ""
742
 
743
- #: libs/blockcountry-settings.php:1327 libs/blockcountry-settings.php:1359
744
  msgid "IP Address"
745
  msgstr ""
746
 
747
- #: libs/blockcountry-settings.php:1327 libs/blockcountry-settings.php:1359
748
  msgid "Hostname"
749
  msgstr ""
750
 
751
- #: libs/blockcountry-settings.php:1327 libs/blockcountry-settings.php:1346
752
  msgid "Country"
753
  msgstr ""
754
 
755
- #: libs/blockcountry-settings.php:1327
756
  msgid "Frontend/Backend"
757
  msgstr ""
758
 
759
- #: libs/blockcountry-settings.php:1337 libs/blockcountry-settings.php:1439
760
  msgid "Frontend"
761
  msgstr ""
762
 
763
- #: libs/blockcountry-settings.php:1337
764
  msgid "Backend banlist"
765
  msgstr ""
766
 
767
- #: libs/blockcountry-settings.php:1337
768
  msgid "Backend & Backend banlist"
769
  msgstr ""
770
 
771
- #: libs/blockcountry-settings.php:1337 libs/blockcountry-settings.php:1440
772
  msgid "Backend"
773
  msgstr ""
774
 
775
- #: libs/blockcountry-settings.php:1344
776
  msgid "Top countries that are blocked"
777
  msgstr ""
778
 
779
- #: libs/blockcountry-settings.php:1346 libs/blockcountry-settings.php:1359
780
- #: libs/blockcountry-settings.php:1370
781
  msgid "# of blocked attempts"
782
  msgstr ""
783
 
784
- #: libs/blockcountry-settings.php:1357
785
  msgid "Top hosts that are blocked"
786
  msgstr ""
787
 
788
- #: libs/blockcountry-settings.php:1368
789
  msgid "Top URLs that are blocked"
790
  msgstr ""
791
 
792
- #: libs/blockcountry-settings.php:1384
793
  msgid "Clear database"
794
  msgstr ""
795
 
796
- #: libs/blockcountry-settings.php:1409
797
  msgid "Download as CSV file"
798
  msgstr ""
799
 
800
- #: libs/blockcountry-settings.php:1416
801
  msgid ""
802
  "You are not logging any information. Please uncheck the option 'Do not log "
803
  "IP addresses' if this is not what you want."
804
  msgstr ""
805
 
806
- #: libs/blockcountry-settings.php:1438
807
  msgid "Home"
808
  msgstr ""
809
 
810
- #: libs/blockcountry-settings.php:1441
811
  msgid "Pages"
812
  msgstr ""
813
 
814
- #: libs/blockcountry-settings.php:1442
815
  msgid "Categories"
816
  msgstr ""
817
 
818
- #: libs/blockcountry-settings.php:1443
819
  msgid "Post types"
820
  msgstr ""
821
 
822
- #: libs/blockcountry-settings.php:1444
823
  msgid "Search Engines"
824
  msgstr ""
825
 
826
- #: libs/blockcountry-settings.php:1445
827
  msgid "Tools"
828
  msgstr ""
829
 
830
- #: libs/blockcountry-settings.php:1446
831
  msgid "Logging"
832
  msgstr ""
833
 
834
- #: libs/blockcountry-settings.php:1447
835
  msgid "Import/Export"
836
  msgstr ""
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: iQ Block Country\n"
4
+ "POT-Creation-Date: 2016-01-31 19:59+0100\n"
5
+ "PO-Revision-Date: 2016-01-31 19:59+0100\n"
6
  "Last-Translator: Pascal <pascal@redeo.nl>\n"
7
  "Language-Team: iQ Block Country <info@redeo.nl>\n"
8
  "Language: English\n"
27
  msgid "The Admin Block API key is incorrect. Please update the key."
28
  msgstr ""
29
 
30
+ #: libs/blockcountry-settings.php:52
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
31
  msgid ""
32
  "The MaxMind GeoIP database does not exist. Please download this file "
33
  "manually or if you wish to use the GeoIP API get an API key from: "
34
  msgstr ""
35
 
36
+ #: libs/blockcountry-settings.php:53 libs/blockcountry-settings.php:78
37
  msgid "Please download the database from: "
38
  msgstr ""
39
 
40
+ #: libs/blockcountry-settings.php:55 libs/blockcountry-settings.php:60
41
+ #: libs/blockcountry-settings.php:80 libs/blockcountry-settings.php:85
42
  msgid "unzip the file and afterwards upload it to the following location: "
43
  msgstr ""
44
 
45
+ #: libs/blockcountry-settings.php:58 libs/blockcountry-settings.php:83
46
  msgid "If you also use IPv6 please also download the database from: "
47
  msgstr ""
48
 
49
+ #: libs/blockcountry-settings.php:62 libs/blockcountry-settings.php:87
50
  msgid "For more detailed instructions take a look at the documentation.."
51
  msgstr ""
52
 
53
+ #: libs/blockcountry-settings.php:77
54
+ msgid ""
55
+ "The MaxMind GeoIP database is older than 3 months. Please update this file "
56
+ "manually or if you wish to use the GeoIP API get an API key from: "
57
+ msgstr ""
58
+
59
+ #: libs/blockcountry-settings.php:233
60
  msgid ""
61
  "Check which country belongs to an IP Address according to the current "
62
  "database."
63
  msgstr ""
64
 
65
+ #: libs/blockcountry-settings.php:238
66
  msgid "IP Address to check:"
67
  msgstr ""
68
 
69
+ #: libs/blockcountry-settings.php:254
70
  msgid "No country for"
71
  msgstr ""
72
 
73
+ #: libs/blockcountry-settings.php:254
74
  msgid "could be found. Or"
75
  msgstr ""
76
 
77
+ #: libs/blockcountry-settings.php:254
78
  msgid "is not a valid IPv4 or IPv6 IP address"
79
  msgstr ""
80
 
81
+ #: libs/blockcountry-settings.php:259
82
  msgid "IP Adress"
83
  msgstr ""
84
 
85
+ #: libs/blockcountry-settings.php:259
86
  msgid "belongs to"
87
  msgstr ""
88
 
89
+ #: libs/blockcountry-settings.php:265 libs/blockcountry-settings.php:270
90
  msgid "This country is not permitted to visit the frontend of this website."
91
  msgstr ""
92
 
93
+ #: libs/blockcountry-settings.php:279 libs/blockcountry-settings.php:286
94
  msgid "This country is not permitted to visit the backend of this website."
95
  msgstr ""
96
 
97
+ #: libs/blockcountry-settings.php:292
98
  msgid "This ip is present in the blacklist."
99
  msgstr ""
100
 
101
+ #: libs/blockcountry-settings.php:298
102
  msgid "Check IP address"
103
  msgstr ""
104
 
105
+ #: libs/blockcountry-settings.php:304
106
  msgid "Active plugins"
107
  msgstr ""
108
 
109
+ #: libs/blockcountry-settings.php:311
110
  msgid "Plugin name"
111
  msgstr ""
112
 
113
+ #: libs/blockcountry-settings.php:311
114
  msgid "Version"
115
  msgstr ""
116
 
117
+ #: libs/blockcountry-settings.php:311 libs/blockcountry-settings.php:1334
118
+ #: libs/blockcountry-settings.php:1377
119
  msgid "URL"
120
  msgstr ""
121
 
122
+ #: libs/blockcountry-settings.php:330
123
  msgid "none"
124
  msgstr ""
125
 
126
+ #: libs/blockcountry-settings.php:336 libs/blockcountry-settings.php:337
127
  msgid "unavailable"
128
  msgstr ""
129
 
130
+ #: libs/blockcountry-settings.php:341
131
  msgid "File System Information"
132
  msgstr ""
133
 
134
+ #: libs/blockcountry-settings.php:344
135
  msgid "Website Root Folder"
136
  msgstr ""
137
 
138
+ #: libs/blockcountry-settings.php:345 libs/blockcountry-settings.php:547
139
  msgid "Document Root Path"
140
  msgstr ""
141
 
142
+ #: libs/blockcountry-settings.php:349
143
  msgid "Database Information"
144
  msgstr ""
145
 
146
+ #: libs/blockcountry-settings.php:351
147
  msgid "MySQL Database Version"
148
  msgstr ""
149
 
150
+ #: libs/blockcountry-settings.php:352
151
  msgid "MySQL Client Version"
152
  msgstr ""
153
 
154
+ #: libs/blockcountry-settings.php:353
155
  msgid "Database Host"
156
  msgstr ""
157
 
158
+ #: libs/blockcountry-settings.php:359
159
  msgid "Not Set"
160
  msgstr ""
161
 
162
+ #: libs/blockcountry-settings.php:361 libs/blockcountry-settings.php:441
163
+ #: libs/blockcountry-settings.php:449 libs/blockcountry-settings.php:457
164
+ #: libs/blockcountry-settings.php:465 libs/blockcountry-settings.php:473
165
+ #: libs/blockcountry-settings.php:482 libs/blockcountry-settings.php:499
166
  msgid "Off"
167
  msgstr ""
168
 
169
+ #: libs/blockcountry-settings.php:364
170
  msgid "SQL Mode"
171
  msgstr ""
172
 
173
+ #: libs/blockcountry-settings.php:368
174
  msgid "Server Information"
175
  msgstr ""
176
 
177
+ #: libs/blockcountry-settings.php:373
178
  msgid "Server IP Address"
179
  msgstr ""
180
 
181
+ #: libs/blockcountry-settings.php:375
182
  msgid "Server Type"
183
  msgstr ""
184
 
185
+ #: libs/blockcountry-settings.php:376
186
  msgid "Operating System"
187
  msgstr ""
188
 
189
+ #: libs/blockcountry-settings.php:377
190
  msgid "Browser Compression Supported"
191
  msgstr ""
192
 
193
+ #: libs/blockcountry-settings.php:393
194
  msgid "undefined"
195
  msgstr ""
196
 
197
+ #: libs/blockcountry-settings.php:400
198
  msgid "PHP Process User (UID:GID)"
199
  msgstr ""
200
 
201
+ #: libs/blockcountry-settings.php:405
202
  msgid "PHP Information"
203
  msgstr ""
204
 
205
+ #: libs/blockcountry-settings.php:410
206
  msgid "PHP Version"
207
  msgstr ""
208
 
209
+ #: libs/blockcountry-settings.php:411
210
  msgid "PHP Memory Usage"
211
  msgstr ""
212
 
213
+ #: libs/blockcountry-settings.php:411
214
  msgid " MB"
215
  msgstr ""
216
 
217
+ #: libs/blockcountry-settings.php:417 libs/blockcountry-settings.php:425
218
+ #: libs/blockcountry-settings.php:433 libs/blockcountry-settings.php:490
219
  msgid "N/A"
220
  msgstr ""
221
 
222
+ #: libs/blockcountry-settings.php:420
223
  msgid "PHP Memory Limit"
224
  msgstr ""
225
 
226
+ #: libs/blockcountry-settings.php:428
227
  msgid "PHP Max Upload Size"
228
  msgstr ""
229
 
230
+ #: libs/blockcountry-settings.php:436
231
  msgid "PHP Max Post Size"
232
  msgstr ""
233
 
234
+ #: libs/blockcountry-settings.php:439 libs/blockcountry-settings.php:447
235
+ #: libs/blockcountry-settings.php:455 libs/blockcountry-settings.php:463
236
+ #: libs/blockcountry-settings.php:471 libs/blockcountry-settings.php:480
237
+ #: libs/blockcountry-settings.php:497
238
  msgid "On"
239
  msgstr ""
240
 
241
+ #: libs/blockcountry-settings.php:444
242
  msgid "PHP Safe Mode"
243
  msgstr ""
244
 
245
+ #: libs/blockcountry-settings.php:452
246
  msgid "PHP Allow URL fopen"
247
  msgstr ""
248
 
249
+ #: libs/blockcountry-settings.php:460
250
  msgid "PHP Allow URL Include"
251
  msgstr ""
252
 
253
+ #: libs/blockcountry-settings.php:468
254
  msgid "PHP Display Errors"
255
  msgstr ""
256
 
257
+ #: libs/blockcountry-settings.php:476
258
  msgid "PHP Display Startup Errors"
259
  msgstr ""
260
 
261
+ #: libs/blockcountry-settings.php:485
262
  msgid "PHP Expose PHP"
263
  msgstr ""
264
 
265
+ #: libs/blockcountry-settings.php:493
266
  msgid "PHP Max Script Execution Time"
267
  msgstr ""
268
 
269
+ #: libs/blockcountry-settings.php:494
270
  msgid "Seconds"
271
  msgstr ""
272
 
273
+ #: libs/blockcountry-settings.php:502
274
  msgid "PHP open_basedir"
275
  msgstr ""
276
 
277
+ #: libs/blockcountry-settings.php:505 libs/blockcountry-settings.php:513
278
  msgid "Yes"
279
  msgstr ""
280
 
281
+ #: libs/blockcountry-settings.php:507 libs/blockcountry-settings.php:515
282
  msgid "No"
283
  msgstr ""
284
 
285
+ #: libs/blockcountry-settings.php:510
286
  msgid "PHP XML Support"
287
  msgstr ""
288
 
289
+ #: libs/blockcountry-settings.php:518
290
  msgid "PHP IPTC Support"
291
  msgstr ""
292
 
293
+ #: libs/blockcountry-settings.php:520
294
  msgid "Disabled PHP Functions"
295
  msgstr ""
296
 
297
+ #: libs/blockcountry-settings.php:527
298
  msgid "Wordpress info"
299
  msgstr ""
300
 
301
+ #: libs/blockcountry-settings.php:532
302
  msgid "is enabled"
303
  msgstr ""
304
 
305
+ #: libs/blockcountry-settings.php:534
306
  msgid "is disabled"
307
  msgstr ""
308
 
309
+ #: libs/blockcountry-settings.php:537
310
  msgid " Multisite"
311
  msgstr ""
312
 
313
+ #: libs/blockcountry-settings.php:540
314
  msgid "are enabled"
315
  msgstr ""
316
 
317
+ #: libs/blockcountry-settings.php:542
318
  msgid "are disabled"
319
  msgstr ""
320
 
321
+ #: libs/blockcountry-settings.php:545
322
  msgid "Permalinks"
323
  msgstr ""
324
 
325
+ #: libs/blockcountry-settings.php:562
326
  msgid "Export"
327
  msgstr ""
328
 
329
+ #: libs/blockcountry-settings.php:563
330
  msgid ""
331
  "When you click on <tt>Backup all settings</tt> button a backup of the iQ "
332
  "Block Country configuration will be created."
333
  msgstr ""
334
 
335
+ #: libs/blockcountry-settings.php:564
336
  msgid ""
337
  "After exporting, you can either use the backup file to restore your settings "
338
  "on this site again or copy the settings to another WordPress site."
339
  msgstr ""
340
 
341
+ #: libs/blockcountry-settings.php:568
342
  msgid "Backup all settings"
343
  msgstr ""
344
 
345
+ #: libs/blockcountry-settings.php:575
346
  msgid "Import"
347
  msgstr ""
348
 
349
+ #: libs/blockcountry-settings.php:576
350
  msgid "Click the browse button and choose a zip file that you exported before."
351
  msgstr ""
352
 
353
+ #: libs/blockcountry-settings.php:577
354
  msgid "Press Restore settings button, and let WordPress do the magic for you."
355
  msgstr ""
356
 
357
+ #: libs/blockcountry-settings.php:582
358
  msgid "Restore settings"
359
  msgstr ""
360
 
361
+ #: libs/blockcountry-settings.php:605 libs/blockcountry-settings.php:608
362
+ #: libs/blockcountry-settings.php:617
363
  msgid "Something went wrong exporting this file"
364
  msgstr ""
365
 
366
+ #: libs/blockcountry-settings.php:620
367
  msgid "Exporting settings..."
368
  msgstr ""
369
 
370
+ #: libs/blockcountry-settings.php:635
371
  msgid "Something went wrong importing this file"
372
  msgstr ""
373
 
374
+ #: libs/blockcountry-settings.php:652
375
  msgid "All options are restored successfully."
376
  msgstr ""
377
 
378
+ #: libs/blockcountry-settings.php:655
379
  msgid "Invalid file."
380
  msgstr ""
381
 
382
+ #: libs/blockcountry-settings.php:660
383
  msgid "No correct import or export option given."
384
  msgstr ""
385
 
386
+ #: libs/blockcountry-settings.php:669
387
  msgid "Select which pages are blocked."
388
  msgstr ""
389
 
390
+ #: libs/blockcountry-settings.php:676
391
  msgid "Do you want to block individual pages:"
392
  msgstr ""
393
 
394
+ #: libs/blockcountry-settings.php:677
395
  msgid "If you do not select this option all pages will be blocked."
396
  msgstr ""
397
 
398
+ #: libs/blockcountry-settings.php:682
399
  msgid "Select pages you want to block:"
400
  msgstr ""
401
 
402
+ #: libs/blockcountry-settings.php:704 libs/blockcountry-settings.php:758
403
+ #: libs/blockcountry-settings.php:806 libs/blockcountry-settings.php:851
404
+ #: libs/blockcountry-settings.php:977 libs/blockcountry-settings.php:1106
405
+ #: libs/blockcountry-settings.php:1302
406
  msgid "Save Changes"
407
  msgstr ""
408
 
409
+ #: libs/blockcountry-settings.php:717
410
  msgid "Select which categories are blocked."
411
  msgstr ""
412
 
413
+ #: libs/blockcountry-settings.php:724
414
  msgid "Do you want to block individual categories:"
415
  msgstr ""
416
 
417
+ #: libs/blockcountry-settings.php:725
418
  msgid "If you do not select this option all blog articles will be blocked."
419
  msgstr ""
420
 
421
+ #: libs/blockcountry-settings.php:730
422
  msgid "Do you want to block the homepage:"
423
  msgstr ""
424
 
425
+ #: libs/blockcountry-settings.php:731
426
  msgid ""
427
  "If you do not select this option visitors will not be blocked from your "
428
  "homepage regardless of the categories you select."
429
  msgstr ""
430
 
431
+ #: libs/blockcountry-settings.php:736
432
  msgid "Select categories you want to block:"
433
  msgstr ""
434
 
435
+ #: libs/blockcountry-settings.php:772
436
  msgid "Select which post types are blocked."
437
  msgstr ""
438
 
439
+ #: libs/blockcountry-settings.php:779
440
  msgid "Do you want to block individual post types:"
441
  msgstr ""
442
 
443
+ #: libs/blockcountry-settings.php:784
444
  msgid "Select post types you want to block:"
445
  msgstr ""
446
 
447
+ #: libs/blockcountry-settings.php:821
448
  msgid "Select which search engines are allowed."
449
  msgstr ""
450
 
451
+ #: libs/blockcountry-settings.php:828
452
  msgid "Select which search engines you want to allow:"
453
  msgstr ""
454
 
455
+ #: libs/blockcountry-settings.php:829
456
  msgid ""
457
  "This will allow a search engine to your site despite if you blocked the "
458
  "country."
459
  msgstr ""
460
 
461
+ #: libs/blockcountry-settings.php:866
462
  msgid "Frontend options"
463
  msgstr ""
464
 
465
+ #: libs/blockcountry-settings.php:893
466
  msgid ""
467
  "Do not block visitors that are logged in from visiting frontend website:"
468
  msgstr ""
469
 
470
+ #: libs/blockcountry-settings.php:899
471
  msgid "Block visitors from visiting the frontend of your website:"
472
  msgstr ""
473
 
474
+ #: libs/blockcountry-settings.php:905
475
  msgid "Block visitors from using the search function of your website:"
476
  msgstr ""
477
 
478
+ #: libs/blockcountry-settings.php:911
479
  msgid ""
480
  "Select the countries that should be blocked from visiting your frontend:"
481
  msgstr ""
482
 
483
+ #: libs/blockcountry-settings.php:912
484
  msgid "Use the CTRL key to select multiple countries"
485
  msgstr ""
486
 
487
+ #: libs/blockcountry-settings.php:954 libs/blockcountry-settings.php:1082
488
  msgid "Inverse the selection above:"
489
  msgstr ""
490
 
491
+ #: libs/blockcountry-settings.php:955 libs/blockcountry-settings.php:1083
492
  msgid ""
493
  "If you select this option only the countries that are selected are "
494
  "<em>allowed</em>."
495
  msgstr ""
496
 
497
+ #: libs/blockcountry-settings.php:960
498
  msgid "Frontend whitelist IPv4 and/or IPv6 addresses:"
499
  msgstr ""
500
 
501
+ #: libs/blockcountry-settings.php:960 libs/blockcountry-settings.php:968
502
+ #: libs/blockcountry-settings.php:1089 libs/blockcountry-settings.php:1097
503
  msgid "Use a semicolon (;) to separate IP addresses"
504
  msgstr ""
505
 
506
+ #: libs/blockcountry-settings.php:968
507
  msgid "Frontend blacklist IPv4 and/or IPv6 addresses:"
508
  msgstr ""
509
 
510
+ #: libs/blockcountry-settings.php:997
511
  msgid "Backend Options"
512
  msgstr ""
513
 
514
+ #: libs/blockcountry-settings.php:1025
515
  msgid ""
516
  "Block visitors from visiting the backend (administrator) of your website:"
517
  msgstr ""
518
 
519
+ #: libs/blockcountry-settings.php:1033
520
  msgid "Your IP address is"
521
  msgstr ""
522
 
523
+ #: libs/blockcountry-settings.php:1033
524
  msgid "The country that is listed for this IP address is"
525
  msgstr ""
526
 
527
+ #: libs/blockcountry-settings.php:1034
528
  msgid ""
529
  "Do <strong>NOT</strong> set the 'Block visitors from visiting the backend "
530
  "(administrator) of your website' and also select"
531
  msgstr ""
532
 
533
+ #: libs/blockcountry-settings.php:1034
534
  msgid "below."
535
  msgstr ""
536
 
537
+ #: libs/blockcountry-settings.php:1035
538
  msgid ""
539
  "You will NOT be able to login the next time if you DO block your own country "
540
  "from visiting the backend."
541
  msgstr ""
542
 
543
+ #: libs/blockcountry-settings.php:1040
544
  msgid "Select the countries that should be blocked from visiting your backend:"
545
  msgstr ""
546
 
547
+ #: libs/blockcountry-settings.php:1041
548
  msgid "Use the x behind the country to remove a country from this blocklist."
549
  msgstr ""
550
 
551
+ #: libs/blockcountry-settings.php:1089
552
  msgid "Backend whitelist IPv4 and/or IPv6 addresses:"
553
  msgstr ""
554
 
555
+ #: libs/blockcountry-settings.php:1097
556
  msgid "Backend blacklist IPv4 and/or IPv6 addresses:"
557
  msgstr ""
558
 
559
+ #: libs/blockcountry-settings.php:1140
 
 
 
 
 
 
560
  msgid "Overall statistics since start"
561
  msgstr ""
562
 
563
+ #: libs/blockcountry-settings.php:1143
564
  msgid "visitors blocked from the backend."
565
  msgstr ""
566
 
567
+ #: libs/blockcountry-settings.php:1145
568
  msgid "visitors blocked from the frontend."
569
  msgstr ""
570
 
571
+ #: libs/blockcountry-settings.php:1162
572
+ msgid "Block type"
573
+ msgstr ""
574
+
575
+ #: libs/blockcountry-settings.php:1164
576
+ msgid ""
577
+ "You should choose one of the 3 block options below. This wil either show a "
578
+ "block message, redirect to an internal page or redirect to an external page."
579
  msgstr ""
580
 
581
+ #: libs/blockcountry-settings.php:1169
582
  msgid "Message to display when people are blocked:"
583
  msgstr ""
584
 
585
+ #: libs/blockcountry-settings.php:1180
586
  msgid "Page to redirect to:"
587
  msgstr ""
588
 
589
+ #: libs/blockcountry-settings.php:1181
590
  msgid ""
591
  "If you select a page here blocked visitors will be redirected to this page "
592
  "instead of displaying above block message."
593
  msgstr ""
594
 
595
+ #: libs/blockcountry-settings.php:1187
596
  msgid "Choose a page..."
597
  msgstr ""
598
 
599
+ #: libs/blockcountry-settings.php:1202
600
  msgid "URL to redirect to:"
601
  msgstr ""
602
 
603
+ #: libs/blockcountry-settings.php:1203
604
  msgid ""
605
  "If you enter a URL here blocked visitors will be redirected to this URL "
606
  "instead of displaying above block message or redirected to a local page."
607
  msgstr ""
608
 
609
+ #: libs/blockcountry-settings.php:1210
610
+ msgid "General settings"
611
+ msgstr ""
612
+
613
+ #: libs/blockcountry-settings.php:1214
614
  msgid "Send headers when user is blocked:"
615
  msgstr ""
616
 
617
+ #: libs/blockcountry-settings.php:1215
618
  msgid ""
619
  "Under normal circumstances you should keep this selected! Only if you have "
620
  "\"Cannot modify header information - headers already sent\" errors or if you "
621
  "know what you are doing uncheck this."
622
  msgstr ""
623
 
624
+ #: libs/blockcountry-settings.php:1221
625
  msgid "Buffer output?:"
626
  msgstr ""
627
 
628
+ #: libs/blockcountry-settings.php:1222
629
  msgid ""
630
  "You can use this option to buffer all output. This can be helpful in case "
631
  "you have \"headers already sent\" issues."
632
  msgstr ""
633
 
634
+ #: libs/blockcountry-settings.php:1228
635
  msgid "Do not log IP addresses:"
636
  msgstr ""
637
 
638
+ #: libs/blockcountry-settings.php:1229
639
  msgid ""
640
  "Check this box if the laws in your country do not permit you to log IP "
641
  "addresses or if you do not want to log the ip addresses."
642
  msgstr ""
643
 
644
+ #: libs/blockcountry-settings.php:1236
645
  msgid "Number of rows on statistics page:"
646
  msgstr ""
647
 
648
+ #: libs/blockcountry-settings.php:1237
649
  msgid "How many rows do you want to display on each tab the statistics page."
650
  msgstr ""
651
 
652
+ #: libs/blockcountry-settings.php:1252
653
  msgid "Allow tracking:"
654
  msgstr ""
655
 
656
+ #: libs/blockcountry-settings.php:1253
657
  msgid ""
658
  "This sends only the IP address and the number of attempts this ip address "
659
  "tried to login to your backend and was blocked doing so to a central server. "
661
  "countries."
662
  msgstr ""
663
 
664
+ #: libs/blockcountry-settings.php:1259
665
  msgid "GeoIP API Key:"
666
  msgstr ""
667
 
668
+ #: libs/blockcountry-settings.php:1260
669
  msgid ""
670
  "If for some reason you cannot or do not want to download the MaxMind GeoIP "
671
  "databases you will need an API key for the GeoIP api.<br />You can get an "
672
  "API key from: "
673
  msgstr ""
674
 
675
+ #: libs/blockcountry-settings.php:1268
676
  msgid "GeoIP API Key Server Location:"
677
  msgstr ""
678
 
679
+ #: libs/blockcountry-settings.php:1269
680
  msgid "Choose a location closest to your own location."
681
  msgstr ""
682
 
683
+ #: libs/blockcountry-settings.php:1277
684
  msgid "Admin block API Key:"
685
  msgstr ""
686
 
687
+ #: libs/blockcountry-settings.php:1278
688
  msgid ""
689
  "This is an experimantal feature. You do not need an API key for this plugin "
690
  "to work."
691
  msgstr ""
692
 
693
+ #: libs/blockcountry-settings.php:1286
694
  msgid "Accessibility options:"
695
  msgstr ""
696
 
697
+ #: libs/blockcountry-settings.php:1287
698
  msgid "Set this option if you cannot use the default country selection box."
699
  msgstr ""
700
 
701
+ #: libs/blockcountry-settings.php:1293
702
  msgid "Log all visits:"
703
  msgstr ""
704
 
705
+ #: libs/blockcountry-settings.php:1294
706
  msgid ""
707
  "This logs all visits despite if they are blocked or not. This is only for "
708
  "debugging purposes."
709
  msgstr ""
710
 
711
+ #: libs/blockcountry-settings.php:1320
712
  msgid "Last blocked visits"
713
  msgstr ""
714
 
715
+ #: libs/blockcountry-settings.php:1334
716
  msgid "Date / Time"
717
  msgstr ""
718
 
719
+ #: libs/blockcountry-settings.php:1334 libs/blockcountry-settings.php:1366
720
  msgid "IP Address"
721
  msgstr ""
722
 
723
+ #: libs/blockcountry-settings.php:1334 libs/blockcountry-settings.php:1366
724
  msgid "Hostname"
725
  msgstr ""
726
 
727
+ #: libs/blockcountry-settings.php:1334 libs/blockcountry-settings.php:1353
728
  msgid "Country"
729
  msgstr ""
730
 
731
+ #: libs/blockcountry-settings.php:1334
732
  msgid "Frontend/Backend"
733
  msgstr ""
734
 
735
+ #: libs/blockcountry-settings.php:1344 libs/blockcountry-settings.php:1446
736
  msgid "Frontend"
737
  msgstr ""
738
 
739
+ #: libs/blockcountry-settings.php:1344
740
  msgid "Backend banlist"
741
  msgstr ""
742
 
743
+ #: libs/blockcountry-settings.php:1344
744
  msgid "Backend & Backend banlist"
745
  msgstr ""
746
 
747
+ #: libs/blockcountry-settings.php:1344 libs/blockcountry-settings.php:1447
748
  msgid "Backend"
749
  msgstr ""
750
 
751
+ #: libs/blockcountry-settings.php:1351
752
  msgid "Top countries that are blocked"
753
  msgstr ""
754
 
755
+ #: libs/blockcountry-settings.php:1353 libs/blockcountry-settings.php:1366
756
+ #: libs/blockcountry-settings.php:1377
757
  msgid "# of blocked attempts"
758
  msgstr ""
759
 
760
+ #: libs/blockcountry-settings.php:1364
761
  msgid "Top hosts that are blocked"
762
  msgstr ""
763
 
764
+ #: libs/blockcountry-settings.php:1375
765
  msgid "Top URLs that are blocked"
766
  msgstr ""
767
 
768
+ #: libs/blockcountry-settings.php:1391
769
  msgid "Clear database"
770
  msgstr ""
771
 
772
+ #: libs/blockcountry-settings.php:1416
773
  msgid "Download as CSV file"
774
  msgstr ""
775
 
776
+ #: libs/blockcountry-settings.php:1423
777
  msgid ""
778
  "You are not logging any information. Please uncheck the option 'Do not log "
779
  "IP addresses' if this is not what you want."
780
  msgstr ""
781
 
782
+ #: libs/blockcountry-settings.php:1445
783
  msgid "Home"
784
  msgstr ""
785
 
786
+ #: libs/blockcountry-settings.php:1448
787
  msgid "Pages"
788
  msgstr ""
789
 
790
+ #: libs/blockcountry-settings.php:1449
791
  msgid "Categories"
792
  msgstr ""
793
 
794
+ #: libs/blockcountry-settings.php:1450
795
  msgid "Post types"
796
  msgstr ""
797
 
798
+ #: libs/blockcountry-settings.php:1451
799
  msgid "Search Engines"
800
  msgstr ""
801
 
802
+ #: libs/blockcountry-settings.php:1452
803
  msgid "Tools"
804
  msgstr ""
805
 
806
+ #: libs/blockcountry-settings.php:1453
807
  msgid "Logging"
808
  msgstr ""
809
 
810
+ #: libs/blockcountry-settings.php:1454
811
  msgid "Import/Export"
812
  msgstr ""
813
+
814
+ #: libs/blockcountry-retrieve-geodb.php:38
815
+ #: libs/blockcountry-retrieve-geodb.php:49
816
+ msgid "Error occured: Could not download the GeoIP database from"
817
+ msgstr ""
818
+
819
+ #: libs/blockcountry-retrieve-geodb.php:39
820
+ msgid ""
821
+ "MaxMind has blocked requests from your IP address for 24 hours. Please check "
822
+ "again in 24 hours or download this file from your own PC"
823
+ msgstr ""
824
+
825
+ #: libs/blockcountry-retrieve-geodb.php:40
826
+ msgid "Unzip this file and upload it (via FTP for instance) to:"
827
+ msgstr ""
828
+
829
+ #: libs/blockcountry-retrieve-geodb.php:50
830
+ msgid ""
831
+ "Please download this file from your own PC unzip this file and upload it "
832
+ "(via FTP for instance) to:"
833
+ msgstr ""
834
+
835
+ #: libs/blockcountry-retrieve-geodb.php:77
836
+ msgid "Finished downloading"
837
+ msgstr ""
838
+
839
+ #: libs/blockcountry-retrieve-geodb.php:85
840
+ msgid "Fatal error: GeoIP"
841
+ msgstr ""
842
+
843
+ #: libs/blockcountry-retrieve-geodb.php:85
844
+ msgid ""
845
+ "database does not exists. This plugin will not work until the database file "
846
+ "is present."
847
+ 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-12-13 16:11+0100\n"
5
- "PO-Revision-Date: 2015-12-13 16:12+0100\n"
6
  "Last-Translator: Pascal <pascal@redeo.nl>\n"
7
  "Language-Team: iQ Block Country <info@redeo.nl>\n"
8
  "Language: Dutch\n"
@@ -27,48 +27,7 @@ msgstr "Instellingen opgeslagen."
27
  msgid "The Admin Block API key is incorrect. Please update the key."
28
  msgstr "De Admin Block API sleutel is incorrect. Corrigeer a.u.b. de sleutel."
29
 
30
- #: libs/blockcountry-retrieve-geodb.php:38
31
- #: libs/blockcountry-retrieve-geodb.php:49
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:"
51
- msgstr ""
52
- "Download dit bestand alsjeblieft naar je eigen PC. Pak het bestand daar uit "
53
- "en upload deze (bijvoorbeeld via FTP) naar:"
54
-
55
- #: libs/blockcountry-retrieve-geodb.php:77
56
- msgid "Finished downloading"
57
- msgstr "Klaar met downloaden"
58
-
59
- #: libs/blockcountry-retrieve-geodb.php:85
60
- msgid "Fatal error: GeoIP"
61
- msgstr "Fatale fout: GeoIP"
62
-
63
- #: libs/blockcountry-retrieve-geodb.php:85
64
- msgid ""
65
- "database does not exists. This plugin will not work until the database file "
66
- "is present."
67
- msgstr ""
68
- "database bestaat niet. Deze plugin kan niet werken totdat deze database "
69
- "beschikbaar is."
70
-
71
- #: libs/blockcountry-settings.php:51
72
  msgid ""
73
  "The MaxMind GeoIP database does not exist. Please download this file "
74
  "manually or if you wish to use the GeoIP API get an API key from: "
@@ -77,296 +36,306 @@ msgstr ""
77
  "indien je gebruik wilt maken van de GeoIP API kun je een API sleutel "
78
  "verkrijgen van:"
79
 
80
- #: libs/blockcountry-settings.php:52
81
  msgid "Please download the database from: "
82
  msgstr "Download de database vanaf:"
83
 
84
- #: libs/blockcountry-settings.php:54 libs/blockcountry-settings.php:59
 
85
  msgid "unzip the file and afterwards upload it to the following location: "
86
  msgstr "pak het bestand uit en upload dit bestand naar de volgende locatie:"
87
 
88
- #: libs/blockcountry-settings.php:57
89
  msgid "If you also use IPv6 please also download the database from: "
90
  msgstr "Indien je ook IPv6 gebruikt download dan a.u.b. ook de IPv6 database:"
91
 
92
- #: libs/blockcountry-settings.php:61
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:1327
158
- #: libs/blockcountry-settings.php:1370
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,7 +343,7 @@ msgstr ""
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,96 +352,96 @@ msgstr ""
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:1295
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,31 +450,31 @@ msgstr ""
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,41 +482,41 @@ msgstr ""
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,41 +524,41 @@ msgstr ""
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,11 +566,11 @@ msgstr ""
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,60 +578,61 @@ msgstr ""
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:1113
634
- msgid ""
635
- "Your MaxMind GeoIP database is older than 3 months. Please update your "
636
- "database. "
637
- msgstr ""
638
- "Uw MaxMind GeoIP database is ouder dan 3 maanden. Update je database "
639
- "alstublieft."
640
-
641
- #: libs/blockcountry-settings.php:1122
642
  msgid "Overall statistics since start"
643
  msgstr "Statistieken sinds het begin"
644
 
645
- #: libs/blockcountry-settings.php:1125
646
  msgid "visitors blocked from the backend."
647
  msgstr "bezoekers geblokkeerd op de achterkant."
648
 
649
- #: libs/blockcountry-settings.php:1127
650
  msgid "visitors blocked from the frontend."
651
  msgstr "bezoekers geblokkeerd op de voorkant."
652
 
653
- #: libs/blockcountry-settings.php:1131
654
- msgid "Basic Options"
655
- msgstr "Standaard opties"
656
 
657
- #: libs/blockcountry-settings.php:1166
 
 
 
 
 
 
 
 
 
658
  msgid "Message to display when people are blocked:"
659
  msgstr "Welk bericht wil je tonen aan bezoekers welke geblokkeerd worden:"
660
 
661
- #: libs/blockcountry-settings.php:1177
662
  msgid "Page to redirect to:"
663
  msgstr "Naar welke pagina wilt u bezoekers toesturen:"
664
 
665
- #: libs/blockcountry-settings.php:1178
666
  msgid ""
667
  "If you select a page here blocked visitors will be redirected to this page "
668
  "instead of displaying above block message."
@@ -671,15 +641,15 @@ msgstr ""
671
  "doorgestuurd naar deze pagina anders wordt bovestaande tekst getoond aan "
672
  "bezoekers."
673
 
674
- #: libs/blockcountry-settings.php:1184
675
  msgid "Choose a page..."
676
  msgstr "Kies een pagina..."
677
 
678
- #: libs/blockcountry-settings.php:1199
679
  msgid "URL to redirect to:"
680
  msgstr "Naar welke URL wilt u geblokkerde bezoekers verwijzen:"
681
 
682
- #: libs/blockcountry-settings.php:1200
683
  msgid ""
684
  "If you enter a URL here blocked visitors will be redirected to this URL "
685
  "instead of displaying above block message or redirected to a local page."
@@ -688,11 +658,15 @@ msgstr ""
688
  "naar deze url anders wordt bovestaande blokkeer tekst getoond aan bezoekers "
689
  "of worden bezoekers doorverwezen naar de geselecteerde pagina."
690
 
691
- #: libs/blockcountry-settings.php:1207
 
 
 
 
692
  msgid "Send headers when user is blocked:"
693
  msgstr "Stuur headers wanneer een gebruiker is geblokkeerd:"
694
 
695
- #: libs/blockcountry-settings.php:1208
696
  msgid ""
697
  "Under normal circumstances you should keep this selected! Only if you have "
698
  "\"Cannot modify header information - headers already sent\" errors or if you "
@@ -702,11 +676,11 @@ msgstr ""
702
  "deze alleen indien je \"Cannot modify header information - headers already "
703
  "sent\" foutmeldingen krijgt of indien je weet wat je doet."
704
 
705
- #: libs/blockcountry-settings.php:1214
706
  msgid "Buffer output?:"
707
  msgstr "Buffer output?"
708
 
709
- #: libs/blockcountry-settings.php:1215
710
  msgid ""
711
  "You can use this option to buffer all output. This can be helpful in case "
712
  "you have \"headers already sent\" issues."
@@ -714,11 +688,11 @@ msgstr ""
714
  "Je kunt deze optie gebruiken om alle output te bufferen. Dit kan helpen "
715
  "indien je \"headers already sent\" problemen hebt."
716
 
717
- #: libs/blockcountry-settings.php:1221
718
  msgid "Do not log IP addresses:"
719
  msgstr "Log geen IP adressen"
720
 
721
- #: libs/blockcountry-settings.php:1222
722
  msgid ""
723
  "Check this box if the laws in your country do not permit you to log IP "
724
  "addresses or if you do not want to log the ip addresses."
@@ -727,19 +701,19 @@ msgstr ""
727
  "adressen vast te leggen of indien je zelf deze informatie niet wilt "
728
  "vastleggen."
729
 
730
- #: libs/blockcountry-settings.php:1229
731
  msgid "Number of rows on statistics page:"
732
  msgstr "Aantal regels op de statistieken pagina:"
733
 
734
- #: libs/blockcountry-settings.php:1230
735
  msgid "How many rows do you want to display on each tab the statistics page."
736
  msgstr "Hoeveel regels wil je tonen op de statistieken pagina."
737
 
738
- #: libs/blockcountry-settings.php:1245
739
  msgid "Allow tracking:"
740
  msgstr "Sta traceren toe:"
741
 
742
- #: libs/blockcountry-settings.php:1246
743
  msgid ""
744
  "This sends only the IP address and the number of attempts this ip address "
745
  "tried to login to your backend and was blocked doing so to a central server. "
@@ -752,11 +726,11 @@ msgstr ""
752
  "ons om beter inzicht te krijgen in de landen waarvandaan een hoop hack "
753
  "pogingen worden gedaan. "
754
 
755
- #: libs/blockcountry-settings.php:1252
756
  msgid "GeoIP API Key:"
757
  msgstr "GeoIP API sleutel:"
758
 
759
- #: libs/blockcountry-settings.php:1253
760
  msgid ""
761
  "If for some reason you cannot or do not want to download the MaxMind GeoIP "
762
  "databases you will need an API key for the GeoIP api.<br />You can get an "
@@ -766,19 +740,19 @@ msgstr ""
766
  "Maxmind GeoIP heb je een API sleutelnodig voor de GeoIP api.<br />Je kunt "
767
  "een API sleutel verkrijgen op:"
768
 
769
- #: libs/blockcountry-settings.php:1261
770
  msgid "GeoIP API Key Server Location:"
771
  msgstr "GeoIP API sleutel server locatie:"
772
 
773
- #: libs/blockcountry-settings.php:1262
774
  msgid "Choose a location closest to your own location."
775
  msgstr "Kies een land welke het dichtsbij is bij je eigen land."
776
 
777
- #: libs/blockcountry-settings.php:1270
778
  msgid "Admin block API Key:"
779
  msgstr "Admin block API Sleutel:"
780
 
781
- #: libs/blockcountry-settings.php:1271
782
  msgid ""
783
  "This is an experimantal feature. You do not need an API key for this plugin "
784
  "to work."
@@ -786,21 +760,21 @@ msgstr ""
786
  "Dit is een experimentele optie. Je hebt geen API key nodig om deze plugin te "
787
  "laten werken."
788
 
789
- #: libs/blockcountry-settings.php:1279
790
  msgid "Accessibility options:"
791
  msgstr "Toegankelijkheids opties:"
792
 
793
- #: libs/blockcountry-settings.php:1280
794
  msgid "Set this option if you cannot use the default country selection box."
795
  msgstr ""
796
  "Selecteer deze optie indien je de landen standaard selectie methode niet "
797
  "kunt gebruiken. "
798
 
799
- #: libs/blockcountry-settings.php:1286
800
  msgid "Log all visits:"
801
  msgstr "Log alle bezoekers:"
802
 
803
- #: libs/blockcountry-settings.php:1287
804
  msgid ""
805
  "This logs all visits despite if they are blocked or not. This is only for "
806
  "debugging purposes."
@@ -808,72 +782,72 @@ msgstr ""
808
  "Dit logt alle bezoekers ondanks of ze geblokkeerd zijn of niet. Dit is "
809
  "alleen voor debugging."
810
 
811
- #: libs/blockcountry-settings.php:1313
812
  msgid "Last blocked visits"
813
  msgstr "Laatste geblokkeerde bezoekers"
814
 
815
- #: libs/blockcountry-settings.php:1327
816
  msgid "Date / Time"
817
  msgstr "Datum / Tijd"
818
 
819
- #: libs/blockcountry-settings.php:1327 libs/blockcountry-settings.php:1359
820
  msgid "IP Address"
821
  msgstr "IP adres"
822
 
823
- #: libs/blockcountry-settings.php:1327 libs/blockcountry-settings.php:1359
824
  msgid "Hostname"
825
  msgstr "Hostnaam"
826
 
827
- #: libs/blockcountry-settings.php:1327 libs/blockcountry-settings.php:1346
828
  msgid "Country"
829
  msgstr "Land"
830
 
831
- #: libs/blockcountry-settings.php:1327
832
  msgid "Frontend/Backend"
833
  msgstr "Voorkant/Achterkant"
834
 
835
- #: libs/blockcountry-settings.php:1337 libs/blockcountry-settings.php:1439
836
  msgid "Frontend"
837
  msgstr "Voorkant"
838
 
839
- #: libs/blockcountry-settings.php:1337
840
  msgid "Backend banlist"
841
  msgstr "Achterkant banlist"
842
 
843
- #: libs/blockcountry-settings.php:1337
844
  msgid "Backend & Backend banlist"
845
  msgstr "Achterkant & Achterkant banlist"
846
 
847
- #: libs/blockcountry-settings.php:1337 libs/blockcountry-settings.php:1440
848
  msgid "Backend"
849
  msgstr "Achterkant"
850
 
851
- #: libs/blockcountry-settings.php:1344
852
  msgid "Top countries that are blocked"
853
  msgstr "Top landen welke zijn geblokkeerd"
854
 
855
- #: libs/blockcountry-settings.php:1346 libs/blockcountry-settings.php:1359
856
- #: libs/blockcountry-settings.php:1370
857
  msgid "# of blocked attempts"
858
  msgstr "# of geblokkeerde pogingen"
859
 
860
- #: libs/blockcountry-settings.php:1357
861
  msgid "Top hosts that are blocked"
862
  msgstr "Top hosts welke geblokkeerd zijn"
863
 
864
- #: libs/blockcountry-settings.php:1368
865
  msgid "Top URLs that are blocked"
866
  msgstr "Top URLs welke geblokkeerd zijn"
867
 
868
- #: libs/blockcountry-settings.php:1384
869
  msgid "Clear database"
870
  msgstr "Leeg database"
871
 
872
- #: libs/blockcountry-settings.php:1409
873
  msgid "Download as CSV file"
874
  msgstr "Download als een csv bestand."
875
 
876
- #: libs/blockcountry-settings.php:1416
877
  msgid ""
878
  "You are not logging any information. Please uncheck the option 'Do not log "
879
  "IP addresses' if this is not what you want."
@@ -881,38 +855,89 @@ msgstr ""
881
  "Je logt geen informatie. Deselecteer alstublieft de optie 'Log geen IP "
882
  "adressen' indien dit niet is wat je wilt."
883
 
884
- #: libs/blockcountry-settings.php:1438
885
  msgid "Home"
886
  msgstr "Home"
887
 
888
- #: libs/blockcountry-settings.php:1441
889
  msgid "Pages"
890
  msgstr "Pagina's"
891
 
892
- #: libs/blockcountry-settings.php:1442
893
  msgid "Categories"
894
  msgstr "Categorieen"
895
 
896
- #: libs/blockcountry-settings.php:1443
897
  msgid "Post types"
898
  msgstr "Post types"
899
 
900
- #: libs/blockcountry-settings.php:1444
901
  msgid "Search Engines"
902
  msgstr "Zoek machines"
903
 
904
- #: libs/blockcountry-settings.php:1445
905
  msgid "Tools"
906
  msgstr "Gereedschap"
907
 
908
- #: libs/blockcountry-settings.php:1446
909
  msgid "Logging"
910
  msgstr "Statistieken"
911
 
912
- #: libs/blockcountry-settings.php:1447
913
  msgid "Import/Export"
914
  msgstr "Importeren/Exporteren"
915
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
916
  #~ msgid "Automatic update is not setup. Last update: "
917
  #~ msgstr "Automatisch updaten is niet geconfigureerd. Laatste update:"
918
 
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: iQ Block Country\n"
4
+ "POT-Creation-Date: 2016-01-31 19:59+0100\n"
5
+ "PO-Revision-Date: 2016-01-31 20:01+0100\n"
6
  "Last-Translator: Pascal <pascal@redeo.nl>\n"
7
  "Language-Team: iQ Block Country <info@redeo.nl>\n"
8
  "Language: Dutch\n"
27
  msgid "The Admin Block API key is incorrect. Please update the key."
28
  msgstr "De Admin Block API sleutel is incorrect. Corrigeer a.u.b. de sleutel."
29
 
30
+ #: libs/blockcountry-settings.php:52
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
31
  msgid ""
32
  "The MaxMind GeoIP database does not exist. Please download this file "
33
  "manually or if you wish to use the GeoIP API get an API key from: "
36
  "indien je gebruik wilt maken van de GeoIP API kun je een API sleutel "
37
  "verkrijgen van:"
38
 
39
+ #: libs/blockcountry-settings.php:53 libs/blockcountry-settings.php:78
40
  msgid "Please download the database from: "
41
  msgstr "Download de database vanaf:"
42
 
43
+ #: libs/blockcountry-settings.php:55 libs/blockcountry-settings.php:60
44
+ #: libs/blockcountry-settings.php:80 libs/blockcountry-settings.php:85
45
  msgid "unzip the file and afterwards upload it to the following location: "
46
  msgstr "pak het bestand uit en upload dit bestand naar de volgende locatie:"
47
 
48
+ #: libs/blockcountry-settings.php:58 libs/blockcountry-settings.php:83
49
  msgid "If you also use IPv6 please also download the database from: "
50
  msgstr "Indien je ook IPv6 gebruikt download dan a.u.b. ook de IPv6 database:"
51
 
52
+ #: libs/blockcountry-settings.php:62 libs/blockcountry-settings.php:87
53
  msgid "For more detailed instructions take a look at the documentation.."
54
  msgstr "Voor gedetaileerde instructies bekijk de documentatie."
55
 
56
+ #: libs/blockcountry-settings.php:77
57
+ msgid ""
58
+ "The MaxMind GeoIP database is older than 3 months. Please update this file "
59
+ "manually or if you wish to use the GeoIP API get an API key from: "
60
+ msgstr ""
61
+ "De MaxMind GeoIP database is ouder dan 3 maanden. Download dit bestand "
62
+ "handmatig of indien je gebruik wilt maken van de GeoIP API kun je een API "
63
+ "sleutel verkrijgen van:"
64
+
65
+ #: libs/blockcountry-settings.php:233
66
  msgid ""
67
  "Check which country belongs to an IP Address according to the current "
68
  "database."
69
  msgstr ""
70
  "Controleer welk land behoort tot een IP adres volgens de huidige database."
71
 
72
+ #: libs/blockcountry-settings.php:238
73
  msgid "IP Address to check:"
74
  msgstr "IP adres om te controleren:"
75
 
76
+ #: libs/blockcountry-settings.php:254
77
  msgid "No country for"
78
  msgstr "Geen land voor"
79
 
80
+ #: libs/blockcountry-settings.php:254
81
  msgid "could be found. Or"
82
  msgstr "gevonden. Of"
83
 
84
+ #: libs/blockcountry-settings.php:254
85
  msgid "is not a valid IPv4 or IPv6 IP address"
86
  msgstr "is geen valide IPv4 of IPv6 ip adres."
87
 
88
+ #: libs/blockcountry-settings.php:259
89
  msgid "IP Adress"
90
  msgstr "IP Adres"
91
 
92
+ #: libs/blockcountry-settings.php:259
93
  msgid "belongs to"
94
  msgstr "behoort tot"
95
 
96
+ #: libs/blockcountry-settings.php:265 libs/blockcountry-settings.php:270
97
  msgid "This country is not permitted to visit the frontend of this website."
98
  msgstr ""
99
  "Dit land wordt niet toegestaan om de voorkant van deze website te bezoeken."
100
 
101
+ #: libs/blockcountry-settings.php:279 libs/blockcountry-settings.php:286
102
  msgid "This country is not permitted to visit the backend of this website."
103
  msgstr ""
104
  "Dit land wordt niet toegestaan om de achterkant van deze website te bezoeken."
105
 
106
+ #: libs/blockcountry-settings.php:292
107
  msgid "This ip is present in the blacklist."
108
  msgstr "Dit ip adres staat op de zwarte lijst"
109
 
110
+ #: libs/blockcountry-settings.php:298
111
  msgid "Check IP address"
112
  msgstr "Controleer IP adres"
113
 
114
+ #: libs/blockcountry-settings.php:304
115
  msgid "Active plugins"
116
  msgstr "Actieve plugins"
117
 
118
+ #: libs/blockcountry-settings.php:311
119
  msgid "Plugin name"
120
  msgstr "Plugin naam"
121
 
122
+ #: libs/blockcountry-settings.php:311
123
  msgid "Version"
124
  msgstr "Versie"
125
 
126
+ #: libs/blockcountry-settings.php:311 libs/blockcountry-settings.php:1334
127
+ #: libs/blockcountry-settings.php:1377
128
  msgid "URL"
129
  msgstr "URL"
130
 
131
+ #: libs/blockcountry-settings.php:330
132
  msgid "none"
133
  msgstr "Geen"
134
 
135
+ #: libs/blockcountry-settings.php:336 libs/blockcountry-settings.php:337
136
  msgid "unavailable"
137
  msgstr "niet beschikbaar"
138
 
139
+ #: libs/blockcountry-settings.php:341
140
  msgid "File System Information"
141
  msgstr "File systeem informatie"
142
 
143
+ #: libs/blockcountry-settings.php:344
144
  msgid "Website Root Folder"
145
  msgstr "Website root directory"
146
 
147
+ #: libs/blockcountry-settings.php:345 libs/blockcountry-settings.php:547
148
  msgid "Document Root Path"
149
  msgstr "Document root pad"
150
 
151
+ #: libs/blockcountry-settings.php:349
152
  msgid "Database Information"
153
  msgstr "Database informatie"
154
 
155
+ #: libs/blockcountry-settings.php:351
156
  msgid "MySQL Database Version"
157
  msgstr "MySQL Database versie"
158
 
159
+ #: libs/blockcountry-settings.php:352
160
  msgid "MySQL Client Version"
161
  msgstr "MySQL Client versie"
162
 
163
+ #: libs/blockcountry-settings.php:353
164
  msgid "Database Host"
165
  msgstr "Database Host"
166
 
167
+ #: libs/blockcountry-settings.php:359
168
  msgid "Not Set"
169
  msgstr "Niet gezet"
170
 
171
+ #: libs/blockcountry-settings.php:361 libs/blockcountry-settings.php:441
172
+ #: libs/blockcountry-settings.php:449 libs/blockcountry-settings.php:457
173
+ #: libs/blockcountry-settings.php:465 libs/blockcountry-settings.php:473
174
+ #: libs/blockcountry-settings.php:482 libs/blockcountry-settings.php:499
175
  msgid "Off"
176
  msgstr "Uit"
177
 
178
+ #: libs/blockcountry-settings.php:364
179
  msgid "SQL Mode"
180
  msgstr "SQL Mode"
181
 
182
+ #: libs/blockcountry-settings.php:368
183
  msgid "Server Information"
184
  msgstr "Server informatie"
185
 
186
+ #: libs/blockcountry-settings.php:373
187
  msgid "Server IP Address"
188
  msgstr "Server IP Adres"
189
 
190
+ #: libs/blockcountry-settings.php:375
191
  msgid "Server Type"
192
  msgstr "Server Type"
193
 
194
+ #: libs/blockcountry-settings.php:376
195
  msgid "Operating System"
196
  msgstr "Operating System"
197
 
198
+ #: libs/blockcountry-settings.php:377
199
  msgid "Browser Compression Supported"
200
  msgstr "Browser Compressie ondersteund"
201
 
202
+ #: libs/blockcountry-settings.php:393
203
  msgid "undefined"
204
  msgstr "Ongedefinieerd"
205
 
206
+ #: libs/blockcountry-settings.php:400
207
  msgid "PHP Process User (UID:GID)"
208
  msgstr "PHP Process User (UID:GID)"
209
 
210
+ #: libs/blockcountry-settings.php:405
211
  msgid "PHP Information"
212
  msgstr "PHP Informatie"
213
 
214
+ #: libs/blockcountry-settings.php:410
215
  msgid "PHP Version"
216
  msgstr "PHP versie"
217
 
218
+ #: libs/blockcountry-settings.php:411
219
  msgid "PHP Memory Usage"
220
  msgstr "PHP Memory Usage"
221
 
222
+ #: libs/blockcountry-settings.php:411
223
  msgid " MB"
224
  msgstr " MB"
225
 
226
+ #: libs/blockcountry-settings.php:417 libs/blockcountry-settings.php:425
227
+ #: libs/blockcountry-settings.php:433 libs/blockcountry-settings.php:490
228
  msgid "N/A"
229
  msgstr "N/A"
230
 
231
+ #: libs/blockcountry-settings.php:420
232
  msgid "PHP Memory Limit"
233
  msgstr "PHP Memory Limit"
234
 
235
+ #: libs/blockcountry-settings.php:428
236
  msgid "PHP Max Upload Size"
237
  msgstr "PHP Max Upload Size"
238
 
239
+ #: libs/blockcountry-settings.php:436
240
  msgid "PHP Max Post Size"
241
  msgstr "PHP Max Post Size"
242
 
243
+ #: libs/blockcountry-settings.php:439 libs/blockcountry-settings.php:447
244
+ #: libs/blockcountry-settings.php:455 libs/blockcountry-settings.php:463
245
+ #: libs/blockcountry-settings.php:471 libs/blockcountry-settings.php:480
246
+ #: libs/blockcountry-settings.php:497
247
  msgid "On"
248
  msgstr "Aan"
249
 
250
+ #: libs/blockcountry-settings.php:444
251
  msgid "PHP Safe Mode"
252
  msgstr "PHP Safe Mode"
253
 
254
+ #: libs/blockcountry-settings.php:452
255
  msgid "PHP Allow URL fopen"
256
  msgstr "PHP Allow URL fopen"
257
 
258
+ #: libs/blockcountry-settings.php:460
259
  msgid "PHP Allow URL Include"
260
  msgstr "PHP Allow URL Include"
261
 
262
+ #: libs/blockcountry-settings.php:468
263
  msgid "PHP Display Errors"
264
  msgstr "PHP Display Errors"
265
 
266
+ #: libs/blockcountry-settings.php:476
267
  msgid "PHP Display Startup Errors"
268
  msgstr "PHP Display Startup Errors"
269
 
270
+ #: libs/blockcountry-settings.php:485
271
  msgid "PHP Expose PHP"
272
  msgstr "PHP Expose PHP"
273
 
274
+ #: libs/blockcountry-settings.php:493
275
  msgid "PHP Max Script Execution Time"
276
  msgstr "PHP Max Script Execution Time"
277
 
278
+ #: libs/blockcountry-settings.php:494
279
  msgid "Seconds"
280
  msgstr "Seconden"
281
 
282
+ #: libs/blockcountry-settings.php:502
283
  msgid "PHP open_basedir"
284
  msgstr "PHP open_basedir"
285
 
286
+ #: libs/blockcountry-settings.php:505 libs/blockcountry-settings.php:513
287
  msgid "Yes"
288
  msgstr "Ja"
289
 
290
+ #: libs/blockcountry-settings.php:507 libs/blockcountry-settings.php:515
291
  msgid "No"
292
  msgstr "Nee"
293
 
294
+ #: libs/blockcountry-settings.php:510
295
  msgid "PHP XML Support"
296
  msgstr "PHP XML Support"
297
 
298
+ #: libs/blockcountry-settings.php:518
299
  msgid "PHP IPTC Support"
300
  msgstr "PHP IPTC Support"
301
 
302
+ #: libs/blockcountry-settings.php:520
303
  msgid "Disabled PHP Functions"
304
  msgstr "Disabled PHP Functions"
305
 
306
+ #: libs/blockcountry-settings.php:527
307
  msgid "Wordpress info"
308
  msgstr "Wordpress Informatie"
309
 
310
+ #: libs/blockcountry-settings.php:532
311
  msgid "is enabled"
312
  msgstr "is aangezet"
313
 
314
+ #: libs/blockcountry-settings.php:534
315
  msgid "is disabled"
316
  msgstr "Is uitgezet"
317
 
318
+ #: libs/blockcountry-settings.php:537
319
  msgid " Multisite"
320
  msgstr "Multisite"
321
 
322
+ #: libs/blockcountry-settings.php:540
323
  msgid "are enabled"
324
  msgstr "is aangezet"
325
 
326
+ #: libs/blockcountry-settings.php:542
327
  msgid "are disabled"
328
  msgstr "Is uitgezet"
329
 
330
+ #: libs/blockcountry-settings.php:545
331
  msgid "Permalinks"
332
  msgstr "Permalinks"
333
 
334
+ #: libs/blockcountry-settings.php:562
335
  msgid "Export"
336
  msgstr "Exporteren"
337
 
338
+ #: libs/blockcountry-settings.php:563
339
  msgid ""
340
  "When you click on <tt>Backup all settings</tt> button a backup of the iQ "
341
  "Block Country configuration will be created."
343
  "Wanneer je klikt op de <tt>Backup alle instellingen</tt> knop zal een backup "
344
  "van alle iQ Block Country instellingen worden gecreerd."
345
 
346
+ #: libs/blockcountry-settings.php:564
347
  msgid ""
348
  "After exporting, you can either use the backup file to restore your settings "
349
  "on this site again or copy the settings to another WordPress site."
352
  "te herstellen of je kunt het bestand gebruiken om je instellingen naar een "
353
  "andere WordPress site te exporteren."
354
 
355
+ #: libs/blockcountry-settings.php:568
356
  msgid "Backup all settings"
357
  msgstr "Backup alle instellingen"
358
 
359
+ #: libs/blockcountry-settings.php:575
360
  msgid "Import"
361
  msgstr "Importeer"
362
 
363
+ #: libs/blockcountry-settings.php:576
364
  msgid "Click the browse button and choose a zip file that you exported before."
365
  msgstr ""
366
  "Klik op de Browse button and selecteer een zip file welke je eerder hebt "
367
  "geexporteerd."
368
 
369
+ #: libs/blockcountry-settings.php:577
370
  msgid "Press Restore settings button, and let WordPress do the magic for you."
371
  msgstr ""
372
  "Druk op de herstel instellingen knop en laat WordPress haar magie voor je "
373
  "doen."
374
 
375
+ #: libs/blockcountry-settings.php:582
376
  msgid "Restore settings"
377
  msgstr "Herstel instellingen"
378
 
379
+ #: libs/blockcountry-settings.php:605 libs/blockcountry-settings.php:608
380
+ #: libs/blockcountry-settings.php:617
381
  msgid "Something went wrong exporting this file"
382
  msgstr "Er is iets verkeerd gegaan met het exporteren van het bestand."
383
 
384
+ #: libs/blockcountry-settings.php:620
385
  msgid "Exporting settings..."
386
  msgstr "Exporteer instellingen"
387
 
388
+ #: libs/blockcountry-settings.php:635
389
  msgid "Something went wrong importing this file"
390
  msgstr "Er is iets verkeerd gegaan met het importeren van dit bestand"
391
 
392
+ #: libs/blockcountry-settings.php:652
393
  msgid "All options are restored successfully."
394
  msgstr "Alle opties zijn succesvol hersteld"
395
 
396
+ #: libs/blockcountry-settings.php:655
397
  msgid "Invalid file."
398
  msgstr "Ongeldig bestand"
399
 
400
+ #: libs/blockcountry-settings.php:660
401
  msgid "No correct import or export option given."
402
  msgstr "Geen correcte importeer of exporteer optie gegeven."
403
 
404
+ #: libs/blockcountry-settings.php:669
405
  msgid "Select which pages are blocked."
406
  msgstr "Selecteer welke pagina's geblokkeerd worden."
407
 
408
+ #: libs/blockcountry-settings.php:676
409
  msgid "Do you want to block individual pages:"
410
  msgstr "Wil je individuele pagina's blokkeren:"
411
 
412
+ #: libs/blockcountry-settings.php:677
413
  msgid "If you do not select this option all pages will be blocked."
414
  msgstr "Indien je deze optie niet selecteert worden alle pagina's geblokkeerd."
415
 
416
+ #: libs/blockcountry-settings.php:682
417
  msgid "Select pages you want to block:"
418
  msgstr "Selecteer welke pagina's je wil blokkeren."
419
 
420
+ #: libs/blockcountry-settings.php:704 libs/blockcountry-settings.php:758
421
+ #: libs/blockcountry-settings.php:806 libs/blockcountry-settings.php:851
422
+ #: libs/blockcountry-settings.php:977 libs/blockcountry-settings.php:1106
423
+ #: libs/blockcountry-settings.php:1302
424
  msgid "Save Changes"
425
  msgstr "Bewaar wijzigingen"
426
 
427
+ #: libs/blockcountry-settings.php:717
428
  msgid "Select which categories are blocked."
429
  msgstr "Selecteer welke categorieen geblokkeerd worden."
430
 
431
+ #: libs/blockcountry-settings.php:724
432
  msgid "Do you want to block individual categories:"
433
  msgstr "Wil je individuele categorieen blokkeren:"
434
 
435
+ #: libs/blockcountry-settings.php:725
436
  msgid "If you do not select this option all blog articles will be blocked."
437
  msgstr ""
438
  "Indien je deze optie niet selecteert worden alle blog artikelen geblokkeerd."
439
 
440
+ #: libs/blockcountry-settings.php:730
441
  msgid "Do you want to block the homepage:"
442
  msgstr "Wil je je homepage blokkeren:"
443
 
444
+ #: libs/blockcountry-settings.php:731
445
  msgid ""
446
  "If you do not select this option visitors will not be blocked from your "
447
  "homepage regardless of the categories you select."
450
  "geblokkeerd van het bezoeken van je homepagina ongeacht welke categorieen je "
451
  "selecteert."
452
 
453
+ #: libs/blockcountry-settings.php:736
454
  msgid "Select categories you want to block:"
455
  msgstr "Selecteer welke categorieen je wil blokkeren."
456
 
457
+ #: libs/blockcountry-settings.php:772
458
  msgid "Select which post types are blocked."
459
  msgstr "Selecteer welke post types geblokkeerd worden."
460
 
461
+ #: libs/blockcountry-settings.php:779
462
  msgid "Do you want to block individual post types:"
463
  msgstr "Wil je individuele post types blokkeren:"
464
 
465
+ #: libs/blockcountry-settings.php:784
466
  msgid "Select post types you want to block:"
467
  msgstr "Selecteer welke post types je wil blokkeren."
468
 
469
+ #: libs/blockcountry-settings.php:821
470
  msgid "Select which search engines are allowed."
471
  msgstr "Selecteer welke zoek machines je wilt toestaan."
472
 
473
+ #: libs/blockcountry-settings.php:828
474
  msgid "Select which search engines you want to allow:"
475
  msgstr "Selecteer welke zoek machines je wilt toestaan:"
476
 
477
+ #: libs/blockcountry-settings.php:829
478
  msgid ""
479
  "This will allow a search engine to your site despite if you blocked the "
480
  "country."
482
  "Deze optie staat het toe dat zoekmachines je site bezoeken ondanks dat ze "
483
  "uit een land komen welk geblokkeerd is."
484
 
485
+ #: libs/blockcountry-settings.php:866
486
  msgid "Frontend options"
487
  msgstr "Voorkant opties"
488
 
489
+ #: libs/blockcountry-settings.php:893
490
  msgid ""
491
  "Do not block visitors that are logged in from visiting frontend website:"
492
  msgstr ""
493
  "Blokkeer geen bezoekers welke ingelogd zijn van het bezoeken van de voorkant:"
494
 
495
+ #: libs/blockcountry-settings.php:899
496
  msgid "Block visitors from visiting the frontend of your website:"
497
  msgstr "Blokkeer bezoekers van het bezoeken van de voorkant van je website:"
498
 
499
+ #: libs/blockcountry-settings.php:905
500
  msgid "Block visitors from using the search function of your website:"
501
  msgstr ""
502
  "Blokkeer bezoekers van het bezoeken van de zoek functie van je website:"
503
 
504
+ #: libs/blockcountry-settings.php:911
505
  msgid ""
506
  "Select the countries that should be blocked from visiting your frontend:"
507
  msgstr ""
508
  "Selecteer de landen welke geblokkeerd moeten worden voor het bezoeken van de "
509
  "voorkant van je website:"
510
 
511
+ #: libs/blockcountry-settings.php:912
512
  msgid "Use the CTRL key to select multiple countries"
513
  msgstr "Gebruik de CTRL toets om meerdere landen te selecteren"
514
 
515
+ #: libs/blockcountry-settings.php:954 libs/blockcountry-settings.php:1082
516
  msgid "Inverse the selection above:"
517
  msgstr "Keer bovenstaande selectie om:"
518
 
519
+ #: libs/blockcountry-settings.php:955 libs/blockcountry-settings.php:1083
520
  msgid ""
521
  "If you select this option only the countries that are selected are "
522
  "<em>allowed</em>."
524
  "Indien je deze optie selecteert de zijn de landen die hierboven geselecteerd "
525
  "<em>toegestaan</em>."
526
 
527
+ #: libs/blockcountry-settings.php:960
528
  msgid "Frontend whitelist IPv4 and/or IPv6 addresses:"
529
  msgstr ""
530
  "Whitelist van IPv4 of IPv6 IP adressen voor de voorkant van je website:"
531
 
532
+ #: libs/blockcountry-settings.php:960 libs/blockcountry-settings.php:968
533
+ #: libs/blockcountry-settings.php:1089 libs/blockcountry-settings.php:1097
534
  msgid "Use a semicolon (;) to separate IP addresses"
535
  msgstr "Gebruik een puntkomma (;) om adressen van elkaar te scheiden"
536
 
537
+ #: libs/blockcountry-settings.php:968
538
  msgid "Frontend blacklist IPv4 and/or IPv6 addresses:"
539
  msgstr ""
540
  "Blacklist van IPv4 of IPv6 IP adressen voor de voorkant van je website:"
541
 
542
+ #: libs/blockcountry-settings.php:997
543
  msgid "Backend Options"
544
  msgstr "Achterkant opties"
545
 
546
+ #: libs/blockcountry-settings.php:1025
547
  msgid ""
548
  "Block visitors from visiting the backend (administrator) of your website:"
549
  msgstr ""
550
  "Blokkeer bezoekers van het bezoeken van de achterkant (administratie "
551
  "gedeelte) van je website:"
552
 
553
+ #: libs/blockcountry-settings.php:1033
554
  msgid "Your IP address is"
555
  msgstr "Je IP adres is"
556
 
557
+ #: libs/blockcountry-settings.php:1033
558
  msgid "The country that is listed for this IP address is"
559
  msgstr "Het land waar dit adres toe behoort is"
560
 
561
+ #: libs/blockcountry-settings.php:1034
562
  msgid ""
563
  "Do <strong>NOT</strong> set the 'Block visitors from visiting the backend "
564
  "(administrator) of your website' and also select"
566
  "Selecteer <strong>NIET</strong> \"Blokkeer bezoekers van het bezoeken van de "
567
  "achterkant (administratie gedeelte) van je website\" en"
568
 
569
+ #: libs/blockcountry-settings.php:1034
570
  msgid "below."
571
  msgstr "hier beneden."
572
 
573
+ #: libs/blockcountry-settings.php:1035
574
  msgid ""
575
  "You will NOT be able to login the next time if you DO block your own country "
576
  "from visiting the backend."
578
  "Het zal daarna niet meer mogelijk zijn om nog in te loggen als je je eigen "
579
  "land blokkeert van het bezoeken van de achterkant van je website."
580
 
581
+ #: libs/blockcountry-settings.php:1040
582
  msgid "Select the countries that should be blocked from visiting your backend:"
583
  msgstr ""
584
  "Selecteer de landen welke geblokkeerd moeten worden voor het bezoeken van de "
585
  "achterkant (administratie gedeelte) van je website:"
586
 
587
+ #: libs/blockcountry-settings.php:1041
588
  msgid "Use the x behind the country to remove a country from this blocklist."
589
  msgstr ""
590
  "Gebruik de x achter een land om het land te verwijderen uit deze lijst."
591
 
592
+ #: libs/blockcountry-settings.php:1089
593
  msgid "Backend whitelist IPv4 and/or IPv6 addresses:"
594
  msgstr ""
595
  "Whitelist van IPv4 of IPv6 IP adressen voor de achterkant van je website:"
596
 
597
+ #: libs/blockcountry-settings.php:1097
598
  msgid "Backend blacklist IPv4 and/or IPv6 addresses:"
599
  msgstr ""
600
  "Blacklist van IPv4 of IPv6 IP adressen voor de achterkant van je website:"
601
 
602
+ #: libs/blockcountry-settings.php:1140
 
 
 
 
 
 
 
 
603
  msgid "Overall statistics since start"
604
  msgstr "Statistieken sinds het begin"
605
 
606
+ #: libs/blockcountry-settings.php:1143
607
  msgid "visitors blocked from the backend."
608
  msgstr "bezoekers geblokkeerd op de achterkant."
609
 
610
+ #: libs/blockcountry-settings.php:1145
611
  msgid "visitors blocked from the frontend."
612
  msgstr "bezoekers geblokkeerd op de voorkant."
613
 
614
+ #: libs/blockcountry-settings.php:1162
615
+ msgid "Block type"
616
+ msgstr "Blokkeer type"
617
 
618
+ #: libs/blockcountry-settings.php:1164
619
+ msgid ""
620
+ "You should choose one of the 3 block options below. This wil either show a "
621
+ "block message, redirect to an internal page or redirect to an external page."
622
+ msgstr ""
623
+ "Kies een van de onderstaande 3 blokkeer opties. Dit toont of een blokkeer "
624
+ "bericht, stuurt de bezoeker door naar een interne pagina of stuurt de "
625
+ "bezoeker door naar een externe pagina."
626
+
627
+ #: libs/blockcountry-settings.php:1169
628
  msgid "Message to display when people are blocked:"
629
  msgstr "Welk bericht wil je tonen aan bezoekers welke geblokkeerd worden:"
630
 
631
+ #: libs/blockcountry-settings.php:1180
632
  msgid "Page to redirect to:"
633
  msgstr "Naar welke pagina wilt u bezoekers toesturen:"
634
 
635
+ #: libs/blockcountry-settings.php:1181
636
  msgid ""
637
  "If you select a page here blocked visitors will be redirected to this page "
638
  "instead of displaying above block message."
641
  "doorgestuurd naar deze pagina anders wordt bovestaande tekst getoond aan "
642
  "bezoekers."
643
 
644
+ #: libs/blockcountry-settings.php:1187
645
  msgid "Choose a page..."
646
  msgstr "Kies een pagina..."
647
 
648
+ #: libs/blockcountry-settings.php:1202
649
  msgid "URL to redirect to:"
650
  msgstr "Naar welke URL wilt u geblokkerde bezoekers verwijzen:"
651
 
652
+ #: libs/blockcountry-settings.php:1203
653
  msgid ""
654
  "If you enter a URL here blocked visitors will be redirected to this URL "
655
  "instead of displaying above block message or redirected to a local page."
658
  "naar deze url anders wordt bovestaande blokkeer tekst getoond aan bezoekers "
659
  "of worden bezoekers doorverwezen naar de geselecteerde pagina."
660
 
661
+ #: libs/blockcountry-settings.php:1210
662
+ msgid "General settings"
663
+ msgstr "Algemene instellingen"
664
+
665
+ #: libs/blockcountry-settings.php:1214
666
  msgid "Send headers when user is blocked:"
667
  msgstr "Stuur headers wanneer een gebruiker is geblokkeerd:"
668
 
669
+ #: libs/blockcountry-settings.php:1215
670
  msgid ""
671
  "Under normal circumstances you should keep this selected! Only if you have "
672
  "\"Cannot modify header information - headers already sent\" errors or if you "
676
  "deze alleen indien je \"Cannot modify header information - headers already "
677
  "sent\" foutmeldingen krijgt of indien je weet wat je doet."
678
 
679
+ #: libs/blockcountry-settings.php:1221
680
  msgid "Buffer output?:"
681
  msgstr "Buffer output?"
682
 
683
+ #: libs/blockcountry-settings.php:1222
684
  msgid ""
685
  "You can use this option to buffer all output. This can be helpful in case "
686
  "you have \"headers already sent\" issues."
688
  "Je kunt deze optie gebruiken om alle output te bufferen. Dit kan helpen "
689
  "indien je \"headers already sent\" problemen hebt."
690
 
691
+ #: libs/blockcountry-settings.php:1228
692
  msgid "Do not log IP addresses:"
693
  msgstr "Log geen IP adressen"
694
 
695
+ #: libs/blockcountry-settings.php:1229
696
  msgid ""
697
  "Check this box if the laws in your country do not permit you to log IP "
698
  "addresses or if you do not want to log the ip addresses."
701
  "adressen vast te leggen of indien je zelf deze informatie niet wilt "
702
  "vastleggen."
703
 
704
+ #: libs/blockcountry-settings.php:1236
705
  msgid "Number of rows on statistics page:"
706
  msgstr "Aantal regels op de statistieken pagina:"
707
 
708
+ #: libs/blockcountry-settings.php:1237
709
  msgid "How many rows do you want to display on each tab the statistics page."
710
  msgstr "Hoeveel regels wil je tonen op de statistieken pagina."
711
 
712
+ #: libs/blockcountry-settings.php:1252
713
  msgid "Allow tracking:"
714
  msgstr "Sta traceren toe:"
715
 
716
+ #: libs/blockcountry-settings.php:1253
717
  msgid ""
718
  "This sends only the IP address and the number of attempts this ip address "
719
  "tried to login to your backend and was blocked doing so to a central server. "
726
  "ons om beter inzicht te krijgen in de landen waarvandaan een hoop hack "
727
  "pogingen worden gedaan. "
728
 
729
+ #: libs/blockcountry-settings.php:1259
730
  msgid "GeoIP API Key:"
731
  msgstr "GeoIP API sleutel:"
732
 
733
+ #: libs/blockcountry-settings.php:1260
734
  msgid ""
735
  "If for some reason you cannot or do not want to download the MaxMind GeoIP "
736
  "databases you will need an API key for the GeoIP api.<br />You can get an "
740
  "Maxmind GeoIP heb je een API sleutelnodig voor de GeoIP api.<br />Je kunt "
741
  "een API sleutel verkrijgen op:"
742
 
743
+ #: libs/blockcountry-settings.php:1268
744
  msgid "GeoIP API Key Server Location:"
745
  msgstr "GeoIP API sleutel server locatie:"
746
 
747
+ #: libs/blockcountry-settings.php:1269
748
  msgid "Choose a location closest to your own location."
749
  msgstr "Kies een land welke het dichtsbij is bij je eigen land."
750
 
751
+ #: libs/blockcountry-settings.php:1277
752
  msgid "Admin block API Key:"
753
  msgstr "Admin block API Sleutel:"
754
 
755
+ #: libs/blockcountry-settings.php:1278
756
  msgid ""
757
  "This is an experimantal feature. You do not need an API key for this plugin "
758
  "to work."
760
  "Dit is een experimentele optie. Je hebt geen API key nodig om deze plugin te "
761
  "laten werken."
762
 
763
+ #: libs/blockcountry-settings.php:1286
764
  msgid "Accessibility options:"
765
  msgstr "Toegankelijkheids opties:"
766
 
767
+ #: libs/blockcountry-settings.php:1287
768
  msgid "Set this option if you cannot use the default country selection box."
769
  msgstr ""
770
  "Selecteer deze optie indien je de landen standaard selectie methode niet "
771
  "kunt gebruiken. "
772
 
773
+ #: libs/blockcountry-settings.php:1293
774
  msgid "Log all visits:"
775
  msgstr "Log alle bezoekers:"
776
 
777
+ #: libs/blockcountry-settings.php:1294
778
  msgid ""
779
  "This logs all visits despite if they are blocked or not. This is only for "
780
  "debugging purposes."
782
  "Dit logt alle bezoekers ondanks of ze geblokkeerd zijn of niet. Dit is "
783
  "alleen voor debugging."
784
 
785
+ #: libs/blockcountry-settings.php:1320
786
  msgid "Last blocked visits"
787
  msgstr "Laatste geblokkeerde bezoekers"
788
 
789
+ #: libs/blockcountry-settings.php:1334
790
  msgid "Date / Time"
791
  msgstr "Datum / Tijd"
792
 
793
+ #: libs/blockcountry-settings.php:1334 libs/blockcountry-settings.php:1366
794
  msgid "IP Address"
795
  msgstr "IP adres"
796
 
797
+ #: libs/blockcountry-settings.php:1334 libs/blockcountry-settings.php:1366
798
  msgid "Hostname"
799
  msgstr "Hostnaam"
800
 
801
+ #: libs/blockcountry-settings.php:1334 libs/blockcountry-settings.php:1353
802
  msgid "Country"
803
  msgstr "Land"
804
 
805
+ #: libs/blockcountry-settings.php:1334
806
  msgid "Frontend/Backend"
807
  msgstr "Voorkant/Achterkant"
808
 
809
+ #: libs/blockcountry-settings.php:1344 libs/blockcountry-settings.php:1446
810
  msgid "Frontend"
811
  msgstr "Voorkant"
812
 
813
+ #: libs/blockcountry-settings.php:1344
814
  msgid "Backend banlist"
815
  msgstr "Achterkant banlist"
816
 
817
+ #: libs/blockcountry-settings.php:1344
818
  msgid "Backend & Backend banlist"
819
  msgstr "Achterkant & Achterkant banlist"
820
 
821
+ #: libs/blockcountry-settings.php:1344 libs/blockcountry-settings.php:1447
822
  msgid "Backend"
823
  msgstr "Achterkant"
824
 
825
+ #: libs/blockcountry-settings.php:1351
826
  msgid "Top countries that are blocked"
827
  msgstr "Top landen welke zijn geblokkeerd"
828
 
829
+ #: libs/blockcountry-settings.php:1353 libs/blockcountry-settings.php:1366
830
+ #: libs/blockcountry-settings.php:1377
831
  msgid "# of blocked attempts"
832
  msgstr "# of geblokkeerde pogingen"
833
 
834
+ #: libs/blockcountry-settings.php:1364
835
  msgid "Top hosts that are blocked"
836
  msgstr "Top hosts welke geblokkeerd zijn"
837
 
838
+ #: libs/blockcountry-settings.php:1375
839
  msgid "Top URLs that are blocked"
840
  msgstr "Top URLs welke geblokkeerd zijn"
841
 
842
+ #: libs/blockcountry-settings.php:1391
843
  msgid "Clear database"
844
  msgstr "Leeg database"
845
 
846
+ #: libs/blockcountry-settings.php:1416
847
  msgid "Download as CSV file"
848
  msgstr "Download als een csv bestand."
849
 
850
+ #: libs/blockcountry-settings.php:1423
851
  msgid ""
852
  "You are not logging any information. Please uncheck the option 'Do not log "
853
  "IP addresses' if this is not what you want."
855
  "Je logt geen informatie. Deselecteer alstublieft de optie 'Log geen IP "
856
  "adressen' indien dit niet is wat je wilt."
857
 
858
+ #: libs/blockcountry-settings.php:1445
859
  msgid "Home"
860
  msgstr "Home"
861
 
862
+ #: libs/blockcountry-settings.php:1448
863
  msgid "Pages"
864
  msgstr "Pagina's"
865
 
866
+ #: libs/blockcountry-settings.php:1449
867
  msgid "Categories"
868
  msgstr "Categorieen"
869
 
870
+ #: libs/blockcountry-settings.php:1450
871
  msgid "Post types"
872
  msgstr "Post types"
873
 
874
+ #: libs/blockcountry-settings.php:1451
875
  msgid "Search Engines"
876
  msgstr "Zoek machines"
877
 
878
+ #: libs/blockcountry-settings.php:1452
879
  msgid "Tools"
880
  msgstr "Gereedschap"
881
 
882
+ #: libs/blockcountry-settings.php:1453
883
  msgid "Logging"
884
  msgstr "Statistieken"
885
 
886
+ #: libs/blockcountry-settings.php:1454
887
  msgid "Import/Export"
888
  msgstr "Importeren/Exporteren"
889
 
890
+ #: libs/blockcountry-retrieve-geodb.php:38
891
+ #: libs/blockcountry-retrieve-geodb.php:49
892
+ msgid "Error occured: Could not download the GeoIP database from"
893
+ msgstr "Uh oh: Kon de GeoIP database niet downloaden van"
894
+
895
+ #: libs/blockcountry-retrieve-geodb.php:39
896
+ msgid ""
897
+ "MaxMind has blocked requests from your IP address for 24 hours. Please check "
898
+ "again in 24 hours or download this file from your own PC"
899
+ msgstr ""
900
+ "MaxMind heeft alle verzoeken vanaf dit IP adres voor 24 uur geblokkeerd. "
901
+ "Controleer nogmaals na 24 uur of download dit bestand via je eigen pc"
902
+
903
+ #: libs/blockcountry-retrieve-geodb.php:40
904
+ msgid "Unzip this file and upload it (via FTP for instance) to:"
905
+ msgstr "Pak dit bestand uit en upload deze (via FTP bijvoorbeeld) naar:"
906
+
907
+ #: libs/blockcountry-retrieve-geodb.php:50
908
+ msgid ""
909
+ "Please download this file from your own PC unzip this file and upload it "
910
+ "(via FTP for instance) to:"
911
+ msgstr ""
912
+ "Download dit bestand alsjeblieft naar je eigen PC. Pak het bestand daar uit "
913
+ "en upload deze (bijvoorbeeld via FTP) naar:"
914
+
915
+ #: libs/blockcountry-retrieve-geodb.php:77
916
+ msgid "Finished downloading"
917
+ msgstr "Klaar met downloaden"
918
+
919
+ #: libs/blockcountry-retrieve-geodb.php:85
920
+ msgid "Fatal error: GeoIP"
921
+ msgstr "Fatale fout: GeoIP"
922
+
923
+ #: libs/blockcountry-retrieve-geodb.php:85
924
+ msgid ""
925
+ "database does not exists. This plugin will not work until the database file "
926
+ "is present."
927
+ msgstr ""
928
+ "database bestaat niet. Deze plugin kan niet werken totdat deze database "
929
+ "beschikbaar is."
930
+
931
+ #~ msgid ""
932
+ #~ "Your MaxMind GeoIP database is older than 3 months. Please update your "
933
+ #~ "database. "
934
+ #~ msgstr ""
935
+ #~ "Uw MaxMind GeoIP database is ouder dan 3 maanden. Update je database "
936
+ #~ "alstublieft."
937
+
938
+ #~ msgid "Basic Options"
939
+ #~ msgstr "Standaard opties"
940
+
941
  #~ msgid "Automatic update is not setup. Last update: "
942
  #~ msgstr "Automatisch updaten is niet geconfigureerd. Laatste update:"
943
 
libs/blockcountry-checks.php CHANGED
@@ -122,7 +122,8 @@ function iqblockcountry_check($country,$badcountries,$ip_address)
122
  $backendblacklistcheck = TRUE;
123
  }
124
 
125
- global $blockcountry_is_login_page;
 
126
 
127
  /* Check if requested url is not login page. Else check against frontend whitelist/blacklist. */
128
  if (!$blockcountry_is_login_page )
@@ -136,7 +137,7 @@ function iqblockcountry_check($country,$badcountries,$ip_address)
136
  }
137
 
138
 
139
- if ($blockcountry_is_login_page || is_admin())
140
  {
141
  if (is_array($backendbanlistip) && in_array($ip_address,$backendbanlistip))
142
  {
@@ -252,8 +253,8 @@ function iqblockcountry_CheckCountry() {
252
 
253
  $ip_address = iqblockcountry_get_ipaddress();
254
  $country = iqblockcountry_check_ipaddress($ip_address);
255
- global $blockcountry_is_login_page;
256
- if (($blockcountry_is_login_page || is_admin()) && get_option('blockcountry_blockbackend'))
257
  {
258
  $banlist = get_option( 'blockcountry_backendbanlist' );
259
  if (!is_array($banlist)) { $banlist = array(); }
@@ -282,7 +283,7 @@ function iqblockcountry_CheckCountry() {
282
  /* Check ip address against banlist, whitelist and blacklist */
283
  if (iqblockcountry_check($country,$badcountries,$ip_address))
284
  {
285
- if (($blockcountry_is_login_page || is_admin()) && get_option('blockcountry_blockbackend'))
286
  {
287
  $blocked = get_option('blockcountry_backendnrblocks');
288
  if (empty($blocked)) { $blocked = 0; }
@@ -363,6 +364,15 @@ function iqblockcountry_CheckCountry() {
363
  }
364
 
365
 
 
 
 
 
 
 
 
 
 
366
  /*
367
  * Check if page is the login page
368
  */
122
  $backendblacklistcheck = TRUE;
123
  }
124
 
125
+ global $blockcountry_is_login_page,$blockcountry_is_xmlrpc;
126
+
127
 
128
  /* Check if requested url is not login page. Else check against frontend whitelist/blacklist. */
129
  if (!$blockcountry_is_login_page )
137
  }
138
 
139
 
140
+ if ($blockcountry_is_login_page || is_admin() || $blockcountry_is_xmlrpc)
141
  {
142
  if (is_array($backendbanlistip) && in_array($ip_address,$backendbanlistip))
143
  {
253
 
254
  $ip_address = iqblockcountry_get_ipaddress();
255
  $country = iqblockcountry_check_ipaddress($ip_address);
256
+ global $blockcountry_is_login_page,$blockcountry_is_xmlrpc;
257
+ if (($blockcountry_is_login_page || is_admin()) || $blockcountry_is_xmlrpc && get_option('blockcountry_blockbackend'))
258
  {
259
  $banlist = get_option( 'blockcountry_backendbanlist' );
260
  if (!is_array($banlist)) { $banlist = array(); }
283
  /* Check ip address against banlist, whitelist and blacklist */
284
  if (iqblockcountry_check($country,$badcountries,$ip_address))
285
  {
286
+ if (($blockcountry_is_login_page || is_admin()) || $blockcountry_is_xmlrpc && get_option('blockcountry_blockbackend'))
287
  {
288
  $blocked = get_option('blockcountry_backendnrblocks');
289
  if (empty($blocked)) { $blocked = 0; }
364
  }
365
 
366
 
367
+ /**
368
+ * Check if xmlrpc.php is hit.
369
+ * @return bool
370
+ */
371
+ function iqblockcountry_is_xmlrpc() {
372
+ return defined('XMLRPC_REQUEST') && XMLRPC_REQUEST;
373
+ }
374
+
375
+
376
  /*
377
  * Check if page is the login page
378
  */
libs/blockcountry-settings.php CHANGED
@@ -5,6 +5,7 @@ if (!is_file ( IPV4DBFILE ) && (!get_option('blockcountry_geoapikey'))) {
5
  add_action( 'admin_notices', 'iq_missing_db_notice' );
6
  }
7
 
 
8
  /*
9
  * Unzip the MaxMind IPv4 database if somebody uploaded it in GZIP format
10
  */
@@ -65,6 +66,31 @@ function iq_missing_db_notice()
65
  }
66
 
67
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
68
  /*
69
  * Create the wp-admin menu for iQ Block Country
70
  */
@@ -838,7 +864,7 @@ 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
844
  settings_fields ( 'iqblockcountry-settings-group-frontend' );
@@ -848,7 +874,6 @@ function iqblockcountry_settings_frontend()
848
  }
849
  if (class_exists('GeoIP'))
850
  {
851
-
852
  $countrylist = iqblockcountry_get_countries();
853
 
854
  $ip_address = iqblockcountry_get_ipaddress();
@@ -859,14 +884,8 @@ function iqblockcountry_settings_frontend()
859
 
860
  ?>
861
 
862
- <script language="javascript" type="text/javascript" src=<?php echo "\"" . CHOSENJS . "\""?>></script>
863
  <link rel="stylesheet" href=<?php echo "\"" . CHOSENCSS . "\""?> type="text/css" />
864
- <script>
865
- jQuery(document).ready(function(){
866
- jQuery(".chosen").data("placeholder","Select country...").chosen();
867
- });
868
- </script>
869
-
870
 
871
  <table class="form-table" cellspacing="2" cellpadding="5" width="100%">
872
 
@@ -912,7 +931,11 @@ function iqblockcountry_settings_frontend()
912
  }
913
  else
914
  {
915
- ?> <select class="chosen" name="blockcountry_banlist[]" multiple="true" style="width:600px;">
 
 
 
 
916
  <?php
917
  foreach ( $countrylist as $key => $value ) {
918
  print "<option value=\"$key\"";
@@ -921,6 +944,7 @@ function iqblockcountry_settings_frontend()
921
  }
922
  print ">$value</option>\n";
923
  }
 
924
  echo " </select>";
925
  }
926
 
@@ -993,13 +1017,7 @@ function iqblockcountry_settings_backend()
993
 
994
  ?>
995
 
996
- <script language="javascript" type="text/javascript" src=<?php echo "\"" . CHOSENJS . "\""?>></script>
997
  <link rel="stylesheet" href=<?php echo "\"" . CHOSENCSS . "\""?> type="text/css" />
998
- <script>
999
- jQuery(document).ready(function(){
1000
- jQuery(".chosen").data("placeholder","Select country...").chosen();
1001
- });
1002
- </script>
1003
 
1004
 
1005
  <table class="form-table" cellspacing="2" cellpadding="5" width="100%">
@@ -1042,7 +1060,9 @@ function iqblockcountry_settings_backend()
1042
  }
1043
  else
1044
  {
1045
- ?> <select class="chosen" name="blockcountry_backendbanlist[]" multiple="true" style="width:600px;">
 
 
1046
  <?php
1047
  foreach ( $countrylist as $key => $value ) {
1048
  print "<option value=\"$key\"";
@@ -1051,6 +1071,7 @@ function iqblockcountry_settings_backend()
1051
  }
1052
  print ">$value</option>\n";
1053
  }
 
1054
  echo " </select>";
1055
  }
1056
  ?>
@@ -1103,33 +1124,25 @@ function iqblockcountry_settings_backend()
1103
  function iqblockcountry_settings_home()
1104
  {
1105
 
1106
- if (is_file(IPV4DBFILE)) {
 
1107
  $iqfiledate = filemtime(IPV4DBFILE);
1108
  $iq3months = time() - 3 * 31 * 86400;
1109
  if ($iqfiledate < $iq3months)
1110
  {
1111
- ?>
1112
- <div class="update-nag">
1113
- <?php _e("Your MaxMind GeoIP database is older than 3 months. Please update your database. " , 'iq-block-country'); ?>
1114
- </div>
1115
- <?php
1116
  }
1117
-
1118
- // . date ("F d Y H:i:s.", filemtime(IPV4DBFILE));
1119
  }
1120
 
 
1121
  ?>
1122
  <h3><?php _e('Overall statistics since start', 'iq-block-country'); ?></h3>
1123
 
1124
  <?php $blocked = get_option('blockcountry_backendnrblocks'); ?>
1125
- <p><?php echo $blocked; ?> <?php _e('visitors blocked from the backend.', 'iq-block-country'); ?></p>
1126
  <?php $blocked = get_option('blockcountry_frontendnrblocks'); ?>
1127
- <p><?php echo $blocked; ?> <?php _e('visitors blocked from the frontend.', 'iq-block-country'); ?></p>
1128
-
1129
- <hr />
1130
 
1131
- <h3><?php _e('Basic Options', 'iq-block-country'); ?></h3>
1132
-
1133
  <form method="post" action="options.php">
1134
  <?php
1135
  settings_fields ( 'iqblockcountry-settings-group' );
@@ -1139,27 +1152,16 @@ if (is_file(IPV4DBFILE)) {
1139
  }
1140
  if (class_exists('GeoIP'))
1141
  {
1142
-
1143
  $countrylist = iqblockcountry_get_countries();
1144
-
1145
- // $ip_address = iqblockcountry_get_ipaddress();
1146
- // $country = iqblockcountry_check_ipaddress($ip_address);
1147
- // if ($country == "Unknown" || $country == "ipv6" || $country == "" || $country == "FALSE")
1148
- // { $displaycountry = "Unknown"; }
1149
- // else { $displaycountry = $countrylist[$country]; }
1150
-
1151
-
1152
  ?>
1153
 
1154
- <script language="javascript" type="text/javascript" src=<?php echo "\"" . CHOSENJS . "\""?>></script>
1155
  <link rel="stylesheet" href=<?php echo "\"" . CHOSENCSS . "\""?> type="text/css" />
1156
- <script>
1157
- jQuery(document).ready(function(){
1158
- jQuery(".chosen").data("placeholder","Select country...").chosen();
1159
- });
1160
- </script>
1161
-
1162
 
 
 
 
 
 
1163
  <table class="form-table" cellspacing="2" cellpadding="5" width="100%">
1164
 
1165
  <tr valign="top">
@@ -1202,7 +1204,11 @@ if (is_file(IPV4DBFILE)) {
1202
  <td width="70%">
1203
  <input type="text" style="width:100%" name="blockcountry_redirect_url" value="<?php echo get_option ( 'blockcountry_redirect_url' );?>">
1204
  </td></tr>
 
 
 
1205
 
 
1206
  <tr valign="top">
1207
  <th width="30%"><?php _e('Send headers when user is blocked:', 'iq-block-country'); ?><br />
1208
  <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>
@@ -1493,12 +1499,16 @@ function iqblockcountry_settings_page() {
1493
  {
1494
  iqblockcountry_settings_home();
1495
  }
1496
- echo '<p>This product includes GeoLite data created by MaxMind, available from ';
1497
- echo '<a href="http://www.maxmind.com/">http://www.maxmind.com/</a>.</p>';
 
 
 
 
1498
 
1499
- echo '<p>If you like this plugin please link back to <a href="http://www.redeo.nl/">redeo.nl</a>! :-)</p>';
1500
 
1501
-
1502
 
1503
  }
1504
 
5
  add_action( 'admin_notices', 'iq_missing_db_notice' );
6
  }
7
 
8
+
9
  /*
10
  * Unzip the MaxMind IPv4 database if somebody uploaded it in GZIP format
11
  */
66
  }
67
 
68
 
69
+ /*
70
+ * Display missing database notification.
71
+ */
72
+ function iq_old_db_notice()
73
+ {
74
+ ?>
75
+ <div class="update-nag">
76
+ <h3>iQ Block Country</h3>
77
+ <p><?php _e('The MaxMind GeoIP database is older than 3 months. Please update 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>
78
+ <p><?php _e("Please download the database from: " , 'iq-block-country'); ?>
79
+ <?php echo "<a href=\"" . IPV4DB . "\" target=\"_blank\">" . IPV4DB . "</a> "; ?>
80
+ <?php _e("unzip the file and afterwards upload it to the following location: " , 'iq-block-country'); ?>
81
+ <b><?php echo IPV4DBFILE; ?></b></p>
82
+
83
+ <p><?php _e("If you also use IPv6 please also download the database from: " , 'iq-block-country'); ?>
84
+ <?php echo "<a href=\"" . IPV6DB . "\" target=\"_blank\">" . IPV6DB . "</a> "; ?>
85
+ <?php _e("unzip the file and afterwards upload it to the following location: " , 'iq-block-country'); ?>
86
+ <b><?php echo IPV6DBFILE; ?></b></p>
87
+ <p><?php _e('For more detailed instructions take a look at the documentation..', 'iq-block-country'); ?></p>
88
+
89
+ </div>
90
+ <?php
91
+ }
92
+
93
+
94
  /*
95
  * Create the wp-admin menu for iQ Block Country
96
  */
864
  {
865
  ?>
866
  <h3><?php _e('Frontend options', 'iq-block-country'); ?></h3>
867
+
868
  <form method="post" action="options.php">
869
  <?php
870
  settings_fields ( 'iqblockcountry-settings-group-frontend' );
874
  }
875
  if (class_exists('GeoIP'))
876
  {
 
877
  $countrylist = iqblockcountry_get_countries();
878
 
879
  $ip_address = iqblockcountry_get_ipaddress();
884
 
885
  ?>
886
 
 
887
  <link rel="stylesheet" href=<?php echo "\"" . CHOSENCSS . "\""?> type="text/css" />
888
+
 
 
 
 
 
889
 
890
  <table class="form-table" cellspacing="2" cellpadding="5" width="100%">
891
 
931
  }
932
  else
933
  {
934
+ ?>
935
+
936
+
937
+ <select data-placeholder="Choose a country..." class="chosen" name="blockcountry_banlist[]" multiple="true" style="width:600px;">
938
+ <optgroup label="(de)select all countries">
939
  <?php
940
  foreach ( $countrylist as $key => $value ) {
941
  print "<option value=\"$key\"";
944
  }
945
  print ">$value</option>\n";
946
  }
947
+ echo "</optgroup";
948
  echo " </select>";
949
  }
950
 
1017
 
1018
  ?>
1019
 
 
1020
  <link rel="stylesheet" href=<?php echo "\"" . CHOSENCSS . "\""?> type="text/css" />
 
 
 
 
 
1021
 
1022
 
1023
  <table class="form-table" cellspacing="2" cellpadding="5" width="100%">
1060
  }
1061
  else
1062
  {
1063
+ ?> <select class="chosen" data-placeholder="Choose a country..." name="blockcountry_backendbanlist[]" multiple="true" style="width:600px;">
1064
+ <optgroup label="(de)select all countries">
1065
+
1066
  <?php
1067
  foreach ( $countrylist as $key => $value ) {
1068
  print "<option value=\"$key\"";
1071
  }
1072
  print ">$value</option>\n";
1073
  }
1074
+ echo "</optgroup>";
1075
  echo " </select>";
1076
  }
1077
  ?>
1124
  function iqblockcountry_settings_home()
1125
  {
1126
 
1127
+ /* Check if the Geo Database exists or if GeoIP API key is entered otherwise display notification */
1128
+ if (is_file ( IPV4DBFILE ) && (!get_option('blockcountry_geoapikey'))) {
1129
  $iqfiledate = filemtime(IPV4DBFILE);
1130
  $iq3months = time() - 3 * 31 * 86400;
1131
  if ($iqfiledate < $iq3months)
1132
  {
1133
+ iq_old_db_notice();
 
 
 
 
1134
  }
 
 
1135
  }
1136
 
1137
+
1138
  ?>
1139
  <h3><?php _e('Overall statistics since start', 'iq-block-country'); ?></h3>
1140
 
1141
  <?php $blocked = get_option('blockcountry_backendnrblocks'); ?>
1142
+ <p><?php echo number_format($blocked); ?> <?php _e('visitors blocked from the backend.', 'iq-block-country'); ?></p>
1143
  <?php $blocked = get_option('blockcountry_frontendnrblocks'); ?>
1144
+ <p><?php echo number_format($blocked); ?> <?php _e('visitors blocked from the frontend.', 'iq-block-country'); ?></p>
 
 
1145
 
 
 
1146
  <form method="post" action="options.php">
1147
  <?php
1148
  settings_fields ( 'iqblockcountry-settings-group' );
1152
  }
1153
  if (class_exists('GeoIP'))
1154
  {
 
1155
  $countrylist = iqblockcountry_get_countries();
 
 
 
 
 
 
 
 
1156
  ?>
1157
 
 
1158
  <link rel="stylesheet" href=<?php echo "\"" . CHOSENCSS . "\""?> type="text/css" />
 
 
 
 
 
 
1159
 
1160
+ <hr>
1161
+ <h3><?php _e('Block type', 'iq-block-country'); ?></h3>
1162
+ <em>
1163
+ <?php _e('You should choose one of the 3 block options below. This wil either show a block message, redirect to an internal page or redirect to an external page.', 'iq-block-country'); ?>
1164
+ </em>
1165
  <table class="form-table" cellspacing="2" cellpadding="5" width="100%">
1166
 
1167
  <tr valign="top">
1204
  <td width="70%">
1205
  <input type="text" style="width:100%" name="blockcountry_redirect_url" value="<?php echo get_option ( 'blockcountry_redirect_url' );?>">
1206
  </td></tr>
1207
+ </table>
1208
+ <hr>
1209
+ <h3><?php _e('General settings', 'iq-block-country'); ?></h3>
1210
 
1211
+ <table class="form-table" cellspacing="2" cellpadding="5" width="100%">
1212
  <tr valign="top">
1213
  <th width="30%"><?php _e('Send headers when user is blocked:', 'iq-block-country'); ?><br />
1214
  <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>
1499
  {
1500
  iqblockcountry_settings_home();
1501
  }
1502
+
1503
+ ?>
1504
+
1505
+ <p>If you need assistance with this plugin please go to the <a href="https://www.webence.nl/support/">support forum</a></p>
1506
+
1507
+ <p>This product uses GeoLite data created by MaxMind, available from <a href="http://www.maxmind.com/">http://www.maxmind.com/</a>.</p>
1508
 
1509
+ <p>If you like this plugin please link back to <a href="http://www.webence.nl/">www.webence.nl</a>! :-)</p>
1510
 
1511
+ <?php
1512
 
1513
  }
1514
 
readme.txt CHANGED
@@ -1,31 +1,38 @@
1
  === iQ Block Country ===
2
  Contributors: iqpascal
3
- 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.4
7
- Stable tag: 1.1.25
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
11
- Block visitors from countries you don't want on your website. Based on which country your visitor is from.
 
12
 
13
  == Description ==
14
 
15
- If you want to block people from certain (obscure) countries that have no business visiting your
16
- blog and perhaps only leave spam comments or other harmful actions than this is the plugin for you.
 
 
 
 
17
 
18
- Choose which countries you want to ban from visiting your blog. Any visitors from that country get
19
- a HTTP/403 error with the standard message "Forbidden - Users from your country are not permitted
20
- to browse this site." The message is customizable an can be styled with CSS.
21
 
22
- If you only want to block other countries from visiting your backend (administrator) website than this plugin is also something for you.
 
23
 
24
- If you want to block users from both your frontend website as well as your backend website than this plugin is really something for you!
 
25
 
26
- Users that are blocked will not be able to do harmful things to your blog like post comment spam.
27
 
28
- You can block all visitors from a certain country accessing your site but you can also limit access to some pages, or some blog categories.
 
29
 
30
  This plugin uses the GeoLite database from Maxmind. It has a 99.5% accuracy so that is pretty good for a free database. If you need higher accuracy you can buy a license from MaxMind directly.
31
  If you cannot or do not want to download the GeoIP database from Maxmind you can use the GeoIP API website available on http://geoip.webence.nl/
@@ -33,6 +40,12 @@ If you cannot or do not want to download the GeoIP database from Maxmind you can
33
  If you want to use the GeoLite database from Maxmind you will have to download the GeoIP database from MaxMind directly and upload it to your site.
34
  The Wordpress license does not allow this plugin to download the MaxMind Geo database for you.
35
 
 
 
 
 
 
 
36
  == Installation ==
37
 
38
  1. Unzip the archive and put the `iq-block-country` folder into your plugins folder (/wp-content/plugins/).
@@ -46,14 +59,6 @@ The Wordpress license does not allow this plugin to download the MaxMind Geo dat
46
 
47
  == Frequently Asked Questions ==
48
 
49
- = Why is the GeoLite database not downloaded anymore ? =
50
-
51
- The Wordpress guys have contacted me that the license of the MaxMind GeoLite database and the Wordpress license conflicted. So it was no longer
52
- allowed to include the GeoLite database or provide an automatic download or download button. Instead users should download the database themselves
53
- and upload them to the website.
54
-
55
- Wordpress could be held liable for any license issue. So that is why the auto download en update was removed from this plugin.
56
-
57
  = How come that I still see visitors from countries that I blocked in Statpress or other statistics software? =
58
 
59
  It’s true that you might see hits from countries that you have blocked in your statistics software.
@@ -112,11 +117,19 @@ you basicly can use everything as within a normal HTML page. Including images fo
112
 
113
  = Does this plugin also work with IPv6? =
114
 
115
- Since v1.0.7 this plugin supports IPv6. But as IPv6 is still scarce it may not work as well as IPv4.
116
- Some IPv6 blocks may not be in the right country in the MaxMind database.
117
 
118
- There are no guarantees blocking IPv6 works but as far as I was able to test IPv6 blocking it
119
- works just fine.
 
 
 
 
 
 
 
 
 
120
 
121
  = Does this plugin work with caching? =
122
 
@@ -133,6 +146,8 @@ You can press the CTRL key and select several countries.
133
 
134
  Perhaps also a handy function is that you can type in a part of the name of the country!
135
 
 
 
136
  If you just want to allow some countries you can also use the invert function by selecting the countries you want to allow and select invert this selection.
137
 
138
  = How can I get a new version of the GeoIP database? =
@@ -159,7 +174,6 @@ If you select this option each hour the plugin checks if it has new data to send
159
  This data consists of each IP address that has tried to login to your backend and how many attempts were made since the last check.
160
 
161
  Goal of this feature is to check if we can create a user-driven database of rogue IP addresses that try to login to the backend.
162
- If this is viable in a future version this database can be used to block these rogue users despite the country they come from.
163
 
164
  If storing or sharing an IP address is illegal in your country do not select this feature.
165
 
@@ -167,8 +181,28 @@ If storing or sharing an IP address is illegal in your country do not select thi
167
 
168
  You can select the option on the home tab "Do not log IP addresses" to stop iQ Block Country from logging IP addresses. This will however also break the statistics.
169
 
 
 
 
 
 
 
 
 
 
 
170
  == Changelog ==
171
 
 
 
 
 
 
 
 
 
 
 
172
  = 1.1.25 =
173
 
174
  * Bugfix: Altered checking for Simple Security Firewall
@@ -318,68 +352,6 @@ You can select the option on the home tab "Do not log IP addresses" to stop iQ B
318
  * You can view the top 15 of hosts that were blocked in the past 30 days.
319
  * You can view the top URL's that were most blocked in the past 30 days.
320
 
321
- = 1.0.12 =
322
-
323
- * The block message size box is now larger so there is more room for styling the message.
324
- * Whitelist of IPvX IP addresses for the frontend. Use a semicolon to separate IP addresses.
325
- * Blacklist of IPvX IP addresses for the frontend. Use a semicolon to separate IP addresses.
326
-
327
- = 1.0.11 =
328
-
329
- * You are now able to lookup which country belongs to an ip address in the backend. If the IP address is from a country that is banned this will be displayed.
330
- * New way of selecting countries you wish to block upon multiple request. The selection box is now in sort of facebook style.
331
- * Choose if you want to sent out headers or not. For people who get "Cannot modify header information - headers already sent" errors.
332
- * Counter added for how many visitors where blocked from frontend and backend website.
333
- * Code cleanup
334
-
335
- = 1.0.10 =
336
-
337
- * You can select different countries to block from your frontend website and your backend website.
338
- * Made it more visible what IP you are logged in from, which country it is from and that you should not block your own country from your backend site.
339
- * Minor changes to the settings page.
340
- * A bit of code cleanup for future improvements.
341
-
342
- = 1.0.9 =
343
-
344
- * Bugfix release. The backend was not blocked in multi-site (network) setup.
345
-
346
- = 1.0.8 =
347
- * Automatically download new GeoIP updates from Maxmind. This is checked each time you login on the Wordpress admin site (Code by williewonka)
348
- * Also block login attempts to the wp-admin site (Code by williewonka)
349
- * Send no cache headers with the output.
350
-
351
- = 1.0.7 =
352
- * The plugin now detects if your IP address is blocked by MaxMind when downloading the GeoIP database and if so has an adjusted error message.
353
- * New option: New checkbox to allow you to not block users that are logged in despite if they come from a blocked country. Use wisely :-)
354
- * First version of IPv6 support.
355
- * New Download IPv6 database button. Press "Download new GeoIP IPv6 database" if you need IPv6 support.
356
-
357
- = 1.0.6 =
358
- * Fixed error when not being able to download the GeoIP.dat.gz file from Maxmind it would not display the correct path.
359
-
360
- = 1.0.5 =
361
- * Corrected php opening tags (Reported by Phil from msiii.net)
362
- * Sorted list of countries (As suggested by Phil from msiii.net)
363
- * You can now customize the message that users get when they are blocked.
364
- * We moved from http://www.trinyx.nl/ to http://www.redeo.nl/. Please update your links :-)
365
-
366
- = 1.0.4 =
367
- * Added a button to download the new GeoIP database.
368
-
369
- = 1.0.3 =
370
- * FAQ updated
371
- * Try to make sure this plugin is loaded first to avoid "headers already sent" trouble.
372
-
373
- = 1.0.2 =
374
- * PHP 5.2 or higher required
375
- * Fixed an include bug when other plugins also use the MaxMind database. Thanks to Marcus from LunaWorX for finding this bug.
376
-
377
- = 1.0.1 =
378
- * Included the necessary geoip.inc file.. *duh*
379
-
380
- = 1.0 =
381
- * Initial release
382
-
383
  == Upgrade Notice ==
384
 
385
  = 1.1.19 =
1
  === iQ Block Country ===
2
  Contributors: iqpascal
3
+ Donate link: https://www.webence.nl/plugins/donate
4
+ Tags: spam, block, country, comments, ban, geo, geo blocking, geo ip, block country, block countries, ban countries, ban country, blacklist, whitelist, security
5
  Requires at least: 3.5.2
6
+ Tested up to: 4.4.1
7
+ Stable tag: 1.1.26
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
11
+ Allow or disallow visitors from certain countries accessing (parts of) your website
12
+
13
 
14
  == Description ==
15
 
16
+ iQ Block Country is a plugin that allows you to limit access to your website content.
17
+ You can either allow or disallow visitors from defined countries to (parts of) your content.
18
+
19
+ For instance if you have content that should be restricted to a limited set of countries you can do so.
20
+ If you want to block rogue countries that cause issues like for instance hack attempts, spamming of your comments etc
21
+ you can block them as well.
22
 
23
+ Do you want secure your WordPress Admin backend site to only your country? Entirely possible! You can even
24
+ block all countries and only allow your ip address.
 
25
 
26
+ And even if you block a country you can still allow certain visitors by whitelisting their ip address just
27
+ like you can allow a country but blacklist ip addresses from that country.
28
 
29
+ You can show blocked visitors a message which you can style by using CSS or you can redirect them to a page
30
+ within your WordPress site. Or you can redirect the visitors to an external website.
31
 
32
+ You can (dis)allow visitors to blog articles, blog categories or pages or all content.
33
 
34
+ Stop visitors from doing harmful things on your WordPress site or limit the countries that can access your
35
+ blog. Add an additional layer of security to your WordPress site.
36
 
37
  This plugin uses the GeoLite database from Maxmind. It has a 99.5% accuracy so that is pretty good for a free database. If you need higher accuracy you can buy a license from MaxMind directly.
38
  If you cannot or do not want to download the GeoIP database from Maxmind you can use the GeoIP API website available on http://geoip.webence.nl/
40
  If you want to use the GeoLite database from Maxmind you will have to download the GeoIP database from MaxMind directly and upload it to your site.
41
  The Wordpress license does not allow this plugin to download the MaxMind Geo database for you.
42
 
43
+ = Using this plugin with a caching plugin =
44
+
45
+ Please note that many of the caching plugins are not compatible with this plugin. The nature of caching is that a dynamically build web page is cached into a static page.
46
+ If a visitor is blocked this plugin sends header data where it supplies info that the page should not be cached. Many plugins however disregard this info and cache the
47
+ page or the redirect. Resulting in valid visitors receiving a message that they are blocked. This is not a malfunction of this plugin.
48
+
49
  == Installation ==
50
 
51
  1. Unzip the archive and put the `iq-block-country` folder into your plugins folder (/wp-content/plugins/).
59
 
60
  == Frequently Asked Questions ==
61
 
 
 
 
 
 
 
 
 
62
  = How come that I still see visitors from countries that I blocked in Statpress or other statistics software? =
63
 
64
  It’s true that you might see hits from countries that you have blocked in your statistics software.
117
 
118
  = Does this plugin also work with IPv6? =
119
 
120
+ Since v1.0.7 this plugin supports IPv6. IPv6 IP addresses are more and more used because there are no new IPv4 IP addresses anymore.
 
121
 
122
+ If your webhosting company supplies your with both IPv4 and IPv6 ip addresses please also download the GeoIPv6 database or use the GeoIP API service.
123
+
124
+ If your webhosting company does not supply an IPv6 IP address yet please ask them when they are planning to.
125
+
126
+ = Why is the GeoLite database not downloaded anymore ? =
127
+
128
+ The Wordpress guys have contacted me that the license of the MaxMind GeoLite database and the Wordpress license conflicted. So it was no longer
129
+ allowed to include the GeoLite database or provide an automatic download or download button. Instead users should download the database themselves
130
+ and upload them to the website.
131
+
132
+ Wordpress could be held liable for any license issue. So that is why the auto download en update was removed from this plugin.
133
 
134
  = Does this plugin work with caching? =
135
 
146
 
147
  Perhaps also a handy function is that you can type in a part of the name of the country!
148
 
149
+ You can select/deselect all countries by selecting "(de)select all countries..."
150
+
151
  If you just want to allow some countries you can also use the invert function by selecting the countries you want to allow and select invert this selection.
152
 
153
  = How can I get a new version of the GeoIP database? =
174
  This data consists of each IP address that has tried to login to your backend and how many attempts were made since the last check.
175
 
176
  Goal of this feature is to check if we can create a user-driven database of rogue IP addresses that try to login to the backend.
 
177
 
178
  If storing or sharing an IP address is illegal in your country do not select this feature.
179
 
181
 
182
  You can select the option on the home tab "Do not log IP addresses" to stop iQ Block Country from logging IP addresses. This will however also break the statistics.
183
 
184
+ = I have moved my WordPress site to another host. Now iQ Block Country cannot find the GeoIP databases anymore =
185
+
186
+ Somewhere in your WordPress database there is a wp_options table. In the wp_options table is an option_name called 'upload_path'.
187
+
188
+ There probably is an (old) path set as option_value. If you know your way around MySQL (via PHPMyAdmin for instance) you can empty the option_value.
189
+ This should fix your problem.
190
+
191
+ Please note that your wp_options table may be called differently depending on your installation choices.
192
+
193
+
194
  == Changelog ==
195
 
196
+ = 1.1.26 =
197
+
198
+ * New: xmlrpc.php is now handled the same way as other backend pages.
199
+ * Change: Updated chosen library to latest version.
200
+ * Change: Added a (de)select all countries to the backend en frontend country list.
201
+ * Change: Changed order of how the plugin detects the ip address.
202
+ * Change: Added detection of more header info that can contain the proper ip address
203
+ * New: Added support forum to the site.
204
+ * Change: Added download urls on database is too old message.
205
+
206
  = 1.1.25 =
207
 
208
  * Bugfix: Altered checking for Simple Security Firewall
352
  * You can view the top 15 of hosts that were blocked in the past 30 days.
353
  * You can view the top URL's that were most blocked in the past 30 days.
354
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
355
  == Upgrade Notice ==
356
 
357
  = 1.1.19 =