global-status.php
8 years ago
option-howgetips.php
8 years ago
options-group-alert.php
8 years ago
options-group-dashboard.php
8 years ago
options-group-email-summary.php
8 years ago
options-group-general.php
8 years ago
options-group-import.php
8 years ago
options-group-license.php
8 years ago
options-group-view-customization.php
8 years ago
status-payment-expiring.php
8 years ago
status-renewing.php
8 years ago
options-group-alert.php
177 lines
| 1 | <?php |
| 2 | if (!defined('WORDFENCE_VERSION')) { exit; } |
| 3 | /** |
| 4 | * Presents the Email Alert Preferences group. |
| 5 | * |
| 6 | * Expects $stateKey. |
| 7 | * |
| 8 | * @var string $stateKey The key under which the collapse state is stored. |
| 9 | * @var bool $collapseable If defined, specifies whether or not this grouping can be collapsed. Defaults to true. |
| 10 | */ |
| 11 | |
| 12 | if (!isset($collapseable)) { |
| 13 | $collapseable = true; |
| 14 | } |
| 15 | ?> |
| 16 | <div class="wf-row"> |
| 17 | <div class="wf-col-xs-12"> |
| 18 | <div class="wf-block<?php if (!$collapseable) { echo ' wf-always-active'; } else { echo (wfPersistenceController::shared()->isActive($stateKey) ? ' wf-active' : ''); } ?>" data-persistence-key="<?php echo esc_attr($stateKey); ?>"> |
| 19 | <div class="wf-block-header"> |
| 20 | <div class="wf-block-header-content"> |
| 21 | <div class="wf-block-title"> |
| 22 | <strong><?php _e('Email Alert Preferences', 'wordfence'); ?></strong> |
| 23 | </div> |
| 24 | <?php if ($collapseable): ?><div class="wf-block-header-action"><div class="wf-block-header-action-disclosure" role="checkbox" aria-checked="<?php echo (wfPersistenceController::shared()->isActive($stateKey) ? 'true' : 'false'); ?>" tabindex="0"></div></div><?php endif; ?> |
| 25 | </div> |
| 26 | </div> |
| 27 | <div class="wf-block-content"> |
| 28 | <ul class="wf-block-list"> |
| 29 | <li> |
| 30 | <?php |
| 31 | echo wfView::create('options/option-toggled', array( |
| 32 | 'optionName' => 'alertOn_update', |
| 33 | 'enabledValue' => 1, |
| 34 | 'disabledValue' => 0, |
| 35 | 'value' => wfConfig::get('alertOn_update') ? 1 : 0, |
| 36 | 'title' => __('Email me when Wordfence is automatically updated', 'wordfence'), |
| 37 | 'subtitle' => __('If you have automatic updates enabled (see above), you\'ll get an email when an update occurs.', 'wordfence'), |
| 38 | ))->render(); |
| 39 | ?> |
| 40 | </li> |
| 41 | <li> |
| 42 | <?php |
| 43 | echo wfView::create('options/option-toggled', array( |
| 44 | 'optionName' => 'alertOn_wordfenceDeactivated', |
| 45 | 'enabledValue' => 1, |
| 46 | 'disabledValue' => 0, |
| 47 | 'value' => wfConfig::get('alertOn_wordfenceDeactivated') ? 1 : 0, |
| 48 | 'title' => __('Email me if Wordfence is deactivated', 'wordfence'), |
| 49 | ))->render(); |
| 50 | ?> |
| 51 | </li> |
| 52 | <li> |
| 53 | <?php |
| 54 | echo wfView::create('options/option-toggled', array( |
| 55 | 'optionName' => 'alertOn_critical', |
| 56 | 'enabledValue' => 1, |
| 57 | 'disabledValue' => 0, |
| 58 | 'value' => wfConfig::get('alertOn_critical') ? 1 : 0, |
| 59 | 'title' => __('Alert on critical problems', 'wordfence'), |
| 60 | ))->render(); |
| 61 | ?> |
| 62 | </li> |
| 63 | <li> |
| 64 | <?php |
| 65 | echo wfView::create('options/option-toggled', array( |
| 66 | 'optionName' => 'alertOn_warnings', |
| 67 | 'enabledValue' => 1, |
| 68 | 'disabledValue' => 0, |
| 69 | 'value' => wfConfig::get('alertOn_warnings') ? 1 : 0, |
| 70 | 'title' => __('Alert on warnings', 'wordfence'), |
| 71 | ))->render(); |
| 72 | ?> |
| 73 | </li> |
| 74 | <li> |
| 75 | <?php |
| 76 | echo wfView::create('options/option-toggled', array( |
| 77 | 'optionName' => 'alertOn_block', |
| 78 | 'enabledValue' => 1, |
| 79 | 'disabledValue' => 0, |
| 80 | 'value' => wfConfig::get('alertOn_block') ? 1 : 0, |
| 81 | 'title' => __('Alert when an IP address is blocked', 'wordfence'), |
| 82 | ))->render(); |
| 83 | ?> |
| 84 | </li> |
| 85 | <li> |
| 86 | <?php |
| 87 | echo wfView::create('options/option-toggled', array( |
| 88 | 'optionName' => 'alertOn_loginLockout', |
| 89 | 'enabledValue' => 1, |
| 90 | 'disabledValue' => 0, |
| 91 | 'value' => wfConfig::get('alertOn_loginLockout') ? 1 : 0, |
| 92 | 'title' => __('Alert when someone is locked out from login', 'wordfence'), |
| 93 | ))->render(); |
| 94 | ?> |
| 95 | </li> |
| 96 | <li> |
| 97 | <?php |
| 98 | echo wfView::create('options/option-toggled', array( |
| 99 | 'optionName' => 'alertOn_breachLogin', |
| 100 | 'enabledValue' => 1, |
| 101 | 'disabledValue' => 0, |
| 102 | 'value' => wfConfig::get('alertOn_breachLogin') ? 1 : 0, |
| 103 | 'title' => __('Alert when someone is blocked from logging in for using a password found in a breach', 'wordfence'), |
| 104 | ))->render(); |
| 105 | ?> |
| 106 | </li> |
| 107 | <li> |
| 108 | <?php |
| 109 | echo wfView::create('options/option-toggled', array( |
| 110 | 'optionName' => 'alertOn_lostPasswdForm', |
| 111 | 'enabledValue' => 1, |
| 112 | 'disabledValue' => 0, |
| 113 | 'value' => wfConfig::get('alertOn_lostPasswdForm') ? 1 : 0, |
| 114 | 'title' => __('Alert when the "lost password" form is used for a valid user', 'wordfence'), |
| 115 | ))->render(); |
| 116 | ?> |
| 117 | </li> |
| 118 | <li> |
| 119 | <?php |
| 120 | echo wfView::create('options/option-toggled-sub', array( |
| 121 | 'optionName' => 'alertOn_adminLogin', |
| 122 | 'enabledValue' => 1, |
| 123 | 'disabledValue' => 0, |
| 124 | 'value' => wfConfig::get('alertOn_adminLogin') ? 1 : 0, |
| 125 | 'title' => __('Alert me when someone with administrator access signs in', 'wordfence'), |
| 126 | |
| 127 | 'subOptionName' => 'alertOn_firstAdminLoginOnly', |
| 128 | 'subEnabledValue' => 1, |
| 129 | 'subDisabledValue' => 0, |
| 130 | 'subValue' => wfConfig::get('alertOn_firstAdminLoginOnly') ? 1 : 0, |
| 131 | 'subTitle' => __('Only alert me when that administrator signs in from a new device or location', 'wordfence'), |
| 132 | ))->render(); |
| 133 | ?> |
| 134 | </li> |
| 135 | <li> |
| 136 | <?php |
| 137 | echo wfView::create('options/option-toggled-sub', array( |
| 138 | 'optionName' => 'alertOn_nonAdminLogin', |
| 139 | 'enabledValue' => 1, |
| 140 | 'disabledValue' => 0, |
| 141 | 'value' => wfConfig::get('alertOn_nonAdminLogin') ? 1 : 0, |
| 142 | 'title' => __('Alert me when a non-admin user signs in', 'wordfence'), |
| 143 | |
| 144 | 'subOptionName' => 'alertOn_firstNonAdminLoginOnly', |
| 145 | 'subEnabledValue' => 1, |
| 146 | 'subDisabledValue' => 0, |
| 147 | 'subValue' => wfConfig::get('alertOn_firstNonAdminLoginOnly') ? 1 : 0, |
| 148 | 'subTitle' => __('Only alert me when that user signs in from a new device or location', 'wordfence'), |
| 149 | ))->render(); |
| 150 | ?> |
| 151 | </li> |
| 152 | <li> |
| 153 | <?php |
| 154 | echo wfView::create('options/option-toggled', array( |
| 155 | 'optionName' => 'wafAlertOnAttacks', |
| 156 | 'enabledValue' => 1, |
| 157 | 'disabledValue' => 0, |
| 158 | 'value' => wfConfig::get('wafAlertOnAttacks') ? 1 : 0, |
| 159 | 'title' => __('Alert me when there\'s a large increase in attacks detected on my site', 'wordfence'), |
| 160 | ))->render(); |
| 161 | ?> |
| 162 | </li> |
| 163 | <li> |
| 164 | <?php |
| 165 | echo wfView::create('options/option-text', array( |
| 166 | 'textOptionName' => 'alert_maxHourly', |
| 167 | 'textValue' => wfConfig::get('alert_maxHourly'), |
| 168 | 'title' => __('Maximum email alerts to send per hour', 'wordfence'), |
| 169 | 'subtitle' => __('0 means unlimited alerts will be sent.', 'wordfence'), |
| 170 | ))->render(); |
| 171 | ?> |
| 172 | </li> |
| 173 | </ul> |
| 174 | </div> |
| 175 | </div> |
| 176 | </div> |
| 177 | </div> <!-- end alert options --> |