iQ Block Country - Version 1.1.23

Version Description

  • Bugfix: Fixed bug if cURL was not present in PHP version
  • New: When local GeoIP database present it checks if database is not older than 3 months and alerts users in a non-intrusive way.
Download this release

Release Info

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

Code changes from version 1.1.22 to 1.1.23

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.22
6
  Author: Pascal
7
  Author URI: http://www.redeo.nl/
8
  Description: Block visitors from visiting your website and backend website based on which country their IP address is from. The Maxmind GeoIP lite database is used for looking up from which country an ip address is from.
@@ -264,7 +264,7 @@ if (isset($_POST['action']))
264
  exit();
265
  }
266
  }
267
-
268
  /*
269
  * Check first if users want to block the backend.
270
  */
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.23
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.
264
  exit();
265
  }
266
  }
267
+
268
  /*
269
  * Check first if users want to block the backend.
270
  */
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-10-02 15:01+0100\n"
5
- "PO-Revision-Date: 2015-10-02 15:01+0100\n"
6
  "Last-Translator: Pascal <pascal@redeo.nl>\n"
7
  "Language-Team: iQ Block Country <info@redeo.nl>\n"
8
  "Language: English\n"
@@ -142,8 +142,8 @@ msgstr ""
142
  msgid "Version"
143
  msgstr ""
144
 
145
- #: libs/blockcountry-settings.php:285 libs/blockcountry-settings.php:1310
146
- #: libs/blockcountry-settings.php:1353
147
  msgid "URL"
148
  msgstr ""
149
 
@@ -430,7 +430,7 @@ msgstr ""
430
  #: libs/blockcountry-settings.php:678 libs/blockcountry-settings.php:732
431
  #: libs/blockcountry-settings.php:780 libs/blockcountry-settings.php:825
432
  #: libs/blockcountry-settings.php:953 libs/blockcountry-settings.php:1085
433
- #: libs/blockcountry-settings.php:1278
434
  msgid "Save Changes"
435
  msgstr ""
436
 
@@ -584,94 +584,100 @@ msgstr ""
584
  msgid "Backend blacklist IPv4 and/or IPv6 addresses:"
585
  msgstr ""
586
 
587
- #: libs/blockcountry-settings.php:1106
 
 
 
 
 
 
588
  msgid "Overall statistics since start"
589
  msgstr ""
590
 
591
- #: libs/blockcountry-settings.php:1109
592
  msgid "visitors blocked from the backend."
593
  msgstr ""
594
 
595
- #: libs/blockcountry-settings.php:1111
596
  msgid "visitors blocked from the frontend."
597
  msgstr ""
598
 
599
- #: libs/blockcountry-settings.php:1115
600
  msgid "Basic Options"
601
  msgstr ""
602
 
603
- #: libs/blockcountry-settings.php:1150
604
  msgid "Message to display when people are blocked:"
605
  msgstr ""
606
 
607
- #: libs/blockcountry-settings.php:1161
608
  msgid "Page to redirect to:"
609
  msgstr ""
610
 
611
- #: libs/blockcountry-settings.php:1162
612
  msgid ""
613
  "If you select a page here blocked visitors will be redirected to this page "
614
  "instead of displaying above block message."
615
  msgstr ""
616
 
617
- #: libs/blockcountry-settings.php:1168
618
  msgid "Choose a page..."
619
  msgstr ""
620
 
621
- #: libs/blockcountry-settings.php:1183
622
  msgid "URL to redirect to:"
623
  msgstr ""
624
 
625
- #: libs/blockcountry-settings.php:1184
626
  msgid ""
627
  "If you enter a URL here blocked visitors will be redirected to this URL "
628
  "instead of displaying above block message or redirected to a local page."
629
  msgstr ""
630
 
631
- #: libs/blockcountry-settings.php:1191
632
  msgid "Send headers when user is blocked:"
633
  msgstr ""
634
 
635
- #: libs/blockcountry-settings.php:1192
636
  msgid ""
637
  "Under normal circumstances you should keep this selected! Only if you have "
638
  "\"Cannot modify header information - headers already sent\" errors or if you "
639
  "know what you are doing uncheck this."
640
  msgstr ""
641
 
642
- #: libs/blockcountry-settings.php:1198
643
  msgid "Buffer output?:"
644
  msgstr ""
645
 
646
- #: libs/blockcountry-settings.php:1199
647
  msgid ""
648
  "You can use this option to buffer all output. This can be helpful in case "
649
  "you have \"headers already sent\" issues."
650
  msgstr ""
651
 
652
- #: libs/blockcountry-settings.php:1205
653
  msgid "Do not log IP addresses:"
654
  msgstr ""
655
 
656
- #: libs/blockcountry-settings.php:1206
657
  msgid ""
658
  "Check this box if the laws in your country do not permit you to log IP "
659
  "addresses or if you do not want to log the ip addresses."
660
  msgstr ""
