iQ Block Country - Version 1.1.4

Version Description

  • Added import/export function.
  • Minor bugs solved
Download this release

Release Info

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

Code changes from version 1.1.3 to 1.1.4

iq-block-country.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  Plugin Name: iQ Block Country
4
  Plugin URI: http://www.redeo.nl/2013/12/iq-block-country-wordpress-plugin-blocks-countries/
5
- Version: 1.1.3
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.
@@ -11,7 +11,7 @@ License: GPL2
11
 
12
  /* This script uses GeoLite Country from MaxMind (http://www.maxmind.com) which is available under terms of GPL/LGPL */
13
 
14
- /* Copyright 2010-2013 Pascal (email : pascal@redeo.nl)
15
 
16
  This program is free software; you can redistribute it and/or modify
17
  it under the terms of the GNU General Public License, version 2, as
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.4
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.
11
 
12
  /* This script uses GeoLite Country from MaxMind (http://www.maxmind.com) which is available under terms of GPL/LGPL */
13
 
14
+ /* Copyright 2010-2014 Pascal (email : pascal@redeo.nl)
15
 
16
  This program is free software; you can redistribute it and/or modify
17
  it under the terms of the GNU General Public License, version 2, as
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: 2014-01-12 10:59+0100\n"
5
- "PO-Revision-Date: 2014-01-12 10:59+0100\n"
6
  "Last-Translator: \n"
7
  "Language-Team: iQ Block Country <info@redeo.nl>\n"
8
  "Language: English\n"
@@ -15,254 +15,319 @@ msgstr ""
15
  "X-Poedit-SearchPath-0: libs\n"
16
  "X-Poedit-SearchPath-1: .\n"
17
 
18
- #: libs/blockcountry-settings.php:78
19
  msgid ""
20
  "Check which country belongs to an IP Address according to the current "
21
  "database."
22
  msgstr ""
23
 
24
- #: libs/blockcountry-settings.php:82
25
  msgid "IP Address to check:"
26
  msgstr ""
27
 
28
- #: libs/blockcountry-settings.php:92
29
  msgid "No country for"
30
  msgstr ""
31
 
32
- #: libs/blockcountry-settings.php:92
33
  msgid "could be found. Or"
34
  msgstr ""
35
 
36
- #: libs/blockcountry-settings.php:92
37
  msgid "is not a valid IPv4 or IPv6 IP address"
38
  msgstr ""
39
 
40
- #: libs/blockcountry-settings.php:97
41
  msgid "IP Adress"
42
  msgstr ""
43
 
44
- #: libs/blockcountry-settings.php:97
45
  msgid "belongs to"
46
  msgstr ""
47
 
48
- #: libs/blockcountry-settings.php:100
49
  msgid "This country is not permitted to visit the frontend of this website."
50
  msgstr ""
51
 
52
- #: libs/blockcountry-settings.php:105
53
  msgid "This country is not permitted to visit the backend of this website."
54
  msgstr ""
55
 
56
- #: libs/blockcountry-settings.php:111
57
  msgid "Check IP address"
58
  msgstr ""
59
 
60
- #: libs/blockcountry-settings.php:124
61
  msgid "The GeoIP database is updated once a month. Last update: "
62
  msgstr ""
63
 
64
- #: libs/blockcountry-settings.php:125
65
  msgid "If you need a manual update please press buttons below to update."
66
  msgstr ""
67
 
68
- #: libs/blockcountry-settings.php:131
69
  msgid "Download new GeoIP IPv4 Database"
70
  msgstr ""
71
 
72
- #: libs/blockcountry-settings.php:138
73
  msgid "Download new GeoIP IPv6 Database"
74
  msgstr ""
75
 
76
- #: libs/blockcountry-settings.php:143 libs/blockcountry-settings.php:147
77
  msgid "Downloading..."
78
  msgstr ""
79
 
80
- #: libs/blockcountry-settings.php:155
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
81
  msgid "Select which pages are blocked."
82
  msgstr ""
83
 
84
- #: libs/blockcountry-settings.php:162
85
  msgid "Do you want to block individual pages:"
86
  msgstr ""
87
 
88
- #: libs/blockcountry-settings.php:163
89
  msgid "If you do not select this option all pages will be blocked."
90
  msgstr ""
91
 
92
- #: libs/blockcountry-settings.php:168
93
  msgid "Select pages you want to block:"
94
  msgstr ""
95
 
96
- #: libs/blockcountry-settings.php:189 libs/blockcountry-settings.php:344
97
  msgid "Save Changes"
98
  msgstr ""
99
 
100
- #: libs/blockcountry-settings.php:205
101
  msgid "Statistics"
102
  msgstr ""
103
 
104
- #: libs/blockcountry-settings.php:208
105
  msgid "visitors blocked from the backend."
106
  msgstr ""
107
 
108
- #: libs/blockcountry-settings.php:210
109
  msgid "visitors blocked from the frontend."
110
  msgstr ""
111
 
112
- #: libs/blockcountry-settings.php:214
113
  msgid "Basic Options"
114
  msgstr ""
115
 
116
- #: libs/blockcountry-settings.php:249
117
  msgid "Message to display when people are blocked:"
118
  msgstr ""
119
 
120
- #: libs/blockcountry-settings.php:259
121
  msgid "Do not block users that are logged in from visiting frontend website:"
122
  msgstr ""
123
 
124
- #: libs/blockcountry-settings.php:265
125
  msgid "Block users from visiting the frontend of your website:"
126
  msgstr ""
127
 
128
- #: libs/blockcountry-settings.php:271
129
  msgid ""
130
  "Select the countries that should be blocked from visiting your frontend:"
131
  msgstr ""
132
 
133
- #: libs/blockcountry-settings.php:272
134
  msgid "Use the CTRL key to select multiple countries"
135
  msgstr ""
136
 
137
- #: libs/blockcountry-settings.php:288
138
  msgid "Frontend whitelist IPv4 and/or IPv6 addresses:"
139
  msgstr ""
140
 
141
- #: libs/blockcountry-settings.php:288 libs/blockcountry-settings.php:296
142
  msgid "Use a semicolon (;) to separate IP addresses"
143
  msgstr ""
144
 
145
- #: libs/blockcountry-settings.php:296
146
  msgid "Frontend blacklist IPv4 and/or IPv6 addresses:"
147
  msgstr ""
148
 
149
- #: libs/blockcountry-settings.php:304
150
  msgid "Block users from visiting the backend (administrator) of your website:"
151
  msgstr ""
152
 
153
- #: libs/blockcountry-settings.php:311
154
  msgid "Your IP address is"
155
  msgstr ""
156
 
157
- #: libs/blockcountry-settings.php:311
158
  msgid "The country that is listed for this IP address is"
159
  msgstr ""
160
 
161
- #: libs/blockcountry-settings.php:312
162
  msgid ""
163
  "Do <strong>NOT</strong> set the 'Block users from visiting the backend "
164
  "(administrator) of your website' and also select"
165
  msgstr ""
166
 
167
- #: libs/blockcountry-settings.php:312
168
  msgid "below."
169
  msgstr ""
170
 
171
- #: libs/blockcountry-settings.php:313
172
  msgid ""
173
  "You will NOT be able to login the next time if you DO block your own country "
174
  "from visiting the backend."
175
  msgstr ""
176
 
177
- #: libs/blockcountry-settings.php:318
178
  msgid "Select the countries that should be blocked from visiting your backend:"
179
  msgstr ""
180
 
181
- #: libs/blockcountry-settings.php:319
182
  msgid "Use the x behind the country to remove a country from this blocklist."
183
  msgstr ""
184
 
185
- #: libs/blockcountry-settings.php:336
186
  msgid "Send headers when user is blocked:"
187
  msgstr ""
188
 
189
- #: libs/blockcountry-settings.php:337
190
  msgid ""
191
  "Under normal circumstances you should keep this selected! Only if you have "
192
  "\"Cannot modify header information - headers already sent\" errors or if you "
193
  "know what you are doing uncheck this."
194
  msgstr ""
195
 
196
- #: libs/blockcountry-settings.php:368
197
  msgid "Last 15 blocked visits"
198
  msgstr ""
199
 
200
- #: libs/blockcountry-settings.php:376
201
  msgid "Date / Time"
202
  msgstr ""
203
 
204
- #: libs/blockcountry-settings.php:376 libs/blockcountry-settings.php:408
205
  msgid "IP Address"
206
  msgstr ""
207
 
208
- #: libs/blockcountry-settings.php:376 libs/blockcountry-settings.php:408
209
  msgid "Hostname"
210
  msgstr ""
211
 
212
- #: libs/blockcountry-settings.php:376 libs/blockcountry-settings.php:419
213
  msgid "URL"
214
  msgstr ""
215
 
216
- #: libs/blockcountry-settings.php:376 libs/blockcountry-settings.php:395
217
  msgid "Country"
218
  msgstr ""
219
 
220
- #: libs/blockcountry-settings.php:376
221
  msgid "Frontend/Backend"
222
  msgstr ""
223
 
224
- #: libs/blockcountry-settings.php:386
225
  msgid "Frontend"
226
  msgstr ""
227
 
228
- #: libs/blockcountry-settings.php:386
229
  msgid "Backend"
230
  msgstr ""
231
 
232
- #: libs/blockcountry-settings.php:393
233
  msgid "Top countries that are blocked"
234
  msgstr ""
235
 
236
- #: libs/blockcountry-settings.php:395 libs/blockcountry-settings.php:408
237
- #: libs/blockcountry-settings.php:419
238
  msgid "# of blocked attempts"
239
  msgstr ""
240
 
241
- #: libs/blockcountry-settings.php:406
242
  msgid "Top hosts that are blocked"
243
  msgstr ""
244
 
245
- #: libs/blockcountry-settings.php:417
246
  msgid "Top URLs that are blocked"
247
  msgstr ""
248
 
249
- #: libs/blockcountry-settings.php:446
250
  msgid "Home"
251
  msgstr ""
252
 
253
- #: libs/blockcountry-settings.php:447
254
  msgid "Pages"
255
  msgstr ""
256
 
257
- #: libs/blockcountry-settings.php:448
258
  msgid "Tools."
259
  msgstr ""
260
 
261
- #: libs/blockcountry-settings.php:449
262
  msgid "Logging"
263
  msgstr ""
264
 
265
- #: libs/blockcountry-settings.php:482
 
 
 
 
266
  msgid "GeoIP database does not exists. Trying to download it..."
267
  msgstr ""
268
 
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: iQ Block Country\n"
4
+ "POT-Creation-Date: 2014-02-12 10:07+0100\n"
5
+ "PO-Revision-Date: 2014-02-12 10:07+0100\n"
6
  "Last-Translator: \n"
7
  "Language-Team: iQ Block Country <info@redeo.nl>\n"
8
  "Language: English\n"
15
  "X-Poedit-SearchPath-0: libs\n"
16
  "X-Poedit-SearchPath-1: .\n"
17
 
18
+ #: libs/blockcountry-settings.php:91
19
  msgid ""
20
  "Check which country belongs to an IP Address according to the current "
21
  "database."
22
  msgstr ""
23
 
24
+ #: libs/blockcountry-settings.php:95
25
  msgid "IP Address to check:"
26
  msgstr ""
27
 
28
+ #: libs/blockcountry-settings.php:105
29
  msgid "No country for"
30
  msgstr ""
31
 
32
+ #: libs/blockcountry-settings.php:105
33
  msgid "could be found. Or"
34
  msgstr ""
35
 
36
+ #: libs/blockcountry-settings.php:105
37
  msgid "is not a valid IPv4 or IPv6 IP address"
38
  msgstr ""
39
 
40
+ #: libs/blockcountry-settings.php:110
41
  msgid "IP Adress"
42
  msgstr ""
43
 
44
+ #: libs/blockcountry-settings.php:110
45
  msgid "belongs to"
46
  msgstr ""
47
 
48
+ #: libs/blockcountry-settings.php:113
49
  msgid "This country is not permitted to visit the frontend of this website."
50
  msgstr ""
51
 
52
+ #: libs/blockcountry-settings.php:118
53
  msgid "This country is not permitted to visit the backend of this website."
54
  msgstr ""
55
 
56
+ #: libs/blockcountry-settings.php:124
57
  msgid "Check IP address"
58
  msgstr ""
59
 
60
+ #: libs/blockcountry-settings.php:137
61
  msgid "The GeoIP database is updated once a month. Last update: "
62
  msgstr ""
63
 
64
+ #: libs/blockcountry-settings.php:138
65
  msgid "If you need a manual update please press buttons below to update."
66
  msgstr ""
67
 
68
+ #: libs/blockcountry-settings.php:144
69
  msgid "Download new GeoIP IPv4 Database"
70
  msgstr ""
71
 
72
+ #: libs/blockcountry-settings.php:151
73
  msgid "Download new GeoIP IPv6 Database"
74
  msgstr ""
75
 
76
+ #: libs/blockcountry-settings.php:156 libs/blockcountry-settings.php:160
77
  msgid "Downloading..."
78
  msgstr ""
79
 
80
+ #: libs/blockcountry-settings.php:174
81
+ msgid "Export"
82
+ msgstr ""
83
+
84
+ #: libs/blockcountry-settings.php:175
85
+ msgid ""
86
+ "When you click on <tt>Backup all settings</tt> button a backup of the iQ "
87
+ "Block Country configuration will be created."
88
+ msgstr ""
89
+
90
+ #: libs/blockcountry-settings.php:176
91
+ msgid ""
92
+ "After exporting, you can either use the backup file to restore your settings "
93
+ "on this site again or copy the settings to another WordPress site."
94
+ msgstr ""
95
+
96
+ #: libs/blockcountry-settings.php:180
97
+ msgid "Backup all settings"
98
+ msgstr ""
99
+
100
+ #: libs/blockcountry-settings.php:187
101
+ msgid "Import"
102
+ msgstr ""
103
+
104
+ #: libs/blockcountry-settings.php:188
105
+ msgid "Click the browse button and choose a zip file that you exported before."
106
+ msgstr ""
107
+
108
+ #: libs/blockcountry-settings.php:189
109
+ msgid "Press Restore settings button, and let WordPress do the magic for you."
110
+ msgstr ""
111
+
112
+ #: libs/blockcountry-settings.php:194
113
+ msgid "Restore settings"
114
+ msgstr ""
115
+
116
+ #: libs/blockcountry-settings.php:218 libs/blockcountry-settings.php:221
117
+ #: libs/blockcountry-settings.php:230
118
+ msgid "Something went wrong exporting this file"
119
+ msgstr ""
120
+
121
+ #: libs/blockcountry-settings.php:233
122
+ msgid "Exporting settings..."
123
+ msgstr ""
124
+
125
+ #: libs/blockcountry-settings.php:248
126
+ msgid "Something went wrong importing this file"
127
+ msgstr ""
128
+
129
+ #: libs/blockcountry-settings.php:265
130
+ msgid "All options are restored successfully."
131
+ msgstr ""
132
+
133
+ #: libs/blockcountry-settings.php:268
134
+ msgid "Invalid file."
135
+ msgstr ""
136
+
137
+ #: libs/blockcountry-settings.php:273
138
+ msgid "No correct import or export option given."
139
+ msgstr ""
140
+
141
+ #: libs/blockcountry-settings.php:282
142
  msgid "Select which pages are blocked."
143
  msgstr ""
144
 
145
+ #: libs/blockcountry-settings.php:289
146
  msgid "Do you want to block individual pages:"
147
  msgstr ""
148
 
149
+ #: libs/blockcountry-settings.php:290
150
  msgid "If you do not select this option all pages will be blocked."
151
  msgstr ""
152
 
153
+ #: libs/blockcountry-settings.php:295
154
  msgid "Select pages you want to block:"
155
  msgstr ""
156
 
157
+ #: libs/blockcountry-settings.php:317 libs/blockcountry-settings.php:472
158
  msgid "Save Changes"
159
  msgstr ""
160
 
161
+ #: libs/blockcountry-settings.php:333
162
  msgid "Statistics"
163
  msgstr ""
164
 
165
+ #: libs/blockcountry-settings.php:336
166
  msgid "visitors blocked from the backend."
167
  msgstr ""
168
 
169
+ #: libs/blockcountry-settings.php:338
170
  msgid "visitors blocked from the frontend."
171
  msgstr ""
172
 
173
+ #: libs/blockcountry-settings.php:342
174
  msgid "Basic Options"
175
  msgstr ""
176
 
177
+ #: libs/blockcountry-settings.php:377
178
  msgid "Message to display when people are blocked:"
179
  msgstr ""
180
 
181
+ #: libs/blockcountry-settings.php:387
182
  msgid "Do not block users that are logged in from visiting frontend website:"
183
  msgstr ""
184
 
185
+ #: libs/blockcountry-settings.php:393
186
  msgid "Block users from visiting the frontend of your website:"
187
  msgstr ""
188
 
189
+ #: libs/blockcountry-settings.php:399
190
  msgid ""
191
  "Select the countries that should be blocked from visiting your frontend:"
192
  msgstr ""
193
 
194
+ #: libs/blockcountry-settings.php:400
195
  msgid "Use the CTRL key to select multiple countries"
196
  msgstr ""
197
 
198
+ #: libs/blockcountry-settings.php:416
199
  msgid "Frontend whitelist IPv4 and/or IPv6 addresses:"
200
  msgstr ""
201
 
202
+ #: libs/blockcountry-settings.php:416 libs/blockcountry-settings.php:424
203
  msgid "Use a semicolon (;) to separate IP addresses"
204
  msgstr ""
205
 
206
+ #: libs/blockcountry-settings.php:424
207
  msgid "Frontend blacklist IPv4 and/or IPv6 addresses:"
208
  msgstr ""
209
 
210
+ #: libs/blockcountry-settings.php:432
211
  msgid "Block users from visiting the backend (administrator) of your website:"
212
  msgstr ""
213
 
214
+ #: libs/blockcountry-settings.php:439
215
  msgid "Your IP address is"
216
  msgstr ""
217
 
218
+ #: libs/blockcountry-settings.php:439
219
  msgid "The country that is listed for this IP address is"
220
  msgstr ""
221
 
222
+ #: libs/blockcountry-settings.php:440
223
  msgid ""
224
  "Do <strong>NOT</strong> set the 'Block users from visiting the backend "
225
  "(administrator) of your website' and also select"
226
  msgstr ""
227
 
228
+ #: libs/blockcountry-settings.php:440
229
  msgid "below."
230
  msgstr ""
231
 
232
+ #: libs/blockcountry-settings.php:441
233
  msgid ""
234
  "You will NOT be able to login the next time if you DO block your own country "
235
  "from visiting the backend."
236
  msgstr ""
237
 
238
+ #: libs/blockcountry-settings.php:446
239
  msgid "Select the countries that should be blocked from visiting your backend:"
240
  msgstr ""
241
 
242
+ #: libs/blockcountry-settings.php:447
243
  msgid "Use the x behind the country to remove a country from this blocklist."
244
  msgstr ""
245
 
246
+ #: libs/blockcountry-settings.php:464
247
  msgid "Send headers when user is blocked:"
248
  msgstr ""
249
 
250
+ #: libs/blockcountry-settings.php:465
251
  msgid ""
252
  "Under normal circumstances you should keep this selected! Only if you have "
253
  "\"Cannot modify header information - headers already sent\" errors or if you "
254
  "know what you are doing uncheck this."
255
  msgstr ""
256
 
257
+ #: libs/blockcountry-settings.php:496
258
  msgid "Last 15 blocked visits"
259
  msgstr ""
260
 
261
+ #: libs/blockcountry-settings.php:504
262
  msgid "Date / Time"
263
  msgstr ""
264
 
265
+ #: libs/blockcountry-settings.php:504 libs/blockcountry-settings.php:536
266
  msgid "IP Address"
267
  msgstr ""
268
 
269
+ #: libs/blockcountry-settings.php:504 libs/blockcountry-settings.php:536
270
  msgid "Hostname"
271
  msgstr ""
272
 
273
+ #: libs/blockcountry-settings.php:504 libs/blockcountry-settings.php:547
274
  msgid "URL"
275
  msgstr ""
276
 
277
+ #: libs/blockcountry-settings.php:504 libs/blockcountry-settings.php:523
278
  msgid "Country"
279
  msgstr ""
280
 
281
+ #: libs/blockcountry-settings.php:504
282
  msgid "Frontend/Backend"
283
  msgstr ""
284
 
285
+ #: libs/blockcountry-settings.php:514
286
  msgid "Frontend"
287
  msgstr ""
288
 
289
+ #: libs/blockcountry-settings.php:514
290
  msgid "Backend"
291
  msgstr ""
292
 
293
+ #: libs/blockcountry-settings.php:521
294
  msgid "Top countries that are blocked"
295
  msgstr ""
296
 
297
+ #: libs/blockcountry-settings.php:523 libs/blockcountry-settings.php:536
298
+ #: libs/blockcountry-settings.php:547
299
  msgid "# of blocked attempts"
300
  msgstr ""
301
 
302
+ #: libs/blockcountry-settings.php:534
303
  msgid "Top hosts that are blocked"
304
  msgstr ""
305
 
306
+ #: libs/blockcountry-settings.php:545
307
  msgid "Top URLs that are blocked"
308
  msgstr ""
309
 
310
+ #: libs/blockcountry-settings.php:574
311
  msgid "Home"
312
  msgstr ""
313
 
314
+ #: libs/blockcountry-settings.php:575
315
  msgid "Pages"
316
  msgstr ""
317
 
318
+ #: libs/blockcountry-settings.php:576
319
  msgid "Tools."
320
  msgstr ""
321
 
322
+ #: libs/blockcountry-settings.php:577
323
  msgid "Logging"
324
  msgstr ""
325
 
326
+ #: libs/blockcountry-settings.php:578
327
+ msgid "Import/Export"
328
+ msgstr ""
329
+
330
+ #: libs/blockcountry-settings.php:615
331
  msgid "GeoIP database does not exists. Trying to download it..."
332
  msgstr ""
333
 
lang/iqblockcountry-nl_NL.mo CHANGED
Binary file
lang/iqblockcountry-nl_NL.po CHANGED
@@ -1,11 +1,11 @@
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: iQ Block Country\n"
4
- "POT-Creation-Date: 2014-01-12 10:57+0100\n"
5
- "PO-Revision-Date: 2014-01-12 10:58+0100\n"
6
  "Last-Translator: \n"
7
  "Language-Team: iQ Block Country <info@redeo.nl>\n"
8
- "Language: English\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
@@ -15,163 +15,233 @@ msgstr ""
15
  "X-Poedit-SearchPath-0: libs\n"
16
  "X-Poedit-SearchPath-1: .\n"
17
 
18
- #: libs/blockcountry-settings.php:78
19
  msgid ""
20
  "Check which country belongs to an IP Address according to the current "
21
  "database."
22
  msgstr ""
23
  "Controleer welk land behoort tot een IP adres volgens de huidige database."
24
 
25
- #: libs/blockcountry-settings.php:82
26
  msgid "IP Address to check:"
27
  msgstr "IP adres om te controleren:"
28
 
29
- #: libs/blockcountry-settings.php:92
30
  msgid "No country for"
31
  msgstr "Geen land voor"
32
 
33
- #: libs/blockcountry-settings.php:92
34
  msgid "could be found. Or"
35
  msgstr "gevonden. Of"
36
 
37
- #: libs/blockcountry-settings.php:92
38
  msgid "is not a valid IPv4 or IPv6 IP address"
39
  msgstr "is geen valide IPv4 of IPv6 ip adres."
40
 
41
- #: libs/blockcountry-settings.php:97
42
  msgid "IP Adress"
43
  msgstr "IP Adres"
44
 
45
- #: libs/blockcountry-settings.php:97
46
  msgid "belongs to"
47
  msgstr "behoort tot"
48
 
49
- #: libs/blockcountry-settings.php:100
50
  msgid "This country is not permitted to visit the frontend of this website."
51
  msgstr ""
52
  "Dit land wordt niet toegestaan om de voorkant van deze website te bezoeken."
53
 
54
- #: libs/blockcountry-settings.php:105
55
  msgid "This country is not permitted to visit the backend of this website."
56
  msgstr ""
57
  "Dit land wordt niet toegestaan om de achterkant van deze website te bezoeken."
58
 
59
- #: libs/blockcountry-settings.php:111
60
  msgid "Check IP address"
61
  msgstr "Controleer IP adres"
62
 
63
- #: libs/blockcountry-settings.php:124
64
  msgid "The GeoIP database is updated once a month. Last update: "
65
  msgstr ""
66
  "De GeoIP database wordt eenmaal per maand bijgewerkt. Laatste keer "
67
  "bijgewerkt:"
68
 
69
- #: libs/blockcountry-settings.php:125
70
  msgid "If you need a manual update please press buttons below to update."
71
  msgstr "Indien je handmatig wilt bijwerken druk je op de knoppen hier beneden."
72
 
73
- #: libs/blockcountry-settings.php:131
74
  msgid "Download new GeoIP IPv4 Database"
75
  msgstr "Download nieuwe GeoIP IPv4 database"
76
 
77
- #: libs/blockcountry-settings.php:138
78
  msgid "Download new GeoIP IPv6 Database"
79
  msgstr "Download nieuwe GeoIP IPv6 database"
80
 
81
- #: libs/blockcountry-settings.php:143 libs/blockcountry-settings.php:147
82
  msgid "Downloading..."
83
  msgstr "Downloading..."
84
 
85
- #: libs/blockcountry-settings.php:155
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
86
  msgid "Select which pages are blocked."
87
  msgstr "Selecteer welke pagina's geblokkeerd worden."
88
 
89
- #: libs/blockcountry-settings.php:162
90
  msgid "Do you want to block individual pages:"
91
  msgstr "Wil je individuele pagina's blokkeren:"
92
 
93
- #: libs/blockcountry-settings.php:163
94
  msgid "If you do not select this option all pages will be blocked."
95
  msgstr "Indien je deze optie niet selecteert worden alle pagina's geblokkeerd."
96
 
97
- #: libs/blockcountry-settings.php:168
98
  msgid "Select pages you want to block:"
99
  msgstr "Selecteer welke pagina's je wil blokkeren."
100
 
101
- #: libs/blockcountry-settings.php:189 libs/blockcountry-settings.php:344
102
  msgid "Save Changes"
103
  msgstr "Bewaar wijzigingen"
104
 
105
- #: libs/blockcountry-settings.php:205
106
  msgid "Statistics"
107
  msgstr "Statistieken"
108
 
109
- #: libs/blockcountry-settings.php:208
110
  msgid "visitors blocked from the backend."
111
  msgstr "bezoekers geblokkeerd op de achterkant."
112
 
113
- #: libs/blockcountry-settings.php:210
114
  msgid "visitors blocked from the frontend."
115
  msgstr "bezoekers geblokkeerd op de voorkant."
116
 
117
- #: libs/blockcountry-settings.php:214
118
  msgid "Basic Options"
119
  msgstr "Standaard opties"
120
 
121
- #: libs/blockcountry-settings.php:249
122
  msgid "Message to display when people are blocked:"
123
  msgstr "Welk bericht wil je tonen aan bezoekers welke geblokkeerd worden:"
124
 
125
- #: libs/blockcountry-settings.php:259
126
  msgid "Do not block users that are logged in from visiting frontend website:"
127
  msgstr ""
128
  "Blokkeer geen gebruikers welke ingelogd zijn van het bezoeken van de "
129
  "voorkant:"
130
 
131
- #: libs/blockcountry-settings.php:265
132
  msgid "Block users from visiting the frontend of your website:"
133
  msgstr "Blokkeer gebruikers van het bezoeken van de voorkant van je website:"
134
 
135
- #: libs/blockcountry-settings.php:271
136
  msgid ""
137
  "Select the countries that should be blocked from visiting your frontend:"
138
  msgstr ""
139
  "Selecteer de landen welke geblokkeerd moeten worden voor het bezoeken van de "
140
  "voorkant van je website:"
141
 
142
- #: libs/blockcountry-settings.php:272
143
  msgid "Use the CTRL key to select multiple countries"
144
  msgstr "Gebruik de CTRL toets om meerdere landen te selecteren"
145
 
146
- #: libs/blockcountry-settings.php:288
147
  msgid "Frontend whitelist IPv4 and/or IPv6 addresses:"
148
  msgstr ""
149
  "Whitelist van IPv4 of IPv6 IP adressen voor de voorkant van je website:"
150
 
151
- #: libs/blockcountry-settings.php:288 libs/blockcountry-settings.php:296
152
  msgid "Use a semicolon (;) to separate IP addresses"
153
  msgstr "Gebruik een puntkomma (;) om adressen van elkaar te scheiden"
154
 
155
- #: libs/blockcountry-settings.php:296
156
  msgid "Frontend blacklist IPv4 and/or IPv6 addresses:"
157
  msgstr ""
158
  "Blacklist van IPv4 of IPv6 IP adressen voor de voorkant van je website:"
159
 
160
- #: libs/blockcountry-settings.php:304
161
  msgid "Block users from visiting the backend (administrator) of your website:"
162
  msgstr ""
163
  "Blokkeer gebruikers van het bezoeken van de achterkant (administratie "
164
  "gedeelte) van je website:"
165
 
166
- #: libs/blockcountry-settings.php:311
167
  msgid "Your IP address is"
168
  msgstr "Je IP adres is"
169
 
170
- #: libs/blockcountry-settings.php:311
171
  msgid "The country that is listed for this IP address is"
172
  msgstr "Het land waar dit adres toe behoort is"
173
 
174
- #: libs/blockcountry-settings.php:312
175
  msgid ""
176
  "Do <strong>NOT</strong> set the 'Block users from visiting the backend "
177
  "(administrator) of your website' and also select"
@@ -179,11 +249,11 @@ msgstr ""
179
  "Selecteer <strong>NIET</strong> \"Blokkeer gebruikers van het bezoeken van "
180
  "de achterkant (administratie gedeelte) van je website\" en"
181
 
182
- #: libs/blockcountry-settings.php:312
183
  msgid "below."
184
  msgstr "hier beneden."
185
 
186
- #: libs/blockcountry-settings.php:313
187
  msgid ""
188
  "You will NOT be able to login the next time if you DO block your own country "
189
  "from visiting the backend."
@@ -191,22 +261,22 @@ msgstr ""
191
  "Het zal daarna niet meer mogelijk zijn om nog in te loggen als je je eigen "
192
  "land blokkeert van het bezoeken van de achterkant van je website."
193
 
194
- #: libs/blockcountry-settings.php:318
195
  msgid "Select the countries that should be blocked from visiting your backend:"
196
  msgstr ""
197
  "Selecteer de landen welke geblokkeerd moeten worden voor het bezoeken van de "
198
  "achterkant (administratie gedeelte) van je website:"
199
 
200
- #: libs/blockcountry-settings.php:319
201
  msgid "Use the x behind the country to remove a country from this blocklist."
202
  msgstr ""
203
  "Gebruik de x achter een land om het land te verwijderen uit deze lijst."
204
 
205
- #: libs/blockcountry-settings.php:336
206
  msgid "Send headers when user is blocked:"
207
  msgstr "Stuur headers wanneer een gebruiker is geblokkeerd:"
208
 
209
- #: libs/blockcountry-settings.php:337
210
  msgid ""
211
  "Under normal circumstances you should keep this selected! Only if you have "
212
  "\"Cannot modify header information - headers already sent\" errors or if you "
@@ -216,76 +286,80 @@ msgstr ""
216
  "deze alleen indien je \"Cannot modify header information - headers already "
217
  "sent\" foutmeldingen krijgt of indien je weet wat je doet."
218
 
219
- #: libs/blockcountry-settings.php:368
220
  msgid "Last 15 blocked visits"
221
  msgstr "Laatste 15 geblokkeerde bezoekers"
222
 
223
- #: libs/blockcountry-settings.php:376
224
  msgid "Date / Time"
225
  msgstr "Datum / Tijd"
226
 
227
- #: libs/blockcountry-settings.php:376 libs/blockcountry-settings.php:408
228
  msgid "IP Address"
229
  msgstr "IP adres"
230
 
231
- #: libs/blockcountry-settings.php:376 libs/blockcountry-settings.php:408
232
  msgid "Hostname"
233
  msgstr "Hostnaam"
234
 
235
- #: libs/blockcountry-settings.php:376 libs/blockcountry-settings.php:419
236
  msgid "URL"
237
  msgstr "URL"
238
 
239
- #: libs/blockcountry-settings.php:376 libs/blockcountry-settings.php:395
240
  msgid "Country"
241
  msgstr "Land"
242
 
243
- #: libs/blockcountry-settings.php:376
244
  msgid "Frontend/Backend"
245
  msgstr "Voorkant/Achterkant"
246
 
247
- #: libs/blockcountry-settings.php:386
248
  msgid "Frontend"
249
  msgstr "Voorkant"
250
 
251
- #: libs/blockcountry-settings.php:386
252
  msgid "Backend"
253
  msgstr "Achterkant"
254
 
255
- #: libs/blockcountry-settings.php:393
256
  msgid "Top countries that are blocked"
257
  msgstr "Top landen welke zijn geblokkeerd"
258
 
259
- #: libs/blockcountry-settings.php:395 libs/blockcountry-settings.php:408
260
- #: libs/blockcountry-settings.php:419
261
  msgid "# of blocked attempts"
262
  msgstr "# of geblokkeerde pogingen"
263
 
264
- #: libs/blockcountry-settings.php:406
265
  msgid "Top hosts that are blocked"
266
  msgstr "Top hosts welke geblokkeerd zijn"
267
 
268
- #: libs/blockcountry-settings.php:417
269
  msgid "Top URLs that are blocked"
270
  msgstr "Top URLs welke geblokkeerd zijn"
271
 
272
- #: libs/blockcountry-settings.php:446
273
  msgid "Home"
274
  msgstr "Home"
275
 
276
- #: libs/blockcountry-settings.php:447
277
  msgid "Pages"
278
  msgstr "Pagina's"
279
 
280
- #: libs/blockcountry-settings.php:448
281
  msgid "Tools."
282
  msgstr "Gereedschap"
283
 
284
- #: libs/blockcountry-settings.php:449
285
  msgid "Logging"
286
  msgstr "Statistieken"
287
 
288
- #: libs/blockcountry-settings.php:482
 
 
 
 
289
  msgid "GeoIP database does not exists. Trying to download it..."
290
  msgstr "GeoIP database bestaat niet. Probeer om nieuwe versie te downloaden"
291
 
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: iQ Block Country\n"
4
+ "POT-Creation-Date: 2014-02-11 20:52+0100\n"
5
+ "PO-Revision-Date: 2014-02-11 21:47+0100\n"
6
  "Last-Translator: \n"
7
  "Language-Team: iQ Block Country <info@redeo.nl>\n"
8
+ "Language: Dutch\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
15
  "X-Poedit-SearchPath-0: libs\n"
16
  "X-Poedit-SearchPath-1: .\n"
17
 
18
+ #: libs/blockcountry-settings.php:91
19
  msgid ""
20
  "Check which country belongs to an IP Address according to the current "
21
  "database."
22
  msgstr ""
23
  "Controleer welk land behoort tot een IP adres volgens de huidige database."
24
 
25
+ #: libs/blockcountry-settings.php:95
26
  msgid "IP Address to check:"
27
  msgstr "IP adres om te controleren:"
28
 
29
+ #: libs/blockcountry-settings.php:105
30
  msgid "No country for"
31
  msgstr "Geen land voor"
32
 
33
+ #: libs/blockcountry-settings.php:105
34
  msgid "could be found. Or"
35
  msgstr "gevonden. Of"
36
 
37
+ #: libs/blockcountry-settings.php:105
38
  msgid "is not a valid IPv4 or IPv6 IP address"
39
  msgstr "is geen valide IPv4 of IPv6 ip adres."
40
 
41
+ #: libs/blockcountry-settings.php:110
42
  msgid "IP Adress"
43
  msgstr "IP Adres"
44
 
45
+ #: libs/blockcountry-settings.php:110
46
  msgid "belongs to"
47
  msgstr "behoort tot"
48
 
49
+ #: libs/blockcountry-settings.php:113
50
  msgid "This country is not permitted to visit the frontend of this website."
51
  msgstr ""
52
  "Dit land wordt niet toegestaan om de voorkant van deze website te bezoeken."
53
 
54
+ #: libs/blockcountry-settings.php:118
55
  msgid "This country is not permitted to visit the backend of this website."
56
  msgstr ""
57
  "Dit land wordt niet toegestaan om de achterkant van deze website te bezoeken."
58
 
59
+ #: libs/blockcountry-settings.php:124
60
  msgid "Check IP address"
61
  msgstr "Controleer IP adres"
62
 
63
+ #: libs/blockcountry-settings.php:137
64
  msgid "The GeoIP database is updated once a month. Last update: "
65
  msgstr ""
66
  "De GeoIP database wordt eenmaal per maand bijgewerkt. Laatste keer "
67
  "bijgewerkt:"
68
 
69
+ #: libs/blockcountry-settings.php:138
70
  msgid "If you need a manual update please press buttons below to update."
71
  msgstr "Indien je handmatig wilt bijwerken druk je op de knoppen hier beneden."
72
 
73
+ #: libs/blockcountry-settings.php:144
74
  msgid "Download new GeoIP IPv4 Database"
75
  msgstr "Download nieuwe GeoIP IPv4 database"
76
 
77
+ #: libs/blockcountry-settings.php:151
78
  msgid "Download new GeoIP IPv6 Database"
79
  msgstr "Download nieuwe GeoIP IPv6 database"
80
 
81
+ #: libs/blockcountry-settings.php:156 libs/blockcountry-settings.php:160
82
  msgid "Downloading..."
83
  msgstr "Downloading..."
84
 
85
+ #: libs/blockcountry-settings.php:174
86
+ msgid "Export"
87
+ msgstr "Exporteren"
88
+
89
+ #: libs/blockcountry-settings.php:175
90
+ msgid ""
91
+ "When you click on <tt>Backup all settings</tt> button a backup of the iQ "
92
+ "Block Country configuration will be created."
93
+ msgstr ""
94
+ "Wanneer je klikt op de <tt>Backup alle instellingen</tt> knop zal een backup "
95
+ "van alle iQ Block Country instellingen worden gecreerd."
96
+
97
+ #: libs/blockcountry-settings.php:176
98
+ msgid ""
99
+ "After exporting, you can either use the backup file to restore your settings "
100
+ "on this site again or copy the settings to another WordPress site."
101
+ msgstr ""
102
+ "Na het exporteren kun je de backup gebruiken om je instellingen op deze site "
103
+ "te herstellen of je kunt het bestand gebruiken om je instellingen naar een "
104
+ "andere WordPress site te exporteren."
105
+
106
+ #: libs/blockcountry-settings.php:180
107
+ msgid "Backup all settings"
108
+ msgstr "Backup alle instellingen"
109
+
110
+ #: libs/blockcountry-settings.php:187
111
+ msgid "Import"
112
+ msgstr "Importeer"
113
+
114
+ #: libs/blockcountry-settings.php:188
115
+ msgid "Click the browse button and choose a zip file that you exported before."
116
+ msgstr ""
117
+ "Klik op de Browse button and selecteer een zip file welke je eerder hebt "
118
+ "geexporteerd."
119
+
120
+ #: libs/blockcountry-settings.php:189
121
+ msgid "Press Restore settings button, and let WordPress do the magic for you."
122
+ msgstr ""
123
+ "Druk op de herstel instellingen knop en laat WordPress haar magie voor je "
124
+ "doen."
125
+
126
+ #: libs/blockcountry-settings.php:194
127
+ msgid "Restore settings"
128
+ msgstr "Herstel instellingen"
129
+
130
+ #: libs/blockcountry-settings.php:218 libs/blockcountry-settings.php:221
131
+ #: libs/blockcountry-settings.php:230
132
+ msgid "Something went wrong exporting this file"
133
+ msgstr "Er is iets verkeerd gegaan met het exporteren van het bestand."
134
+
135
+ #: libs/blockcountry-settings.php:233
136
+ msgid "Exporting settings..."
137
+ msgstr "Exporteer instellingen"
138
+
139
+ #: libs/blockcountry-settings.php:248
140
+ msgid "Something went wrong importing this file"
141
+ msgstr "Er is iets verkeerd gegaan met het importeren van dit bestand"
142
+
143
+ #: libs/blockcountry-settings.php:265
144
+ msgid "All options are restored successfully."
145
+ msgstr "Alle opties zijn succesvol hersteld"
146
+
147
+ #: libs/blockcountry-settings.php:268
148
+ msgid "Invalid file."
149
+ msgstr "Ongeldig bestand"
150
+
151
+ #: libs/blockcountry-settings.php:273
152
+ msgid "No correct import or export option given."
153
+ msgstr "Geen correcte importeer of exporteer optie gegeven."
154
+
155
+ #: libs/blockcountry-settings.php:282
156
  msgid "Select which pages are blocked."
157
  msgstr "Selecteer welke pagina's geblokkeerd worden."
158
 
159
+ #: libs/blockcountry-settings.php:289
160
  msgid "Do you want to block individual pages:"
161
  msgstr "Wil je individuele pagina's blokkeren:"
162
 
163
+ #: libs/blockcountry-settings.php:290
164
  msgid "If you do not select this option all pages will be blocked."
165
  msgstr "Indien je deze optie niet selecteert worden alle pagina's geblokkeerd."
166
 
167
+ #: libs/blockcountry-settings.php:295
168
  msgid "Select pages you want to block:"
169
  msgstr "Selecteer welke pagina's je wil blokkeren."
170
 
171
+ #: libs/blockcountry-settings.php:317 libs/blockcountry-settings.php:472
172
  msgid "Save Changes"
173
  msgstr "Bewaar wijzigingen"
174
 
175
+ #: libs/blockcountry-settings.php:333
176
  msgid "Statistics"
177
  msgstr "Statistieken"
178
 
179
+ #: libs/blockcountry-settings.php:336
180
  msgid "visitors blocked from the backend."
181
  msgstr "bezoekers geblokkeerd op de achterkant."
182
 
183
+ #: libs/blockcountry-settings.php:338
184
  msgid "visitors blocked from the frontend."
185
  msgstr "bezoekers geblokkeerd op de voorkant."
186
 
187
+ #: libs/blockcountry-settings.php:342
188
  msgid "Basic Options"
189
  msgstr "Standaard opties"
190
 
191
+ #: libs/blockcountry-settings.php:377
192
  msgid "Message to display when people are blocked:"
193
  msgstr "Welk bericht wil je tonen aan bezoekers welke geblokkeerd worden:"
194
 
195
+ #: libs/blockcountry-settings.php:387
196
  msgid "Do not block users that are logged in from visiting frontend website:"
197
  msgstr ""
198
  "Blokkeer geen gebruikers welke ingelogd zijn van het bezoeken van de "
199
  "voorkant:"
200
 
201
+ #: libs/blockcountry-settings.php:393
202
  msgid "Block users from visiting the frontend of your website:"
203
  msgstr "Blokkeer gebruikers van het bezoeken van de voorkant van je website:"
204
 
205
+ #: libs/blockcountry-settings.php:399
206
  msgid ""
207
  "Select the countries that should be blocked from visiting your frontend:"
208
  msgstr ""
209
  "Selecteer de landen welke geblokkeerd moeten worden voor het bezoeken van de "
210
  "voorkant van je website:"
211
 
212
+ #: libs/blockcountry-settings.php:400
213
  msgid "Use the CTRL key to select multiple countries"
214
  msgstr "Gebruik de CTRL toets om meerdere landen te selecteren"
215
 
216
+ #: libs/blockcountry-settings.php:416
217
  msgid "Frontend whitelist IPv4 and/or IPv6 addresses:"
218
  msgstr ""
219
  "Whitelist van IPv4 of IPv6 IP adressen voor de voorkant van je website:"
220
 
221
+ #: libs/blockcountry-settings.php:416 libs/blockcountry-settings.php:424
222
  msgid "Use a semicolon (;) to separate IP addresses"
223
  msgstr "Gebruik een puntkomma (;) om adressen van elkaar te scheiden"
224
 
225
+ #: libs/blockcountry-settings.php:424
226
  msgid "Frontend blacklist IPv4 and/or IPv6 addresses:"
227
  msgstr ""
228
  "Blacklist van IPv4 of IPv6 IP adressen voor de voorkant van je website:"
229
 
230
+ #: libs/blockcountry-settings.php:432
231
  msgid "Block users from visiting the backend (administrator) of your website:"
232
  msgstr ""
233
  "Blokkeer gebruikers van het bezoeken van de achterkant (administratie "
234
  "gedeelte) van je website:"
235
 
236
+ #: libs/blockcountry-settings.php:439
237
  msgid "Your IP address is"
238
  msgstr "Je IP adres is"
239
 
240
+ #: libs/blockcountry-settings.php:439
241
  msgid "The country that is listed for this IP address is"
242
  msgstr "Het land waar dit adres toe behoort is"
243
 
244
+ #: libs/blockcountry-settings.php:440
245
  msgid ""
246
  "Do <strong>NOT</strong> set the 'Block users from visiting the backend "
247
  "(administrator) of your website' and also select"
249
  "Selecteer <strong>NIET</strong> \"Blokkeer gebruikers van het bezoeken van "
250
  "de achterkant (administratie gedeelte) van je website\" en"
251
 
252
+ #: libs/blockcountry-settings.php:440
253
  msgid "below."
254
  msgstr "hier beneden."
255
 
256
+ #: libs/blockcountry-settings.php:441
257
  msgid ""
258
  "You will NOT be able to login the next time if you DO block your own country "
259
  "from visiting the backend."
261
  "Het zal daarna niet meer mogelijk zijn om nog in te loggen als je je eigen "
262
  "land blokkeert van het bezoeken van de achterkant van je website."
263
 
264
+ #: libs/blockcountry-settings.php:446
265
  msgid "Select the countries that should be blocked from visiting your backend:"
266
  msgstr ""
267
  "Selecteer de landen welke geblokkeerd moeten worden voor het bezoeken van de "
268
  "achterkant (administratie gedeelte) van je website:"
269
 
270
+ #: libs/blockcountry-settings.php:447
271
  msgid "Use the x behind the country to remove a country from this blocklist."
272
  msgstr ""
273
  "Gebruik de x achter een land om het land te verwijderen uit deze lijst."
274
 
275
+ #: libs/blockcountry-settings.php:464
276
  msgid "Send headers when user is blocked:"
277
  msgstr "Stuur headers wanneer een gebruiker is geblokkeerd:"
278
 
279
+ #: libs/blockcountry-settings.php:465
280
  msgid ""
281
  "Under normal circumstances you should keep this selected! Only if you have "
282
  "\"Cannot modify header information - headers already sent\" errors or if you "
286
  "deze alleen indien je \"Cannot modify header information - headers already "
287
  "sent\" foutmeldingen krijgt of indien je weet wat je doet."
288
 
289
+ #: libs/blockcountry-settings.php:496
290
  msgid "Last 15 blocked visits"
291
  msgstr "Laatste 15 geblokkeerde bezoekers"
292
 
293
+ #: libs/blockcountry-settings.php:504
294
  msgid "Date / Time"
295
  msgstr "Datum / Tijd"
296
 
297
+ #: libs/blockcountry-settings.php:504 libs/blockcountry-settings.php:536
298
  msgid "IP Address"
299
  msgstr "IP adres"
300
 
301
+ #: libs/blockcountry-settings.php:504 libs/blockcountry-settings.php:536
302
  msgid "Hostname"
303
  msgstr "Hostnaam"
304
 
305
+ #: libs/blockcountry-settings.php:504 libs/blockcountry-settings.php:547
306
  msgid "URL"
307
  msgstr "URL"
308
 
309
+ #: libs/blockcountry-settings.php:504 libs/blockcountry-settings.php:523
310
  msgid "Country"
311
  msgstr "Land"
312
 
313
+ #: libs/blockcountry-settings.php:504
314
  msgid "Frontend/Backend"
315
  msgstr "Voorkant/Achterkant"
316
 
317
+ #: libs/blockcountry-settings.php:514
318
  msgid "Frontend"
319
  msgstr "Voorkant"
320
 
321
+ #: libs/blockcountry-settings.php:514
322
  msgid "Backend"
323
  msgstr "Achterkant"
324
 
325
+ #: libs/blockcountry-settings.php:521
326
  msgid "Top countries that are blocked"
327
  msgstr "Top landen welke zijn geblokkeerd"
328
 
329
+ #: libs/blockcountry-settings.php:523 libs/blockcountry-settings.php:536
330
+ #: libs/blockcountry-settings.php:547
331
  msgid "# of blocked attempts"
332
  msgstr "# of geblokkeerde pogingen"
333
 
334
+ #: libs/blockcountry-settings.php:534
335
  msgid "Top hosts that are blocked"
336
  msgstr "Top hosts welke geblokkeerd zijn"
337
 
338
+ #: libs/blockcountry-settings.php:545
339
  msgid "Top URLs that are blocked"
340
  msgstr "Top URLs welke geblokkeerd zijn"
341
 
342
+ #: libs/blockcountry-settings.php:574
343
  msgid "Home"
344
  msgstr "Home"
345
 
346
+ #: libs/blockcountry-settings.php:575
347
  msgid "Pages"
348
  msgstr "Pagina's"
349
 
350
+ #: libs/blockcountry-settings.php:576
351
  msgid "Tools."
352
  msgstr "Gereedschap"
353
 
354
+ #: libs/blockcountry-settings.php:577
355
  msgid "Logging"
356
  msgstr "Statistieken"
357
 
358
+ #: libs/blockcountry-settings.php:578
359
+ msgid "Import/Export"
360
+ msgstr "Importeren/Exporteren"
361
+
362
+ #: libs/blockcountry-settings.php:615
363
  msgid "GeoIP database does not exists. Trying to download it..."
364
  msgstr "GeoIP database bestaat niet. Probeer om nieuwe versie te downloaden"
365
 
libs/blockcountry-settings.php CHANGED
@@ -32,6 +32,19 @@ function iqblockcountry_register_mysettings()
32
  register_setting ( 'iqblockcountry-settings-group2', 'blockcountry_pages');
33
  }
34
 
 
 
 
 
 
 
 
 
 
 
 
 
 
35
  /*
36
  * Set default values when activating this plugin.
37
  */
