share
8 years ago
.htaccess
11 years ago
anti_malware.php
4 years ago
class-coupon.php
6 months ago
class-email-sodium.php
3 weeks ago
class-firewall-log.php
1 week ago
class-helpers.php
7 months ago
class-import-export.php
3 months ago
class-ip.php
4 months ago
class-nfw-database.php
6 months ago
class-nfw-session.php
1 week ago
class-php-session.php
1 year ago
class-plugin-upgrade.php
1 week ago
class_mail.php
3 weeks ago
event_updates.php
9 months ago
firewall.php
4 months ago
fw_centlog.php
1 week ago
fw_fileguard.php
4 months ago
fw_livelog.php
1 year ago
help.php
3 weeks ago
helpers.php
1 week ago
i18n-extra.php
3 weeks ago
i18n.php
1 year ago
index.html
13 years ago
init_update.php
1 year ago
install.php
1 year ago
install_default.php
6 months ago
loader.php
6 months ago
mail_template_firewall.php
1 year ago
mail_template_plugin.php
1 month ago
scheduled_tasks.php
3 years ago
settings_dashboard.php
1 month ago
settings_dashboard_about.php
3 weeks ago
settings_dashboard_statistics.php
1 month ago
settings_event_notifications.php
1 month ago
settings_events.php
1 month ago
settings_firewall_options.php
1 month ago
settings_firewall_policies.php
1 week ago
settings_login_protection.php
1 month ago
settings_logs.php
1 month ago
settings_logs_firewall_log.php
3 weeks ago
settings_logs_live_log.php
1 month ago
settings_monitoring.php
3 weeks ago
settings_monitoring_file_check.php
1 month ago
settings_monitoring_file_guard.php
1 month ago
settings_network.php
1 month ago
settings_security_rules.php
1 month ago
settings_security_rules_editor.php
1 month ago
settings_security_rules_update.php
1 week ago
sign.pub
7 years ago
thickbox.php
4 years ago
widget.php
3 years ago
wpplus.php
3 months ago
mail_template_plugin.php
395 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 | This notification can be turned off from NinjaFirewall "Security Rules" page.', 'ninjafirewall'); |
| 150 | |
| 151 | |
| 152 | /*********************************************************************** |
| 153 | * Blocked attempt to edit/create a post. |
| 154 | * NinjaFirewall > Firewall Policies > WordPress > Permissions. |
| 155 | */ |
| 156 | |
| 157 | $template['perm_edit']['subject'] = __('Blocked post/page edition attempt', 'ninjafirewall'); |
| 158 | |
| 159 | /* Translators: 1=blog url, 2=username, 3=action, 4=post_title, 5=post_content, |
| 160 | * 6=IP, 7=SCRIPT_FILENAME, 8=REQUEST_URI, 9=date, 10=PHP backtrace */ |
| 161 | $template['perm_edit']['content'] = __( |
| 162 | 'NinjaFirewall has blocked an attempt to edit/create a post by a user who doesn\'t have the right capabilities: |
| 163 | |
| 164 | Blog: %1$s |
| 165 | Username: %2$s |
| 166 | Action: %3$s |
| 167 | post_title: %4$s |
| 168 | post_content: %5$s |
| 169 | User IP: %6$s |
| 170 | SCRIPT_FILENAME: %7$s |
| 171 | REQUEST_URI: %8$s |
| 172 | Date: %9$s |
| 173 | |
| 174 | %10$s |
| 175 | This protection (and notification) can be turned off from NinjaFirewall "Firewall Policies" page.', 'ninjafirewall'); |
| 176 | |
| 177 | |
| 178 | /*********************************************************************** |
| 179 | * Blocked post/page deletion attempt. |
| 180 | * NinjaFirewall > Firewall Policies > WordPress > Permissions. |
| 181 | */ |
| 182 | |
| 183 | $template['perm_delete']['subject'] = __('Blocked post/page deletion attempt', 'ninjafirewall'); |
| 184 | |
| 185 | /* Translators: 1=blog url, 2=username, 3=post ID, 4=post_title, |
| 186 | * 5=IP, 6=SCRIPT_FILENAME, 7=REQUEST_URI, 8=date, 9=PHP backtrace */ |
| 187 | $template['perm_delete']['content'] = __( |
| 188 | 'NinjaFirewall has blocked an attempt to delete a post by a user who doesn\'t have the right capabilities: |
| 189 | |
| 190 | Blog: %1$s |
| 191 | Username: %2$s |
| 192 | post ID: %3$s |
| 193 | post_title: %4$s |
| 194 | User IP: %5$s |
| 195 | SCRIPT_FILENAME: %6$s |
| 196 | REQUEST_URI: %7$s |
| 197 | Date: %8$s |
| 198 | |
| 199 | %9$s |
| 200 | This protection (and notification) can be turned off from NinjaFirewall "Firewall Policies" page.', 'ninjafirewall'); |
| 201 | |
| 202 | |
| 203 | /*********************************************************************** |
| 204 | * Blocked attempt to create a user account. |
| 205 | * NinjaFirewall > Firewall Policies > WordPress > Permissions. |
| 206 | */ |
| 207 | |
| 208 | $template['create_user']['subject'] = __('Blocked user account creation', 'ninjafirewall'); |
| 209 | |
| 210 | /* Translators: 1=blog url, 2=username, 3=IP, 4=SCRIPT_FILENAME, |
| 211 | * 5=REQUEST_URI, 6=date, 7=PHP backtrace */ |
| 212 | $template['create_user']['content'] = __( |
| 213 | 'NinjaFirewall has blocked an attempt to create a user account: |
| 214 | |
| 215 | Blog: %1$s |
| 216 | Username: %2$s (blocked) |
| 217 | User IP: %3$s |
| 218 | SCRIPT_FILENAME: %4$s |
| 219 | REQUEST_URI: %5$s |
| 220 | Date: %6$s |
| 221 | |
| 222 | %7$s |
| 223 | This protection (and notification) can be turned off from NinjaFirewall "Firewall Policies" page. |
| 224 | ', 'ninjafirewall'); |
| 225 | |
| 226 | |
| 227 | /*********************************************************************** |
| 228 | * Blocked user deletion attempt. |
| 229 | * NinjaFirewall > Firewall Policies > WordPress > Permissions. |
| 230 | */ |
| 231 | |
| 232 | $template['delete_user']['subject'] = __('Blocked user deletion attempt', 'ninjafirewall'); |
| 233 | |
| 234 | /* Translators: 1=blog url, 2=username, 3=IP, 4=SCRIPT_FILENAME, |
| 235 | * 5=REQUEST_URI, 6=date, 7=PHP backtrace */ |
| 236 | $template['delete_user']['content'] = __( |
| 237 | 'NinjaFirewall has blocked an attempt to delete a user account by a user who doesn\'t have the right capabilities: |
| 238 | |
| 239 | Blog: %1$s |
| 240 | User to delete: %2$s |
| 241 | User IP: %3$s |
| 242 | SCRIPT_FILENAME: %4$s |
| 243 | REQUEST_URI: %5$s |
| 244 | Date: %6$s |
| 245 | |
| 246 | %7$s |
| 247 | This protection (and notification) can be turned off from NinjaFirewall "Firewall Policies" page. |
| 248 | ', 'ninjafirewall'); |
| 249 | |
| 250 | |
| 251 | /*********************************************************************** |
| 252 | * User login. |
| 253 | * NinjaFirewall > Event Notifications > WordPress admin dashboard. |
| 254 | */ |
| 255 | |
| 256 | $template['user_login']['subject'] = __('Alert: WordPress admin dashboard login', 'ninjafirewall'); |
| 257 | |
| 258 | /* Translators: 1=username, 2=IP, 3=date, 4=blog url */ |
| 259 | $template['user_login']['content'] = __( |
| 260 | 'Someone just logged in to your WordPress admin dashboard: |
| 261 | |
| 262 | User : %1$s |
| 263 | IP : %2$s |
| 264 | Date : %3$s |
| 265 | Blog : %4$s |
| 266 | |
| 267 | This notification can be turned off from NinjaFirewall "Event Notifications" page.', |
| 268 | 'ninjafirewall'); |
| 269 | |
| 270 | |
| 271 | /*********************************************************************** |
| 272 | * Database change. |
| 273 | * NinjaFirewall > Event Notifications > Administrator account. |
| 274 | */ |
| 275 | |
| 276 | $template['database_change']['subject'] = __('Alert: Database changes detected', 'ninjafirewall'); |
| 277 | |
| 278 | /* Translators: 1=blog url, 2=date, 3=sum admin users, 4=admin account data*/ |
| 279 | $template['database_change']['content'] = __( |
| 280 | 'NinjaFirewall has detected that one or more administrator accounts were modified in the database: |
| 281 | |
| 282 | Blog: %1$s |
| 283 | Date: %2$s |
| 284 | Total administrators: %3$s |
| 285 | |
| 286 | %4$s |
| 287 | |
| 288 | If you cannot see any modifications in the above fields, it is possible that the administrator password was changed. |
| 289 | |
| 290 | This notification can be turned off from NinjaFirewall "Event Notifications" page.', |
| 291 | 'ninjafirewall'); |
| 292 | |
| 293 | |
| 294 | /*********************************************************************** |
| 295 | * Blocked privilege escalation attempt. |
| 296 | * NinjaFirewall > Firewall Policies > Permissions. |
| 297 | */ |
| 298 | |
| 299 | $template['privilege_escalation']['subject'] = __('Blocked privilege escalation attempt', 'ninjafirewall'); |
| 300 | |
| 301 | /* Translators: 1=blog url, 2=Username + user ID, 3=meta_key, 4=meta_value, |
| 302 | * 5=IP, 6=SCRIPT_FILENAME, 7=REQUEST_URI, 8=Date, 9=PHP backtrace*/ |
| 303 | $template['privilege_escalation']['content'] = __( |
| 304 | 'NinjaFirewall has blocked an attempt to modify a user capability by someone who does not have administrative privileges: |
| 305 | |
| 306 | Blog: %1$s |
| 307 | Username: %2$s |
| 308 | meta_key: %3$s |
| 309 | meta_value: %4$s |
| 310 | User IP: %5$s |
| 311 | SCRIPT_FILENAME: %6$s |
| 312 | REQUEST_URI: %7$s |
| 313 | Date: %8$s |
| 314 | |
| 315 | %9$s |
| 316 | This protection (and notification) can be turned off from NinjaFirewall "Firewall Policies" page.', |
| 317 | 'ninjafirewall'); |
| 318 | |
| 319 | |
| 320 | /*********************************************************************** |
| 321 | * Attempt to modify WordPress settings. |
| 322 | * NinjaFirewall > Firewall Policies > Permissions. |
| 323 | */ |
| 324 | |
| 325 | $template['wp_settings']['subject'] = __('Attempt to modify WordPress settings', 'ninjafirewall'); |
| 326 | |
| 327 | /* Translators: 1=option name, 2=old value, 3=new value, 4=blog uri, |
| 328 | * 5=IP, 6=SCRIPT_FILENAME, 7=REQUEST_URI, 8=Date */ |
| 329 | $template['wp_settings']['content'] = __( |
| 330 | 'NinjaFirewall has blocked an attempt to modify some important WordPress settings by a user that does not have administrative privileges: |
| 331 | |
| 332 | Option: %1$s |
| 333 | Original value: %2$s |
| 334 | Modified value: %3$s |
| 335 | Action taken: The attempt was blocked and the option was reversed to its original value. |
| 336 | |
| 337 | Blog: %4$s |
| 338 | User IP: %5$s |
| 339 | SCRIPT_FILENAME: %6$s |
| 340 | REQUEST_URI: %7$s |
| 341 | Date: %8$s', |
| 342 | 'ninjafirewall'); |
| 343 | |
| 344 | |
| 345 | /*********************************************************************** |
| 346 | * Security update available. |
| 347 | * NinjaFirewall > Event Notifications > Security updates |
| 348 | */ |
| 349 | |
| 350 | $template['security_updates']['subject'] = __('Warning: Security update available', 'ninjafirewall'); |
| 351 | |
| 352 | /* Translators: 1=date, 2=blog url, 3=update data */ |
| 353 | $template['security_updates']['content'] = __( |
| 354 | 'NinjaFirewall has detected that there are security updates available for your website: |
| 355 | |
| 356 | Date: %1$s |
| 357 | Blog: %2$s |
| 358 | |
| 359 | %3$s |
| 360 | |
| 361 | Don\'t leave your blog at risk, make sure to update as soon as possible. |
| 362 | |
| 363 | This notification can be turned off from NinjaFirewall "Event Notifications" page. |
| 364 | ', |
| 365 | 'ninjafirewall'); |
| 366 | |
| 367 | |
| 368 | /*********************************************************************** |
| 369 | * WordPress|Plugin|Theme activated, deleted, update, installed etc. |
| 370 | * NinjaFirewall > Event Notifications > Plugins|Themes|Core |
| 371 | */ |
| 372 | |
| 373 | $template['events']['subject'] = __('Alert: %s', 'ninjafirewall'); |
| 374 | |
| 375 | /* Translators: 1:action (activation, installation...), 2=component, |
| 376 | * 3=Username, 4=IP, 5=date, 6=blog url */ |
| 377 | $template['events']['content'] = __( |
| 378 | 'NinjaFirewall has detected the following activity on your account: |
| 379 | |
| 380 | %1$s |
| 381 | %2$s |
| 382 | |
| 383 | User: %3$s |
| 384 | IP: %4$s |
| 385 | Date: %5$s |
| 386 | Blog: %6$s |
| 387 | ', |
| 388 | 'ninjafirewall'); |
| 389 | |
| 390 | |
| 391 | // -------- DO NOT EDIT BELOW ------------------------------------------ |
| 392 | |
| 393 | return $template; |
| 394 | |
| 395 |