661
 
662
- #: libs/blockcountry-settings.php:1213
663
  msgid "Number of rows on statistics page:"
664
  msgstr ""
665
 
666
- #: libs/blockcountry-settings.php:1214
667
  msgid "How many rows do you want to display on each tab the statistics page."
668
  msgstr ""
669
 
670
- #: libs/blockcountry-settings.php:1229
671
  msgid "Allow tracking:"
672
  msgstr ""
673
 
674
- #: libs/blockcountry-settings.php:1230
675
  msgid ""
676
  "This sends only the IP address and the number of attempts this ip address "
677
  "tried to login to your backend and was blocked doing so to a central server. "
@@ -679,152 +685,152 @@ msgid ""
679
  "countries."
680
  msgstr ""
681
 
682
- #: libs/blockcountry-settings.php:1236
683
  msgid "GeoIP API Key:"
684
  msgstr ""
685
 
686
- #: libs/blockcountry-settings.php:1237
687
  msgid ""
688
  "If for some reason you cannot or do not want to download the MaxMind GeoIP "
689
  "databases you will need an API key for the GeoIP api.<br />You can get an "
690
  "API key from: "
691
  msgstr ""
692
 
693
- #: libs/blockcountry-settings.php:1245
694
  msgid "GeoIP API Key Server Location:"
695
  msgstr ""
696
 
697
- #: libs/blockcountry-settings.php:1246
698
  msgid "Choose a location closest to your own location."
699
  msgstr ""
700
 
701
- #: libs/blockcountry-settings.php:1254
702
  msgid "Admin block API Key:"
703
  msgstr ""
704
 
705
- #: libs/blockcountry-settings.php:1255
706
  msgid ""
707
  "This is an experimantal feature. You do not need an API key for this plugin "
708
  "to work."
709
  msgstr ""
710
 
711
- #: libs/blockcountry-settings.php:1262
712
  msgid "Log all visits to the backend:"
713
  msgstr ""
714
 
715
- #: libs/blockcountry-settings.php:1263
716
  msgid ""
717
  "This logs all visits to the backend despite if they are blocked or not. This "
718
  "is mainly for debugging purposes."
719
  msgstr ""
720
 
721
- #: libs/blockcountry-settings.php:1270
722
  msgid "Accessibility options:"
723
  msgstr ""
724
 
725
- #: libs/blockcountry-settings.php:1271
726
  msgid "Set this option if you cannot use the default country selection box."
727
  msgstr ""
728
 
729
- #: libs/blockcountry-settings.php:1296
730
  msgid "Last blocked visits"
731
  msgstr ""
732
 
733
- #: libs/blockcountry-settings.php:1310
734
  msgid "Date / Time"
735
  msgstr ""
736
 
737
- #: libs/blockcountry-settings.php:1310 libs/blockcountry-settings.php:1342
738
  msgid "IP Address"
739
  msgstr ""
740
 
741
- #: libs/blockcountry-settings.php:1310 libs/blockcountry-settings.php:1342
742
  msgid "Hostname"
743
  msgstr ""
744
 
745
- #: libs/blockcountry-settings.php:1310 libs/blockcountry-settings.php:1329
746
  msgid "Country"
747
  msgstr ""
748
 
749
- #: libs/blockcountry-settings.php:1310
750
  msgid "Frontend/Backend"
751
  msgstr ""
752
 
753
- #: libs/blockcountry-settings.php:1320 libs/blockcountry-settings.php:1422
754
  msgid "Frontend"
755
  msgstr ""
756
 
757
- #: libs/blockcountry-settings.php:1320
758
  msgid "Backend banlist"
759
  msgstr ""
760
 
761
- #: libs/blockcountry-settings.php:1320
762
  msgid "Backend & Backend banlist"
763
  msgstr ""
764
 
765
- #: libs/blockcountry-settings.php:1320 libs/blockcountry-settings.php:1423
766
  msgid "Backend"
767
  msgstr ""
768
 
769
- #: libs/blockcountry-settings.php:1327
770
  msgid "Top countries that are blocked"
771
  msgstr ""
772
 
773
- #: libs/blockcountry-settings.php:1329 libs/blockcountry-settings.php:1342
774
- #: libs/blockcountry-settings.php:1353
775
  msgid "# of blocked attempts"
776
  msgstr ""
777
 
778
- #: libs/blockcountry-settings.php:1340
779
  msgid "Top hosts that are blocked"
780
  msgstr ""
781
 
782
- #: libs/blockcountry-settings.php:1351
783
  msgid "Top URLs that are blocked"
784
  msgstr ""
785
 
786
- #: libs/blockcountry-settings.php:1369
787
  msgid "Clear database"
788
  msgstr ""
789
 
790
- #: libs/blockcountry-settings.php:1392
791
  msgid "Download as CSV file"
792
  msgstr ""
793
 
794
- #: libs/blockcountry-settings.php:1399
795
  msgid ""
