| 1 |
<?php |
| 2 |
/** |
| 3 |
* This template is used to generate an email for the firewalls report. |
| 4 |
* |
| 5 |
* @package WP_Defender |
| 6 |
*/ |
| 7 |
|
| 8 |
?> |
| 9 |
<table class="main-intro" |
| 10 |
style="border-collapse: collapse; border-spacing: 0; padding: 0; text-align: left; vertical-align: top;"> |
| 11 |
<tbody> |
| 12 |
<tr style="padding: 0; text-align: left; vertical-align: top;"> |
| 13 |
<td class="main-intro-content" |
| 14 |
style="-moz-hyphens: auto; -webkit-hyphens: auto; border-collapse: collapse !important; color: #1a1a1a; font-size: 16px; font-weight: normal; hyphens: auto; line-height: 24px; margin: 0; padding: 0; text-align: left; vertical-align: top; word-wrap: break-word;"> |
| 15 |
<?php if ( 0 === $count_total ) { ?> |
| 16 |
<p style="-webkit-font-smoothing:antialiased;font-size:16px;font-smoothing:antialiased;font-weight:normal;line-height:24px;margin:0;margin-bottom:30px;padding:0;text-align:left"> |
| 17 |
<?php |
| 18 |
/* translators: %s: Name. */ |
| 19 |
printf( esc_html__( 'Hi %s,', 'defender-security' ), esc_html( $name ) ); |
| 20 |
?> |
| 21 |
</p> |
| 22 |
<p style="font-size:16px;font-weight:normal;line-height:24px;margin:0;padding: 0 0 30px;text-align:left;"> |
| 23 |
<?php |
| 24 |
/* translators: %s - site URL, %s - time unit. */ |
| 25 |
printf( |
| 26 |
/* translators: 1: Site URL, 2: Time unit. */ |
| 27 |
esc_html__( 'There were no lockouts for %1$s %2$s.', 'defender-security' ), |
| 28 |
esc_url( $site_url ), |
| 29 |
esc_html( $time_unit ) |
| 30 |
); |
| 31 |
?> |
| 32 |
</p> |
| 33 |
<?php } else { ?> |
| 34 |
<h1 style="-webkit-font-smoothing:antialiased;color:inherit;font-size:25px;font-smoothing:antialiased;font-weight:bold;line-height:30px;margin:0 0 20px;padding:0;text-align:left;word-wrap:normal"> |
| 35 |
<?php |
| 36 |
/* translators: %s: Site URL. */ |
| 37 |
printf( esc_html__( 'Firewall report for %s', 'defender-security' ), esc_url( $site_url ) ); |
| 38 |
?> |
| 39 |
</h1> |
| 40 |
<p style="-webkit-font-smoothing:antialiased;font-size:16px;font-smoothing:antialiased;font-weight:normal;line-height:24px;margin:0;margin-bottom:30px;padding:0;text-align:left"> |
| 41 |
<?php |
| 42 |
/* translators: %s: Name. */ |
| 43 |
printf( esc_html__( 'Hi %s,', 'defender-security' ), esc_html( $name ) ); |
| 44 |
?> |
| 45 |
</p> |
| 46 |
<p style="font-size:16px;font-weight:normal;line-height:24px;margin:0;padding: 0 0 30px;text-align:left;"> |
| 47 |
<?php |
| 48 |
$count_total_text = sprintf( |
| 49 |
/* translators: %d: Count. */ |
| 50 |
_n( |
| 51 |
'%d host has recently been locked out for suspicious behavior.', |
| 52 |
'%d hosts have recently been locked out for suspicious behavior.', |
| 53 |
$count_total, |
| 54 |
'defender-security' |
| 55 |
), |
| 56 |
number_format_i18n( $count_total ) |
| 57 |
); |
| 58 |
/* translators: %s: Total text. */ |
| 59 |
printf( esc_html__( '%s See details below.', 'defender-security' ), esc_html( $count_total_text ) ); |
| 60 |
?> |
| 61 |
</p> |
| 62 |
<?php } ?> |
| 63 |
</td> |
| 64 |
</tr> |
| 65 |
</tbody> |
| 66 |
</table> |
| 67 |
<?php if ( 0 !== $count_total ) { ?> |
| 68 |
<!-- Main content --> |
| 69 |
<table class="reports-list" align="center" |
| 70 |
style="border-collapse: collapse;border-spacing: 0;margin: 0 0 30px;padding: 0;text-align: left;vertical-align: top;width: 100%"> |
| 71 |
<thead> |
| 72 |
<tr style="background-color: #F2F2F2"> |
| 73 |
<td style="padding-left: 20px;border-radius: 4px 0 0 0;color: #1A1A1A;font-family: Roboto, Arial, sans-serif;font-size: 12px;font-weight: 500;line-height: 27px; letter-spacing: -0.23px; text-align: left"> |
| 74 |
<?php esc_html_e( 'Lockout type', 'defender-security' ); ?> |
| 75 |
</td> |
| 76 |
<td style="padding-right: 20px;color: #1A1A1A;font-family: Roboto, Arial, sans-serif;font-size: 12px;font-weight: 500;line-height: 27px; letter-spacing: -0.23px; text-align: right; width:100px"> |
| 77 |
<?php esc_html_e( 'Total Lockouts', 'defender-security' ); ?> |
| 78 |
</td> |
| 79 |
</tr> |
| 80 |
</thead> |
| 81 |
<tbody> |
| 82 |
<tr class="report-list-item" style="border: 1px solid #F2F2F2;padding: 0;text-align: left;vertical-align: top"> |
| 83 |
<td class="report-list-item-info" |
| 84 |
style="border-collapse: collapse !important;color: #1A1A1A;font-family: Roboto, Arial, sans-serif;font-size: 12px;font-weight: 500;letter-spacing: -0.23px;line-height: 22px;margin: 0;padding: 18px 0;text-align: left;vertical-align: top"> |
| 85 |
<span style="color: inherit; display: inline; font-size: inherit; font-family: inherit; line-height: inherit; vertical-align: middle; letter-spacing: -0.25px;padding-left: 20px;"> |
| 86 |
<?php esc_html_e( '404 Lockout', 'defender-security' ); ?> |
| 87 |
</span> |
| 88 |
</td> |
| 89 |
<td class="report-list-item-info" |
| 90 |
style="border-collapse: collapse !important;color: #1A1A1A;font-family: Roboto, Arial, sans-serif;font-size: 13px;font-weight: 500;letter-spacing: -0.25px;line-height: 21px;margin: 0;min-width: 65px;padding: 18px 0;text-align: right;vertical-align: top"> |
| 91 |
<span style="color: inherit; display: inline; font-size: inherit; font-family: inherit; line-height: inherit; vertical-align: middle;letter-spacing: -0.25px;padding-right: 20px;"><?php echo esc_html( $count_lockouts['404'] ); ?></span> |
| 92 |
</td> |
| 93 |
</tr> |
| 94 |
<tr class="report-list-item" style="border: 1px solid #F2F2F2;padding: 0;text-align: left;vertical-align: top"> |
| 95 |
<td class="report-list-item-info" |
| 96 |
style="border-collapse: collapse !important;color: #1A1A1A;font-family: Roboto, Arial, sans-serif;font-size: 12px;font-weight: 500;letter-spacing: -0.23px;line-height: 22px;margin: 0;padding: 18px 0;text-align: left;vertical-align: top"> |
| 97 |
<span style="color: inherit; display: inline; font-size: inherit; font-family: inherit; line-height: inherit; vertical-align: middle; letter-spacing: -0.25px;padding-left: 20px;"> |
| 98 |
<?php esc_html_e( 'Login Lockout', 'defender-security' ); ?> |
| 99 |
</span> |
| 100 |
</td> |
| 101 |
<td class="report-list-item-info" |
| 102 |
style="border-collapse: collapse !important;color: #1A1A1A;font-family: Roboto, Arial, sans-serif;font-size: 13px;font-weight: 500;letter-spacing: -0.25px;line-height: 21px;margin: 0;min-width: 65px;padding: 18px 0;text-align: right;vertical-align: top"> |
| 103 |
<span style="color: inherit; display: inline; font-size: inherit; font-family: inherit; line-height: inherit; vertical-align: middle;letter-spacing: -0.25px;padding-right: 20px;"><?php echo esc_html( $count_lockouts['login'] ); ?></span> |
| 104 |
</td> |
| 105 |
</tr> |
| 106 |
<tr class="report-list-item" style="border: 1px solid #F2F2F2;padding: 0;text-align: left;vertical-align: top"> |
| 107 |
<td class="report-list-item-info" |
| 108 |
style="border-collapse: collapse !important;color: #1A1A1A;font-family: Roboto, Arial, sans-serif;font-size: 12px;font-weight: 500;letter-spacing: -0.23px;line-height: 22px;margin: 0;padding: 18px 0;text-align: left;vertical-align: top"> |
| 109 |
<span style="color: inherit; display: inline; font-size: inherit; font-family: inherit; line-height: inherit; vertical-align: middle; letter-spacing: -0.25px;padding-left: 20px;"> |
| 110 |
<?php esc_html_e( 'User Agent Lockout', 'defender-security' ); ?> |
| 111 |
</span> |
| 112 |
</td> |
| 113 |
<td class="report-list-item-info" |
| 114 |
style="border-collapse: collapse !important;color: #1A1A1A;font-family: Roboto, Arial, sans-serif;font-size: 13px;font-weight: 500;letter-spacing: -0.25px;line-height: 21px;margin: 0;min-width: 65px;padding: 18px 0;text-align: right;vertical-align: top"> |
| 115 |
<span style="color: inherit; display: inline; font-size: inherit; font-family: inherit; line-height: inherit; vertical-align: middle;letter-spacing: -0.25px;padding-right: 20px;"><?php echo esc_html( $count_lockouts['ua'] ); ?></span> |
| 116 |
</td> |
| 117 |
</tr> |
| 118 |
</tbody> |
| 119 |
</table> |
| 120 |
<!-- End Main content --> |
| 121 |
<?php } ?> |
| 122 |
<table class="row" |
| 123 |
style="border-collapse:collapse;border-spacing:0;display:table;padding:0;position:relative;text-align:left;vertical-align:top;width:100%"> |
| 124 |
<tbody> |
| 125 |
<tr style="padding:0;text-align:left;vertical-align:top"> |
| 126 |
<th class="small-12 large-12 columns first last" |
| 127 |
style="color:#000;font-size:18px;font-weight:400;line-height:25px;margin:0 auto;padding:15px 15px 0;text-align:left;width:585px"> |
| 128 |
<table style="border-collapse:collapse;border-spacing:0;padding:0;text-align:left;vertical-align:top;width:100%"> |
| 129 |
<tr style="padding:0;text-align:left;vertical-align:top"> |
| 130 |
<th style="color:#000;font-size:18px;font-weight:400;line-height:25px;margin:0;padding:0;text-align:left"> |
| 131 |
<table class="button btn-center" |
| 132 |
style="margin:0 auto;border-collapse:collapse;border-spacing:0;padding:0;text-align:left;vertical-align:top;width:auto"> |
| 133 |
<tr style="padding:0;text-align:left;vertical-align:top"> |
| 134 |
<td style="-moz-hyphens:auto;-webkit-hyphens:auto;border-collapse:collapse!important;color:#000;font-size:18px;font-weight:400;hyphens:auto;line-height:25px;margin:0;padding:0;text-align:left;vertical-align:top;word-wrap:break-word"> |
| 135 |
<table style="border-collapse:collapse;border-radius:4px;border-spacing:0;overflow:hidden;padding:0;text-align:left;vertical-align:top;width:100%"> |
| 136 |
<tr style="padding:0;text-align:left;vertical-align:top"> |
| 137 |
<td style="-moz-hyphens:auto;-webkit-hyphens:auto;background:#0059FF;border:none;border-collapse:collapse!important;color:#fff;font-size:18px;font-weight:400;hyphens:auto;line-height:25px;margin:0;padding:0;text-align:center;vertical-align:top;word-wrap:break-word"> |
| 138 |
<a href="<?php echo esc_url( $logs_url ); ?>" class="button view-full" |
| 139 |
style="border:0 solid #0059FF;border-radius:4px;color:#fff;display:inline-block;font-size:15px;font-weight:400;line-height:25px;margin:0;min-width:275px;padding:8px 16px 8px 16px;text-align:center;text-decoration:none;text-transform:uppercase" |
| 140 |
> |
| 141 |
<?php esc_html_e( 'View Full Logs', 'defender-security' ); ?> |
| 142 |
</a> |
| 143 |
</td> |
| 144 |
</tr> |
| 145 |
</table> |
| 146 |
</td> |
| 147 |
</tr> |
| 148 |
</table> |
| 149 |
</th> |
| 150 |
</tr> |
| 151 |
</table> |
| 152 |
</th> |
| 153 |
</tr> |
| 154 |
</tbody> |
| 155 |
</table> |
| 156 |
|