NinjaFirewall (WP Edition) - Version 3.8.3

Version Description

  • NinjaFirewall will attach a PHP backtrace to some important email notifications (see "Event Notifications > PHP backtrace").
  • Fixed an issue where the firewall could not connect to the database if its password contained an escaped single quote.
  • Fixed an issue where it was not possible to use the WordPress plugin and theme editor. This is due to a bug introduced in WordPress 4.9.2 which does not play well with PHP sessions (see https://core.trac.wordpress.org/ticket/43358).
  • The firewall will detect if the PHP mysqli extension is missing or is not loaded and will warn the admin in the backend.
  • Improved TLS detection for servers that are behind a load-balancer or reverse proxy.
  • Various fixes and adjustments.
Download this release

Release Info

Developer nintechnet
Plugin Icon 128x128 NinjaFirewall (WP Edition)
Version 3.8.3
Comparing to
See all releases

Code changes from version 3.8.2 to 3.8.3

languages/ninjafirewall-fr_FR.mo CHANGED
Binary file
languages/ninjafirewall-fr_FR.po CHANGED
@@ -4,8 +4,8 @@ msgid ""
4
  msgstr ""
5
  "Project-Id-Version: Stable (latest release)\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/ninjafirewall\n"
7
- "POT-Creation-Date: 2019-02-16 22:36+0700\n"
8
- "PO-Revision-Date: 2019-02-16 22:38+0700\n"
9
  "Last-Translator: NinTechNet <contact@nintechnet.com>\n"
10
  "Language-Team: NinTechNet <nintechnet.com>\n"
11
  "Language: fr_FR\n"
@@ -165,7 +165,7 @@ msgstr ""
165
  "offre tout de même des performances et un niveau de protection supérieurs "
166
  "aux autres extensions de sécurité pour WordPress disponibles sur le marché."
167
 
168
- #: install.php:156 ninjafirewall.php:487
169
  msgid "Installation"
170
  msgstr "Installation"
171
 
@@ -225,7 +225,7 @@ msgstr ""
225
  "tant que NinjaFirewall est installé !"
226
 
227
  #: install.php:258 lib/firewall_policies.php:107 lib/help.php:168
228
- #: lib/install_fullwaf.php:33 lib/install_fullwaf.php:141 ninjafirewall.php:512
229
  msgid "Firewall Policies"
230
  msgstr "Politiques du Pare-feu"
231
 
@@ -653,7 +653,7 @@ msgstr ""
653
  "Pour plus d'information, consultez notre page du <a href=\"%s\">Programme de "
654
  "Parrainage</a>."
655
 
656
- #: lib/anti_malware.php:24 ninjafirewall.php:530
657
  msgid "Anti-Malware"
658
  msgstr "Anti-Malware"
659
 
@@ -718,7 +718,7 @@ msgstr "Moyen :"
718
  msgid "View firewall log"
719
  msgstr "Voir le journal du pare-feu"
720
 
721
- #: lib/event_notifications.php:45 lib/help.php:349 ninjafirewall.php:538
722
  msgid "Event Notifications"
723
  msgstr "Notifications d'Événement"
724
 
@@ -837,15 +837,16 @@ msgid "Send me a daily activity report"
837
  msgstr "Envoyer un rapport d'activité quotidien"
838
 
839
  #: lib/event_notifications.php:150 lib/event_notifications.php:162
840
- #: lib/firewall_policies.php:551 lib/firewall_policies.php:594
841
- #: lib/firewall_policies.php:614 lib/firewall_policies.php:664
842
- #: lib/firewall_policies.php:709 lib/firewall_policies.php:719
843
- #: lib/firewall_policies.php:729 lib/firewall_policies.php:772
844
- #: lib/firewall_policies.php:815 lib/firewall_policies.php:835
845
- #: lib/firewall_policies.php:1049 lib/firewall_policies.php:1105
846
- #: lib/firewall_policies.php:1115 lib/firewall_policies.php:1125
847
- #: lib/firewall_policies.php:1135 lib/firewall_policies.php:1182
848
- #: lib/firewall_policies.php:1192 lib/network.php:63 lib/rules_update.php:145
 
849
  msgid "Yes (default)"
850
  msgstr "Oui (défaut)"
851
 
@@ -857,15 +858,31 @@ msgstr "Journal"
857
  msgid "Write all events to the firewall log"
858
  msgstr "Enregistrer les événements dans le journal du pare-feu"
859
 
860
- #: lib/event_notifications.php:172 lib/event_notifications.php:202
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
861
  msgid "Contact email"
862
  msgstr "Adresse e-mail du contact"
863
 
864
- #: lib/event_notifications.php:175 lib/event_notifications.php:205
865
  msgid "Alerts should be sent to"
866
  msgstr "Envoyer les alertes à"
867
 
868
- #: lib/event_notifications.php:184 lib/event_notifications.php:210
869
  msgid ""
870
  "Multiple recipients must be comma-separated (e.g., <code>joe@example.org,"
871
  "alice@example.org</code>)."
@@ -873,60 +890,60 @@ msgstr ""
873
  "Plusieurs destinataires doivent être séparés par des virgules (par ex. "
874
  "<code>joe@example.org,alice@example.org</code>)."
875
 
876
- #: lib/event_notifications.php:207
877
  msgid "Only to me, the Super Admin"
878
  msgstr "Moi uniquement, le Super Admin"
879
 
880
- #: lib/event_notifications.php:207
881
  msgid "default"
882
  msgstr "défaut"
883
 
884
- #: lib/event_notifications.php:208
885
  msgid "To the administrator of the site where originated the alert"
886
  msgstr "L'Administrateur du site d’où provient l'alerte"
887
 
888
- #: lib/event_notifications.php:209
889
  msgid "Other(s):"
890
  msgstr "Autre(s) :"
891
 
892
- #: lib/event_notifications.php:221
893
  msgid "Save Event Notifications"
894
  msgstr "Sauvegarder les options"
895
 
896
- #: lib/event_notifications.php:428
897
  msgid "[NinjaFirewall] Daily Activity Report"
898
  msgstr "[NinjaFirewall] Rapport d'activité quotidien"
899
 
900
- #: lib/event_notifications.php:438
901
  #, php-format
902
  msgid "Daily activity report for: %s"
903
  msgstr "Rapport d'activité quotidien pour : %s"
904
 
905
- #: lib/event_notifications.php:439
906
  msgid "Date Range Processed: Yesterday"
907
  msgstr "Plage de date traitée : Hier"
908
 
909
- #: lib/event_notifications.php:441
910
  msgid "Blocked threats:"
911
  msgstr "Menaces bloquées :"
912
 
913
- #: lib/event_notifications.php:443
914
  msgid "critical:"
915
  msgstr "Critique :"
916
 
917
- #: lib/event_notifications.php:444
918
  msgid "high:"
919
  msgstr "Élevé :"
920
 
921
- #: lib/event_notifications.php:445
922
  msgid "medium:"
923
  msgstr "Moyen :"
924
 
925
- #: lib/event_notifications.php:447
926
  msgid "Blocked brute-force attacks:"
927
  msgstr "Attaques par force brute bloquées :"
928
 
929
- #: lib/event_notifications.php:448 lib/utils.php:644 lib/utils.php:795
930
  msgid ""
931
  "This notification can be turned off from NinjaFirewall \"Event Notifications"
932
  "\" page."
@@ -934,9 +951,9 @@ msgstr ""
934
  "Cette notification peut être désactivée depuis la page \"Notifications "
935
  "d’Événement\" de NinjaFirewall."
936
 
937
- #: lib/event_notifications.php:452 lib/file_check.php:855
938
  #: lib/file_check.php:872 lib/firewall_options.php:573 lib/rules_update.php:565
939
- #: lib/utils.php:544
940
  msgid "Support forum:"
941
  msgstr "Forum :"
942
 
@@ -964,7 +981,7 @@ msgstr "NinjaFirewall a détecté des changements dans vos fichiers."
964
  msgid "No changes detected."
965
  msgstr "Aucun changement n'a été détecté."
966
 
967
- #: lib/file_check.php:129 lib/help.php:316 ninjafirewall.php:520
968
  msgid "File Check"
969
  msgstr "File Check"
970
 
@@ -1255,15 +1272,15 @@ msgstr "Erreur lors de la lecture du fichier de l'ancien instantané."
1255
  msgid "Error reading new snapshot file."
1256
  msgstr "Erreur lors de la lecture du fichier du nouvel instantané."
1257
 
1258
- #: lib/file_check.php:814 ninjafirewall.php:269
1259
  msgid "New file"
1260
  msgstr "Nouveau fichier"
1261
 
1262
- #: lib/file_check.php:815 ninjafirewall.php:270
1263
  msgid "Modified file"
1264
  msgstr "Fichier modifié"
1265
 
1266
- #: lib/file_check.php:816 ninjafirewall.php:271
1267
  msgid "Deleted file"
1268
  msgstr "Fichier supprimé"
1269
 
@@ -1273,7 +1290,7 @@ msgstr "[NinjaFirewall] Alerte: Détection File Check"
1273
 
1274
  #: lib/file_check.php:843 lib/file_check.php:845 lib/file_check.php:866
1275
  #: lib/file_check.php:868 lib/rules_update.php:557 lib/rules_update.php:559
1276
- #: lib/utils.php:84 lib/utils.php:632 lib/utils.php:789 lib/utils.php:995
1277
  msgid "Blog:"
1278
  msgstr "Blog :"
1279
 
@@ -1298,7 +1315,7 @@ msgstr "NinjaFirewall n'a pas détecté de changements dans vos fichiers."
1298
  msgid "Please enter a number from 1 to 99."
1299
  msgstr "Veuillez entrer un nombre de 1 à 99."
1300
 
1301
- #: lib/file_guard.php:54 lib/help.php:284 ninjafirewall.php:516
1302
  msgid "File Guard"
1303
  msgstr "File Guard"
1304
 
@@ -1400,7 +1417,7 @@ msgstr "Votre clé publique a été supprimée"
1400
  msgid "Your public key has been saved"
1401
  msgstr "Votre clé publique a été sauvegardée"
1402
 
1403
- #: lib/firewall_log.php:84 lib/help.php:423 ninjafirewall.php:546
1404
  msgid "Firewall Log"
1405
  msgstr "Journal du Pare-feu"
1406
 
@@ -1432,10 +1449,12 @@ msgid "The selected log is empty."
1432
  msgstr "Le journal sélectionné est vide."
1433
 
1434
  #: lib/firewall_log.php:156
1435
- msgid "The log is rotated monthly"
 
 
1436
  msgstr ""
1437
- "NinjaFirewall effectue une rotation automatique du journal le premier jour "
1438
- "de chaque mois."
1439
 
1440
  #: lib/firewall_log.php:169
1441
  msgid "Log Options"
@@ -1526,7 +1545,7 @@ msgstr ""
1526
  msgid "Refresh preview"
1527
  msgstr "Réactualiser"
1528
 
1529
- #: lib/firewall_options.php:71 ninjafirewall.php:508
1530
  msgid "Firewall Options"
1531
  msgstr "Options du Pare-feu"
1532
 
@@ -1687,8 +1706,8 @@ msgstr ""
1687
  msgid "[NinjaFirewall] Alert: Firewall is disabled"
1688
  msgstr "[NinjaFirewall] Alerte : Le pare-feu a été désactivé"
1689
 
1690
- #: lib/firewall_options.php:549 lib/firewall_options.php:551 lib/utils.php:532
1691
- #: lib/utils.php:534
1692
  msgid "-Blog :"
1693
  msgstr "- Blog :"
1694
 
@@ -1717,15 +1736,15 @@ msgstr ""
1717
  "Quelqu'un a importé une nouvelle configuration qui a modifié tous les "
1718
  "paramètres du pare-feu :"
1719
 
1720
- #: lib/firewall_options.php:568 lib/utils.php:539
1721
  msgid "-User :"
1722
  msgstr "- Nom :"
1723
 
1724
- #: lib/firewall_options.php:569 lib/utils.php:540
1725
  msgid "-IP :"
1726
  msgstr "- IP :"
1727
 
1728
- #: lib/firewall_options.php:570 lib/utils.php:541
1729
  msgid "-Date :"
1730
  msgstr "- Date :"
1731
 
@@ -2269,7 +2288,7 @@ msgstr "Sauvegarder les options"
2269
  msgid "Restore Default Values"
2270
  msgstr "Rétablir les valeurs par défaut"
2271
 
2272
- #: lib/help.php:37 ninjafirewall.php:500
2273
  msgid "Overview"
2274
  msgstr "Aperçu"
2275
 
@@ -3321,7 +3340,7 @@ msgstr ""
3321
  "intercepter les requêtes HTTP envoyées à tout script PHP, même si ce dernier "
3322
  "ne fait pas partie de WordPress (logiciel tiers, backdoor, etc)."
3323
 
3324
- #: lib/help.php:300 lib/network.php:32 ninjafirewall.php:534
3325
  msgid "Network"
3326
  msgstr "Réseau"
3327
 
@@ -3470,7 +3489,7 @@ msgstr ""
3470
  "après avoir pénétré dans votre Tableau de bord de WordPress, d'y installer "
3471
  "une porte dérobée (backdoor) afin de prendre le contrôle de votre blog."
3472
 
3473
- #: lib/help.php:361 lib/login_protection.php:21 ninjafirewall.php:542
3474
  msgid "Login Protection"
3475
  msgstr "Page de Connexion"
3476
 
@@ -3741,7 +3760,7 @@ msgstr ""
3741
  "supprimez votre clé publique ci-dessous. "
3742
 
3743
  #: lib/help.php:472 lib/live_log.php:37 lib/live_log.php:216
3744
- #: ninjafirewall.php:550
3745
  msgid "Live Log"
3746
  msgstr "Live Log"
3747
 
@@ -3876,7 +3895,7 @@ msgstr ""
3876
  "%</code>, <code>[</code>, <code>]</code>, <code>espace</code> et toute "
3877
  "lettre minuscule <code>a-z</code>."
3878
 
3879
- #: lib/help.php:509 lib/rules_editor.php:17 ninjafirewall.php:554
3880
  msgid "Rules Editor"
3881
  msgstr "Éditeur de Règles"
3882
 
@@ -3981,7 +4000,7 @@ msgstr ""
3981
  "<strong>meilleure façon de garder votre WordPress protégé</strong> contre "
3982
  "les dernières vulnérabilités."
3983
 
3984
- #: lib/install_default.php:168
3985
  msgid ""
3986
  "Error: The installer cannot download the security rules from wordpress.org "
3987
  "website."
@@ -3989,7 +4008,7 @@ msgstr ""
3989
  "Erreur : Impossible de télécharger les règles de sécurité depuis le site de "
3990
  "wordpress.org."
3991
 
3992
- #: lib/install_default.php:169
3993
  msgid ""
3994
  "The server may be temporarily down or you may have network connectivity "
3995
  "problems? Please try again in a few minutes."
@@ -3998,7 +4017,7 @@ msgstr ""
3998
  "problèmes de connectivité réseau ? Veuillez ré-essayer d'ici quelques "
3999
  "minutes."
4000
 
4001
- #: lib/install_default.php:170
4002
  msgid ""
4003
  "NinjaFirewall downloads its rules over an HTTPS secure connection. Maybe "
4004
  "your server does not support SSL? You can force NinjaFirewall to use a non-"
@@ -4722,7 +4741,7 @@ msgstr "Erreur : le mot de passe doit comporter de 6 à 32 caractères."
4722
  msgid "Error: unable to write to the %s configuration file"
4723
  msgstr "Erreur : impossible d’écrire dans le fichier de configuration %s"
4724
 
4725
- #: lib/network.php:24 ninjafirewall.php:867 ninjafirewall.php:871
4726
  #, php-format
4727
  msgid "You are not allowed to perform this task (%s)."
4728
  msgstr "Vous n'êtes pas autorisé à effectuer cette tâche (%s)."
@@ -4765,7 +4784,7 @@ msgstr ""
4765
  "Un e-mail \"Guide d'Utilisation, d'Installation et de Dépannage\" a été "
4766
  "envoyé à l'adresse"
4767
 
4768
- #: lib/overview.php:62 lib/utils.php:388
4769
  msgid "unknown error"
4770
  msgstr "erreur inconnue"
4771
 
@@ -4802,7 +4821,7 @@ msgstr "Cliquez ici pour désactiver le mode Débogage"
4802
  msgid "PHP SAPI"
4803
  msgstr "PHP SAPI"
4804
 
4805
- #: lib/overview.php:122 lib/utils.php:522
4806
  msgid "Version"
4807
  msgstr "Version"
4808
 
@@ -5066,7 +5085,7 @@ msgstr "Règles désactivées"
5066
  msgid "Enable it"
5067
  msgstr "Activer"
5068
 
5069
- #: lib/rules_update.php:73 ninjafirewall.php:558
5070
  msgid "Rules Update"
5071
  msgstr "Mise à Jour des Règles"
5072
 
@@ -5242,7 +5261,7 @@ msgstr ""
5242
  "Cette notification peut être désactivée depuis la page \"Mise à Jour des "
5243
  "Règles\" de NinjaFirewall."
5244
 
5245
- #: lib/statistics.php:27 ninjafirewall.php:504
5246
  msgid "Statistics"
5247
  msgstr "Statistiques"
5248
 
@@ -5278,37 +5297,42 @@ msgstr "Requête la plus lente"
5278
  msgid "Select monthly stats to view..."
5279
  msgstr "Sélectionnez les statistiques à afficher"
5280
 
5281
- #: lib/utils.php:70
5282
  msgid "Blocked user account creation"
5283
  msgstr "Création de compte d'utilisateur bloquée"
5284
 
5285
- #: lib/utils.php:82
5286
  msgid "NinjaFirewall has blocked an attempt to create a user account:"
5287
  msgstr ""
5288
  "NinjaFirewall a bloqué une tentative de création d'un compte d'utilisateur :"
5289
 
5290
- #: lib/utils.php:85 lib/utils.php:790
5291
  msgid "Username:"
5292
  msgstr "Utilisateur :"
5293
 
5294
- #: lib/utils.php:86 lib/utils.php:791 lib/utils.php:996
5295
  msgid "User IP:"
5296
  msgstr "IP utilisateur :"
5297
 
5298
- #: lib/utils.php:89 lib/utils.php:633 lib/utils.php:794 lib/utils.php:999
5299
  msgid "Date:"
5300
  msgstr "Date :"
5301
 
5302
- #: lib/utils.php:96 lib/utils.php:97 lib/utils.php:804 lib/utils.php:805
5303
- #: lib/utils.php:953 lib/utils.php:954
 
 
 
 
 
5304
  msgid "You are not allowed to perform this task."
5305
  msgstr "Vous n'êtes pas autorisé à effectuer cette tâche."
5306
 
5307
- #: lib/utils.php:364 lib/utils.php:368
5308
  msgid "NinjaFirewall error"
5309
  msgstr "NinjaFirewall Erreur"
5310
 
5311
- #: lib/utils.php:365
5312
  #, php-format
5313
  msgid ""
5314
  "%s directory cannot be created. Please review your installation and ensure "
@@ -5317,7 +5341,7 @@ msgstr ""
5317
  "Le répertoire %s ne peut pas être créé. Vérifiez votre installation et "
5318
  "assurez vous que %s n'est pas en lecture seule."
5319
 
5320
- #: lib/utils.php:369
5321
  #, php-format
5322
  msgid ""
5323
  "%s directory is read-only. Please review your installation and ensure that "
@@ -5326,19 +5350,19 @@ msgstr ""
5326
  "Le répertoire %s est en lecture seule. Vérifiez votre installation et les "
5327
  "permissions de %s."
5328
 
5329
- #: lib/utils.php:390
5330
  msgid "NinjaFirewall fatal error:"
5331
  msgstr "NinjaFirewall erreur fatale :"
5332
 
5333
- #: lib/utils.php:391
5334
  msgid "Review your installation, your site is not protected."
5335
  msgstr "Vérifiez votre installation, votre site n'est pas protégé."
5336
 
5337
- #: lib/utils.php:439 lib/utils.php:461
5338
  msgid "Forbidden access"
5339
  msgstr "Accès interdit"
5340
 
5341
- #: lib/utils.php:480
5342
  #, php-format
5343
  msgid ""
5344
  "<strong>ERROR</strong>: Invalid username or password.<br /><a href=\"%s"
@@ -5347,59 +5371,59 @@ msgstr ""
5347
  "<strong>ERREUR</strong>: Identifiant ou mot de passe invalide.<br /><a href="
5348
  "\"%s\">Mot de passe perdu</a> ?"
5349
 
5350
- #: lib/utils.php:514
5351
  msgid "Plugin"
5352
  msgstr "Extension"
5353
 
5354
- #: lib/utils.php:514 lib/utils.php:518
5355
  msgid "uploaded"
5356
  msgstr "téléchargé(e)"
5357
 
5358
- #: lib/utils.php:514 lib/utils.php:518
5359
  msgid "installed"
5360
  msgstr "installé(e)"
5361
 
5362
- #: lib/utils.php:514 lib/utils.php:518
5363
  msgid "activated"
5364
  msgstr "activé(e)"
5365
 
5366
- #: lib/utils.php:515
5367
  msgid "updated"
5368
  msgstr "mis(e) à jour"
5369
 
5370
- #: lib/utils.php:515
5371
  msgid "deactivated"
5372
  msgstr "désactivé(e)"
5373
 
5374
- #: lib/utils.php:515 lib/utils.php:519
5375
  msgid "deleted"
5376
  msgstr "supprimé(e)"
5377
 
5378
- #: lib/utils.php:515 lib/utils.php:519
5379
  msgid "Name"
5380
  msgstr "Nom"
5381
 
5382
- #: lib/utils.php:518
5383
  msgid "Theme"
5384
  msgstr "Thème"
5385
 
5386
- #: lib/utils.php:522
5387
  msgid "upgraded"
5388
  msgstr "mis(e) à jour"
5389
 
5390
- #: lib/utils.php:530
5391
  msgid "[NinjaFirewall] Alert:"
5392
  msgstr "[NinjaFirewall] Alerte :"
5393
 
5394
- #: lib/utils.php:536
5395
  msgid "NinjaFirewall has detected the following activity on your account:"
5396
  msgstr "NinjaFirewall a détecté l'activité suivante sur votre compte :"
5397
 
5398
- #: lib/utils.php:628
5399
  msgid "[NinjaFirewall] Alert: Database changes detected"
5400
  msgstr "[NinjaFirewall] Alerte: Modification dans la base de données"
5401
 
5402
- #: lib/utils.php:629
5403
  msgid ""
5404
  "NinjaFirewall has detected that one or more administrator accounts were "
5405
  "modified in the database:"
@@ -5407,12 +5431,12 @@ msgstr ""
5407
  "NinjaFirewall a détecté que un ou plusieurs comptes d'administrateur ont été "
5408
  "modifiés dans la base de données:"
5409
 
5410
- #: lib/utils.php:634
5411
  #, php-format
5412
  msgid "Total administrators : %s"
5413
  msgstr "Nombre d'administrateurs : %s"
5414
 
5415
- #: lib/utils.php:643
5416
  msgid ""
5417
  "If you cannot see any modifications in the above fields, it is possible that "
5418
  "the administrator password was changed."
@@ -5420,17 +5444,17 @@ msgstr ""
5420
  "Si vous ne voyez pas de modifications dans les données ci-dessus, il est "
5421
  "possible que le mot de passe administrateur ait été changé."
5422
 
5423
- #: lib/utils.php:762
5424
  msgid "Blocked privilege escalation attempt"
5425
  msgstr "Tentatives d'élévation des privilèges"
5426
 
5427
- #: lib/utils.php:787
5428
  msgid "NinjaFirewall has blocked an attempt to gain administrative privileges:"
5429
  msgstr ""
5430
  "NinjaFirewall a bloqué un utilisateur ayant essayé d'élever ses privilèges "
5431
  "pour devenir administrateur du blog :"
5432
 
5433
- #: lib/utils.php:815
5434
  msgid ""
5435
  "NinjaFirewall brute-force protection is enabled and you are temporarily "
5436
  "whitelisted."
@@ -5438,7 +5462,7 @@ msgstr ""
5438
  "La protection de NinjaFirewall contre les attaques par force brute est "
5439
  "activée. Vous êtes temporairement dans la liste blanche."
5440
 
5441
- #: lib/utils.php:829
5442
  #, php-format
5443
  msgid ""
5444
  "Hey, it seems that you've been using NinjaFirewall for some time. If you "
@@ -5451,27 +5475,27 @@ msgstr ""
5451
  "a>. Il a fallu des milliers d'heures pour le développer, mais il suffit "
5452
  "seulement de quelques minutes pour le noter. Merci !"
5453
 
5454
- #: lib/utils.php:975
5455
  msgid "WordPress Address (URL)"
5456
  msgstr "Adresse web de WordPress (URL)"
5457
 
5458
- #: lib/utils.php:976
5459
  msgid "Site Address (URL)"
5460
  msgstr "Adresse web du site (URL)"
5461
 
5462
- #: lib/utils.php:977
5463
  msgid "Membership"
5464
  msgstr "Inscription"
5465
 
5466
- #: lib/utils.php:978
5467
  msgid "New User Default Role"
5468
  msgstr "Rôle par défaut de tout nouvel utilisateur"
5469
 
5470
- #: lib/utils.php:981
5471
  msgid "Attempt to modify WordPress settings"
5472
  msgstr "Tentative de modification des paramètres de WordPress"
5473
 
5474
- #: lib/utils.php:982
5475
  msgid ""
5476
  "NinjaFirewall has blocked an attempt to modify some important WordPress "
5477
  "settings by a user that does not have administrative privileges:"
@@ -5480,44 +5504,44 @@ msgstr ""
5480
  "importants de WordPress par un utilisateur ne disposant pas de privilèges "
5481
  "administratifs :"
5482
 
5483
- #: lib/utils.php:984
5484
  msgid ""
5485
  "The attempt was blocked and the option was reversed to its original value."
5486
  msgstr ""
5487
  "La tentative a été bloquée et l'option a été remise à sa valeur d'origine."
5488
 
5489
- #: lib/utils.php:986
5490
  #, php-format
5491
  msgid "Option: %s (%s)"
5492
  msgstr "Option: %s (%s)"
5493
 
5494
- #: lib/utils.php:987
5495
  #, php-format
5496
  msgid "Original value: %s"
5497
  msgstr "Valeur originale : %s"
5498
 
5499
- #: lib/utils.php:988
5500
  #, php-format
5501
  msgid "Modified value: %s"
5502
  msgstr "Valeur modifiée : %s"
5503
 
5504
- #: lib/utils.php:989
5505
  #, php-format
5506
  msgid "Action taken: %s"
5507
  msgstr "Action prise : %s"
5508
 
5509
- #: lib/utils.php:991
5510
  #, php-format
5511
  msgid "You can review this option from your WordPress \"%s\" page."
5512
  msgstr ""
5513
  "Vous pouvez consulter cette option à partir de votre page \"% s\" de "
5514
  "WordPress."
5515
 
5516
- #: lib/utils.php:992
5517
  msgid "Settings > General"
5518
  msgstr "Réglages > Général"
5519
 
5520
- #: lib/utils.php:1001
5521
  msgid ""
5522
  "This protection (and notification) can be turned off from NinjaFirewall "
5523
  "\"Firewall Policies\" page."
@@ -5931,7 +5955,11 @@ msgstr ""
5931
  "modifié les dossiers %s ou %s, vous DEVEZ définir la constante %s afin de "
5932
  "résoudre ce problème (consultez %s pour plus de détails)"
5933
 
5934
- #: ninjafirewall.php:105
 
 
 
 
5935
  msgid ""
5936
  "You do not have \"unfiltered_html\" capability. Please enable it in order to "
5937
  "run NinjaFirewall (or make sure you do not have \"DISALLOW_UNFILTERED_HTML\" "
@@ -5942,7 +5970,7 @@ msgstr ""
5942
  "la directive \"DISALLOW_UNFILTERED_HTML\" activée dans votre fichier wp-"
5943
  "config.php)."
5944
 
5945
- #: ninjafirewall.php:112
5946
  #, php-format
5947
  msgid ""
5948
  "NinjaFirewall requires WordPress 3.3 or greater but your current version is "
@@ -5951,19 +5979,19 @@ msgstr ""
5951
  "NinjaFirewall nécessite au moins WordPress 3.3 mais votre version de "
5952
  "WordPress est %s."
5953
 
5954
- #: ninjafirewall.php:116
5955
  #, php-format
5956
  msgid ""
5957
  "NinjaFirewall requires PHP 5.3 or greater but your current version is %s."
5958
  msgstr ""
5959
  "NinjaFirewall nécessite au moins PHP 5.3 mais votre version de PHP est %s."
5960
 
5961
- #: ninjafirewall.php:120
5962
  #, php-format
5963
  msgid "NinjaFirewall requires the PHP %s extension."
5964
  msgstr "NinjaFirewall nécessite l'extension PHP %s."
5965
 
5966
- #: ninjafirewall.php:124
5967
  msgid ""
5968
  "You have SAFE_MODE enabled. Please disable it, it is deprecated as of PHP "
5969
  "5.3.0 (see http://php.net/safe-mode)."
@@ -5972,130 +6000,145 @@ msgstr ""
5972
  "devenue obsolète depuis PHP 5.3 et a été supprimée depuis PHP 5.4 (cf. "
5973
  "http://php.net/safe-mode)."
5974
 
5975
- #: ninjafirewall.php:128
5976
  msgid "You are not allowed to activate NinjaFirewall."
5977
  msgstr "Vous n’êtes pas autorisé à activer NinjaFirewall."
5978
 
5979
- #: ninjafirewall.php:132
5980
  msgid "NinjaFirewall is not compatible with Microsoft Windows."
5981
  msgstr "NinjaFirewall n'est pas compatible avec Microsoft Windows."
5982
 
5983
- #: ninjafirewall.php:402
5984
  msgid "Alert: WordPress console login"
5985
  msgstr "Alerte : Connexion à WordPress"
5986
 
5987
- #: ninjafirewall.php:404
5988
  msgid "-Blog:"
5989
  msgstr "- Blog :"
5990
 
5991
- #: ninjafirewall.php:408
5992
  msgid "Someone just logged in to your WordPress admin console:"
5993
  msgstr "Quelqu'un vient de se connecter à votre Tableau de bord de WordPress:"
5994
 
5995
- #: ninjafirewall.php:409
5996
  msgid "-User:"
5997
  msgstr "- Nom :"
5998
 
5999
- #: ninjafirewall.php:410
6000
  msgid "-IP:"
6001
  msgstr "- IP :"
6002
 
6003
- #: ninjafirewall.php:411
6004
  msgid "-Date:"
6005
  msgstr "- Date :"
6006
 
6007
- #: ninjafirewall.php:414
6008
  msgid "Support forum"
6009
  msgstr "Forum "
6010
 
6011
- #: ninjafirewall.php:500
6012
  msgid "NinjaFirewall: Overview"
6013
  msgstr "NinjaFirewall : Aperçu"
6014
 
6015
- #: ninjafirewall.php:504
6016
  msgid "NinjaFirewall: Statistics"
6017
  msgstr "NinjaFirewall : Statistiques"
6018
 
6019
- #: ninjafirewall.php:508
6020
  msgid "NinjaFirewall: Firewall Options"
6021
  msgstr "NinjaFirewall : Options du Pare-feu"
6022
 
6023
- #: ninjafirewall.php:512
6024
  msgid "NinjaFirewall: Firewall Policies"
6025
  msgstr "NinjaFirewall : Politiques du Pare-feu"
6026
 
6027
- #: ninjafirewall.php:516
6028
  msgid "NinjaFirewall: File Guard"
6029
  msgstr "NinjaFirewall: File Guard"
6030
 
6031
- #: ninjafirewall.php:520
6032
  msgid "NinjaFirewall: File Check"
6033
  msgstr "NinjaFirewall: File Check"
6034
 
6035
- #: ninjafirewall.php:530
6036
  msgid "NinjaFirewall: Anti-Malware"
6037
  msgstr "NinjaFirewall : Anti-Malware"
6038
 
6039
- #: ninjafirewall.php:534
6040
  msgid "NinjaFirewall: Network"
6041
  msgstr "NinjaFirewall : Réseau"
6042
 
6043
- #: ninjafirewall.php:538
6044
  msgid "NinjaFirewall: Event Notifications"
6045
  msgstr "NinjaFirewall : Notifications d’Événement"
6046
 
6047
- #: ninjafirewall.php:542
6048
  msgid "NinjaFirewall: Log-in Protection"
6049
  msgstr "NinjaFirewall : Page de Connexion"
6050
 
6051
- #: ninjafirewall.php:546
6052
  msgid "NinjaFirewall: Firewall Log"
6053
  msgstr "NinjaFirewall : Journal du Pare-feu"
6054
 
6055
- #: ninjafirewall.php:550
6056
  msgid "NinjaFirewall: Live Log"
6057
  msgstr "NinjaFirewall: Live Log"
6058
 
6059
- #: ninjafirewall.php:554
6060
  msgid "NinjaFirewall: Rules Editor"
6061
  msgstr "NinjaFirewall : Éditeur de Règles"
6062
 
6063
- #: ninjafirewall.php:558
6064
  msgid "NinjaFirewall: Rules Update"
6065
  msgstr "NinjaFirewall: Mise à Jour des Règles"
6066
 
6067
- #: ninjafirewall.php:565
6068
  msgid "NinjaFirewall: About"
6069
  msgstr "NinjaFirewall : À Propos"
6070
 
6071
- #: ninjafirewall.php:565
6072
  msgid "About..."
6073
  msgstr "À Propos..."
6074
 
6075
- #: ninjafirewall.php:605
6076
  msgid "NinjaFirewall Settings"
6077
  msgstr "Réglages de NinjaFirewall"
6078
 
6079
- #: ninjafirewall.php:613
6080
  msgid "NinjaFirewall is enabled"
6081
  msgstr "NinjaFirewall est activé"
6082
 
6083
- #: ninjafirewall.php:802
6084
  msgid "Access Restricted"
6085
  msgstr "Accès limité"
6086
 
6087
- #: ninjafirewall.php:808
6088
  msgid "Settings"
6089
  msgstr "Réglages"
6090
 
6091
- #: ninjafirewall.php:809
6092
  msgid "Upgrade to Premium"
6093
  msgstr "Passez Premium !"
6094
 
6095
- #: ninjafirewall.php:810
6096
  msgid "Rate it!"
6097
  msgstr "Notez-le !"
6098
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6099
  #~ msgid ""
6100
  #~ "Note: This feature does not apply to <code>FORCE_SSL_ADMIN</code>, "
6101
  #~ "<code>DISALLOW_FILE_EDIT</code> and <code>DISALLOW_FILE_MODS</code> "
4
  msgstr ""
5
  "Project-Id-Version: Stable (latest release)\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/ninjafirewall\n"
7
+ "POT-Creation-Date: 2019-03-16 19:26+0700\n"
8
+ "PO-Revision-Date: 2019-03-16 19:26+0700\n"
9
  "Last-Translator: NinTechNet <contact@nintechnet.com>\n"
10
  "Language-Team: NinTechNet <nintechnet.com>\n"
11
  "Language: fr_FR\n"
165
  "offre tout de même des performances et un niveau de protection supérieurs "
166
  "aux autres extensions de sécurité pour WordPress disponibles sur le marché."
167
 
168
+ #: install.php:156 ninjafirewall.php:488
169
  msgid "Installation"
170
  msgstr "Installation"
171
 
225
  "tant que NinjaFirewall est installé !"
226
 
227
  #: install.php:258 lib/firewall_policies.php:107 lib/help.php:168
228
+ #: lib/install_fullwaf.php:33 lib/install_fullwaf.php:141 ninjafirewall.php:513
229
  msgid "Firewall Policies"
230
  msgstr "Politiques du Pare-feu"
231
 
653
  "Pour plus d'information, consultez notre page du <a href=\"%s\">Programme de "
654
  "Parrainage</a>."
655
 
656
+ #: lib/anti_malware.php:24 ninjafirewall.php:531
657
  msgid "Anti-Malware"
658
  msgstr "Anti-Malware"
659
 
718
  msgid "View firewall log"
719
  msgstr "Voir le journal du pare-feu"
720
 
721
+ #: lib/event_notifications.php:45 lib/help.php:349 ninjafirewall.php:539
722
  msgid "Event Notifications"
723
  msgstr "Notifications d'Événement"
724
 
837
  msgstr "Envoyer un rapport d'activité quotidien"
838
 
839
  #: lib/event_notifications.php:150 lib/event_notifications.php:162
840
+ #: lib/event_notifications.php:179 lib/firewall_policies.php:551
841
+ #: lib/firewall_policies.php:594 lib/firewall_policies.php:614
842
+ #: lib/firewall_policies.php:664 lib/firewall_policies.php:709
843
+ #: lib/firewall_policies.php:719 lib/firewall_policies.php:729
844
+ #: lib/firewall_policies.php:772 lib/firewall_policies.php:815
845
+ #: lib/firewall_policies.php:835 lib/firewall_policies.php:1049
846
+ #: lib/firewall_policies.php:1105 lib/firewall_policies.php:1115
847
+ #: lib/firewall_policies.php:1125 lib/firewall_policies.php:1135
848
+ #: lib/firewall_policies.php:1182 lib/firewall_policies.php:1192
849
+ #: lib/network.php:63 lib/rules_update.php:145
850
  msgid "Yes (default)"
851
  msgstr "Oui (défaut)"
852
 
858
  msgid "Write all events to the firewall log"
859
  msgstr "Enregistrer les événements dans le journal du pare-feu"
860
 
861
+ #: lib/event_notifications.php:174
862
+ msgid "PHP backtrace"
863
+ msgstr "Pile d'exécution de PHP"
864
+
865
+ #: lib/event_notifications.php:177
866
+ msgid "Attach a PHP backtrace to important notifications"
867
+ msgstr ""
868
+ "Ajouter aux notifications importantes la pile d'exécution de PHP en pièce "
869
+ "jointe"
870
+
871
+ #: lib/event_notifications.php:180
872
+ #, php-format
873
+ msgid "<a href=\"%s\">Consult our blog</a> for more info."
874
+ msgstr ""
875
+ "<a href=\"%s\">Consultez notre blog pour plus d'informations à ce sujet</a>."
876
+
877
+ #: lib/event_notifications.php:190 lib/event_notifications.php:220
878
  msgid "Contact email"
879
  msgstr "Adresse e-mail du contact"
880
 
881
+ #: lib/event_notifications.php:193 lib/event_notifications.php:223
882
  msgid "Alerts should be sent to"
883
  msgstr "Envoyer les alertes à"
884
 
885
+ #: lib/event_notifications.php:202 lib/event_notifications.php:228
886
  msgid ""
887
  "Multiple recipients must be comma-separated (e.g., <code>joe@example.org,"
888
  "alice@example.org</code>)."
890
  "Plusieurs destinataires doivent être séparés par des virgules (par ex. "
891
  "<code>joe@example.org,alice@example.org</code>)."
892
 
893
+ #: lib/event_notifications.php:225
894
  msgid "Only to me, the Super Admin"
895
  msgstr "Moi uniquement, le Super Admin"
896
 
897
+ #: lib/event_notifications.php:225
898
  msgid "default"
899
  msgstr "défaut"
900
 
901
+ #: lib/event_notifications.php:226
902
  msgid "To the administrator of the site where originated the alert"
903
  msgstr "L'Administrateur du site d’où provient l'alerte"
904
 
905
+ #: lib/event_notifications.php:227
906
  msgid "Other(s):"
907
  msgstr "Autre(s) :"
908
 
909
+ #: lib/event_notifications.php:239
910
  msgid "Save Event Notifications"
911
  msgstr "Sauvegarder les options"
912
 
913
+ #: lib/event_notifications.php:453
914
  msgid "[NinjaFirewall] Daily Activity Report"
915
  msgstr "[NinjaFirewall] Rapport d'activité quotidien"
916
 
917
+ #: lib/event_notifications.php:463
918
  #, php-format
919
  msgid "Daily activity report for: %s"
920
  msgstr "Rapport d'activité quotidien pour : %s"
921
 
922
+ #: lib/event_notifications.php:464
923
  msgid "Date Range Processed: Yesterday"
924
  msgstr "Plage de date traitée : Hier"
925
 
926
+ #: lib/event_notifications.php:466
927
  msgid "Blocked threats:"
928
  msgstr "Menaces bloquées :"
929
 
930
+ #: lib/event_notifications.php:468
931
  msgid "critical:"
932
  msgstr "Critique :"
933
 
934
+ #: lib/event_notifications.php:469
935
  msgid "high:"
936
  msgstr "Élevé :"
937
 
938
+ #: lib/event_notifications.php:470
939
  msgid "medium:"
940
  msgstr "Moyen :"
941
 
942
+ #: lib/event_notifications.php:472
943
  msgid "Blocked brute-force attacks:"
944
  msgstr "Attaques par force brute bloquées :"
945
 
946
+ #: lib/event_notifications.php:473 lib/utils.php:682 lib/utils.php:844
947
  msgid ""
948
  "This notification can be turned off from NinjaFirewall \"Event Notifications"
949
  "\" page."
951
  "Cette notification peut être désactivée depuis la page \"Notifications "
952
  "d’Événement\" de NinjaFirewall."
953
 
954
+ #: lib/event_notifications.php:477 lib/file_check.php:855
955
  #: lib/file_check.php:872 lib/firewall_options.php:573 lib/rules_update.php:565
956
+ #: lib/utils.php:582
957
  msgid "Support forum:"
958
  msgstr "Forum :"
959
 
981
  msgid "No changes detected."
982
  msgstr "Aucun changement n'a été détecté."
983
 
984
+ #: lib/file_check.php:129 lib/help.php:316 ninjafirewall.php:521
985
  msgid "File Check"
986
  msgstr "File Check"
987
 
1272
  msgid "Error reading new snapshot file."
1273
  msgstr "Erreur lors de la lecture du fichier du nouvel instantané."
1274
 
1275
+ #: lib/file_check.php:814 ninjafirewall.php:270
1276
  msgid "New file"
1277
  msgstr "Nouveau fichier"
1278
 
1279
+ #: lib/file_check.php:815 ninjafirewall.php:271
1280
  msgid "Modified file"
1281
  msgstr "Fichier modifié"
1282
 
1283
+ #: lib/file_check.php:816 ninjafirewall.php:272
1284
  msgid "Deleted file"
1285
  msgstr "Fichier supprimé"
1286
 
1290
 
1291
  #: lib/file_check.php:843 lib/file_check.php:845 lib/file_check.php:866
1292
  #: lib/file_check.php:868 lib/rules_update.php:557 lib/rules_update.php:559
1293
+ #: lib/utils.php:104 lib/utils.php:670 lib/utils.php:828 lib/utils.php:1080
1294
  msgid "Blog:"
1295
  msgstr "Blog :"
1296
 
1315
  msgid "Please enter a number from 1 to 99."
1316
  msgstr "Veuillez entrer un nombre de 1 à 99."
1317
 
1318
+ #: lib/file_guard.php:54 lib/help.php:284 ninjafirewall.php:517
1319
  msgid "File Guard"
1320
  msgstr "File Guard"
1321
 
1417
  msgid "Your public key has been saved"
1418
  msgstr "Votre clé publique a été sauvegardée"
1419
 
1420
+ #: lib/firewall_log.php:84 lib/help.php:423 ninjafirewall.php:547
1421
  msgid "Firewall Log"
1422
  msgstr "Journal du Pare-feu"
1423
 
1449
  msgstr "Le journal sélectionné est vide."
1450
 
1451
  #: lib/firewall_log.php:156
1452
+ msgid ""
1453
+ "The log shows all threats that were blocked by the firewall, unless stated "
1454
+ "otherwise. It is rotated monthly."
1455
  msgstr ""
1456
+ "Le journal affiche toutes les menaces bloquées par le pare-feu, sauf "
1457
+ "indication contraire. La rotation du journal est mensuelle."
1458
 
1459
  #: lib/firewall_log.php:169
1460
  msgid "Log Options"
1545
  msgid "Refresh preview"
1546
  msgstr "Réactualiser"
1547
 
1548
+ #: lib/firewall_options.php:71 ninjafirewall.php:509
1549
  msgid "Firewall Options"
1550
  msgstr "Options du Pare-feu"
1551
 
1706
  msgid "[NinjaFirewall] Alert: Firewall is disabled"
1707
  msgstr "[NinjaFirewall] Alerte : Le pare-feu a été désactivé"
1708
 
1709
+ #: lib/firewall_options.php:549 lib/firewall_options.php:551 lib/utils.php:570
1710
+ #: lib/utils.php:572
1711
  msgid "-Blog :"
1712
  msgstr "- Blog :"
1713
 
1736
  "Quelqu'un a importé une nouvelle configuration qui a modifié tous les "
1737
  "paramètres du pare-feu :"
1738
 
1739
+ #: lib/firewall_options.php:568 lib/utils.php:577
1740
  msgid "-User :"
1741
  msgstr "- Nom :"
1742
 
1743
+ #: lib/firewall_options.php:569 lib/utils.php:578
1744
  msgid "-IP :"
1745
  msgstr "- IP :"
1746
 
1747
+ #: lib/firewall_options.php:570 lib/utils.php:579
1748
  msgid "-Date :"
1749
  msgstr "- Date :"
1750
 
2288
  msgid "Restore Default Values"
2289
  msgstr "Rétablir les valeurs par défaut"
2290
 
2291
+ #: lib/help.php:37 ninjafirewall.php:501
2292
  msgid "Overview"
2293
  msgstr "Aperçu"
2294
 
3340
  "intercepter les requêtes HTTP envoyées à tout script PHP, même si ce dernier "
3341
  "ne fait pas partie de WordPress (logiciel tiers, backdoor, etc)."
3342
 
3343
+ #: lib/help.php:300 lib/network.php:32 ninjafirewall.php:535
3344
  msgid "Network"
3345
  msgstr "Réseau"
3346
 
3489
  "après avoir pénétré dans votre Tableau de bord de WordPress, d'y installer "
3490
  "une porte dérobée (backdoor) afin de prendre le contrôle de votre blog."
3491
 
3492
+ #: lib/help.php:361 lib/login_protection.php:21 ninjafirewall.php:543
3493
  msgid "Login Protection"
3494
  msgstr "Page de Connexion"
3495
 
3760
  "supprimez votre clé publique ci-dessous. "
3761
 
3762
  #: lib/help.php:472 lib/live_log.php:37 lib/live_log.php:216
3763
+ #: ninjafirewall.php:551
3764
  msgid "Live Log"
3765
  msgstr "Live Log"
3766
 
3895
  "%</code>, <code>[</code>, <code>]</code>, <code>espace</code> et toute "
3896
  "lettre minuscule <code>a-z</code>."
3897
 
3898
+ #: lib/help.php:509 lib/rules_editor.php:17 ninjafirewall.php:555
3899
  msgid "Rules Editor"
3900
  msgstr "Éditeur de Règles"
3901
 
4000
  "<strong>meilleure façon de garder votre WordPress protégé</strong> contre "
4001
  "les dernières vulnérabilités."
4002
 
4003
+ #: lib/install_default.php:170
4004
  msgid ""
4005
  "Error: The installer cannot download the security rules from wordpress.org "
4006
  "website."
4008
  "Erreur : Impossible de télécharger les règles de sécurité depuis le site de "
4009
  "wordpress.org."
4010
 
4011
+ #: lib/install_default.php:171
4012
  msgid ""
4013
  "The server may be temporarily down or you may have network connectivity "
4014
  "problems? Please try again in a few minutes."
4017
  "problèmes de connectivité réseau ? Veuillez ré-essayer d'ici quelques "
4018
  "minutes."
4019
 
4020
+ #: lib/install_default.php:172
4021
  msgid ""
4022
  "NinjaFirewall downloads its rules over an HTTPS secure connection. Maybe "
4023
  "your server does not support SSL? You can force NinjaFirewall to use a non-"
4741
  msgid "Error: unable to write to the %s configuration file"
4742
  msgstr "Erreur : impossible d’écrire dans le fichier de configuration %s"
4743
 
4744
+ #: lib/network.php:24 ninjafirewall.php:868 ninjafirewall.php:872
4745
  #, php-format
4746
  msgid "You are not allowed to perform this task (%s)."
4747
  msgstr "Vous n'êtes pas autorisé à effectuer cette tâche (%s)."
4784
  "Un e-mail \"Guide d'Utilisation, d'Installation et de Dépannage\" a été "
4785
  "envoyé à l'adresse"
4786
 
4787
+ #: lib/overview.php:62 lib/utils.php:426
4788
  msgid "unknown error"
4789
  msgstr "erreur inconnue"
4790
 
4821
  msgid "PHP SAPI"
4822
  msgstr "PHP SAPI"
4823
 
4824
+ #: lib/overview.php:122 lib/utils.php:560
4825
  msgid "Version"
4826
  msgstr "Version"
4827
 
5085
  msgid "Enable it"
5086
  msgstr "Activer"
5087
 
5088
+ #: lib/rules_update.php:73 ninjafirewall.php:559
5089
  msgid "Rules Update"
5090
  msgstr "Mise à Jour des Règles"
5091
 
5261
  "Cette notification peut être désactivée depuis la page \"Mise à Jour des "
5262
  "Règles\" de NinjaFirewall."
5263
 
5264
+ #: lib/statistics.php:27 ninjafirewall.php:505
5265
  msgid "Statistics"
5266
  msgstr "Statistiques"
5267
 
5297
  msgid "Select monthly stats to view..."
5298
  msgstr "Sélectionnez les statistiques à afficher"
5299
 
5300
+ #: lib/utils.php:90
5301
  msgid "Blocked user account creation"
5302
  msgstr "Création de compte d'utilisateur bloquée"
5303
 
5304
+ #: lib/utils.php:102
5305
  msgid "NinjaFirewall has blocked an attempt to create a user account:"
5306
  msgstr ""
5307
  "NinjaFirewall a bloqué une tentative de création d'un compte d'utilisateur :"
5308
 
5309
+ #: lib/utils.php:105 lib/utils.php:829
5310
  msgid "Username:"
5311
  msgstr "Utilisateur :"
5312
 
5313
+ #: lib/utils.php:106 lib/utils.php:830 lib/utils.php:1081
5314
  msgid "User IP:"
5315
  msgstr "IP utilisateur :"
5316
 
5317
+ #: lib/utils.php:109 lib/utils.php:671 lib/utils.php:833 lib/utils.php:1084
5318
  msgid "Date:"
5319
  msgstr "Date :"
5320
 
5321
+ #: lib/utils.php:117 lib/utils.php:841 lib/utils.php:1076
5322
+ msgid "A PHP backtrace has been attached to this message for your convenience."
5323
+ msgstr ""
5324
+ "La pile d'exécution de PHP est jointe à ce message pour votre commodité."
5325
+
5326
+ #: lib/utils.php:134 lib/utils.php:135 lib/utils.php:860 lib/utils.php:861
5327
+ #: lib/utils.php:1028 lib/utils.php:1029
5328
  msgid "You are not allowed to perform this task."
5329
  msgstr "Vous n'êtes pas autorisé à effectuer cette tâche."
5330
 
5331
+ #: lib/utils.php:402 lib/utils.php:406
5332
  msgid "NinjaFirewall error"
5333
  msgstr "NinjaFirewall Erreur"
5334
 
5335
+ #: lib/utils.php:403
5336
  #, php-format
5337
  msgid ""
5338
  "%s directory cannot be created. Please review your installation and ensure "
5341
  "Le répertoire %s ne peut pas être créé. Vérifiez votre installation et "
5342
  "assurez vous que %s n'est pas en lecture seule."
5343
 
5344
+ #: lib/utils.php:407
5345
  #, php-format
5346
  msgid ""
5347
  "%s directory is read-only. Please review your installation and ensure that "
5350
  "Le répertoire %s est en lecture seule. Vérifiez votre installation et les "
5351
  "permissions de %s."
5352
 
5353
+ #: lib/utils.php:428
5354
  msgid "NinjaFirewall fatal error:"
5355
  msgstr "NinjaFirewall erreur fatale :"
5356
 
5357
+ #: lib/utils.php:429
5358
  msgid "Review your installation, your site is not protected."
5359
  msgstr "Vérifiez votre installation, votre site n'est pas protégé."
5360
 
5361
+ #: lib/utils.php:477 lib/utils.php:499
5362
  msgid "Forbidden access"
5363
  msgstr "Accès interdit"
5364
 
5365
+ #: lib/utils.php:518
5366
  #, php-format
5367
  msgid ""
5368
  "<strong>ERROR</strong>: Invalid username or password.<br /><a href=\"%s"
5371
  "<strong>ERREUR</strong>: Identifiant ou mot de passe invalide.<br /><a href="
5372
  "\"%s\">Mot de passe perdu</a> ?"
5373
 
5374
+ #: lib/utils.php:552
5375
  msgid "Plugin"
5376
  msgstr "Extension"
5377
 
5378
+ #: lib/utils.php:552 lib/utils.php:556
5379
  msgid "uploaded"
5380
  msgstr "téléchargé(e)"
5381
 
5382
+ #: lib/utils.php:552 lib/utils.php:556
5383
  msgid "installed"
5384
  msgstr "installé(e)"
5385
 
5386
+ #: lib/utils.php:552 lib/utils.php:556
5387
  msgid "activated"
5388
  msgstr "activé(e)"
5389
 
5390
+ #: lib/utils.php:553
5391
  msgid "updated"
5392
  msgstr "mis(e) à jour"
5393
 
5394
+ #: lib/utils.php:553
5395
  msgid "deactivated"
5396
  msgstr "désactivé(e)"
5397
 
5398
+ #: lib/utils.php:553 lib/utils.php:557
5399
  msgid "deleted"
5400
  msgstr "supprimé(e)"
5401
 
5402
+ #: lib/utils.php:553 lib/utils.php:557
5403
  msgid "Name"
5404
  msgstr "Nom"
5405
 
5406
+ #: lib/utils.php:556
5407
  msgid "Theme"
5408
  msgstr "Thème"
5409
 
5410
+ #: lib/utils.php:560
5411
  msgid "upgraded"
5412
  msgstr "mis(e) à jour"
5413
 
5414
+ #: lib/utils.php:568
5415
  msgid "[NinjaFirewall] Alert:"
5416
  msgstr "[NinjaFirewall] Alerte :"
5417
 
5418
+ #: lib/utils.php:574
5419
  msgid "NinjaFirewall has detected the following activity on your account:"
5420
  msgstr "NinjaFirewall a détecté l'activité suivante sur votre compte :"
5421
 
5422
+ #: lib/utils.php:666
5423
  msgid "[NinjaFirewall] Alert: Database changes detected"
5424
  msgstr "[NinjaFirewall] Alerte: Modification dans la base de données"
5425
 
5426
+ #: lib/utils.php:667
5427
  msgid ""
5428
  "NinjaFirewall has detected that one or more administrator accounts were "
5429
  "modified in the database:"
5431
  "NinjaFirewall a détecté que un ou plusieurs comptes d'administrateur ont été "
5432
  "modifiés dans la base de données:"
5433
 
5434
+ #: lib/utils.php:672
5435
  #, php-format
5436
  msgid "Total administrators : %s"
5437
  msgstr "Nombre d'administrateurs : %s"
5438
 
5439
+ #: lib/utils.php:681
5440
  msgid ""
5441
  "If you cannot see any modifications in the above fields, it is possible that "
5442
  "the administrator password was changed."
5444
  "Si vous ne voyez pas de modifications dans les données ci-dessus, il est "
5445
  "possible que le mot de passe administrateur ait été changé."
5446
 
5447
+ #: lib/utils.php:801
5448
  msgid "Blocked privilege escalation attempt"
5449
  msgstr "Tentatives d'élévation des privilèges"
5450
 
5451
+ #: lib/utils.php:826
5452
  msgid "NinjaFirewall has blocked an attempt to gain administrative privileges:"
5453
  msgstr ""
5454
  "NinjaFirewall a bloqué un utilisateur ayant essayé d'élever ses privilèges "
5455
  "pour devenir administrateur du blog :"
5456
 
5457
+ #: lib/utils.php:871
5458
  msgid ""
5459
  "NinjaFirewall brute-force protection is enabled and you are temporarily "
5460
  "whitelisted."
5462
  "La protection de NinjaFirewall contre les attaques par force brute est "
5463
  "activée. Vous êtes temporairement dans la liste blanche."
5464
 
5465
+ #: lib/utils.php:885
5466
  #, php-format
5467
  msgid ""
5468
  "Hey, it seems that you've been using NinjaFirewall for some time. If you "
5475
  "a>. Il a fallu des milliers d'heures pour le développer, mais il suffit "
5476
  "seulement de quelques minutes pour le noter. Merci !"
5477
 
5478
+ #: lib/utils.php:1050
5479
  msgid "WordPress Address (URL)"
5480
  msgstr "Adresse web de WordPress (URL)"
5481
 
5482
+ #: lib/utils.php:1051
5483
  msgid "Site Address (URL)"
5484
  msgstr "Adresse web du site (URL)"
5485
 
5486
+ #: lib/utils.php:1052
5487
  msgid "Membership"
5488
  msgstr "Inscription"
5489
 
5490
+ #: lib/utils.php:1053
5491
  msgid "New User Default Role"
5492
  msgstr "Rôle par défaut de tout nouvel utilisateur"
5493
 
5494
+ #: lib/utils.php:1056
5495
  msgid "Attempt to modify WordPress settings"
5496
  msgstr "Tentative de modification des paramètres de WordPress"
5497
 
5498
+ #: lib/utils.php:1057
5499
  msgid ""
5500
  "NinjaFirewall has blocked an attempt to modify some important WordPress "
5501
  "settings by a user that does not have administrative privileges:"
5504
  "importants de WordPress par un utilisateur ne disposant pas de privilèges "
5505
  "administratifs :"
5506
 
5507
+ #: lib/utils.php:1059
5508
  msgid ""
5509
  "The attempt was blocked and the option was reversed to its original value."
5510
  msgstr ""
5511
  "La tentative a été bloquée et l'option a été remise à sa valeur d'origine."
5512
 
5513
+ #: lib/utils.php:1061
5514
  #, php-format
5515
  msgid "Option: %s (%s)"
5516
  msgstr "Option: %s (%s)"
5517
 
5518
+ #: lib/utils.php:1062
5519
  #, php-format
5520
  msgid "Original value: %s"
5521
  msgstr "Valeur originale : %s"
5522
 
5523
+ #: lib/utils.php:1063
5524
  #, php-format
5525
  msgid "Modified value: %s"
5526
  msgstr "Valeur modifiée : %s"
5527
 
5528
+ #: lib/utils.php:1064
5529
  #, php-format
5530
  msgid "Action taken: %s"
5531
  msgstr "Action prise : %s"
5532
 
5533
+ #: lib/utils.php:1066
5534
  #, php-format
5535
  msgid "You can review this option from your WordPress \"%s\" page."
5536
  msgstr ""
5537
  "Vous pouvez consulter cette option à partir de votre page \"% s\" de "
5538
  "WordPress."
5539
 
5540
+ #: lib/utils.php:1067
5541
  msgid "Settings > General"
5542
  msgstr "Réglages > Général"
5543
 
5544
+ #: lib/utils.php:1086
5545
  msgid ""
5546
  "This protection (and notification) can be turned off from NinjaFirewall "
5547
  "\"Firewall Policies\" page."
5955
  "modifié les dossiers %s ou %s, vous DEVEZ définir la constante %s afin de "
5956
  "résoudre ce problème (consultez %s pour plus de détails)"
5957
 
5958
+ #: ninjafirewall.php:81
5959
+ msgid "The PHP msqli extension is missing or not loaded."
5960
+ msgstr "L'extension PHP mysqli est manquante ou bien n'est pas chargée."
5961
+
5962
+ #: ninjafirewall.php:106
5963
  msgid ""
5964
  "You do not have \"unfiltered_html\" capability. Please enable it in order to "
5965
  "run NinjaFirewall (or make sure you do not have \"DISALLOW_UNFILTERED_HTML\" "
5970
  "la directive \"DISALLOW_UNFILTERED_HTML\" activée dans votre fichier wp-"
5971
  "config.php)."
5972
 
5973
+ #: ninjafirewall.php:113
5974
  #, php-format
5975
  msgid ""
5976
  "NinjaFirewall requires WordPress 3.3 or greater but your current version is "
5979
  "NinjaFirewall nécessite au moins WordPress 3.3 mais votre version de "
5980
  "WordPress est %s."
5981
 
5982
+ #: ninjafirewall.php:117
5983
  #, php-format
5984
  msgid ""
5985
  "NinjaFirewall requires PHP 5.3 or greater but your current version is %s."
5986
  msgstr ""
5987
  "NinjaFirewall nécessite au moins PHP 5.3 mais votre version de PHP est %s."
5988
 
5989
+ #: ninjafirewall.php:121
5990
  #, php-format
5991
  msgid "NinjaFirewall requires the PHP %s extension."
5992
  msgstr "NinjaFirewall nécessite l'extension PHP %s."
5993
 
5994
+ #: ninjafirewall.php:125
5995
  msgid ""
5996
  "You have SAFE_MODE enabled. Please disable it, it is deprecated as of PHP "
5997
  "5.3.0 (see http://php.net/safe-mode)."
6000
  "devenue obsolète depuis PHP 5.3 et a été supprimée depuis PHP 5.4 (cf. "
6001
  "http://php.net/safe-mode)."
6002
 
6003
+ #: ninjafirewall.php:129
6004
  msgid "You are not allowed to activate NinjaFirewall."
6005
  msgstr "Vous n’êtes pas autorisé à activer NinjaFirewall."
6006
 
6007
+ #: ninjafirewall.php:133
6008
  msgid "NinjaFirewall is not compatible with Microsoft Windows."
6009
  msgstr "NinjaFirewall n'est pas compatible avec Microsoft Windows."
6010
 
6011
+ #: ninjafirewall.php:403
6012
  msgid "Alert: WordPress console login"
6013
  msgstr "Alerte : Connexion à WordPress"
6014
 
6015
+ #: ninjafirewall.php:405
6016
  msgid "-Blog:"
6017
  msgstr "- Blog :"
6018
 
6019
+ #: ninjafirewall.php:409
6020
  msgid "Someone just logged in to your WordPress admin console:"
6021
  msgstr "Quelqu'un vient de se connecter à votre Tableau de bord de WordPress:"
6022
 
6023
+ #: ninjafirewall.php:410
6024
  msgid "-User:"
6025
  msgstr "- Nom :"
6026
 
6027
+ #: ninjafirewall.php:411
6028
  msgid "-IP:"
6029
  msgstr "- IP :"
6030
 
6031
+ #: ninjafirewall.php:412
6032
  msgid "-Date:"
6033
  msgstr "- Date :"
6034
 
6035
+ #: ninjafirewall.php:415
6036
  msgid "Support forum"
6037
  msgstr "Forum "
6038
 
6039
+ #: ninjafirewall.php:501
6040
  msgid "NinjaFirewall: Overview"
6041
  msgstr "NinjaFirewall : Aperçu"
6042
 
6043
+ #: ninjafirewall.php:505
6044
  msgid "NinjaFirewall: Statistics"
6045
  msgstr "NinjaFirewall : Statistiques"
6046
 
6047
+ #: ninjafirewall.php:509
6048
  msgid "NinjaFirewall: Firewall Options"
6049
  msgstr "NinjaFirewall : Options du Pare-feu"
6050
 
6051
+ #: ninjafirewall.php:513
6052
  msgid "NinjaFirewall: Firewall Policies"
6053
  msgstr "NinjaFirewall : Politiques du Pare-feu"
6054
 
6055
+ #: ninjafirewall.php:517
6056
  msgid "NinjaFirewall: File Guard"
6057
  msgstr "NinjaFirewall: File Guard"
6058
 
6059
+ #: ninjafirewall.php:521
6060
  msgid "NinjaFirewall: File Check"
6061
  msgstr "NinjaFirewall: File Check"
6062
 
6063
+ #: ninjafirewall.php:531
6064
  msgid "NinjaFirewall: Anti-Malware"
6065
  msgstr "NinjaFirewall : Anti-Malware"
6066
 
6067
+ #: ninjafirewall.php:535
6068
  msgid "NinjaFirewall: Network"
6069
  msgstr "NinjaFirewall : Réseau"
6070
 
6071
+ #: ninjafirewall.php:539
6072
  msgid "NinjaFirewall: Event Notifications"
6073
  msgstr "NinjaFirewall : Notifications d’Événement"
6074
 
6075
+ #: ninjafirewall.php:543
6076
  msgid "NinjaFirewall: Log-in Protection"
6077
  msgstr "NinjaFirewall : Page de Connexion"
6078
 
6079
+ #: ninjafirewall.php:547
6080
  msgid "NinjaFirewall: Firewall Log"
6081
  msgstr "NinjaFirewall : Journal du Pare-feu"
6082
 
6083
+ #: ninjafirewall.php:551
6084
  msgid "NinjaFirewall: Live Log"
6085
  msgstr "NinjaFirewall: Live Log"
6086
 
6087
+ #: ninjafirewall.php:555
6088
  msgid "NinjaFirewall: Rules Editor"
6089
  msgstr "NinjaFirewall : Éditeur de Règles"
6090
 
6091
+ #: ninjafirewall.php:559
6092
  msgid "NinjaFirewall: Rules Update"
6093
  msgstr "NinjaFirewall: Mise à Jour des Règles"
6094
 
6095
+ #: ninjafirewall.php:566
6096
  msgid "NinjaFirewall: About"
6097
  msgstr "NinjaFirewall : À Propos"
6098
 
6099
+ #: ninjafirewall.php:566
6100
  msgid "About..."
6101
  msgstr "À Propos..."
6102
 
6103
+ #: ninjafirewall.php:606
6104
  msgid "NinjaFirewall Settings"
6105
  msgstr "Réglages de NinjaFirewall"
6106
 
6107
+ #: ninjafirewall.php:614
6108
  msgid "NinjaFirewall is enabled"
6109
  msgstr "NinjaFirewall est activé"
6110
 
6111
+ #: ninjafirewall.php:803
6112
  msgid "Access Restricted"
6113
  msgstr "Accès limité"
6114
 
6115
+ #: ninjafirewall.php:809
6116
  msgid "Settings"
6117
  msgstr "Réglages"
6118
 
6119
+ #: ninjafirewall.php:810
6120
  msgid "Upgrade to Premium"
6121
  msgstr "Passez Premium !"
6122
 
6123
+ #: ninjafirewall.php:811
6124
  msgid "Rate it!"
6125
  msgstr "Notez-le !"
6126
 
6127
+ #~ msgid "Attached a PHP backtrace to important notifications"
6128
+ #~ msgstr ""
6129
+ #~ "Ajouter aux notifications importantes la pile d'exécution de PHP en pièce "
6130
+ #~ "jointe"
6131
+
6132
+ #~ msgid "Attached PHP backtrace to important notifications"
6133
+ #~ msgstr ""
6134
+ #~ "Ajouter aux notifications importantes la pile d'exécution de PHP en pièce "
6135
+ #~ "jointe"
6136
+
6137
+ #~ msgid "The log is rotated monthly"
6138
+ #~ msgstr ""
6139
+ #~ "NinjaFirewall effectue une rotation automatique du journal le premier "
6140
+ #~ "jour de chaque mois."
6141
+
6142
  #~ msgid ""
6143
  #~ "Note: This feature does not apply to <code>FORCE_SSL_ADMIN</code>, "
6144
  #~ "<code>DISALLOW_FILE_EDIT</code> and <code>DISALLOW_FILE_MODS</code> "
languages/ninjafirewall.pot CHANGED
@@ -2,7 +2,7 @@
2
  msgid ""
3
  msgstr ""
4
  "Project-Id-Version: Stable (latest release)\n"
5
- "POT-Creation-Date: 2019-02-16 22:35+0700\n"
6
  "PO-Revision-Date: 2018-04-05 22:52+0700\n"
7
  "Last-Translator: NinTechNet <contact@nintechnet.com>\n"
8
  "Language-Team: \n"
@@ -121,7 +121,7 @@ msgid ""
121
  "level of protection and performance higher than any other security plugin."
122
  msgstr ""
123
 
124
- #: install.php:156 ninjafirewall.php:487
125
  msgid "Installation"
126
  msgstr ""
127
 
@@ -170,7 +170,7 @@ msgid ""
170
  msgstr ""
171
 
172
  #: install.php:258 lib/firewall_policies.php:107 lib/help.php:168
173
- #: lib/install_fullwaf.php:33 lib/install_fullwaf.php:141 ninjafirewall.php:512
174
  msgid "Firewall Policies"
175
  msgstr ""
176
 
@@ -551,7 +551,7 @@ msgid ""
551
  "Program page</a>."
552
  msgstr ""
553
 
554
- #: lib/anti_malware.php:24 ninjafirewall.php:530
555
  msgid "Anti-Malware"
556
  msgstr ""
557
 
@@ -608,7 +608,7 @@ msgstr ""
608
  msgid "View firewall log"
609
  msgstr ""
610
 
611
- #: lib/event_notifications.php:45 lib/help.php:349 ninjafirewall.php:538
612
  msgid "Event Notifications"
613
  msgstr ""
614
 
@@ -723,15 +723,16 @@ msgid "Send me a daily activity report"
723
  msgstr ""
724
 
725
  #: lib/event_notifications.php:150 lib/event_notifications.php:162
726
- #: lib/firewall_policies.php:551 lib/firewall_policies.php:594
727
- #: lib/firewall_policies.php:614 lib/firewall_policies.php:664
728
- #: lib/firewall_policies.php:709 lib/firewall_policies.php:719
729
- #: lib/firewall_policies.php:729 lib/firewall_policies.php:772
730
- #: lib/firewall_policies.php:815 lib/firewall_policies.php:835
731
- #: lib/firewall_policies.php:1049 lib/firewall_policies.php:1105
732
- #: lib/firewall_policies.php:1115 lib/firewall_policies.php:1125
733
- #: lib/firewall_policies.php:1135 lib/firewall_policies.php:1182
734
- #: lib/firewall_policies.php:1192 lib/network.php:63 lib/rules_update.php:145
 
735
  msgid "Yes (default)"
736
  msgstr ""
737
 
@@ -743,82 +744,95 @@ msgstr ""
743
  msgid "Write all events to the firewall log"
744
  msgstr ""
745
 
746
- #: lib/event_notifications.php:172 lib/event_notifications.php:202
 
 
 
 
 
 
 
 
 
 
 
 
 
747
  msgid "Contact email"
748
  msgstr ""
749
 
750
- #: lib/event_notifications.php:175 lib/event_notifications.php:205
751
  msgid "Alerts should be sent to"
752
  msgstr ""
753
 
754
- #: lib/event_notifications.php:184 lib/event_notifications.php:210
755
  msgid ""
756
  "Multiple recipients must be comma-separated (e.g., <code>joe@example.org,"
757
  "alice@example.org</code>)."
758
  msgstr ""
759
 
760
- #: lib/event_notifications.php:207
761
  msgid "Only to me, the Super Admin"
762
  msgstr ""
763
 
764
- #: lib/event_notifications.php:207
765
  msgid "default"
766
  msgstr ""
767
 
768
- #: lib/event_notifications.php:208
769
  msgid "To the administrator of the site where originated the alert"
770
  msgstr ""
771
 
772
- #: lib/event_notifications.php:209
773
  msgid "Other(s):"
774
  msgstr ""
775
 
776
- #: lib/event_notifications.php:221
777
  msgid "Save Event Notifications"
778
  msgstr ""
779
 
780
- #: lib/event_notifications.php:428
781
  msgid "[NinjaFirewall] Daily Activity Report"
782
  msgstr ""
783
 
784
- #: lib/event_notifications.php:438
785
  #, php-format
786
  msgid "Daily activity report for: %s"
787
  msgstr ""
788
 
789
- #: lib/event_notifications.php:439
790
  msgid "Date Range Processed: Yesterday"
791
  msgstr ""
792
 
793
- #: lib/event_notifications.php:441
794
  msgid "Blocked threats:"
795
  msgstr ""
796
 
797
- #: lib/event_notifications.php:443
798
  msgid "critical:"
799
  msgstr ""
800
 
801
- #: lib/event_notifications.php:444
802
  msgid "high:"
803
  msgstr ""
804
 
805
- #: lib/event_notifications.php:445
806
  msgid "medium:"
807
  msgstr ""
808
 
809
- #: lib/event_notifications.php:447
810
  msgid "Blocked brute-force attacks:"
811
  msgstr ""
812
 
813
- #: lib/event_notifications.php:448 lib/utils.php:644 lib/utils.php:795
814
  msgid ""
815
  "This notification can be turned off from NinjaFirewall \"Event Notifications"
816
  "\" page."
817
  msgstr ""
818
 
819
- #: lib/event_notifications.php:452 lib/file_check.php:855
820
  #: lib/file_check.php:872 lib/firewall_options.php:573 lib/rules_update.php:565
821
- #: lib/utils.php:544
822
  msgid "Support forum:"
823
  msgstr ""
824
 
@@ -846,7 +860,7 @@ msgstr ""
846
  msgid "No changes detected."
847
  msgstr ""
848
 
849
- #: lib/file_check.php:129 lib/help.php:316 ninjafirewall.php:520
850
  msgid "File Check"
851
  msgstr ""
852
 
@@ -1126,15 +1140,15 @@ msgstr ""
1126
  msgid "Error reading new snapshot file."
1127
  msgstr ""
1128
 
1129
- #: lib/file_check.php:814 ninjafirewall.php:269
1130
  msgid "New file"
1131
  msgstr ""
1132
 
1133
- #: lib/file_check.php:815 ninjafirewall.php:270
1134
  msgid "Modified file"
1135
  msgstr ""
1136
 
1137
- #: lib/file_check.php:816 ninjafirewall.php:271
1138
  msgid "Deleted file"
1139
  msgstr ""
1140
 
@@ -1144,7 +1158,7 @@ msgstr ""
1144
 
1145
  #: lib/file_check.php:843 lib/file_check.php:845 lib/file_check.php:866
1146
  #: lib/file_check.php:868 lib/rules_update.php:557 lib/rules_update.php:559
1147
- #: lib/utils.php:84 lib/utils.php:632 lib/utils.php:789 lib/utils.php:995
1148
  msgid "Blog:"
1149
  msgstr ""
1150
 
@@ -1169,7 +1183,7 @@ msgstr ""
1169
  msgid "Please enter a number from 1 to 99."
1170
  msgstr ""
1171
 
1172
- #: lib/file_guard.php:54 lib/help.php:284 ninjafirewall.php:516
1173
  msgid "File Guard"
1174
  msgstr ""
1175
 
@@ -1256,7 +1270,7 @@ msgstr ""
1256
  msgid "Your public key has been saved"
1257
  msgstr ""
1258
 
1259
- #: lib/firewall_log.php:84 lib/help.php:423 ninjafirewall.php:546
1260
  msgid "Firewall Log"
1261
  msgstr ""
1262
 
@@ -1286,7 +1300,9 @@ msgid "The selected log is empty."
1286
  msgstr ""
1287
 
1288
  #: lib/firewall_log.php:156
1289
- msgid "The log is rotated monthly"
 
 
1290
  msgstr ""
1291
 
1292
  #: lib/firewall_log.php:169
@@ -1371,7 +1387,7 @@ msgstr ""
1371
  msgid "Refresh preview"
1372
  msgstr ""
1373
 
1374
- #: lib/firewall_options.php:71 ninjafirewall.php:508
1375
  msgid "Firewall Options"
1376
  msgstr ""
1377
 
@@ -1525,8 +1541,8 @@ msgstr ""
1525
  msgid "[NinjaFirewall] Alert: Firewall is disabled"
1526
  msgstr ""
1527
 
1528
- #: lib/firewall_options.php:549 lib/firewall_options.php:551 lib/utils.php:532
1529
- #: lib/utils.php:534
1530
  msgid "-Blog :"
1531
  msgstr ""
1532
 
@@ -1549,15 +1565,15 @@ msgid ""
1549
  "Someone imported a new configuration which overrode the firewall settings:"
1550
  msgstr ""
1551
 
1552
- #: lib/firewall_options.php:568 lib/utils.php:539
1553
  msgid "-User :"
1554
  msgstr ""
1555
 
1556
- #: lib/firewall_options.php:569 lib/utils.php:540
1557
  msgid "-IP :"
1558
  msgstr ""
1559
 
1560
- #: lib/firewall_options.php:570 lib/utils.php:541
1561
  msgid "-Date :"
1562
  msgstr ""
1563
 
@@ -2045,7 +2061,7 @@ msgstr ""
2045
  msgid "Restore Default Values"
2046
  msgstr ""
2047
 
2048
- #: lib/help.php:37 ninjafirewall.php:500
2049
  msgid "Overview"
2050
  msgstr ""
2051
 
@@ -2801,7 +2817,7 @@ msgid ""
2801
  "package (third-party software, shell script, backdoor etc)."
2802
  msgstr ""
2803
 
2804
- #: lib/help.php:300 lib/network.php:32 ninjafirewall.php:534
2805
  msgid "Network"
2806
  msgstr ""
2807
 
@@ -2906,7 +2922,7 @@ msgid ""
2906
  "theme in order to take full control of your website."
2907
  msgstr ""
2908
 
2909
- #: lib/help.php:361 lib/login_protection.php:21 ninjafirewall.php:542
2910
  msgid "Login Protection"
2911
  msgstr ""
2912
 
@@ -3106,7 +3122,7 @@ msgid ""
3106
  msgstr ""
3107
 
3108
  #: lib/help.php:472 lib/live_log.php:37 lib/live_log.php:216
3109
- #: ninjafirewall.php:550
3110
  msgid "Live Log"
3111
  msgstr ""
3112
 
@@ -3206,7 +3222,7 @@ msgid ""
3206
  "and lowercase letters <code>a-z</code>."
3207
  msgstr ""
3208
 
3209
- #: lib/help.php:509 lib/rules_editor.php:17 ninjafirewall.php:554
3210
  msgid "Rules Editor"
3211
  msgstr ""
3212
 
@@ -3280,19 +3296,19 @@ msgid ""
3280
  "your WordPress secure</strong> against new vulnerabilities."
3281
  msgstr ""
3282
 
3283
- #: lib/install_default.php:168
3284
  msgid ""
3285
  "Error: The installer cannot download the security rules from wordpress.org "
3286
  "website."
3287
  msgstr ""
3288
 
3289
- #: lib/install_default.php:169
3290
  msgid ""
3291
  "The server may be temporarily down or you may have network connectivity "
3292
  "problems? Please try again in a few minutes."
3293
  msgstr ""
3294
 
3295
- #: lib/install_default.php:170
3296
  msgid ""
3297
  "NinjaFirewall downloads its rules over an HTTPS secure connection. Maybe "
3298
  "your server does not support SSL? You can force NinjaFirewall to use a non-"
@@ -3911,7 +3927,7 @@ msgstr ""
3911
  msgid "Error: unable to write to the %s configuration file"
3912
  msgstr ""
3913
 
3914
- #: lib/network.php:24 ninjafirewall.php:867 ninjafirewall.php:871
3915
  #, php-format
3916
  msgid "You are not allowed to perform this task (%s)."
3917
  msgstr ""
@@ -3948,7 +3964,7 @@ msgstr ""
3948
  msgid "A \"Quick Start, FAQ & Troubleshooting Guide\" email was sent to"
3949
  msgstr ""
3950
 
3951
- #: lib/overview.php:62 lib/utils.php:388
3952
  msgid "unknown error"
3953
  msgstr ""
3954
 
@@ -3985,7 +4001,7 @@ msgstr ""
3985
  msgid "PHP SAPI"
3986
  msgstr ""
3987
 
3988
- #: lib/overview.php:122 lib/utils.php:522
3989
  msgid "Version"
3990
  msgstr ""
3991
 
@@ -4214,7 +4230,7 @@ msgstr ""
4214
  msgid "Enable it"
4215
  msgstr ""
4216
 
4217
- #: lib/rules_update.php:73 ninjafirewall.php:558
4218
  msgid "Rules Update"
4219
  msgstr ""
4220
 
@@ -4366,7 +4382,7 @@ msgid ""
4366
  "This notification can be turned off from NinjaFirewall \"Rules Update\" page."
4367
  msgstr ""
4368
 
4369
- #: lib/statistics.php:27 ninjafirewall.php:504
4370
  msgid "Statistics"
4371
  msgstr ""
4372
 
@@ -4402,152 +4418,156 @@ msgstr ""
4402
  msgid "Select monthly stats to view..."
4403
  msgstr ""
4404
 
4405
- #: lib/utils.php:70
4406
  msgid "Blocked user account creation"
4407
  msgstr ""
4408
 
4409
- #: lib/utils.php:82
4410
  msgid "NinjaFirewall has blocked an attempt to create a user account:"
4411
  msgstr ""
4412
 
4413
- #: lib/utils.php:85 lib/utils.php:790
4414
  msgid "Username:"
4415
  msgstr ""
4416
 
4417
- #: lib/utils.php:86 lib/utils.php:791 lib/utils.php:996
4418
  msgid "User IP:"
4419
  msgstr ""
4420
 
4421
- #: lib/utils.php:89 lib/utils.php:633 lib/utils.php:794 lib/utils.php:999
4422
  msgid "Date:"
4423
  msgstr ""
4424
 
4425
- #: lib/utils.php:96 lib/utils.php:97 lib/utils.php:804 lib/utils.php:805
4426
- #: lib/utils.php:953 lib/utils.php:954
 
 
 
 
4427
  msgid "You are not allowed to perform this task."
4428
  msgstr ""
4429
 
4430
- #: lib/utils.php:364 lib/utils.php:368
4431
  msgid "NinjaFirewall error"
4432
  msgstr ""
4433
 
4434
- #: lib/utils.php:365
4435
  #, php-format
4436
  msgid ""
4437
  "%s directory cannot be created. Please review your installation and ensure "
4438
  "that %s is writable."
4439
  msgstr ""
4440
 
4441
- #: lib/utils.php:369
4442
  #, php-format
4443
  msgid ""
4444
  "%s directory is read-only. Please review your installation and ensure that "
4445
  "%s is writable."
4446
  msgstr ""
4447
 
4448
- #: lib/utils.php:390
4449
  msgid "NinjaFirewall fatal error:"
4450
  msgstr ""
4451
 
4452
- #: lib/utils.php:391
4453
  msgid "Review your installation, your site is not protected."
4454
  msgstr ""
4455
 
4456
- #: lib/utils.php:439 lib/utils.php:461
4457
  msgid "Forbidden access"
4458
  msgstr ""
4459
 
4460
- #: lib/utils.php:480
4461
  #, php-format
4462
  msgid ""
4463
  "<strong>ERROR</strong>: Invalid username or password.<br /><a href=\"%s"
4464
  "\">Lost your password</a>?"
4465
  msgstr ""
4466
 
4467
- #: lib/utils.php:514
4468
  msgid "Plugin"
4469
  msgstr ""
4470
 
4471
- #: lib/utils.php:514 lib/utils.php:518
4472
  msgid "uploaded"
4473
  msgstr ""
4474
 
4475
- #: lib/utils.php:514 lib/utils.php:518
4476
  msgid "installed"
4477
  msgstr ""
4478
 
4479
- #: lib/utils.php:514 lib/utils.php:518
4480
  msgid "activated"
4481
  msgstr ""
4482
 
4483
- #: lib/utils.php:515
4484
  msgid "updated"
4485
  msgstr ""
4486
 
4487
- #: lib/utils.php:515
4488
  msgid "deactivated"
4489
  msgstr ""
4490
 
4491
- #: lib/utils.php:515 lib/utils.php:519
4492
  msgid "deleted"
4493
  msgstr ""
4494
 
4495
- #: lib/utils.php:515 lib/utils.php:519
4496
  msgid "Name"
4497
  msgstr ""
4498
 
4499
- #: lib/utils.php:518
4500
  msgid "Theme"
4501
  msgstr ""
4502
 
4503
- #: lib/utils.php:522
4504
  msgid "upgraded"
4505
  msgstr ""
4506
 
4507
- #: lib/utils.php:530
4508
  msgid "[NinjaFirewall] Alert:"
4509
  msgstr ""
4510
 
4511
- #: lib/utils.php:536
4512
  msgid "NinjaFirewall has detected the following activity on your account:"
4513
  msgstr ""
4514
 
4515
- #: lib/utils.php:628
4516
  msgid "[NinjaFirewall] Alert: Database changes detected"
4517
  msgstr ""
4518
 
4519
- #: lib/utils.php:629
4520
  msgid ""
4521
  "NinjaFirewall has detected that one or more administrator accounts were "
4522
  "modified in the database:"
4523
  msgstr ""
4524
 
4525
- #: lib/utils.php:634
4526
  #, php-format
4527
  msgid "Total administrators : %s"
4528
  msgstr ""
4529
 
4530
- #: lib/utils.php:643
4531
  msgid ""
4532
  "If you cannot see any modifications in the above fields, it is possible that "
4533
  "the administrator password was changed."
4534
  msgstr ""
4535
 
4536
- #: lib/utils.php:762
4537
  msgid "Blocked privilege escalation attempt"
4538
  msgstr ""
4539
 
4540
- #: lib/utils.php:787
4541
  msgid "NinjaFirewall has blocked an attempt to gain administrative privileges:"
4542
  msgstr ""
4543
 
4544
- #: lib/utils.php:815
4545
  msgid ""
4546
  "NinjaFirewall brute-force protection is enabled and you are temporarily "
4547
  "whitelisted."
4548
  msgstr ""
4549
 
4550
- #: lib/utils.php:829
4551
  #, php-format
4552
  msgid ""
4553
  "Hey, it seems that you've been using NinjaFirewall for some time. If you "
@@ -4556,67 +4576,67 @@ msgid ""
4556
  "rate it. Thank you!"
4557
  msgstr ""
4558
 
4559
- #: lib/utils.php:975
4560
  msgid "WordPress Address (URL)"
4561
  msgstr ""
4562
 
4563
- #: lib/utils.php:976
4564
  msgid "Site Address (URL)"
4565
  msgstr ""
4566
 
4567
- #: lib/utils.php:977
4568
  msgid "Membership"
4569
  msgstr ""
4570
 
4571
- #: lib/utils.php:978
4572
  msgid "New User Default Role"
4573
  msgstr ""
4574
 
4575
- #: lib/utils.php:981
4576
  msgid "Attempt to modify WordPress settings"
4577
  msgstr ""
4578
 
4579
- #: lib/utils.php:982
4580
  msgid ""
4581
  "NinjaFirewall has blocked an attempt to modify some important WordPress "
4582
  "settings by a user that does not have administrative privileges:"
4583
  msgstr ""
4584
 
4585
- #: lib/utils.php:984
4586
  msgid ""
4587
  "The attempt was blocked and the option was reversed to its original value."
4588
  msgstr ""
4589
 
4590
- #: lib/utils.php:986
4591
  #, php-format
4592
  msgid "Option: %s (%s)"
4593
  msgstr ""
4594
 
4595
- #: lib/utils.php:987
4596
  #, php-format
4597
  msgid "Original value: %s"
4598
  msgstr ""
4599
 
4600
- #: lib/utils.php:988
4601
  #, php-format
4602
  msgid "Modified value: %s"
4603
  msgstr ""
4604
 
4605
- #: lib/utils.php:989
4606
  #, php-format
4607
  msgid "Action taken: %s"
4608
  msgstr ""
4609
 
4610
- #: lib/utils.php:991
4611
  #, php-format
4612
  msgid "You can review this option from your WordPress \"%s\" page."
4613
  msgstr ""
4614
 
4615
- #: lib/utils.php:992
4616
  msgid "Settings > General"
4617
  msgstr ""
4618
 
4619
- #: lib/utils.php:1001
4620
  msgid ""
4621
  "This protection (and notification) can be turned off from NinjaFirewall "
4622
  "\"Firewall Policies\" page."
@@ -4913,157 +4933,161 @@ msgid ""
4913
  "%s constant (see %s for more info)"
4914
  msgstr ""
4915
 
4916
- #: ninjafirewall.php:105
 
 
 
 
4917
  msgid ""
4918
  "You do not have \"unfiltered_html\" capability. Please enable it in order to "
4919
  "run NinjaFirewall (or make sure you do not have \"DISALLOW_UNFILTERED_HTML\" "
4920
  "in your wp-config.php script)."
4921
  msgstr ""
4922
 
4923
- #: ninjafirewall.php:112
4924
  #, php-format
4925
  msgid ""
4926
  "NinjaFirewall requires WordPress 3.3 or greater but your current version is "
4927
  "%s."
4928
  msgstr ""
4929
 
4930
- #: ninjafirewall.php:116
4931
  #, php-format
4932
  msgid ""
4933
  "NinjaFirewall requires PHP 5.3 or greater but your current version is %s."
4934
  msgstr ""
4935
 
4936
- #: ninjafirewall.php:120
4937
  #, php-format
4938
  msgid "NinjaFirewall requires the PHP %s extension."
4939
  msgstr ""
4940
 
4941
- #: ninjafirewall.php:124
4942
  msgid ""
4943
  "You have SAFE_MODE enabled. Please disable it, it is deprecated as of PHP "
4944
  "5.3.0 (see http://php.net/safe-mode)."
4945
  msgstr ""
4946
 
4947
- #: ninjafirewall.php:128
4948
  msgid "You are not allowed to activate NinjaFirewall."
4949
  msgstr ""
4950
 
4951
- #: ninjafirewall.php:132
4952
  msgid "NinjaFirewall is not compatible with Microsoft Windows."
4953
  msgstr ""
4954
 
4955
- #: ninjafirewall.php:402
4956
  msgid "Alert: WordPress console login"
4957
  msgstr ""
4958
 
4959
- #: ninjafirewall.php:404
4960
  msgid "-Blog:"
4961
  msgstr ""
4962
 
4963
- #: ninjafirewall.php:408
4964
  msgid "Someone just logged in to your WordPress admin console:"
4965
  msgstr ""
4966
 
4967
- #: ninjafirewall.php:409
4968
  msgid "-User:"
4969
  msgstr ""
4970
 
4971
- #: ninjafirewall.php:410
4972
  msgid "-IP:"
4973
  msgstr ""
4974
 
4975
- #: ninjafirewall.php:411
4976
  msgid "-Date:"
4977
  msgstr ""
4978
 
4979
- #: ninjafirewall.php:414
4980
  msgid "Support forum"
4981
  msgstr ""
4982
 
4983
- #: ninjafirewall.php:500
4984
  msgid "NinjaFirewall: Overview"
4985
  msgstr ""
4986
 
4987
- #: ninjafirewall.php:504
4988
  msgid "NinjaFirewall: Statistics"
4989
  msgstr ""
4990
 
4991
- #: ninjafirewall.php:508
4992
  msgid "NinjaFirewall: Firewall Options"
4993
  msgstr ""
4994
 
4995
- #: ninjafirewall.php:512
4996
  msgid "NinjaFirewall: Firewall Policies"
4997
  msgstr ""
4998
 
4999
- #: ninjafirewall.php:516
5000
  msgid "NinjaFirewall: File Guard"
5001
  msgstr ""
5002
 
5003
- #: ninjafirewall.php:520
5004
  msgid "NinjaFirewall: File Check"
5005
  msgstr ""
5006
 
5007
- #: ninjafirewall.php:530
5008
  msgid "NinjaFirewall: Anti-Malware"
5009
  msgstr ""
5010
 
5011
- #: ninjafirewall.php:534
5012
  msgid "NinjaFirewall: Network"
5013
  msgstr ""
5014
 
5015
- #: ninjafirewall.php:538
5016
  msgid "NinjaFirewall: Event Notifications"
5017
  msgstr ""
5018
 
5019
- #: ninjafirewall.php:542
5020
  msgid "NinjaFirewall: Log-in Protection"
5021
  msgstr ""
5022
 
5023
- #: ninjafirewall.php:546
5024
  msgid "NinjaFirewall: Firewall Log"
5025
  msgstr ""
5026
 
5027
- #: ninjafirewall.php:550
5028
  msgid "NinjaFirewall: Live Log"
5029
  msgstr ""
5030
 
5031
- #: ninjafirewall.php:554
5032
  msgid "NinjaFirewall: Rules Editor"
5033
  msgstr ""
5034
 
5035
- #: ninjafirewall.php:558
5036
  msgid "NinjaFirewall: Rules Update"
5037
  msgstr ""
5038
 
5039
- #: ninjafirewall.php:565
5040
  msgid "NinjaFirewall: About"
5041
  msgstr ""
5042
 
5043
- #: ninjafirewall.php:565
5044
  msgid "About..."
5045
  msgstr ""
5046
 
5047
- #: ninjafirewall.php:605
5048
  msgid "NinjaFirewall Settings"
5049
  msgstr ""
5050
 
5051
- #: ninjafirewall.php:613
5052
  msgid "NinjaFirewall is enabled"
5053
  msgstr ""
5054
 
5055
- #: ninjafirewall.php:802
5056
  msgid "Access Restricted"
5057
  msgstr ""
5058
 
5059
- #: ninjafirewall.php:808
5060
  msgid "Settings"
5061
  msgstr ""
5062
 
5063
- #: ninjafirewall.php:809
5064
  msgid "Upgrade to Premium"
5065
  msgstr ""
5066
 
5067
- #: ninjafirewall.php:810
5068
  msgid "Rate it!"
5069
  msgstr ""
2
  msgid ""
3
  msgstr ""
4
  "Project-Id-Version: Stable (latest release)\n"
5
+ "POT-Creation-Date: 2019-03-16 19:25+0700\n"
6
  "PO-Revision-Date: 2018-04-05 22:52+0700\n"
7
  "Last-Translator: NinTechNet <contact@nintechnet.com>\n"
8
  "Language-Team: \n"
121
  "level of protection and performance higher than any other security plugin."
122
  msgstr ""
123
 
124
+ #: install.php:156 ninjafirewall.php:488
125
  msgid "Installation"
126
  msgstr ""
127
 
170
  msgstr ""
171
 
172
  #: install.php:258 lib/firewall_policies.php:107 lib/help.php:168
173
+ #: lib/install_fullwaf.php:33 lib/install_fullwaf.php:141 ninjafirewall.php:513
174
  msgid "Firewall Policies"
175
  msgstr ""
176
 
551
  "Program page</a>."
552
  msgstr ""
553
 
554
+ #: lib/anti_malware.php:24 ninjafirewall.php:531
555
  msgid "Anti-Malware"
556
  msgstr ""
557
 
608
  msgid "View firewall log"
609
  msgstr ""
610
 
611
+ #: lib/event_notifications.php:45 lib/help.php:349 ninjafirewall.php:539
612
  msgid "Event Notifications"
613
  msgstr ""
614
 
723
  msgstr ""
724
 
725
  #: lib/event_notifications.php:150 lib/event_notifications.php:162
726
+ #: lib/event_notifications.php:179 lib/firewall_policies.php:551
727
+ #: lib/firewall_policies.php:594 lib/firewall_policies.php:614
728
+ #: lib/firewall_policies.php:664 lib/firewall_policies.php:709
729
+ #: lib/firewall_policies.php:719 lib/firewall_policies.php:729
730
+ #: lib/firewall_policies.php:772 lib/firewall_policies.php:815
731
+ #: lib/firewall_policies.php:835 lib/firewall_policies.php:1049
732
+ #: lib/firewall_policies.php:1105 lib/firewall_policies.php:1115
733
+ #: lib/firewall_policies.php:1125 lib/firewall_policies.php:1135
734
+ #: lib/firewall_policies.php:1182 lib/firewall_policies.php:1192
735
+ #: lib/network.php:63 lib/rules_update.php:145
736
  msgid "Yes (default)"
737
  msgstr ""
738
 
744
  msgid "Write all events to the firewall log"
745
  msgstr ""
746
 
747
+ #: lib/event_notifications.php:174
748
+ msgid "PHP backtrace"
749
+ msgstr ""
750
+
751
+ #: lib/event_notifications.php:177
752
+ msgid "Attach a PHP backtrace to important notifications"
753
+ msgstr ""
754
+
755
+ #: lib/event_notifications.php:180
756
+ #, php-format
757
+ msgid "<a href=\"%s\">Consult our blog</a> for more info."
758
+ msgstr ""
759
+
760
+ #: lib/event_notifications.php:190 lib/event_notifications.php:220
761
  msgid "Contact email"
762
  msgstr ""
763
 
764
+ #: lib/event_notifications.php:193 lib/event_notifications.php:223
765
  msgid "Alerts should be sent to"
766
  msgstr ""
767
 
768
+ #: lib/event_notifications.php:202 lib/event_notifications.php:228
769
  msgid ""
770
  "Multiple recipients must be comma-separated (e.g., <code>joe@example.org,"
771
  "alice@example.org</code>)."
772
  msgstr ""
773
 
774
+ #: lib/event_notifications.php:225
775
  msgid "Only to me, the Super Admin"
776
  msgstr ""
777
 
778
+ #: lib/event_notifications.php:225
779
  msgid "default"
780
  msgstr ""
781
 
782
+ #: lib/event_notifications.php:226
783
  msgid "To the administrator of the site where originated the alert"
784
  msgstr ""
785
 
786
+ #: lib/event_notifications.php:227
787
  msgid "Other(s):"
788
  msgstr ""
789
 
790
+ #: lib/event_notifications.php:239
791
  msgid "Save Event Notifications"
792
  msgstr ""
793
 
794
+ #: lib/event_notifications.php:453
795
  msgid "[NinjaFirewall] Daily Activity Report"
796
  msgstr ""
797
 
798
+ #: lib/event_notifications.php:463
799
  #, php-format
800
  msgid "Daily activity report for: %s"
801
  msgstr ""
802
 
803
+ #: lib/event_notifications.php:464
804
  msgid "Date Range Processed: Yesterday"
805
  msgstr ""
806
 
807
+ #: lib/event_notifications.php:466
808
  msgid "Blocked threats:"
809
  msgstr ""
810
 
811
+ #: lib/event_notifications.php:468
812
  msgid "critical:"
813
  msgstr ""
814
 
815
+ #: lib/event_notifications.php:469
816
  msgid "high:"
817
  msgstr ""
818
 
819
+ #: lib/event_notifications.php:470
820
  msgid "medium:"
821
  msgstr ""
822
 
823
+ #: lib/event_notifications.php:472
824
  msgid "Blocked brute-force attacks:"
825
  msgstr ""
826
 
827
+ #: lib/event_notifications.php:473 lib/utils.php:682 lib/utils.php:844
828
  msgid ""
829
  "This notification can be turned off from NinjaFirewall \"Event Notifications"
830
  "\" page."
831
  msgstr ""
832
 
833
+ #: lib/event_notifications.php:477 lib/file_check.php:855
834
  #: lib/file_check.php:872 lib/firewall_options.php:573 lib/rules_update.php:565
835
+ #: lib/utils.php:582
836
  msgid "Support forum:"
837
  msgstr ""
838
 
860
  msgid "No changes detected."
861
  msgstr ""
862
 
863
+ #: lib/file_check.php:129 lib/help.php:316 ninjafirewall.php:521
864
  msgid "File Check"
865
  msgstr ""
866
 
1140
  msgid "Error reading new snapshot file."
1141
  msgstr ""
1142
 
1143
+ #: lib/file_check.php:814 ninjafirewall.php:270
1144
  msgid "New file"
1145
  msgstr ""
1146
 
1147
+ #: lib/file_check.php:815 ninjafirewall.php:271
1148
  msgid "Modified file"
1149
  msgstr ""
1150
 
1151
+ #: lib/file_check.php:816 ninjafirewall.php:272
1152
  msgid "Deleted file"
1153
  msgstr ""
1154
 
1158
 
1159
  #: lib/file_check.php:843 lib/file_check.php:845 lib/file_check.php:866
1160
  #: lib/file_check.php:868 lib/rules_update.php:557 lib/rules_update.php:559
1161
+ #: lib/utils.php:104 lib/utils.php:670 lib/utils.php:828 lib/utils.php:1080
1162
  msgid "Blog:"
1163
  msgstr ""
1164
 
1183
  msgid "Please enter a number from 1 to 99."
1184
  msgstr ""
1185
 
1186
+ #: lib/file_guard.php:54 lib/help.php:284 ninjafirewall.php:517
1187
  msgid "File Guard"
1188
  msgstr ""
1189
 
1270
  msgid "Your public key has been saved"
1271
  msgstr ""
1272
 
1273
+ #: lib/firewall_log.php:84 lib/help.php:423 ninjafirewall.php:547
1274
  msgid "Firewall Log"
1275
  msgstr ""
1276
 
1300
  msgstr ""
1301
 
1302
  #: lib/firewall_log.php:156
1303
+ msgid ""
1304
+ "The log shows all threats that were blocked by the firewall, unless stated "
1305
+ "otherwise. It is rotated monthly."
1306
  msgstr ""
1307
 
1308
  #: lib/firewall_log.php:169
1387
  msgid "Refresh preview"
1388
  msgstr ""
1389
 
1390
+ #: lib/firewall_options.php:71 ninjafirewall.php:509
1391
  msgid "Firewall Options"
1392
  msgstr ""
1393
 
1541
  msgid "[NinjaFirewall] Alert: Firewall is disabled"
1542
  msgstr ""
1543
 
1544
+ #: lib/firewall_options.php:549 lib/firewall_options.php:551 lib/utils.php:570
1545
+ #: lib/utils.php:572
1546
  msgid "-Blog :"
1547
  msgstr ""
1548
 
1565
  "Someone imported a new configuration which overrode the firewall settings:"
1566
  msgstr ""
1567
 
1568
+ #: lib/firewall_options.php:568 lib/utils.php:577
1569
  msgid "-User :"
1570
  msgstr ""
1571
 
1572
+ #: lib/firewall_options.php:569 lib/utils.php:578
1573
  msgid "-IP :"
1574
  msgstr ""
1575
 
1576
+ #: lib/firewall_options.php:570 lib/utils.php:579
1577
  msgid "-Date :"
1578
  msgstr ""
1579
 
2061
  msgid "Restore Default Values"
2062
  msgstr ""
2063
 
2064
+ #: lib/help.php:37 ninjafirewall.php:501
2065
  msgid "Overview"
2066
  msgstr ""
2067
 
2817
  "package (third-party software, shell script, backdoor etc)."
2818
  msgstr ""
2819
 
2820
+ #: lib/help.php:300 lib/network.php:32 ninjafirewall.php:535
2821
  msgid "Network"
2822
  msgstr ""
2823
 
2922
  "theme in order to take full control of your website."
2923
  msgstr ""
2924
 
2925
+ #: lib/help.php:361 lib/login_protection.php:21 ninjafirewall.php:543
2926
  msgid "Login Protection"
2927
  msgstr ""
2928
 
3122
  msgstr ""
3123
 
3124
  #: lib/help.php:472 lib/live_log.php:37 lib/live_log.php:216
3125
+ #: ninjafirewall.php:551
3126
  msgid "Live Log"
3127
  msgstr ""
3128
 
3222
  "and lowercase letters <code>a-z</code>."
3223
  msgstr ""
3224
 
3225
+ #: lib/help.php:509 lib/rules_editor.php:17 ninjafirewall.php:555
3226
  msgid "Rules Editor"
3227
  msgstr ""
3228
 
3296
  "your WordPress secure</strong> against new vulnerabilities."
3297
  msgstr ""
3298
 
3299
+ #: lib/install_default.php:170
3300
  msgid ""
3301
  "Error: The installer cannot download the security rules from wordpress.org "
3302
  "website."
3303
  msgstr ""
3304
 
3305
+ #: lib/install_default.php:171
3306
  msgid ""
3307
  "The server may be temporarily down or you may have network connectivity "
3308
  "problems? Please try again in a few minutes."
3309
  msgstr ""
3310
 
3311
+ #: lib/install_default.php:172
3312
  msgid ""
3313
  "NinjaFirewall downloads its rules over an HTTPS secure connection. Maybe "
3314
  "your server does not support SSL? You can force NinjaFirewall to use a non-"
3927
  msgid "Error: unable to write to the %s configuration file"
3928
  msgstr ""
3929
 
3930
+ #: lib/network.php:24 ninjafirewall.php:868 ninjafirewall.php:872
3931
  #, php-format
3932
  msgid "You are not allowed to perform this task (%s)."
3933
  msgstr ""
3964
  msgid "A \"Quick Start, FAQ & Troubleshooting Guide\" email was sent to"
3965
  msgstr ""
3966
 
3967
+ #: lib/overview.php:62 lib/utils.php:426
3968
  msgid "unknown error"
3969
  msgstr ""
3970
 
4001
  msgid "PHP SAPI"
4002
  msgstr ""
4003
 
4004
+ #: lib/overview.php:122 lib/utils.php:560
4005
  msgid "Version"
4006
  msgstr ""
4007
 
4230
  msgid "Enable it"
4231
  msgstr ""
4232
 
4233
+ #: lib/rules_update.php:73 ninjafirewall.php:559
4234
  msgid "Rules Update"
4235
  msgstr ""
4236
 
4382
  "This notification can be turned off from NinjaFirewall \"Rules Update\" page."
4383
  msgstr ""
4384
 
4385
+ #: lib/statistics.php:27 ninjafirewall.php:505
4386
  msgid "Statistics"
4387
  msgstr ""
4388
 
4418
  msgid "Select monthly stats to view..."
4419
  msgstr ""
4420
 
4421
+ #: lib/utils.php:90
4422
  msgid "Blocked user account creation"
4423
  msgstr ""
4424
 
4425
+ #: lib/utils.php:102
4426
  msgid "NinjaFirewall has blocked an attempt to create a user account:"
4427
  msgstr ""
4428
 
4429
+ #: lib/utils.php:105 lib/utils.php:829
4430
  msgid "Username:"
4431
  msgstr ""
4432
 
4433
+ #: lib/utils.php:106 lib/utils.php:830 lib/utils.php:1081
4434
  msgid "User IP:"
4435
  msgstr ""
4436
 
4437
+ #: lib/utils.php:109 lib/utils.php:671 lib/utils.php:833 lib/utils.php:1084
4438
  msgid "Date:"
4439
  msgstr ""
4440
 
4441
+ #: lib/utils.php:117 lib/utils.php:841 lib/utils.php:1076
4442
+ msgid "A PHP backtrace has been attached to this message for your convenience."
4443
+ msgstr ""
4444
+
4445
+ #: lib/utils.php:134 lib/utils.php:135 lib/utils.php:860 lib/utils.php:861
4446
+ #: lib/utils.php:1028 lib/utils.php:1029
4447
  msgid "You are not allowed to perform this task."
4448
  msgstr ""
4449
 
4450
+ #: lib/utils.php:402 lib/utils.php:406
4451
  msgid "NinjaFirewall error"
4452
  msgstr ""
4453
 
4454
+ #: lib/utils.php:403
4455
  #, php-format
4456
  msgid ""
4457
  "%s directory cannot be created. Please review your installation and ensure "
4458
  "that %s is writable."
4459
  msgstr ""
4460
 
4461
+ #: lib/utils.php:407
4462
  #, php-format
4463
  msgid ""
4464
  "%s directory is read-only. Please review your installation and ensure that "
4465
  "%s is writable."
4466
  msgstr ""
4467
 
4468
+ #: lib/utils.php:428
4469
  msgid "NinjaFirewall fatal error:"
4470
  msgstr ""
4471
 
4472
+ #: lib/utils.php:429
4473
  msgid "Review your installation, your site is not protected."
4474
  msgstr ""
4475
 
4476
+ #: lib/utils.php:477 lib/utils.php:499
4477
  msgid "Forbidden access"
4478
  msgstr ""
4479
 
4480
+ #: lib/utils.php:518
4481
  #, php-format
4482
  msgid ""
4483
  "<strong>ERROR</strong>: Invalid username or password.<br /><a href=\"%s"
4484
  "\">Lost your password</a>?"
4485
  msgstr ""
4486
 
4487
+ #: lib/utils.php:552
4488
  msgid "Plugin"
4489
  msgstr ""
4490
 
4491
+ #: lib/utils.php:552 lib/utils.php:556
4492
  msgid "uploaded"
4493
  msgstr ""
4494
 
4495
+ #: lib/utils.php:552 lib/utils.php:556
4496
  msgid "installed"
4497
  msgstr ""
4498
 
4499
+ #: lib/utils.php:552 lib/utils.php:556
4500
  msgid "activated"
4501
  msgstr ""
4502
 
4503
+ #: lib/utils.php:553
4504
  msgid "updated"
4505
  msgstr ""
4506
 
4507
+ #: lib/utils.php:553
4508
  msgid "deactivated"
4509
  msgstr ""
4510
 
4511
+ #: lib/utils.php:553 lib/utils.php:557
4512
  msgid "deleted"
4513
  msgstr ""
4514
 
4515
+ #: lib/utils.php:553 lib/utils.php:557
4516
  msgid "Name"
4517
  msgstr ""
4518
 
4519
+ #: lib/utils.php:556
4520
  msgid "Theme"
4521
  msgstr ""
4522
 
4523
+ #: lib/utils.php:560
4524
  msgid "upgraded"
4525
  msgstr ""
4526
 
4527
+ #: lib/utils.php:568
4528
  msgid "[NinjaFirewall] Alert:"
4529
  msgstr ""
4530
 
4531
+ #: lib/utils.php:574
4532
  msgid "NinjaFirewall has detected the following activity on your account:"
4533
  msgstr ""
4534
 
4535
+ #: lib/utils.php:666
4536
  msgid "[NinjaFirewall] Alert: Database changes detected"
4537
  msgstr ""
4538
 
4539
+ #: lib/utils.php:667
4540
  msgid ""
4541
  "NinjaFirewall has detected that one or more administrator accounts were "
4542
  "modified in the database:"
4543
  msgstr ""
4544
 
4545
+ #: lib/utils.php:672
4546
  #, php-format
4547
  msgid "Total administrators : %s"
4548
  msgstr ""
4549
 
4550
+ #: lib/utils.php:681
4551
  msgid ""
4552
  "If you cannot see any modifications in the above fields, it is possible that "
4553
  "the administrator password was changed."
4554
  msgstr ""
4555
 
4556
+ #: lib/utils.php:801
4557
  msgid "Blocked privilege escalation attempt"
4558
  msgstr ""
4559
 
4560
+ #: lib/utils.php:826
4561
  msgid "NinjaFirewall has blocked an attempt to gain administrative privileges:"
4562
  msgstr ""
4563
 
4564
+ #: lib/utils.php:871
4565
  msgid ""
4566
  "NinjaFirewall brute-force protection is enabled and you are temporarily "
4567
  "whitelisted."
4568
  msgstr ""
4569
 
4570
+ #: lib/utils.php:885
4571
  #, php-format
4572
  msgid ""
4573
  "Hey, it seems that you've been using NinjaFirewall for some time. If you "
4576
  "rate it. Thank you!"
4577
  msgstr ""
4578
 
4579
+ #: lib/utils.php:1050
4580
  msgid "WordPress Address (URL)"
4581
  msgstr ""
4582
 
4583
+ #: lib/utils.php:1051
4584
  msgid "Site Address (URL)"
4585
  msgstr ""
4586
 
4587
+ #: lib/utils.php:1052
4588
  msgid "Membership"
4589
  msgstr ""
4590
 
4591
+ #: lib/utils.php:1053
4592
  msgid "New User Default Role"
4593
  msgstr ""
4594
 
4595
+ #: lib/utils.php:1056
4596
  msgid "Attempt to modify WordPress settings"
4597
  msgstr ""
4598
 
4599
+ #: lib/utils.php:1057
4600
  msgid ""
4601
  "NinjaFirewall has blocked an attempt to modify some important WordPress "
4602
  "settings by a user that does not have administrative privileges:"
4603
  msgstr ""
4604
 
4605
+ #: lib/utils.php:1059
4606
  msgid ""
4607
  "The attempt was blocked and the option was reversed to its original value."
4608
  msgstr ""
4609
 
4610
+ #: lib/utils.php:1061
4611
  #, php-format
4612
  msgid "Option: %s (%s)"
4613
  msgstr ""
4614
 
4615
+ #: lib/utils.php:1062
4616
  #, php-format
4617
  msgid "Original value: %s"
4618
  msgstr ""
4619
 
4620
+ #: lib/utils.php:1063
4621
  #, php-format
4622
  msgid "Modified value: %s"
4623
  msgstr ""
4624
 
4625
+ #: lib/utils.php:1064
4626
  #, php-format
4627
  msgid "Action taken: %s"
4628
  msgstr ""
4629
 
4630
+ #: lib/utils.php:1066
4631
  #, php-format
4632
  msgid "You can review this option from your WordPress \"%s\" page."
4633
  msgstr ""
4634
 
4635
+ #: lib/utils.php:1067
4636
  msgid "Settings > General"
4637
  msgstr ""
4638
 
4639
+ #: lib/utils.php:1086
4640
  msgid ""
4641
  "This protection (and notification) can be turned off from NinjaFirewall "
4642
  "\"Firewall Policies\" page."
4933
  "%s constant (see %s for more info)"
4934
  msgstr ""
4935
 
4936
+ #: ninjafirewall.php:81
4937
+ msgid "The PHP msqli extension is missing or not loaded."
4938
+ msgstr ""
4939
+
4940
+ #: ninjafirewall.php:106
4941
  msgid ""
4942
  "You do not have \"unfiltered_html\" capability. Please enable it in order to "
4943
  "run NinjaFirewall (or make sure you do not have \"DISALLOW_UNFILTERED_HTML\" "
4944
  "in your wp-config.php script)."
4945
  msgstr ""
4946
 
4947
+ #: ninjafirewall.php:113
4948
  #, php-format
4949
  msgid ""
4950
  "NinjaFirewall requires WordPress 3.3 or greater but your current version is "
4951
  "%s."
4952
  msgstr ""
4953
 
4954
+ #: ninjafirewall.php:117
4955
  #, php-format
4956
  msgid ""
4957
  "NinjaFirewall requires PHP 5.3 or greater but your current version is %s."
4958
  msgstr ""
4959
 
4960
+ #: ninjafirewall.php:121
4961
  #, php-format
4962
  msgid "NinjaFirewall requires the PHP %s extension."
4963
  msgstr ""
4964
 
4965
+ #: ninjafirewall.php:125
4966
  msgid ""
4967
  "You have SAFE_MODE enabled. Please disable it, it is deprecated as of PHP "
4968
  "5.3.0 (see http://php.net/safe-mode)."
4969
  msgstr ""
4970
 
4971
+ #: ninjafirewall.php:129
4972
  msgid "You are not allowed to activate NinjaFirewall."
4973
  msgstr ""
4974
 
4975
+ #: ninjafirewall.php:133
4976
  msgid "NinjaFirewall is not compatible with Microsoft Windows."
4977
  msgstr ""
4978
 
4979
+ #: ninjafirewall.php:403
4980
  msgid "Alert: WordPress console login"
4981
  msgstr ""
4982
 
4983
+ #: ninjafirewall.php:405
4984
  msgid "-Blog:"
4985
  msgstr ""
4986
 
4987
+ #: ninjafirewall.php:409
4988
  msgid "Someone just logged in to your WordPress admin console:"
4989
  msgstr ""
4990
 
4991
+ #: ninjafirewall.php:410
4992
  msgid "-User:"
4993
  msgstr ""
4994
 
4995
+ #: ninjafirewall.php:411
4996
  msgid "-IP:"
4997
  msgstr ""
4998
 
4999
+ #: ninjafirewall.php:412
5000
  msgid "-Date:"
5001
  msgstr ""
5002
 
5003
+ #: ninjafirewall.php:415
5004
  msgid "Support forum"
5005
  msgstr ""
5006
 
5007
+ #: ninjafirewall.php:501
5008
  msgid "NinjaFirewall: Overview"
5009
  msgstr ""
5010
 
5011
+ #: ninjafirewall.php:505
5012
  msgid "NinjaFirewall: Statistics"
5013
  msgstr ""
5014
 
5015
+ #: ninjafirewall.php:509
5016
  msgid "NinjaFirewall: Firewall Options"
5017
  msgstr ""
5018
 
5019
+ #: ninjafirewall.php:513
5020
  msgid "NinjaFirewall: Firewall Policies"
5021
  msgstr ""
5022
 
5023
+ #: ninjafirewall.php:517
5024
  msgid "NinjaFirewall: File Guard"
5025
  msgstr ""
5026
 
5027
+ #: ninjafirewall.php:521
5028
  msgid "NinjaFirewall: File Check"
5029
  msgstr ""
5030
 
5031
+ #: ninjafirewall.php:531
5032
  msgid "NinjaFirewall: Anti-Malware"
5033
  msgstr ""
5034
 
5035
+ #: ninjafirewall.php:535
5036
  msgid "NinjaFirewall: Network"
5037
  msgstr ""
5038
 
5039
+ #: ninjafirewall.php:539
5040
  msgid "NinjaFirewall: Event Notifications"
5041
  msgstr ""
5042
 
5043
+ #: ninjafirewall.php:543
5044
  msgid "NinjaFirewall: Log-in Protection"
5045
  msgstr ""
5046
 
5047
+ #: ninjafirewall.php:547
5048
  msgid "NinjaFirewall: Firewall Log"
5049
  msgstr ""
5050
 
5051
+ #: ninjafirewall.php:551
5052
  msgid "NinjaFirewall: Live Log"
5053
  msgstr ""
5054
 
5055
+ #: ninjafirewall.php:555
5056
  msgid "NinjaFirewall: Rules Editor"
5057
  msgstr ""
5058
 
5059
+ #: ninjafirewall.php:559
5060
  msgid "NinjaFirewall: Rules Update"
5061
  msgstr ""
5062
 
5063
+ #: ninjafirewall.php:566
5064
  msgid "NinjaFirewall: About"
5065
  msgstr ""
5066
 
5067
+ #: ninjafirewall.php:566
5068
  msgid "About..."
5069
  msgstr ""
5070
 
5071
+ #: ninjafirewall.php:606
5072
  msgid "NinjaFirewall Settings"
5073
  msgstr ""
5074
 
5075
+ #: ninjafirewall.php:614
5076
  msgid "NinjaFirewall is enabled"
5077
  msgstr ""
5078
 
5079
+ #: ninjafirewall.php:803
5080
  msgid "Access Restricted"
5081
  msgstr ""
5082
 
5083
+ #: ninjafirewall.php:809
5084
  msgid "Settings"
5085
  msgstr ""
5086
 
5087
+ #: ninjafirewall.php:810
5088
  msgid "Upgrade to Premium"
5089
  msgstr ""
5090
 
5091
+ #: ninjafirewall.php:811
5092
  msgid "Rate it!"
5093
  msgstr ""
lib/event_notifications.php CHANGED
@@ -166,6 +166,24 @@ if (! isset( $nfw_options['a_0'] ) ) {
166
 
167
  <br />
168
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
169
  <?php
170
  if (! is_multisite() ) {
171
  ?>
@@ -337,6 +355,13 @@ function nf_sub_event_save() {
337
  $nfw_options['a_53'] = 1;
338
  }
339
 
 
 
 
 
 
 
 
340
  // Multiple recipients (WPMU only) ?
341
  if (! empty( $_POST['nfw_options']['alert_multirec']) ) {
342
  $_POST['nfw_options']['alert_email'] = $_POST['nfw_options']['alert_multirec'];
166
 
167
  <br />
168
 
169
+ <?php
170
+ if (! isset( $nfw_options['a_61']) ) {
171
+ $nfw_options['a_61'] = 1;
172
+ }
173
+ ?>
174
+ <h3><?php _e('PHP backtrace', 'ninjafirewall') ?></h3>
175
+ <table class="form-table">
176
+ <tr>
177
+ <th scope="row"><?php _e('Attach a PHP backtrace to important notifications', 'ninjafirewall') ?></th>
178
+ <td>
179
+ <p><label><input type="checkbox" name="nfw_options[a_61]" value="1"<?php checked( $nfw_options['a_61'], 1) ?>>&nbsp;<?php _e('Yes (default)', 'ninjafirewall') ?></label></p>
180
+ <p><span class="description"><?php printf( __('<a href="%s">Consult our blog</a> for more info.', 'ninjafirewall'), 'https://blog.nintechnet.com/ninjafirewall-wp-edition-adds-php-backtrace-to-email-notifications/' ) ?></span></p>
181
+ </td>
182
+ </tr>
183
+ </table>
184
+
185
+ <br />
186
+
187
  <?php
188
  if (! is_multisite() ) {
189
  ?>
355
  $nfw_options['a_53'] = 1;
356
  }
357
 
358
+ if ( empty( $_POST['nfw_options']['a_61']) ) {
359
+ $nfw_options['a_61'] = 0;
360
+ } else {
361
+ $nfw_options['a_61'] = 1;
362
+ }
363
+
364
+
365
  // Multiple recipients (WPMU only) ?
366
  if (! empty( $_POST['nfw_options']['alert_multirec']) ) {
367
  $_POST['nfw_options']['alert_email'] = $_POST['nfw_options']['alert_multirec'];
lib/firewall.php CHANGED
@@ -58,14 +58,8 @@ if (! is_dir($nfw_['log_dir']) ) {
58
  }
59
  }
60
 
61
- // Check if we are connected over HTTPS
62
- if ( ( isset( $_SERVER['HTTPS'] ) && $_SERVER['HTTPS'] != 'off' ) || $_SERVER['SERVER_PORT'] == 443 ||
63
- ( isset( $_SERVER['HTTP_X_FORWARDED_PROTO'] ) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https' ) ) {
64
- // This can be defined in the .htninja
65
- if (! defined('NFW_IS_HTTPS') ) {
66
- define('NFW_IS_HTTPS', true );
67
- }
68
- }
69
 
70
  if ( strpos($_SERVER['SCRIPT_NAME'], 'wp-login.php' ) !== FALSE ) {
71
  nfw_bfd(1);
@@ -107,8 +101,8 @@ if (! empty( $GLOBALS['nfw_mysqli'] ) && ! empty( $GLOBALS['nfw_table_prefix'] )
107
  $nfw_['DB_NAME'] = $nfw_['match'][1];
108
  } elseif ( preg_match('/^\s*define\s*\(\s*[\'"]DB_USER[\'"]\s*,\s*[\'"](.+?)[\'"]/', $nfw_['line'], $nfw_['match']) ) {
109
  $nfw_['DB_USER'] = $nfw_['match'][1];
110
- } elseif ( preg_match('/^\s*define\s*\(\s*[\'"]DB_PASSWORD[\'"]\s*,\s*([\'"])(.+?)\1/', $nfw_['line'], $nfw_['match']) ) {
111
- $nfw_['DB_PASSWORD'] = $nfw_['match'][2];
112
  } elseif ( preg_match('/^\s*define\s*\(\s*[\'"]DB_HOST[\'"]\s*,\s*[\'"](.+?)[\'"]/', $nfw_['line'], $nfw_['match']) ) {
113
  $nfw_['DB_HOST'] = $nfw_['match'][1];
114
  } elseif ( preg_match('/^\s*\$table_prefix\s*=\s*[\'"](.+?)[\'"]/', $nfw_['line'], $nfw_['match']) ) {
@@ -124,6 +118,12 @@ if (! empty( $GLOBALS['nfw_mysqli'] ) && ! empty( $GLOBALS['nfw_table_prefix'] )
124
  }
125
 
126
  nfw_check_dbhost();
 
 
 
 
 
 
127
  @$nfw_['mysqli'] = new mysqli($nfw_['DB_HOST'], $nfw_['DB_USER'], $nfw_['DB_PASSWORD'], $nfw_['DB_NAME'], $nfw_['port'], $nfw_['socket']);
128
  if ($nfw_['mysqli']->connect_error) {
129
  define( 'NFW_STATUS', 4 );
@@ -343,11 +343,11 @@ if (! empty($nfw_['nfw_options']['allow_local_ip']) && ! filter_var(NFW_REMOTE_A
343
  return;
344
  }
345
 
346
- if ( @$nfw_['nfw_options']['scan_protocol'] == 1 && defined('NFW_IS_HTTPS') ) {
347
  nfw_quit(20);
348
  return;
349
  }
350
- if ( @$nfw_['nfw_options']['scan_protocol'] == 2 && ! defined('NFW_IS_HTTPS') ) {
351
  nfw_quit(20);
352
  return;
353
  }
@@ -475,6 +475,23 @@ function nfw_quit( $status ) {
475
  $nfw_ = array();
476
  }
477
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
478
  // =====================================================================
479
 
480
  function nfw_check_session() {
@@ -490,7 +507,7 @@ function nfw_check_session() {
490
  // Prepare session:
491
  @ini_set('session.cookie_httponly', 1);
492
  @ini_set('session.use_only_cookies', 1);
493
- if ( defined('NFW_IS_HTTPS') ) {
494
  @ini_set('session.cookie_secure', 1);
495
  }
496
 
@@ -927,7 +944,7 @@ function nfw_normalize( $string, $nfw_rules ) {
927
  }
928
 
929
  if ( preg_match('/\\\(?:0?[4-9][0-9]|1[0-7][0-9])/', $norm) ) {
930
- $norm = preg_replace_callback('/\\\(0?[4-9][0-9]|1[0-7][0-9])/', 'nfw_oct2ascii', $norm );
931
  if (! $norm ) {
932
  return $string;
933
  }
@@ -1599,6 +1616,17 @@ function nfw_response_headers() {
1599
 
1600
  if (! defined('NFW_RESHEADERS') ) { return; }
1601
  $NFW_RESHEADERS = NFW_RESHEADERS;
 
 
 
 
 
 
 
 
 
 
 
1602
 
1603
  $rewrite = array();
1604
 
@@ -1670,11 +1698,14 @@ function nfw_response_headers() {
1670
  // Stop here is no more headers:
1671
  if ( empty($NFW_RESHEADERS[4] ) ) { return; }
1672
 
1673
- if (! defined('NFW_IS_HTTPS') &&
1674
- (! isset( $_SERVER['HTTP_X_FORWARDED_PROTO']) ||
1675
- $_SERVER['HTTP_X_FORWARDED_PROTO'] != 'https') ) {
 
 
1676
  return;
1677
  }
 
1678
  if ($NFW_RESHEADERS[4] == 1) {
1679
  $max_age = 'max-age=2628000';
1680
  } elseif ($NFW_RESHEADERS[4] == 2) {
58
  }
59
  }
60
 
61
+ // Check if we are connecting over HTTPS
62
+ nfw_is_https();
 
 
 
 
 
 
63
 
64
  if ( strpos($_SERVER['SCRIPT_NAME'], 'wp-login.php' ) !== FALSE ) {
65
  nfw_bfd(1);
101
  $nfw_['DB_NAME'] = $nfw_['match'][1];
102
  } elseif ( preg_match('/^\s*define\s*\(\s*[\'"]DB_USER[\'"]\s*,\s*[\'"](.+?)[\'"]/', $nfw_['line'], $nfw_['match']) ) {
103
  $nfw_['DB_USER'] = $nfw_['match'][1];
104
+ } elseif ( preg_match('/^\s*define\s*\(\s*[\'"]DB_PASSWORD[\'"]\s*,\s*([\'"])(.+?)\1\s*\);/', $nfw_['line'], $nfw_['match']) ) {
105
+ $nfw_['DB_PASSWORD'] = stripcslashes( $nfw_['match'][2] );
106
  } elseif ( preg_match('/^\s*define\s*\(\s*[\'"]DB_HOST[\'"]\s*,\s*[\'"](.+?)[\'"]/', $nfw_['line'], $nfw_['match']) ) {
107
  $nfw_['DB_HOST'] = $nfw_['match'][1];
108
  } elseif ( preg_match('/^\s*\$table_prefix\s*=\s*[\'"](.+?)[\'"]/', $nfw_['line'], $nfw_['match']) ) {
118
  }
119
 
120
  nfw_check_dbhost();
121
+ // Make sure mysqli extension is loaded:
122
+ if (! function_exists( 'mysqli_connect' ) ) {
123
+ define( 'NFW_STATUS', 14 );
124
+ unset($nfw_);
125
+ return;
126
+ }
127
  @$nfw_['mysqli'] = new mysqli($nfw_['DB_HOST'], $nfw_['DB_USER'], $nfw_['DB_PASSWORD'], $nfw_['DB_NAME'], $nfw_['port'], $nfw_['socket']);
128
  if ($nfw_['mysqli']->connect_error) {
129
  define( 'NFW_STATUS', 4 );
343
  return;
344
  }
345
 
346
+ if ( @$nfw_['nfw_options']['scan_protocol'] == 1 && NFW_IS_HTTPS == true ) {
347
  nfw_quit(20);
348
  return;
349
  }
350
+ if ( @$nfw_['nfw_options']['scan_protocol'] == 2 && NFW_IS_HTTPS == false ) {
351
  nfw_quit(20);
352
  return;
353
  }
475
  $nfw_ = array();
476
  }
477
 
478
+ // =====================================================================
479
+ // Check for HTTPS.
480
+
481
+ function nfw_is_https() {
482
+
483
+ // Can be defined in the .htninja:
484
+ if ( defined('NFW_IS_HTTPS') ) { return; }
485
+
486
+ if ( ( isset( $_SERVER['SERVER_PORT'] ) && $_SERVER['SERVER_PORT'] == 443 ) ||
487
+ ( isset( $_SERVER['HTTP_X_FORWARDED_PROTO'] ) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https') ||
488
+ ( isset( $_SERVER['HTTPS'] ) && $_SERVER['HTTPS'] !== 'off' ) ) {
489
+ define('NFW_IS_HTTPS', true);
490
+ } else {
491
+ define('NFW_IS_HTTPS', false);
492
+ }
493
+ }
494
+
495
  // =====================================================================
496
 
497
  function nfw_check_session() {
507
  // Prepare session:
508
  @ini_set('session.cookie_httponly', 1);
509
  @ini_set('session.use_only_cookies', 1);
510
+ if ( defined('NFW_IS_HTTPS') && NFW_IS_HTTPS == true ) {
511
  @ini_set('session.cookie_secure', 1);
512
  }
513
 
944
  }
945
 
946
  if ( preg_match('/\\\(?:0?[4-9][0-9]|1[0-7][0-9])/', $norm) ) {
947
+ $norm = preg_replace_callback('/\\\(0?[4-9][0-9]|1[0-7][0-9])/', 'nfw_oct2ascii', $norm);
948
  if (! $norm ) {
949
  return $string;
950
  }
1616
 
1617
  if (! defined('NFW_RESHEADERS') ) { return; }
1618
  $NFW_RESHEADERS = NFW_RESHEADERS;
1619
+ // NFW_RESHEADERS:
1620
+ // 000000000
1621
+ // |||||||||_ Referrer-Policy [0-8]
1622
+ // ||||||||__ Content-Security-Policy (backend) [0-1]
1623
+ // |||||||___ Content-Security-Policy (frontend) [0-1]
1624
+ // ||||||____ Strict-Transport-Security (includeSubDomains) [0-1]
1625
+ // |||||_____ Strict-Transport-Security [0-4]
1626
+ // ||||______ X-XSS-Protection [0-3]
1627
+ // |||_______ X-Frame-Options [0-2]
1628
+ // ||________ X-Content-Type-Options [0-1]
1629
+ // |_________ HttpOnly cookies [0-1]
1630
 
1631
  $rewrite = array();
1632
 
1698
  // Stop here is no more headers:
1699
  if ( empty($NFW_RESHEADERS[4] ) ) { return; }
1700
 
1701
+ // We don't send HSTS headers over HTTP:
1702
+ if (! defined('NFW_IS_HTTPS') ) {
1703
+ nfw_is_https();
1704
+ }
1705
+ if ( NFW_IS_HTTPS == false ) {
1706
  return;
1707
  }
1708
+
1709
  if ($NFW_RESHEADERS[4] == 1) {
1710
  $max_age = 'max-age=2628000';
1711
  } elseif ($NFW_RESHEADERS[4] == 2) {
lib/firewall_log.php CHANGED
@@ -153,7 +153,7 @@ if ( defined('NFW_TEXTAREA_HEIGHT') ) {
153
  ?></textarea>
154
  <br />
155
  <center>
156
- <span class="description"><?php _e('The log is rotated monthly', 'ninjafirewall') ?></span>
157
  </center>
158
  </td>
159
  </tr>
153
  ?></textarea>
154
  <br />
155
  <center>
156
+ <span class="description"><?php _e('The log shows all threats that were blocked by the firewall, unless stated otherwise. It is rotated monthly.', 'ninjafirewall') ?></span>
157
  </center>
158
  </td>
159
  </tr>
lib/firewall_policies.php CHANGED
@@ -65,7 +65,7 @@ function csp_onoff(what, csp) {
65
  }
66
  }
67
  function ssl_warn() {';
68
- if ($_SERVER['SERVER_PORT'] == 443 ) {
69
  echo 'return true;';
70
  } else {
71
  echo '
@@ -911,7 +911,7 @@ wp_nonce_field('policies_save', 'nfwnonce', 0);
911
  </td>
912
  </tr>
913
  <?php
914
- if ($_SERVER['SERVER_PORT'] != 443 && ! $err && (! isset( $_SERVER['HTTP_X_FORWARDED_PROTO']) || $_SERVER['HTTP_X_FORWARDED_PROTO'] != 'https') ) {
915
  $hsts_err = 1;
916
  $hsts_msg = '<br /><img src="' . plugins_url() . '/ninjafirewall/images/glyphicons-warning.png">&nbsp;<span class="description">' . __('HSTS headers can only be set when you are accessing your site over HTTPS.', 'ninjafirewall') . '</span>';
917
  } else {
65
  }
66
  }
67
  function ssl_warn() {';
68
+ if ( NFW_IS_HTTPS == true ) {
69
  echo 'return true;';
70
  } else {
71
  echo '
911
  </td>
912
  </tr>
913
  <?php
914
+ if ( NFW_IS_HTTPS == false && ! $err ) {
915
  $hsts_err = 1;
916
  $hsts_msg = '<br /><img src="' . plugins_url() . '/ninjafirewall/images/glyphicons-warning.png">&nbsp;<span class="description">' . __('HSTS headers can only be set when you are accessing your site over HTTPS.', 'ninjafirewall') . '</span>';
917
  } else {
lib/fw_livelog.php CHANGED
@@ -90,8 +90,8 @@ function fw_livelog_record() {
90
 
91
  // Check if we are supposed to log the request (http/https) :
92
  if ( empty($nfw_['nfw_options']['liveport']) ||
93
- ($nfw_['nfw_options']['liveport'] == 1 && $_SERVER['SERVER_PORT'] != 443) ||
94
- ($nfw_['nfw_options']['liveport'] == 2 && $_SERVER['SERVER_PORT'] == 443) ) {
95
 
96
  // Inclusion and exclusion rules:
97
  if (! empty( $nfw_['nfw_options']['liverules'] ) && ! empty( $nfw_['nfw_options']['liverulespath'] ) ) {
90
 
91
  // Check if we are supposed to log the request (http/https) :
92
  if ( empty($nfw_['nfw_options']['liveport']) ||
93
+ ($nfw_['nfw_options']['liveport'] == 1 && NFW_IS_HTTPS == false) ||
94
+ ($nfw_['nfw_options']['liveport'] == 2 && NFW_IS_HTTPS == true) ) {
95
 
96
  // Inclusion and exclusion rules:
97
  if (! empty( $nfw_['nfw_options']['liverules'] ) && ! empty( $nfw_['nfw_options']['liverulespath'] ) ) {
lib/init_update.php CHANGED
@@ -101,6 +101,13 @@ if (! empty($nfw_options['engine_version']) && version_compare($nfw_options['eng
101
  }
102
  }
103
  }
 
 
 
 
 
 
 
104
  // ---------------------------------------------------------------
105
  // Delete old rules files (/updates/*):
106
  $update_dir = dirname( __DIR__ ) . '/updates';
@@ -117,6 +124,21 @@ if (! empty($nfw_options['engine_version']) && version_compare($nfw_options['eng
117
  @rmdir( $update_dir );
118
  }
119
  // -------------------------------------------------------------
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
120
 
121
  // Adjust current version :
122
  $nfw_options['engine_version'] = NFW_ENGINE_VERSION;
101
  }
102
  }
103
  }
104
+ // v3.8.3 update -------------------------------------------------
105
+ if ( version_compare( $nfw_options['engine_version'], '3.8.3', '<' ) ) {
106
+ if (! isset( $nfw_options['a_61'] ) ) {
107
+ $nfw_options['a_61'] = 1;
108
+ }
109
+ }
110
+
111
  // ---------------------------------------------------------------
112
  // Delete old rules files (/updates/*):
113
  $update_dir = dirname( __DIR__ ) . '/updates';
124
  @rmdir( $update_dir );
125
  }
126
  // -------------------------------------------------------------
127
+ // All versions:
128
+ // Old upgrades from 1.3.x to 1.4 didn't initialize the security
129
+ // rules updates cron job; we attempt to fix this now:
130
+ if (! isset( $nfw_options['enable_updates'] ) ) {
131
+ $nfw_options['enable_updates'] = 1;
132
+ $nfw_options['sched_updates'] = 1;
133
+ $nfw_options['notify_updates'] = 0;
134
+ // Clear scheduled scan (if any):
135
+ if ( wp_next_scheduled('nfsecupdates') ) {
136
+ wp_clear_scheduled_hook('nfsecupdates');
137
+ }
138
+ // Setup new cron:
139
+ wp_schedule_event( time() + 600, 'hourly', 'nfsecupdates');
140
+ }
141
+ // -------------------------------------------------------------
142
 
143
  // Adjust current version :
144
  $nfw_options['engine_version'] = NFW_ENGINE_VERSION;
lib/install_default.php CHANGED
@@ -112,6 +112,8 @@ function nfw_load_default_conf() {
112
  'a_52' => 1,
113
  // v3.4:
114
  'a_53' => 1,
 
 
115
 
116
  'alert_email' => $alert_email,
117
  // v1.1.0 :
112
  'a_52' => 1,
113
  // v3.4:
114
  'a_53' => 1,
115
+ // v3.8.3 :
116
+ 'a_61' => 1,
117
 
118
  'alert_email' => $alert_email,
119
  // v1.1.0 :
lib/live_log.php CHANGED
@@ -73,7 +73,7 @@ if ( isset($_COOKIE['nfwintval']) && preg_match('/^(5|10|20|45)000$/', $_COOKIE[
73
  var livecls = 0;
74
  var myinterval;
75
  var ajaxURL = '<?php
76
- if ( $_SERVER['SERVER_PORT'] == 443 ) {
77
  echo site_url( '', 'https' );
78
  } else {
79
  echo site_url();
73
  var livecls = 0;
74
  var myinterval;
75
  var ajaxURL = '<?php
76
+ if ( NFW_IS_HTTPS == true ) {
77
  echo site_url( '', 'https' );
78
  } else {
79
  echo site_url();
lib/utils.php CHANGED
@@ -19,6 +19,25 @@
19
 
20
  if (! defined( 'NFW_ENGINE_VERSION' ) ) { die( 'Forbidden' ); }
21
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
22
  // ---------------------------------------------------------------------
23
  // Start a PHP session.
24
 
@@ -44,15 +63,37 @@ function nfw_session_start() {
44
 
45
  function nfw_ini_set_cookie() {
46
 
47
- if ( ( isset( $_SERVER['HTTPS'] ) && $_SERVER['HTTPS'] != 'off' ) ||
48
- $_SERVER['SERVER_PORT'] == 443 || defined('NFW_IS_HTTPS') ) {
49
-
50
  @ini_set('session.cookie_secure', 1);
51
  }
 
52
  @ini_set('session.cookie_httponly', 1);
53
  @ini_set('session.use_only_cookies', 1);
54
  }
55
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
56
  // ---------------------------------------------------------------------
57
  // Allow/disallow account creation.
58
 
@@ -87,11 +128,31 @@ function nfw_account_creation( $user_login ) {
87
  $message.= 'SCRIPT_FILENAME: ' . $_SERVER['SCRIPT_FILENAME'] . "\n";
88
  $message.= 'REQUEST_URI: ' . $_SERVER['REQUEST_URI'] . "\n";
89
  $message.= __('Date:', 'ninjafirewall') .' '. date_i18n('F j, Y @ H:i:s') . ' (UTC '. date('O') . ")\n\n";
 
 
 
 
 
 
 
 
 
 
90
  $message.= 'NinjaFirewall (WP Edition) - https://nintechnet.com/' . "\n" .
91
  'Support forum: http://wordpress.org/support/plugin/ninjafirewall' . "\n";
92
- wp_mail( $recipient, $subject, $message );
 
 
 
 
 
 
 
 
93
 
94
  // Block it:
 
 
95
  wp_die(
96
  'NinjaFirewall: '. __('You are not allowed to perform this task.', 'ninjafirewall'),
97
  'NinjaFirewall: '. __('You are not allowed to perform this task.', 'ninjafirewall'),
@@ -754,6 +815,7 @@ function nfwhook_user_meta( $id, $key, $value ) {
754
  if ( is_array( $key ) ) {
755
  $key = serialize( $key );
756
  }
 
757
  if ( strpos( $key, "{$wpdb->base_prefix}capabilities") !== FALSE && ! current_user_can('edit_users') ) {
758
  if ( is_array( $value ) ) {
759
  $value = serialize( $value );
@@ -768,9 +830,6 @@ function nfwhook_user_meta( $id, $key, $value ) {
768
  nfw_log2( 'WordPress: ' . $subject, "$key: $value", 3, 0);
769
  }
770
 
771
- $_SESSION = array();
772
- @session_destroy();
773
-
774
  $nfw_options = nfw_get_option( 'nfw_options' );
775
 
776
  // Alert the admin if needed:
@@ -792,14 +851,33 @@ function nfwhook_user_meta( $id, $key, $value ) {
792
  $message.= 'SCRIPT_FILENAME: ' . $_SERVER['SCRIPT_FILENAME'] . "\n";
793
  $message.= 'REQUEST_URI: ' . $_SERVER['REQUEST_URI'] . "\n";
794
  $message.= __('Date:', 'ninjafirewall') .' '. date_i18n('F j, Y @ H:i:s') . ' (UTC '. date('O') . ")\n\n";
 
 
 
 
 
 
 
 
 
 
795
  $message.= __('This notification can be turned off from NinjaFirewall "Event Notifications" page.', 'ninjafirewall') . "\n\n";
796
  $message.= 'NinjaFirewall (WP Edition) - https://nintechnet.com/' . "\n" .
797
  'Support forum: http://wordpress.org/support/plugin/ninjafirewall' . "\n";
798
- wp_mail( $recipient, $subject, $message );
799
 
 
 
 
 
 
 
 
 
800
  }
801
 
802
  // Block it:
 
 
803
  wp_die(
804
  'NinjaFirewall: '. __('You are not allowed to perform this task.', 'ninjafirewall'),
805
  'NinjaFirewall: '. __('You are not allowed to perform this task.', 'ninjafirewall'),
@@ -915,6 +993,7 @@ add_action( 'init', 'nf_wp_init' );
915
 
916
  function nf_monitor_options( $value, $option, $old_value ) {
917
 
 
918
  $monitor = array(
919
  'admin_email',
920
  'blog_public',
@@ -926,9 +1005,16 @@ function nf_monitor_options( $value, $option, $old_value ) {
926
  'home',
927
  'mailserver_login',
928
  'siteurl',
 
 
929
  'users_can_register',
930
- 'wp_user_roles'
931
  );
 
 
 
 
 
932
 
933
  // User-defined exclusion list (undocumented):
934
  if ( defined('NFW_OPTMON_EXCLUDE') && strpos( NFW_OPTMON_EXCLUDE, $option ) !== false ) {
@@ -941,6 +1027,19 @@ function nf_monitor_options( $value, $option, $old_value ) {
941
  return $value;
942
  }
943
 
 
 
 
 
 
 
 
 
 
 
 
 
 
944
  // Send a notification to the admin:
945
  nf_monitor_options_alert( $option, $value, $old_value );
946
 
@@ -949,6 +1048,8 @@ function nf_monitor_options( $value, $option, $old_value ) {
949
 
950
  // Block it:
951
  $nfw_options = nfw_get_option( 'nfw_options' );
 
 
952
  wp_die(
953
  'NinjaFirewall: '. __('You are not allowed to perform this task.', 'ninjafirewall'),
954
  'NinjaFirewall: '. __('You are not allowed to perform this task.', 'ninjafirewall'),
@@ -991,6 +1092,16 @@ function nf_monitor_options_alert( $option, $value, $old_value ) {
991
  __('You can review this option from your WordPress "%s" page.', 'ninjafirewall') ."\n\n",
992
  __('Settings > General', 'ninjafirewall')
993
  );
 
 
 
 
 
 
 
 
 
 
994
  // Show current blog, not main site (multisite):
995
  $message.= __('Blog:', 'ninjafirewall') .' '. home_url('/') . "\n";
996
  $message.= __('User IP:', 'ninjafirewall') .' '. NFW_REMOTE_ADDR . "\n";
@@ -1002,7 +1113,14 @@ function nf_monitor_options_alert( $option, $value, $old_value ) {
1002
  $message.= 'NinjaFirewall (WP Edition) - https://nintechnet.com/' . "\n" .
1003
  'Support forum: http://wordpress.org/support/plugin/ninjafirewall' . "\n";
1004
 
1005
- wp_mail( $recipient, $subject, $message );
 
 
 
 
 
 
 
1006
 
1007
  }
1008
 
19
 
20
  if (! defined( 'NFW_ENGINE_VERSION' ) ) { die( 'Forbidden' ); }
21
 
22
+ // ---------------------------------------------------------------------
23
+ // Check for HTTPS. This function is also available in firewall.php
24
+ // and is used here only if the firewall is not loaded.
25
+
26
+ if (! function_exists( 'nfw_is_https' ) ) {
27
+
28
+ function nfw_is_https() {
29
+ // Can be defined in the .htninja:
30
+ if ( defined('NFW_IS_HTTPS') ) { return; }
31
+
32
+ if ( ( isset( $_SERVER['SERVER_PORT'] ) && $_SERVER['SERVER_PORT'] == 443 ) ||
33
+ ( isset( $_SERVER['HTTP_X_FORWARDED_PROTO'] ) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https') ||
34
+ ( isset( $_SERVER['HTTPS'] ) && $_SERVER['HTTPS'] !== 'off' ) ) {
35
+ define('NFW_IS_HTTPS', true);
36
+ } else {
37
+ define('NFW_IS_HTTPS', false);
38
+ }
39
+ }
40
+ }
41
  // ---------------------------------------------------------------------
42
  // Start a PHP session.
43
 
63
 
64
  function nfw_ini_set_cookie() {
65
 
66
+ if ( defined('NFW_IS_HTTPS') && NFW_IS_HTTPS == true ) {
 
 
67
  @ini_set('session.cookie_secure', 1);
68
  }
69
+
70
  @ini_set('session.cookie_httponly', 1);
71
  @ini_set('session.use_only_cookies', 1);
72
  }
73
 
74
+ // ---------------------------------------------------------------------
75
+ // Write session to disk to prevent cURL time-out which may occur with
76
+ // WordPress (since 4.9.2, see https://core.trac.wordpress.org/ticket/43358),
77
+ // or plugins such as "Health Check".
78
+
79
+ add_filter( 'pre_http_request', 'nf_pre_http_request', 10, 3 );
80
+
81
+ function nf_pre_http_request( $preempt, $r, $url ) {
82
+
83
+ // Can be defined in wp-config.php (undocumented):
84
+ if (! defined('NFW_DISABLE_SWC') ) {
85
+ // Make sure the request comes from a logged in admin...
86
+ if ( current_user_can('edit_plugins') ) {
87
+ $s_url = get_site_url();
88
+ // ...and it's calling back this website:
89
+ if ( preg_match( "`^$s_url`", $url ) ) {
90
+ @session_write_close();
91
+ }
92
+ }
93
+ }
94
+ return false;
95
+ }
96
+
97
  // ---------------------------------------------------------------------
98
  // Allow/disallow account creation.
99
 
128
  $message.= 'SCRIPT_FILENAME: ' . $_SERVER['SCRIPT_FILENAME'] . "\n";
129
  $message.= 'REQUEST_URI: ' . $_SERVER['REQUEST_URI'] . "\n";
130
  $message.= __('Date:', 'ninjafirewall') .' '. date_i18n('F j, Y @ H:i:s') . ' (UTC '. date('O') . ")\n\n";
131
+
132
+ // Attach PHP backtrace:
133
+ if (! empty( $nfw_options['a_61'] ) ) {
134
+ $nftmpfname = NFW_LOG_DIR .'/nfwlog/backtrace_'. uniqid() .'.txt';
135
+ $dbg = debug_backtrace();
136
+ array_shift( $dbg );
137
+ file_put_contents( $nftmpfname, print_r( $dbg, true ) );
138
+ $message.= __('A PHP backtrace has been attached to this message for your convenience.', 'ninjafirewall') . "\n\n";
139
+ }
140
+
141
  $message.= 'NinjaFirewall (WP Edition) - https://nintechnet.com/' . "\n" .
142
  'Support forum: http://wordpress.org/support/plugin/ninjafirewall' . "\n";
143
+
144
+ if ( empty( $nftmpfname ) ) {
145
+ wp_mail( $recipient, $subject, $message );
146
+
147
+ } else {
148
+ // Attach backtrace and delete temp file:
149
+ wp_mail( $recipient, $subject, $message, '', $nftmpfname );
150
+ unlink( $nftmpfname );
151
+ }
152
 
153
  // Block it:
154
+ $_SESSION = array();
155
+ @session_destroy();
156
  wp_die(
157
  'NinjaFirewall: '. __('You are not allowed to perform this task.', 'ninjafirewall'),
158
  'NinjaFirewall: '. __('You are not allowed to perform this task.', 'ninjafirewall'),
815
  if ( is_array( $key ) ) {
816
  $key = serialize( $key );
817
  }
818
+ // The original prefix as defined in wp-config.php
819
  if ( strpos( $key, "{$wpdb->base_prefix}capabilities") !== FALSE && ! current_user_can('edit_users') ) {
820
  if ( is_array( $value ) ) {
821
  $value = serialize( $value );
830
  nfw_log2( 'WordPress: ' . $subject, "$key: $value", 3, 0);
831
  }
832
 
 
 
 
833
  $nfw_options = nfw_get_option( 'nfw_options' );
834
 
835
  // Alert the admin if needed:
851
  $message.= 'SCRIPT_FILENAME: ' . $_SERVER['SCRIPT_FILENAME'] . "\n";
852
  $message.= 'REQUEST_URI: ' . $_SERVER['REQUEST_URI'] . "\n";
853
  $message.= __('Date:', 'ninjafirewall') .' '. date_i18n('F j, Y @ H:i:s') . ' (UTC '. date('O') . ")\n\n";
854
+
855
+ // Attach PHP backtrace:
856
+ if (! empty( $nfw_options['a_61'] ) ) {
857
+ $nftmpfname = NFW_LOG_DIR .'/nfwlog/backtrace_'. uniqid() .'.txt';
858
+ $dbg = debug_backtrace();
859
+ array_shift( $dbg );
860
+ file_put_contents( $nftmpfname, print_r( $dbg, true ) );
861
+ $message.= __('A PHP backtrace has been attached to this message for your convenience.', 'ninjafirewall') . "\n\n";
862
+ }
863
+
864
  $message.= __('This notification can be turned off from NinjaFirewall "Event Notifications" page.', 'ninjafirewall') . "\n\n";
865
  $message.= 'NinjaFirewall (WP Edition) - https://nintechnet.com/' . "\n" .
866
  'Support forum: http://wordpress.org/support/plugin/ninjafirewall' . "\n";
 
867
 
868
+ if ( empty( $nftmpfname ) ) {
869
+ wp_mail( $recipient, $subject, $message );
870
+
871
+ } else {
872
+ // Attach backtrace and delete temp file:
873
+ wp_mail( $recipient, $subject, $message, '', $nftmpfname );
874
+ unlink( $nftmpfname );
875
+ }
876
  }
877
 
878
  // Block it:
879
+ $_SESSION = array();
880
+ @session_destroy();
881
  wp_die(
882
  'NinjaFirewall: '. __('You are not allowed to perform this task.', 'ninjafirewall'),
883
  'NinjaFirewall: '. __('You are not allowed to perform this task.', 'ninjafirewall'),
993
 
994
  function nf_monitor_options( $value, $option, $old_value ) {
995
 
996
+ global $wpdb;
997
  $monitor = array(
998
  'admin_email',
999
  'blog_public',
1005
  'home',
1006
  'mailserver_login',
1007
  'siteurl',
1008
+ 'template',
1009
+ 'stylesheet',
1010
  'users_can_register',
1011
+ "{$wpdb->base_prefix}user_roles"
1012
  );
1013
+ if ( is_multisite() ) {
1014
+ // E.g.: wp_2_user_roles
1015
+ global $current_blog;
1016
+ $monitor[] = "{$wpdb->prefix}{$current_blog->blog_id}_user_roles";
1017
+ }
1018
 
1019
  // User-defined exclusion list (undocumented):
1020
  if ( defined('NFW_OPTMON_EXCLUDE') && strpos( NFW_OPTMON_EXCLUDE, $option ) !== false ) {
1027
  return $value;
1028
  }
1029
 
1030
+ if ( is_array( $value ) ) {
1031
+ $tmp = serialize( $value );
1032
+ $value = '';
1033
+ if ( strlen( $tmp ) > 200 ) { $tmp = mb_substr( $tmp, 0, 200, 'utf-8' ) . '...'; }
1034
+ $value = $tmp;
1035
+ }
1036
+ if ( is_array( $old_value ) ) {
1037
+ $tmp = serialize( $old_value );
1038
+ $old_value = '';
1039
+ if ( strlen( $tmp ) > 200 ) { $tmp = mb_substr( $tmp, 0, 200, 'utf-8' ) . '...'; }
1040
+ $old_value = $tmp;
1041
+ }
1042
+
1043
  // Send a notification to the admin:
1044
  nf_monitor_options_alert( $option, $value, $old_value );
1045
 
1048
 
1049
  // Block it:
1050
  $nfw_options = nfw_get_option( 'nfw_options' );
1051
+ $_SESSION = array();
1052
+ @session_destroy();
1053
  wp_die(
1054
  'NinjaFirewall: '. __('You are not allowed to perform this task.', 'ninjafirewall'),
1055
  'NinjaFirewall: '. __('You are not allowed to perform this task.', 'ninjafirewall'),
1092
  __('You can review this option from your WordPress "%s" page.', 'ninjafirewall') ."\n\n",
1093
  __('Settings > General', 'ninjafirewall')
1094
  );
1095
+
1096
+ // Attach PHP backtrace:
1097
+ if (! empty( $nfw_options['a_61'] ) ) {
1098
+ $nftmpfname = NFW_LOG_DIR .'/nfwlog/backtrace_'. uniqid() .'.txt';
1099
+ $dbg = debug_backtrace();
1100
+ array_shift( $dbg );
1101
+ file_put_contents( $nftmpfname, print_r( $dbg, true ) );
1102
+ $message.= __('A PHP backtrace has been attached to this message for your convenience.', 'ninjafirewall') . "\n\n";
1103
+ }
1104
+
1105
  // Show current blog, not main site (multisite):
1106
  $message.= __('Blog:', 'ninjafirewall') .' '. home_url('/') . "\n";
1107
  $message.= __('User IP:', 'ninjafirewall') .' '. NFW_REMOTE_ADDR . "\n";
1113
  $message.= 'NinjaFirewall (WP Edition) - https://nintechnet.com/' . "\n" .
1114
  'Support forum: http://wordpress.org/support/plugin/ninjafirewall' . "\n";
1115
 
1116
+ if ( empty( $nftmpfname ) ) {
1117
+ wp_mail( $recipient, $subject, $message );
1118
+
1119
+ } else {
1120
+ // Attach backtrace and delete temp file:
1121
+ wp_mail( $recipient, $subject, $message, '', $nftmpfname );
1122
+ unlink( $nftmpfname );
1123
+ }
1124
 
1125
  }
1126
 
ninjafirewall.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: NinjaFirewall (WP Edition)
4
  Plugin URI: https://nintechnet.com/
5
  Description: A true Web Application Firewall to protect and secure WordPress.
6
- Version: 3.8.2
7
  Author: The Ninja Technologies Network
8
  Author URI: https://nintechnet.com/
9
  License: GPLv3 or later
@@ -19,7 +19,7 @@ Domain Path: /languages
19
  | (c) NinTechNet - https://nintechnet.com/ |
20
  +---------------------------------------------------------------------+
21
  */
22
- define( 'NFW_ENGINE_VERSION', '3.8.2' );
23
  /*
24
  +---------------------------------------------------------------------+
25
  | This program is free software: you can redistribute it and/or |
@@ -78,6 +78,7 @@ $err_fw = array(
78
  11 => __('Cannot retrieve user options from database (#1)', 'ninjafirewall'),
79
  12 => __('Cannot retrieve user rules from database (#1)', 'ninjafirewall'),
80
  13 => sprintf( __("The firewall cannot access its log and cache folders. If you changed the name of WordPress %s or %s folders, you must define NinjaFirewall's built-in %s constant (see %s for more info)", 'ninjafirewall'), '<code>/wp-content/</code>', '<code>/plugins/</code>', '<code>NFW_LOG_DIR</code>', "<a href='https://nintechnet.com/ninjafirewall/wp-edition/help/?htninja' target='_blank'>Path to NinjaFirewall's log and cache directory</a>"),
 
81
  );
82
 
83
  if (! defined('NFW_LOG_DIR') ) {
3
  Plugin Name: NinjaFirewall (WP Edition)
4
  Plugin URI: https://nintechnet.com/
5
  Description: A true Web Application Firewall to protect and secure WordPress.
6
+ Version: 3.8.3
7
  Author: The Ninja Technologies Network
8
  Author URI: https://nintechnet.com/
9
  License: GPLv3 or later
19
  | (c) NinTechNet - https://nintechnet.com/ |
20
  +---------------------------------------------------------------------+
21
  */
22
+ define( 'NFW_ENGINE_VERSION', '3.8.3' );
23
  /*
24
  +---------------------------------------------------------------------+
25
  | This program is free software: you can redistribute it and/or |
78
  11 => __('Cannot retrieve user options from database (#1)', 'ninjafirewall'),
79
  12 => __('Cannot retrieve user rules from database (#1)', 'ninjafirewall'),
80
  13 => sprintf( __("The firewall cannot access its log and cache folders. If you changed the name of WordPress %s or %s folders, you must define NinjaFirewall's built-in %s constant (see %s for more info)", 'ninjafirewall'), '<code>/wp-content/</code>', '<code>/plugins/</code>', '<code>NFW_LOG_DIR</code>', "<a href='https://nintechnet.com/ninjafirewall/wp-edition/help/?htninja' target='_blank'>Path to NinjaFirewall's log and cache directory</a>"),
81
+ 14 => __('The PHP msqli extension is missing or not loaded.', 'ninjafirewall'),
82
  );
83
 
84
  if (! defined('NFW_LOG_DIR') ) {
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: nintechnet, bruandet
3
  Tags: security, firewall, malware, antispam, virus, scanner, hacked site, brute force, seguridad, seguranca, sicherheit, sicurezza, veiligheid
4
  Requires at least: 3.7
5
  Tested up to: 5.1
6
- Stable tag: 3.8.2
7
  Requires PHP: 5.3
8
  License: GPLv3 or later
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
@@ -199,6 +199,15 @@ NinjaFirewall works on Unix-like servers only. There is no Microsoft Windows ver
199
 
200
  == Changelog ==
201
 
 
 
 
 
 
 
 
 
 
202
  = 3.8.2 =
203
 
204
  * Improved the firewall engine to detect shell command obfuscation tricks using uninitialized variables (e.g. `?a=cat$foo $foo/etc/$foo/passwd$foo`).
3
  Tags: security, firewall, malware, antispam, virus, scanner, hacked site, brute force, seguridad, seguranca, sicherheit, sicurezza, veiligheid
4
  Requires at least: 3.7
5
  Tested up to: 5.1
6
+ Stable tag: 3.8.3
7
  Requires PHP: 5.3
8
  License: GPLv3 or later
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
199
 
200
  == Changelog ==
201
 
202
+ = 3.8.3 =
203
+
204
+ * NinjaFirewall will attach a PHP backtrace to some important email notifications (see "Event Notifications > PHP backtrace").
205
+ * Fixed an issue where the firewall could not connect to the database if its password contained an escaped single quote.
206
+ * Fixed an issue where it was not possible to use the WordPress plugin and theme editor. This is due to a bug introduced in WordPress 4.9.2 which does not play well with PHP sessions (see https://core.trac.wordpress.org/ticket/43358).
207
+ * The firewall will detect if the PHP mysqli extension is missing or is not loaded and will warn the admin in the backend.
208
+ * Improved TLS detection for servers that are behind a load-balancer or reverse proxy.
209
+ * Various fixes and adjustments.
210
+
211
  = 3.8.2 =
212
 
213
  * Improved the firewall engine to detect shell command obfuscation tricks using uninitialized variables (e.g. `?a=cat$foo $foo/etc/$foo/passwd$foo`).