796
  "You are not logging any information. Please uncheck the option 'Do not log "
797
  "IP addresses' if this is not what you want."
798
  msgstr ""
799
 
800
- #: libs/blockcountry-settings.php:1421
801
  msgid "Home"
802
  msgstr ""
803
 
804
- #: libs/blockcountry-settings.php:1424
805
  msgid "Pages"
806
  msgstr ""
807
 
808
- #: libs/blockcountry-settings.php:1425
809
  msgid "Categories"
810
  msgstr ""
811
 
812
- #: libs/blockcountry-settings.php:1426
813
  msgid "Post types"
814
  msgstr ""
815
 
816
- #: libs/blockcountry-settings.php:1427
817
  msgid "Search Engines"
818
  msgstr ""
819
 
820
- #: libs/blockcountry-settings.php:1428
821
  msgid "Tools"
822
  msgstr ""
823
 
824
- #: libs/blockcountry-settings.php:1429
825
  msgid "Logging"
826
  msgstr ""
827
 
828
- #: libs/blockcountry-settings.php:1430
829
  msgid "Import/Export"
830
  msgstr ""
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: iQ Block Country\n"
4
+ "POT-Creation-Date: 2015-10-07 17:06+0100\n"
5
+ "PO-Revision-Date: 2015-10-07 17:06+0100\n"
6
  "Last-Translator: Pascal <pascal@redeo.nl>\n"
7
  "Language-Team: iQ Block Country <info@redeo.nl>\n"
8
  "Language: English\n"
142
  msgid "Version"
143
  msgstr ""
144
 
145
+ #: libs/blockcountry-settings.php:285 libs/blockcountry-settings.php:1326
146
+ #: libs/blockcountry-settings.php:1369
147
  msgid "URL"
148
  msgstr ""
149
 
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:1294
434
  msgid "Save Changes"
435
  msgstr ""
436
 
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
  "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:1278
718
  msgid "Log all visits to the backend:"
719
  msgstr ""
720
 
721
+ #: libs/blockcountry-settings.php:1279
722
  msgid ""
723
  "This logs all visits to the backend despite if they are blocked or not. This "
724
  "is mainly for debugging purposes."
725
  msgstr ""
726
 
727
+ #: libs/blockcountry-settings.php:1286
728
  msgid "Accessibility options:"
729
  msgstr ""
730
 
731
+ #: libs/blockcountry-settings.php:1287
732
  msgid "Set this option if you cannot use the default country selection box."
733
  msgstr ""
734
 
735
+ #: libs/blockcountry-settings.php:1312
736
  msgid "Last blocked visits"
737
  msgstr ""
738
 
739
+ #: libs/blockcountry-settings.php:1326
740
  msgid "Date / Time"
741
  msgstr ""
742
 
743
+ #: libs/blockcountry-settings.php:1326 libs/blockcountry-settings.php:1358
744
  msgid "IP Address"
745
  msgstr ""
746
 
747
+ #: libs/blockcountry-settings.php:1326 libs/blockcountry-settings.php:1358
748
  msgid "Hostname"
749
  msgstr ""
750
 
751
+ #: libs/blockcountry-settings.php:1326 libs/blockcountry-settings.php:1345
752
  msgid "Country"
753
  msgstr ""
754
 
755
+ #: libs/blockcountry-settings.php:1326
756
  msgid "Frontend/Backend"
757
  msgstr ""
758
 
759
+ #: libs/blockcountry-settings.php:1336 libs/blockcountry-settings.php:1438
760
  msgid "Frontend"
761
  msgstr ""
762
 
763
+ #: libs/blockcountry-settings.php:1336
764
  msgid "Backend banlist"
765
  msgstr ""
766
 
767
+ #: libs/blockcountry-settings.php:1336
768
  msgid "Backend & Backend banlist"
769
  msgstr ""
770
 
771
+ #: libs/blockcountry-settings.php:1336 libs/blockcountry-settings.php:1439
772
  msgid "Backend"
773
  msgstr ""
774
 
775
+ #: libs/blockcountry-settings.php:1343
776
  msgid "Top countries that are blocked"
777
  msgstr ""
778
 
779
+ #: libs/blockcountry-settings.php:1345 libs/blockcountry-settings.php:1358
780
+ #: libs/blockcountry-settings.php:1369
781
  msgid "# of blocked attempts"
782
  msgstr ""
783
 
784
+ #: libs/blockcountry-settings.php:1356
785
  msgid "Top hosts that are blocked"
786
  msgstr ""
787
 
788
+ #: libs/blockcountry-settings.php:1367
789
  msgid "Top URLs that are blocked"
790
  msgstr ""
791
 
792
+ #: libs/blockcountry-settings.php:1383
793
  msgid "Clear database"
794
  msgstr ""
795
 
796
+ #: libs/blockcountry-settings.php:1408
797
  msgid "Download as CSV file"
