PluginProbe ʕ •ᴥ•ʔ
NinjaFirewall (WP Edition) – Advanced Security Plugin and Firewall / 4.9
NinjaFirewall (WP Edition) – Advanced Security Plugin and Firewall v4.9
4.9 4.8.8 4.8.7 4.8.6 trunk 4.5 4.5.1 4.5.10 4.5.11 4.5.2 4.5.3 4.5.4 4.5.5 4.5.6 4.5.7 4.5.8 4.5.9 4.6 4.6.1 4.7 4.7.1 4.7.2 4.7.3 4.7.4 4.7.5 4.8 4.8.1 4.8.2 4.8.3 4.8.4 4.8.5
ninjafirewall / lib / mail_template_plugin.php
ninjafirewall / lib Last commit date
share 9 years ago .htaccess 11 years ago anti_malware.php 5 years ago class-api.php 4 weeks ago class-centralised-logging.php 4 weeks ago class-coupon.php 7 months ago class-email-sodium.php 4 weeks ago class-firewall-log.php 4 weeks ago class-helpers.php 9 months ago class-import-export.php 5 months ago class-ip.php 5 months ago class-nfw-database.php 7 months ago class-plugin-upgrade.php 4 weeks ago class-security-updates.php 4 weeks ago class-session.php 4 weeks ago class_mail.php 4 weeks ago firewall.php 4 weeks ago fw_fileguard.php 5 months ago fw_livelog.php 1 year ago help.php 4 weeks ago helpers.php 4 weeks ago i18n-extra.php 4 weeks ago i18n.php 1 year ago index.html 13 years ago init_update.php 2 years ago install.php 1 year ago install_default.php 4 weeks ago loader.php 7 months ago mail_template_firewall.php 1 year ago mail_template_plugin.php 4 weeks ago scheduled_tasks.php 3 years ago settings_dashboard.php 4 weeks ago settings_dashboard_about.php 4 weeks ago settings_dashboard_statistics.php 2 months ago settings_event_notifications.php 4 weeks ago settings_events.php 2 months ago settings_firewall_options.php 2 months ago settings_firewall_policies.php 4 weeks ago settings_login_protection.php 2 months ago settings_logs.php 4 weeks ago settings_logs_firewall_log.php 4 weeks ago settings_logs_live_log.php 2 months ago settings_monitoring.php 4 weeks ago settings_monitoring_file_check.php 2 months ago settings_monitoring_file_guard.php 2 months ago settings_network.php 2 months ago settings_security_rules.php 2 months ago settings_security_rules_editor.php 4 weeks ago settings_security_rules_update.php 4 weeks ago sign.pub 7 years ago thickbox.php 4 years ago widget.php 3 years ago wpplus.php 5 months ago
mail_template_plugin.php
399 lines
1 <?php
2 /*
3 +=====================================================================+
4 | _ _ _ _ _____ _ _ _ |
5 | | \ | (_)_ __ (_) __ _| ___(_)_ __ _____ ____ _| | | |
6 | | \| | | '_ \ | |/ _` | |_ | | '__/ _ \ \ /\ / / _` | | | |
7 | | |\ | | | | || | (_| | _| | | | | __/\ V V / (_| | | | |
8 | |_| \_|_|_| |_|/ |\__,_|_| |_|_| \___| \_/\_/ \__,_|_|_| |
9 | |__/ |
10 | (c) NinTechNet Limited ~ https://nintechnet.com/ |
11 +=====================================================================+
12 */
13
14 if (! class_exists('NinjaFirewall_mail') ) {
15 return;
16 }
17
18 /***********************************************************************
19 * Subject line tag for all email notification.
20 * Ex: "Subject: [NinjaFirewall] My email subject"
21 */
22 $template['subject_line_tag'] = '[NinjaFirewall]';
23
24 /**
25 * Email signature.
26 */
27 $template['signature'] = 'NinjaFirewall (WP Edition) - https://nintechnet.com/';
28
29
30 /***********************************************************************
31 * Daily activity report.
32 * NinjaFirewall > Event Notifications > Daily report.
33 */
34
35 $template['daily_report']['subject'] = __('Daily Activity Report for %s', 'ninjafirewall');
36
37 /* Translators: 1=domain, 2=date, 3-7=sum of threats and attacks. */
38 $template['daily_report']['content'] = __(
39 'Daily activity report for: %1$s
40 Date Range Processed: Yesterday, %2$s
41
42 Blocked threats: %3$s (critical: %4$s, high: %5$s, medium: %6$s)
43 Blocked brute-force attacks: %7$s
44
45 This notification can be turned off from NinjaFirewall "Event Notifications" page.', 'ninjafirewall');
46
47
48 /***********************************************************************
49 * Firewall is disabled.
50 * NinjaFirewall > Firewall Options > Firewall protection.
51 */
52
53 $template['disabled']['subject'] = __('Alert: Firewall is disabled', 'ninjafirewall');
54
55 /* Translators: 1=username, 2=IP, 3=date, 4=blog url. */
56 $template['disabled']['content'] = __(
57 'Someone disabled NinjaFirewall from your WordPress admin dashboard:
58
59 User : %1$s
60 IP : %2$s
61 Date : %3$s
62 Blog : %4$s', 'ninjafirewall');
63
64
65 /***********************************************************************
66 * Firewall is disabled (debugging mode).
67 * NinjaFirewall > Firewall Options > Debugging mode.
68 */
69
70 $template['debugging']['subject'] = __('Alert: Firewall is disabled', 'ninjafirewall');
71
72 /* Translators: 1=username, 2=IP, 3=date, 4=blog url. */
73 $template['debugging']['content'] = __(
74 'NinjaFirewall is disabled because someone enabled debugging mode from your WordPress admin dashboard:
75
76 User : %1$s
77 IP : %2$s
78 Date : %3$s
79 Blog : %4$s', 'ninjafirewall');
80
81
82 /***********************************************************************
83 * Firewall override settings.
84 * NinjaFirewall > Firewall Options > Import configuration.
85 */
86
87 $template['fw_override']['subject'] = __('Alert: Firewall override settings', 'ninjafirewall');
88
89 /* Translators: 1=username, 2=IP, 3=date, 4=blog url. */
90 $template['fw_override']['content'] =__(
91 'Someone imported a new configuration which overrode the firewall settings:
92
93 User : %1$s
94 IP : %2$s
95 Date : %3$s
96 Blog : %4$s', 'ninjafirewall');
97
98
99 /***********************************************************************
100 * File Check detection.
101 * NinjaFirewall > Monitoring > File Check.
102 */
103
104 $template['fc_detection']['subject'] = __('Alert: File Check detection', 'ninjafirewall');
105
106 /* Translators: 1=blog url, 2=date, 3-5= sum of new, modified and deleted files */
107 $template['fc_detection']['content'] = __(
108 'NinjaFirewall File Check detected that changes were made to your files.
109
110 Blog: %1$s
111 Date: %2$s
112 New files: %3$s
113 Modified files: %4$s
114 Deleted files: %5$s
115
116 See attached file for details.', 'ninjafirewall');
117
118
119 /***********************************************************************
120 * File Check report.
121 * NinjaFirewall > Monitoring > File Check.
122 */
123
124 $template['fc_report']['subject'] = __('File Check report', 'ninjafirewall');
125
126 /* Translators: 1=blog url, 2=date */
127 $template['fc_report']['content'] = __(
128 'NinjaFirewall File Check did not detect changes in your files.
129
130 Blog: %1$s
131 Date: %2$s', 'ninjafirewall');
132
133
134 /***********************************************************************
135 * Security rules update.
136 * NinjaFirewall > Security Rules > Rules Update.
137 */
138
139 $template['rules_update']['subject'] = __('Security rules update', 'ninjafirewall');
140
141 /* Translators: 1=blog url, 2=version, 3=date */
142 $template['rules_update']['content'] = __(
143 'NinjaFirewall security rules have been updated:
144
145 Blog: %1$s
146 Rules version: %2$s
147 Date: %3$s
148
149 Did you know NinjaFirewall can update its security rules as often as every 15 minutes in the Premium version, as opposed to hourly in this free version? Explore NinjaFirewall WP+ Premium: https://nintechnet.com/ninjafirewall/wp-edition/
150
151 This notification can be turned off from NinjaFirewall "Security Rules" page.', 'ninjafirewall');
152
153
154 /***********************************************************************
155 * Blocked attempt to edit/create a post.
156 * NinjaFirewall > Firewall Policies > WordPress > Permissions.
157 */
158
159 $template['perm_edit']['subject'] = __('Blocked post/page edition attempt', 'ninjafirewall');
160
161 /* Translators: 1=blog url, 2=username, 3=action, 4=post_title, 5=post_content,
162 * 6=IP, 7=SCRIPT_FILENAME, 8=REQUEST_URI, 9=date, 10=PHP backtrace */
163 $template['perm_edit']['content'] = __(
164 'NinjaFirewall has blocked an attempt to edit/create a post by a user who doesn\'t have the right capabilities:
165
166 Blog: %1$s
167 Username: %2$s
168 Action: %3$s
169 post_title: %4$s
170 post_content: %5$s
171 User IP: %6$s
172 SCRIPT_FILENAME: %7$s
173 REQUEST_URI: %8$s
174 Date: %9$s
175
176 %10$s
177 This protection (and notification) can be turned off from NinjaFirewall "Firewall Policies" page.', 'ninjafirewall');
178
179
180 /***********************************************************************
181 * Blocked post/page deletion attempt.
182 * NinjaFirewall > Firewall Policies > WordPress > Permissions.
183 */
184
185 $template['perm_delete']['subject'] = __('Blocked post/page deletion attempt', 'ninjafirewall');
186
187 /* Translators: 1=blog url, 2=username, 3=post ID, 4=post_title,
188 * 5=IP, 6=SCRIPT_FILENAME, 7=REQUEST_URI, 8=date, 9=PHP backtrace */
189 $template['perm_delete']['content'] = __(
190 'NinjaFirewall has blocked an attempt to delete a post by a user who doesn\'t have the right capabilities:
191
192 Blog: %1$s
193 Username: %2$s
194 post ID: %3$s
195 post_title: %4$s
196 User IP: %5$s
197 SCRIPT_FILENAME: %6$s
198 REQUEST_URI: %7$s
199 Date: %8$s
200
201 %9$s
202 This protection (and notification) can be turned off from NinjaFirewall "Firewall Policies" page.', 'ninjafirewall');
203
204
205 /***********************************************************************
206 * Blocked attempt to create a user account.
207 * NinjaFirewall > Firewall Policies > WordPress > Permissions.
208 */
209
210 $template['create_user']['subject'] = __('Blocked user account creation', 'ninjafirewall');
211
212 /* Translators: 1=blog url, 2=username, 3=IP, 4=SCRIPT_FILENAME,
213 * 5=REQUEST_URI, 6=date, 7=PHP backtrace */
214 $template['create_user']['content'] = __(
215 'NinjaFirewall has blocked an attempt to create a user account:
216
217 Blog: %1$s
218 Username: %2$s (blocked)
219 User IP: %3$s
220 SCRIPT_FILENAME: %4$s
221 REQUEST_URI: %5$s
222 Date: %6$s
223
224 %7$s
225 This protection (and notification) can be turned off from NinjaFirewall "Firewall Policies" page.
226 ', 'ninjafirewall');
227
228
229 /***********************************************************************
230 * Blocked user deletion attempt.
231 * NinjaFirewall > Firewall Policies > WordPress > Permissions.
232 */
233
234 $template['delete_user']['subject'] = __('Blocked user deletion attempt', 'ninjafirewall');
235
236 /* Translators: 1=blog url, 2=username, 3=IP, 4=SCRIPT_FILENAME,
237 * 5=REQUEST_URI, 6=date, 7=PHP backtrace */
238 $template['delete_user']['content'] = __(
239 'NinjaFirewall has blocked an attempt to delete a user account by a user who doesn\'t have the right capabilities:
240
241 Blog: %1$s
242 User to delete: %2$s
243 User IP: %3$s
244 SCRIPT_FILENAME: %4$s
245 REQUEST_URI: %5$s
246 Date: %6$s
247
248 %7$s
249 This protection (and notification) can be turned off from NinjaFirewall "Firewall Policies" page.
250 ', 'ninjafirewall');
251
252
253 /***********************************************************************
254 * User login.
255 * NinjaFirewall > Event Notifications > WordPress admin dashboard.
256 */
257
258 $template['user_login']['subject'] = __('Alert: WordPress admin dashboard login', 'ninjafirewall');
259
260 /* Translators: 1=username, 2=IP, 3=date, 4=blog url */
261 $template['user_login']['content'] = __(
262 'Someone just logged in to your WordPress admin dashboard:
263
264 User : %1$s
265 IP : %2$s
266 Date : %3$s
267 Blog : %4$s
268
269 This notification can be turned off from NinjaFirewall "Event Notifications" page.',
270 'ninjafirewall');
271
272
273 /***********************************************************************
274 * Database change.
275 * NinjaFirewall > Event Notifications > Administrator account.
276 */
277
278 $template['database_change']['subject'] = __('Alert: Database changes detected', 'ninjafirewall');
279
280 /* Translators: 1=blog url, 2=date, 3=sum admin users, 4=admin account data*/
281 $template['database_change']['content'] = __(
282 'NinjaFirewall has detected that one or more administrator accounts were modified in the database:
283
284 Blog: %1$s
285 Date: %2$s
286 Total administrators: %3$s
287
288 %4$s
289
290 If you cannot see any modifications in the above fields, it is possible that the administrator password was changed.
291
292 This notification can be turned off from NinjaFirewall "Event Notifications" page.',
293 'ninjafirewall');
294
295
296 /***********************************************************************
297 * Blocked privilege escalation attempt.
298 * NinjaFirewall > Firewall Policies > Permissions.
299 */
300
301 $template['privilege_escalation']['subject'] = __('Blocked privilege escalation attempt', 'ninjafirewall');
302
303 /* Translators: 1=blog url, 2=Username + user ID, 3=meta_key, 4=meta_value,
304 * 5=IP, 6=SCRIPT_FILENAME, 7=REQUEST_URI, 8=Date, 9=PHP backtrace*/
305 $template['privilege_escalation']['content'] = __(
306 'NinjaFirewall has blocked an attempt to modify a user capability by someone who does not have administrative privileges:
307
308 Blog: %1$s
309 Username: %2$s
310 meta_key: %3$s
311 meta_value: %4$s
312 User IP: %5$s
313 SCRIPT_FILENAME: %6$s
314 REQUEST_URI: %7$s
315 Date: %8$s
316
317 %9$s
318 This protection (and notification) can be turned off from NinjaFirewall "Firewall Policies" page.',
319 'ninjafirewall');
320
321
322 /***********************************************************************
323 * Attempt to modify WordPress settings.
324 * NinjaFirewall > Firewall Policies > Permissions.
325 */
326
327 $template['wp_settings']['subject'] = __('Attempt to modify WordPress settings', 'ninjafirewall');
328
329 /* Translators: 1=option name, 2=old value, 3=new value, 4=blog uri,
330 * 5=IP, 6=SCRIPT_FILENAME, 7=REQUEST_URI, 8=Date */
331 $template['wp_settings']['content'] = __(
332 'NinjaFirewall has blocked an attempt to modify some important WordPress settings by a user that does not have administrative privileges:
333
334 Option: %1$s
335 Original value: %2$s
336 Modified value: %3$s
337 Action taken: The attempt was blocked and the option was reversed to its original value.
338
339 Blog: %4$s
340 User IP: %5$s
341 SCRIPT_FILENAME: %6$s
342 REQUEST_URI: %7$s
343 Date: %8$s',
344 'ninjafirewall');
345
346
347 /***********************************************************************
348 * Security update available.
349 * NinjaFirewall > Event Notifications > Security updates
350 */
351
352 $template['security_updates']['subject'] = __('Warning: Security update available', 'ninjafirewall');
353
354 /* Translators: 1=date, 2=blog url, 3=update data */
355 $template['security_updates']['content'] = __(
356 'NinjaFirewall has detected that there are security updates available for your website:
357
358 Date: %1$s
359 Blog: %2$s
360
361 %3$s
362
363 Don\'t leave your blog at risk, make sure to update as soon as possible.
364
365 Did you know security updates available for your site are checked every hour in the Premium version of NinjaFirewall, as opposed to only three times a day in this free version? Explore NinjaFirewall WP+ Premium: https://nintechnet.com/ninjafirewall/wp-edition/
366
367 This notification can be turned off from NinjaFirewall "Event Notifications" page.
368 ',
369 'ninjafirewall');
370
371
372 /***********************************************************************
373 * WordPress|Plugin|Theme activated, deleted, update, installed etc.
374 * NinjaFirewall > Event Notifications > Plugins|Themes|Core
375 */
376
377 $template['events']['subject'] = __('Alert: %s', 'ninjafirewall');
378
379 /* Translators: 1:action (activation, installation...), 2=component,
380 * 3=Username, 4=IP, 5=date, 6=blog url */
381 $template['events']['content'] = __(
382 'NinjaFirewall has detected the following activity on your account:
383
384 %1$s
385 %2$s
386
387 User: %3$s
388 IP: %4$s
389 Date: %5$s
390 Blog: %6$s
391 ',
392 'ninjafirewall');
393
394
395 // -------- DO NOT EDIT BELOW ------------------------------------------
396
397 return $template;
398
399