@@ -150,6 +163,120 @@ function iqblockcountry_settings_tools() {
150
 
151
  }
152
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
153
  function iqblockcountry_settings_pages() {
154
  ?>
155
  <h3><?php _e('Select which pages are blocked.', 'iqblockcountry'); ?></h3>
@@ -448,6 +575,7 @@ function iqblockcountry_settings_page() {
448
  <a href="?page=iq-block-country/libs/blockcountry-settings.php&tab=pages" class="nav-tab <?php echo $active_tab == 'pages' ? 'nav-tab-active' : ''; ?>"><?php _e('Pages', 'iqblockcountry'); ?></a>
449
  <a href="?page=iq-block-country/libs/blockcountry-settings.php&tab=tools" class="nav-tab <?php echo $active_tab == 'tools' ? 'nav-tab-active' : ''; ?>"><?php _e('Tools.', 'iqblockcountry'); ?></a>
450
  <a href="?page=iq-block-country/libs/blockcountry-settings.php&tab=logging" class="nav-tab <?php echo $active_tab == 'logging' ? 'nav-tab-active' : ''; ?>"><?php _e('Logging', 'iqblockcountry'); ?></a>
 
451
  </h2>
452
 
453
 
@@ -468,6 +596,10 @@ function iqblockcountry_settings_page() {
468
  {
469
  iqblockcountry_settings_pages();
470
  }
 
 
 
 
471
  else
472
  {
473
  iqblockcountry_settings_home();
32
  register_setting ( 'iqblockcountry-settings-group2', 'blockcountry_pages');
33
  }
34
 
35
+ /**
36
+ * Retrieve an array of all the options the plugin uses. It can't use only one due to limitations of the options API.
37
+ *
38
+ * @return array of options.
39
+ */
40
+ function iqblockcountry_get_options_arr() {
41
+ $optarr = array( 'blockcountry_banlist', 'blockcountry_backendbanlist','blockcountry_backendblacklist','blockcountry_backendwhitelist',
42
+ 'blockcountry_frontendblacklist','blockcountry_frontendwhitelist','blockcountry_blockmessage','blockcountry_blocklogin','blockcountry_blockfrontend',
43
+ 'blockcountry_blockbackend','blockcountry_header','blockcountry_blockpages','blockcountry_pages');
44
+ return apply_filters( 'iqblockcountry_options', $optarr );
45
+ }
46
+
47
+
48
  /*
49
  * Set default values when activating this plugin.
50
  */
163
 
164
  }
165
 
166
+ /*
167
+ * Function: Import/Export settings
168
+ */
169
+ function iqblockcountry_settings_importexport() {
170
+ if (!isset($_POST['export']) && !isset($_POST['import'])) {
171
+ ?>
172
+ <div class="wrap">
173
+ <div id="icon-tools" class="icon32"><br /></div>
174
+ <h2><?php _e('Export', 'iqblockcountry'); ?></h2>
175
+ <p><?php _e('When you click on <tt>Backup all settings</tt> button a backup of the iQ Block Country configuration will be created.', 'iqblockcountry'); ?></p>
176
+ <p><?php _e('After exporting, you can either use the backup file to restore your settings on this site again or copy the settings to another WordPress site.', 'iqblockcountry'); ?></p>
177
+ <form method='post'>
178
+ <p class="submit">
179
+ <?php wp_nonce_field('iqblockexport'); ?>
180
+ <input type='submit' name='export' value='<?php _e('Backup all settings', 'iqblockcountry'); ?>'/>
181
+ </p>
182
+ </form>
183
+ </div>
184
+
185
+ <div class="wrap">
186
+ <div id="icon-tools" class="icon32"><br /></div>
187
+ <h2><?php _e('Import', 'iqblockcountry'); ?></h2>
188
+ <p><?php _e('Click the browse button and choose a zip file that you exported before.', 'iqblockcountry'); ?></p>
189
+ <p><?php _e('Press Restore settings button, and let WordPress do the magic for you.', 'iqblockcountry'); ?></p>
190
+ <form method='post' enctype='multipart/form-data'>
191
+ <p class="submit">
192
+ <?php wp_nonce_field('iqblockimport'); ?>
193
+ <input type='file' name='import' />
194
+ <input type='submit' name='import' value='<?php _e('Restore settings', 'iqblockcountry'); ?>'/>
195
+ </p>
196
+ </form>
197
+ </div>
198
+ <?php
199
+ }
200
+ elseif (isset($_POST['export'])) {
201
+
202
+ $blogname = str_replace(" ", "", get_option('blogname'));
203
+ $date = date("d-m-Y");
204
+ $json_name = $blogname."-".$date; // Namming the filename will be generated.
205
+
206
+ $optarr = iqblockcountry_get_options_arr();
207
+ foreach ( $optarr as $options ) {
208
+
209
+ $value = get_option($options);
210
+ $need_options[$options] = $value;
211
+ }
212
+
213
+ $json_file = json_encode($need_options); // Encode data into json data
214
+
215
+ $dir = wp_upload_dir();
216
+
217
+ if ( !$handle = fopen( $dir['path'] . '/' . 'iqblockcountry.ini', 'w' ) )
218
+ wp_die(__("Something went wrong exporting this file", 'iqblockcountry'));
219
+
220
+ if ( !fwrite( $handle, $json_file ) )
221
+ wp_die(__("Something went wrong exporting this file", 'iqblockcountry'));
222
+
223
+ fclose( $handle );
224
+
225
+ require_once( ABSPATH . 'wp-admin/includes/class-pclzip.php' );
226
+
227
+ chdir( $dir['path'] );
228
+ $zip = new PclZip( './' . $json_name . '-iqblockcountry.zip' );
229
+ if ( $zip->create( './' . 'iqblockcountry.ini' ) == 0 )
230
+ wp_die(__("Something went wrong exporting this file", 'iqblockcountry'));
231
+
232
+ $url = $dir['url'] . '/' . $json_name . '-iqblockcountry.zip';
233
+ $content = "<div class='updated'><p>" . __("Exporting settings...", 'iqblockcountry') . "</p></div>";
234
+
235
+ if ( $url ) {
236
+ $content .= '<script type="text/javascript">
237
+ document.location = \'' . $url . '\';
238
+ </script>';
239
+ } else {
240
+ $content .= 'Error: ' . $url;
241
+ }
242
+ echo $content;
243
+ }
244
+ elseif (isset($_POST['import'])) {
245
+ $optarr = iqblockcountry_get_options_arr();
246
+ if (isset($_FILES['import']) && check_admin_referer('iqblockimport')) {
247
+ if ($_FILES['import']['error'] > 0) {
248
+ wp_die(__("Something went wrong importing this file", 'iqblockcountry'));
249
+ }
250
+ else {
251
+ require_once( ABSPATH . 'wp-admin/includes/class-pclzip.php' );
252
+ $zip = new PclZip( $_FILES['import']['tmp_name'] );
253
+ $unzipped = $zip->extract( $p_path = WP_CONTENT_DIR . '/iqblockcountry-import/' );
254
+ if ( $unzipped[0]['stored_filename'] == 'iqblockcountry.ini' ) {
255
+ $encode_options = file_get_contents(WP_CONTENT_DIR . '/iqblockcountry-import/iqblockcountry.ini');
256
+ $options = json_decode($encode_options, true);
257
+ foreach ($options as $key => $value) {
258
+ if (in_array($key,$optarr)) {
259
+ update_option($key, $value);
260
+ }
261
+ }
262
+ unlink(WP_CONTENT_DIR . '/iqblockcountry-import/iqblockcountry.ini');
263
+ // check if file exists first.
264
+
265
+ echo "<div class='updated'><p>" . __("All options are restored successfully.", 'iqblockcountry') . "</p></div>";
266
+ }
267
+ else {
268
+ echo "<div class='error'><p>" . __("Invalid file.", 'iqblockcountry') ."</p></div>";
269
+ }
270
+ }
271
+ }
272
+ }
273
+ else { wp_die(__("No correct import or export option given.", 'iqblockcountry')); }
274
+
275
+ }
276
+
277
+ /*
278
+ * Function: Page settings
279
+ */
280
  function iqblockcountry_settings_pages() {
281
  ?>
282
  <h3><?php _e('Select which pages are blocked.', 'iqblockcountry'); ?></h3>
575
  <a href="?page=iq-block-country/libs/blockcountry-settings.php&tab=pages" class="nav-tab <?php echo $active_tab == 'pages' ? 'nav-tab-active' : ''; ?>"><?php _e('Pages', 'iqblockcountry'); ?></a>
576
  <a href="?page=iq-block-country/libs/blockcountry-settings.php&tab=tools" class="nav-tab <?php echo $active_tab == 'tools' ? 'nav-tab-active' : ''; ?>"><?php _e('Tools.', 'iqblockcountry'); ?></a>
577
  <a href="?page=iq-block-country/libs/blockcountry-settings.php&tab=logging" class="nav-tab <?php echo $active_tab == 'logging' ? 'nav-tab-active' : ''; ?>"><?php _e('Logging', 'iqblockcountry'); ?></a>
578
+ <a href="?page=iq-block-country/libs/blockcountry-settings.php&tab=export" class="nav-tab <?php echo $active_tab == 'export' ? 'nav-tab-active' : ''; ?>"><?php _e('Import/Export', 'iqblockcountry'); ?></a>
579
  </h2>
580
 
581
 
596
  {
597
  iqblockcountry_settings_pages();
598
  }
599
+ elseif ($active_tab == "export")
600
+ {
601
+ iqblockcountry_settings_importexport();
602
+ }
603
  else
604
  {
605
  iqblockcountry_settings_home();
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: iqpascal,williewonka
3
  Donate link: http://www.unicef.org/
4
  Tags: spam, block, countries, country, comments, ban, geo, geo blocking, geo ip, block country, block countries, ban countries, ban country, blacklist, whitelist
5
  Requires at least: 3.5.2
6
- Tested up to: 3.8
7
- Stable tag: 1.1.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -163,6 +163,11 @@ If this does not help you out deselect "Send headers when user is blocked". This
163
 
164
  == Changelog ==
165
 
 
 
 
 
 
166
  = 1.1.3 =
167
 
168
  * Fixed error that when using the option to block individual pages all visitors would be blocked. (Thanks to apostlepoe for reporting)
@@ -245,9 +250,3 @@ If this does not help you out deselect "Send headers when user is blocked". This
245
 
246
  = 1.0 =
247
  * Initial release
248
-
249
- == Upgrade Notice ==
250
-
251
- = 1.1.3 =
252
-
253
- * 1.1.3 Fix for page blocking problem. No further upgrade notices.
3
  Donate link: http://www.unicef.org/
4
  Tags: spam, block, countries, country, comments, ban, geo, geo blocking, geo ip, block country, block countries, ban countries, ban country, blacklist, whitelist
5
  Requires at least: 3.5.2
6
+ Tested up to: 3.8.1
7
+ Stable tag: 1.1.4
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
163
 
164
  == Changelog ==
165
 
166
+ = 1.1.4 =
167
+
168
+ * Added import/export function.
169
+ * Minor bugs solved
170
+
171
  = 1.1.3 =
172
 
173
  * Fixed error that when using the option to block individual pages all visitors would be blocked. (Thanks to apostlepoe for reporting)
250
 
251
  = 1.0 =
252
  * Initial release