798
  msgstr ""
799
 
800
+ #: libs/blockcountry-settings.php:1415
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:1437
807
  msgid "Home"
808
  msgstr ""
809
 
810
+ #: libs/blockcountry-settings.php:1440
811
  msgid "Pages"
812
  msgstr ""
813
 
814
+ #: libs/blockcountry-settings.php:1441
815
  msgid "Categories"
816
  msgstr ""
817
 
818
+ #: libs/blockcountry-settings.php:1442
819
  msgid "Post types"
820
  msgstr ""
821
 
822
+ #: libs/blockcountry-settings.php:1443
823
  msgid "Search Engines"
824
  msgstr ""
825
 
826
+ #: libs/blockcountry-settings.php:1444
827
  msgid "Tools"
828
  msgstr ""
829
 
830
+ #: libs/blockcountry-settings.php:1445
831
  msgid "Logging"
832
  msgstr ""
833
 
834
+ #: libs/blockcountry-settings.php:1446
835
  msgid "Import/Export"
836
  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-10-02 15:01+0100\n"
5
- "PO-Revision-Date: 2015-10-02 15:08+0100\n"
6
  "Last-Translator: Pascal <pascal@redeo.nl>\n"
7
  "Language-Team: iQ Block Country <info@redeo.nl>\n"
8
  "Language: Dutch\n"
@@ -154,8 +154,8 @@ msgstr "Plugin naam"
154
  msgid "Version"
155
  msgstr "Versie"
156
 
157
- #: libs/blockcountry-settings.php:285 libs/blockcountry-settings.php:1310
158
- #: libs/blockcountry-settings.php:1353
159
  msgid "URL"
160
  msgstr "URL"
161
 
@@ -451,7 +451,7 @@ msgstr "Selecteer welke pagina's je wil blokkeren."
451
  #: libs/blockcountry-settings.php:678 libs/blockcountry-settings.php:732
452
  #: libs/blockcountry-settings.php:780 libs/blockcountry-settings.php:825
453
  #: libs/blockcountry-settings.php:953 libs/blockcountry-settings.php:1085
454
- #: libs/blockcountry-settings.php:1278
455
  msgid "Save Changes"
456
  msgstr "Bewaar wijzigingen"
457
 
@@ -630,31 +630,39 @@ msgid "Backend blacklist IPv4 and/or IPv6 addresses:"
630
  msgstr ""
631
  "Blacklist van IPv4 of IPv6 IP adressen voor de achterkant van je website:"
632
 
633
- #: libs/blockcountry-settings.php:1106
 
 
 
 
 
 
 
 
634
  msgid "Overall statistics since start"
635
  msgstr "Statistieken sinds het begin"
636
 
637
- #: libs/blockcountry-settings.php:1109
638
  msgid "visitors blocked from the backend."
639
  msgstr "bezoekers geblokkeerd op de achterkant."
640
 
641
- #: libs/blockcountry-settings.php:1111
642
  msgid "visitors blocked from the frontend."
643
  msgstr "bezoekers geblokkeerd op de voorkant."
644
 
645
- #: libs/blockcountry-settings.php:1115
646
  msgid "Basic Options"
647
  msgstr "Standaard opties"
648
 
649
- #: libs/blockcountry-settings.php:1150
650
  msgid "Message to display when people are blocked:"
651
  msgstr "Welk bericht wil je tonen aan bezoekers welke geblokkeerd worden:"
652
 
653
- #: libs/blockcountry-settings.php:1161
654
  msgid "Page to redirect to:"
655
  msgstr "Naar welke pagina wilt u bezoekers toesturen:"
656
 
657
- #: libs/blockcountry-settings.php:1162
658
  msgid ""
659
  "If you select a page here blocked visitors will be redirected to this page "
660
  "instead of displaying above block message."
@@ -663,15 +671,15 @@ msgstr ""
663
  "doorgestuurd naar deze pagina anders wordt bovestaande tekst getoond aan "
664
  "bezoekers."
665
 
666
- #: libs/blockcountry-settings.php:1168
667
  msgid "Choose a page..."
668
  msgstr "Kies een pagina..."
669
 
670
- #: libs/blockcountry-settings.php:1183
671
  msgid "URL to redirect to:"
672
  msgstr "Naar welke URL wilt u geblokkerde bezoekers verwijzen:"
673
 
674
- #: libs/blockcountry-settings.php:1184
675
  msgid ""
676
  "If you enter a URL here blocked visitors will be redirected to this URL "
677
  "instead of displaying above block message or redirected to a local page."
@@ -680,11 +688,11 @@ msgstr ""
680
  "naar deze url anders wordt bovestaande blokkeer tekst getoond aan bezoekers "
681
  "of worden bezoekers doorverwezen naar de geselecteerde pagina."
682
 
683
- #: libs/blockcountry-settings.php:1191
684
  msgid "Send headers when user is blocked:"
685
  msgstr "Stuur headers wanneer een gebruiker is geblokkeerd:"
686
 
687
- #: libs/blockcountry-settings.php:1192
688
  msgid ""
689
  "Under normal circumstances you should keep this selected! Only if you have "
690
  "\"Cannot modify header information - headers already sent\" errors or if you "
@@ -694,11 +702,11 @@ msgstr ""
694
  "deze alleen indien je \"Cannot modify header information - headers already "
695
  "sent\" foutmeldingen krijgt of indien je weet wat je doet."
696
 
697
- #: libs/blockcountry-settings.php:1198
698
  msgid "Buffer output?:"
699
  msgstr "Buffer output?"
700
 
701
- #: libs/blockcountry-settings.php:1199
702
  msgid ""
703
  "You can use this option to buffer all output. This can be helpful in case "
704
  "you have \"headers already sent\" issues."
@@ -706,11 +714,11 @@ msgstr ""
706
  "Je kunt deze optie gebruiken om alle output te bufferen. Dit kan helpen "
707
  "indien je \"headers already sent\" problemen hebt."
708
 
709
- #: libs/blockcountry-settings.php:1205
710
  msgid "Do not log IP addresses:"
711
  msgstr "Log geen IP adressen"
712
 
713
- #: libs/blockcountry-settings.php:1206
714
  msgid ""
715
  "Check this box if the laws in your country do not permit you to log IP "
716
  "addresses or if you do not want to log the ip addresses."
@@ -719,19 +727,19 @@ msgstr ""
719
  "adressen vast te leggen of indien je zelf deze informatie niet wilt "
720
  "vastleggen."
721
 
722
- #: libs/blockcountry-settings.php:1213
723
  msgid "Number of rows on statistics page:"
724
  msgstr "Aantal regels op de statistieken pagina:"
725
 
726
- #: libs/blockcountry-settings.php:1214
727
  msgid "How many rows do you want to display on each tab the statistics page."
728
  msgstr "Hoeveel regels wil je tonen op de statistieken pagina."
729
 
730
- #: libs/blockcountry-settings.php:1229
731
  msgid "Allow tracking:"
732
  msgstr "Sta traceren toe:"
733
 
734
- #: libs/blockcountry-settings.php:1230
735
  msgid ""
736
  "This sends only the IP address and the number of attempts this ip address "
737
  "tried to login to your backend and was blocked doing so to a central server. "
@@ -744,11 +752,11 @@ msgstr ""
744
  "ons om beter inzicht te krijgen in de landen waarvandaan een hoop hack "
745
  "pogingen worden gedaan. "
746
 
747
- #: libs/blockcountry-settings.php:1236
748
  msgid "GeoIP API Key:"
749
  msgstr "GeoIP API sleutel:"
750
 
751
- #: libs/blockcountry-settings.php:1237
752
  msgid ""
753
  "If for some reason you cannot or do not want to download the MaxMind GeoIP "
754
  "databases you will need an API key for the GeoIP api.<br />You can get an "
@@ -758,19 +766,19 @@ msgstr ""
758
  "Maxmind GeoIP heb je een API sleutelnodig voor de GeoIP api.<br />Je kunt "
759
  "een API sleutel verkrijgen op:"
760
 
761
- #: libs/blockcountry-settings.php:1245
762
  msgid "GeoIP API Key Server Location:"
763
  msgstr "GeoIP API sleutel server locatie:"
764
 
765
- #: libs/blockcountry-settings.php:1246
766
  msgid "Choose a location closest to your own location."
767
  msgstr "Kies een land welke het dichtsbij is bij je eigen land."
768
 
769
- #: libs/blockcountry-settings.php:1254
770
  msgid "Admin block API Key:"
771
  msgstr "Admin block API Sleutel:"
772
 
773
- #: libs/blockcountry-settings.php:1255
774
  msgid ""
775
  "This is an experimantal feature. You do not need an API key for this plugin "
776
  "to work."
@@ -778,11 +786,11 @@ msgstr ""
778
  "Dit is een experimentele optie. Je hebt geen API key nodig om deze plugin te "
779
  "laten werken."
780
 
781
- #: libs/blockcountry-settings.php:1262
782
  msgid "Log all visits to the backend:"
783
  msgstr "Log alle bezoekers op de achterkant:"
784
 
785
- #: libs/blockcountry-settings.php:1263
786
  msgid ""
787
  "This logs all visits to the backend despite if they are blocked or not. This "
788
  "is mainly for debugging purposes."
@@ -790,82 +798,82 @@ msgstr ""
790
  "Dit logt alle bezoeken aan de achterkant ongeacht of de bezoeker werd "
791
  "geblokkeerd of niet. Dit is voornamelijk bedoeld voor fout opsporing."
792
 
793
- #: libs/blockcountry-settings.php:1270
794
  msgid "Accessibility options:"
795
  msgstr "Toegankelijkheids opties:"
796
 
797
- #: libs/blockcountry-settings.php:1271
798
  msgid "Set this option if you cannot use the default country selection box."
799
  msgstr ""
800
  "Selecteer deze optie indien je de landen standaard selectie methode niet "
801
  "kunt gebruiken. "
802
 
803
- #: libs/blockcountry-settings.php:1296
804
  msgid "Last blocked visits"
805
  msgstr "Laatste geblokkeerde bezoekers"
806
 
807
- #: libs/blockcountry-settings.php:1310
808
  msgid "Date / Time"
809
  msgstr "Datum / Tijd"
810
 
811
- #: libs/blockcountry-settings.php:1310 libs/blockcountry-settings.php:1342
812
  msgid "IP Address"
813
  msgstr "IP adres"
814
 
815
- #: libs/blockcountry-settings.php:1310 libs/blockcountry-settings.php:1342
816
  msgid "Hostname"
817
  msgstr "Hostnaam"
818
 
819
- #: libs/blockcountry-settings.php:1310 libs/blockcountry-settings.php:1329
820
  msgid "Country"
821
  msgstr "Land"
822
 
823
- #: libs/blockcountry-settings.php:1310
824
  msgid "Frontend/Backend"
825
  msgstr "Voorkant/Achterkant"
826
 
827
- #: libs/blockcountry-settings.php:1320 libs/blockcountry-settings.php:1422
828
  msgid "Frontend"
829
  msgstr "Voorkant"
830
 
831
- #: libs/blockcountry-settings.php:1320
832
  msgid "Backend banlist"
833
  msgstr "Achterkant banlist"
834
 
835
- #: libs/blockcountry-settings.php:1320
836
  msgid "Backend & Backend banlist"
837
  msgstr "Achterkant & Achterkant banlist"
838
 
839
- #: libs/blockcountry-settings.php:1320 libs/blockcountry-settings.php:1423
840
  msgid "Backend"
841
  msgstr "Achterkant"
842
 
843
- #: libs/blockcountry-settings.php:1327
844
  msgid "Top countries that are blocked"
845
  msgstr "Top landen welke zijn geblokkeerd"
846
 
847
- #: libs/blockcountry-settings.php:1329 libs/blockcountry-settings.php:1342
848
- #: libs/blockcountry-settings.php:1353
849
  msgid "# of blocked attempts"
850
  msgstr "# of geblokkeerde pogingen"
851
 
852
- #: libs/blockcountry-settings.php:1340
853
  msgid "Top hosts that are blocked"
854
  msgstr "Top hosts welke geblokkeerd zijn"
855
 
856
- #: libs/blockcountry-settings.php:1351
857
  msgid "Top URLs that are blocked"
858
  msgstr "Top URLs welke geblokkeerd zijn"
859
 
860
- #: libs/blockcountry-settings.php:1369
861
  msgid "Clear database"
862
  msgstr "Leeg database"
863
 
864
- #: libs/blockcountry-settings.php:1392
865
  msgid "Download as CSV file"
866
  msgstr "Download als een csv bestand."
867
 
868
- #: libs/blockcountry-settings.php:1399
869
  msgid ""
870
  "You are not logging any information. Please uncheck the option 'Do not log "
871
  "IP addresses' if this is not what you want."
@@ -873,46 +881,41 @@ msgstr ""
873
  "Je logt geen informatie. Deselecteer alstublieft de optie 'Log geen IP "
874
  "adressen' indien dit niet is wat je wilt."
875
 
876
- #: libs/blockcountry-settings.php:1421
877
  msgid "Home"
878
  msgstr "Home"
879
 
880
- #: libs/blockcountry-settings.php:1424
881
  msgid "Pages"
882
  msgstr "Pagina's"
883
 
884
- #: libs/blockcountry-settings.php:1425
885
  msgid "Categories"
886
  msgstr "Categorieen"
887
 
888
- #: libs/blockcountry-settings.php:1426
889
  msgid "Post types"
890
  msgstr "Post types"
891
 
892
- #: libs/blockcountry-settings.php:1427
893
  msgid "Search Engines"
894
  msgstr "Zoek machines"
895
 
896
- #: libs/blockcountry-settings.php:1428
897
  msgid "Tools"
898
  msgstr "Gereedschap"
899
 
900
- #: libs/blockcountry-settings.php:1429
901
  msgid "Logging"
902
  msgstr "Statistieken"
903
 
904
- #: libs/blockcountry-settings.php:1430
905
  msgid "Import/Export"
906
  msgstr "Importeren/Exporteren"
907
 
908
  #~ msgid "Automatic update is not setup. Last update: "
909
  #~ msgstr "Automatisch updaten is niet geconfigureerd. Laatste update:"
910
 
911
- #~ msgid "The GeoIP database is updated once a month. Last update: "
912
- #~ msgstr ""
913
- #~ "De GeoIP database wordt eenmaal per maand bijgewerkt. Laatste keer "
914
- #~ "bijgewerkt:"
915
-
916
  #~ msgid "If you need a manual update please press buttons below to update."
917
  #~ msgstr ""
918
  #~ "Indien je handmatig wilt bijwerken druk je op de knoppen hier beneden."
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: iQ Block Country\n"
4
+ "POT-Creation-Date: 2015-10-07 17:06+0100\n"
5
+ "PO-Revision-Date: 2015-10-07 17:07+0100\n"
6
  "Last-Translator: Pascal <pascal@redeo.nl>\n"
7
  "Language-Team: iQ Block Country <info@redeo.nl>\n"
8
  "Language: Dutch\n"
154
  msgid "Version"
155
  msgstr "Versie"
156
 
157
+ #: libs/blockcountry-settings.php:285 libs/blockcountry-settings.php:1326
158
+ #: libs/blockcountry-settings.php:1369
159
  msgid "URL"
160
  msgstr "URL"
161
 
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:1294
455
  msgid "Save Changes"
456
  msgstr "Bewaar wijzigingen"
457
 
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
  "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
  "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
  "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
  "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
  "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
  "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
  "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
  "Dit is een experimentele optie. Je hebt geen API key nodig om deze plugin te "
787
  "laten werken."
788
 
789
+ #: libs/blockcountry-settings.php:1278
790
  msgid "Log all visits to the backend:"
791
  msgstr "Log alle bezoekers op de achterkant:"
792
 
793
+ #: libs/blockcountry-settings.php:1279
794
  msgid ""
795
  "This logs all visits to the backend despite if they are blocked or not. This "
796
  "is mainly for debugging purposes."
798
  "Dit logt alle bezoeken aan de achterkant ongeacht of de bezoeker werd "
799
  "geblokkeerd of niet. Dit is voornamelijk bedoeld voor fout opsporing."
800
 
801
+ #: libs/blockcountry-settings.php:1286
802
  msgid "Accessibility options:"
803
  msgstr "Toegankelijkheids opties:"
804
 
805
+ #: libs/blockcountry-settings.php:1287
806
  msgid "Set this option if you cannot use the default country selection box."
807
  msgstr ""
808
  "Selecteer deze optie indien je de landen standaard selectie methode niet "
809
  "kunt gebruiken. "
810
 
811
+ #: libs/blockcountry-settings.php:1312
812
  msgid "Last blocked visits"
813
  msgstr "Laatste geblokkeerde bezoekers"
814
 
815
+ #: libs/blockcountry-settings.php:1326
816
  msgid "Date / Time"
817
  msgstr "Datum / Tijd"
818
 
819
+ #: libs/blockcountry-settings.php:1326 libs/blockcountry-settings.php:1358
820
  msgid "IP Address"
821
  msgstr "IP adres"
822
 
823
+ #: libs/blockcountry-settings.php:1326 libs/blockcountry-settings.php:1358
824
  msgid "Hostname"
825
  msgstr "Hostnaam"
826
 
827
+ #: libs/blockcountry-settings.php:1326 libs/blockcountry-settings.php:1345
828
  msgid "Country"
829
  msgstr "Land"
830
 
831
+ #: libs/blockcountry-settings.php:1326
832
  msgid "Frontend/Backend"
833
  msgstr "Voorkant/Achterkant"
834
 
835
+ #: libs/blockcountry-settings.php:1336 libs/blockcountry-settings.php:1438
836
  msgid "Frontend"
837
  msgstr "Voorkant"
838
 
839
+ #: libs/blockcountry-settings.php:1336
840
  msgid "Backend banlist"
841
  msgstr "Achterkant banlist"
842
 
843
+ #: libs/blockcountry-settings.php:1336
844
  msgid "Backend & Backend banlist"
845
  msgstr "Achterkant & Achterkant banlist"
846
 
847
+ #: libs/blockcountry-settings.php:1336 libs/blockcountry-settings.php:1439
848
  msgid "Backend"
849
  msgstr "Achterkant"
850
 
851
+ #: libs/blockcountry-settings.php:1343
852
  msgid "Top countries that are blocked"
853
  msgstr "Top landen welke zijn geblokkeerd"
854
 
855
+ #: libs/blockcountry-settings.php:1345 libs/blockcountry-settings.php:1358
856
+ #: libs/blockcountry-settings.php:1369
857
  msgid "# of blocked attempts"
858
  msgstr "# of geblokkeerde pogingen"
859
 
860
+ #: libs/blockcountry-settings.php:1356
861
  msgid "Top hosts that are blocked"
862
  msgstr "Top hosts welke geblokkeerd zijn"
863
 
864
+ #: libs/blockcountry-settings.php:1367
865
  msgid "Top URLs that are blocked"
866
  msgstr "Top URLs welke geblokkeerd zijn"
867
 
868
+ #: libs/blockcountry-settings.php:1383
869
  msgid "Clear database"
870
  msgstr "Leeg database"
871
 
872
+ #: libs/blockcountry-settings.php:1408
873
  msgid "Download as CSV file"
874
  msgstr "Download als een csv bestand."
875
 
876
+ #: libs/blockcountry-settings.php:1415
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
  "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:1437
885
  msgid "Home"
886
  msgstr "Home"
887
 
888
+ #: libs/blockcountry-settings.php:1440
889
  msgid "Pages"
890
  msgstr "Pagina's"
891
 
892
+ #: libs/blockcountry-settings.php:1441
893
  msgid "Categories"
894
  msgstr "Categorieen"
895
 
896
+ #: libs/blockcountry-settings.php:1442
897
  msgid "Post types"
898
  msgstr "Post types"
899
 
900
+ #: libs/blockcountry-settings.php:1443
901
  msgid "Search Engines"
902
  msgstr "Zoek machines"
903
 
904
+ #: libs/blockcountry-settings.php:1444
905
  msgid "Tools"
906
  msgstr "Gereedschap"
907
 
908
+ #: libs/blockcountry-settings.php:1445
909
  msgid "Logging"
910
  msgstr "Statistieken"
911
 
912
+ #: libs/blockcountry-settings.php:1446
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
 
 
 
 
 
 
919
  #~ msgid "If you need a manual update please press buttons below to update."
920
  #~ msgstr ""
921
  #~ "Indien je handmatig wilt bijwerken druk je op de knoppen hier beneden."
libs/blockcountry-settings.php CHANGED
@@ -1102,6 +1102,22 @@ function iqblockcountry_settings_backend()
1102
  */
1103
  function iqblockcountry_settings_home()
1104
  {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1105
  ?>
1106
  <h3><?php _e('Overall statistics since start', 'iq-block-country'); ?></h3>
1107
 
@@ -1375,6 +1391,9 @@ function iqblockcountry_settings_logging()
1375
  $sql = "TRUNCATE " . $table_name . ";";
1376
  $wpdb->query($sql);
1377
  echo mysql_error();
 
 
 
1378
  echo "Cleared database";
1379
 
1380
  }
@@ -1488,6 +1507,8 @@ function iqblockcountry_settings_page() {
1488
  */
1489
  function iqblockcountry_find_geoip_location()
1490
  {
 
 
1491
  $curl = curl_init();
1492
  curl_setopt_array($curl, array(
1493
  CURLOPT_RETURNTRANSFER => 1,
@@ -1515,7 +1536,11 @@ function iqblockcountry_find_geoip_location()
1515
  {
1516
  update_option('blockcountry_geoapilocation','US');
1517
  }
1518
-
 
 
 
 
1519
 
1520
 
1521
  }
1102
  */
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
 
1391
  $sql = "TRUNCATE " . $table_name . ";";
1392
  $wpdb->query($sql);
1393
  echo mysql_error();
1394
+ $sql = "ALTER TABLE ". $table_name . " AUTO_INCREMENT = 1;";
1395
+ $wpdb->query($sql);
1396
+ echo mysql_error();
1397
  echo "Cleared database";
1398
 
1399
  }
1507
  */
1508
  function iqblockcountry_find_geoip_location()
1509
  {
1510
+ if (function_exists('curl_init'))
1511
+ {
1512
  $curl = curl_init();
1513
  curl_setopt_array($curl, array(
1514
  CURLOPT_RETURNTRANSFER => 1,
1536
  {
1537
  update_option('blockcountry_geoapilocation','US');
1538
  }
1539
+ }
1540
+ else
1541
+ {
1542
+ update_option('blockcountry_geoapilocation','EU');
1543
+ }
1544
 
1545
 
1546
  }
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.redeo.nl/plugins/donate
4
  Tags: spam, block, countries, country, comments, ban, geo, geo blocking, geo ip, block country, block countries, ban countries, ban country, blacklist, whitelist
5
  Requires at least: 3.5.2
6
  Tested up to: 4.3
7
- Stable tag: 1.1.22
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -169,6 +169,11 @@ You can select the option on the home tab "Do not log IP addresses" to stop iQ B
169
 
170
  == Changelog ==
171
 
 
 
 
 
 
172
  = 1.1.22 =
173
 
174
  * Bugfix: Category bug squashed
4
  Tags: spam, block, countries, country, comments, ban, geo, geo blocking, geo ip, block country, block countries, ban countries, ban country, blacklist, whitelist
5
  Requires at least: 3.5.2
6
  Tested up to: 4.3
7
+ Stable tag: 1.1.23
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
169
 
170
  == Changelog ==
171
 
172
+ = 1.1.23 =
173
+
174
+ * Bugfix: Fixed bug if cURL was not present in PHP version
175
+ * New: When local GeoIP database present it checks if database is not older than 3 months and alerts users in a non-intrusive way.
176
+
177
  = 1.1.22 =
178
 
179
  * Bugfix: Category bug squashed