Version Description
Download this release
Release Info
Developer | WPWhiteSecurity |
Plugin | WP Security Audit Log |
Version | 3.2.1 |
Comparing to | |
See all releases |
Code changes from version 3.2.0 to 3.2.1
- classes/AuditLogListView.php +3 -4
- classes/Connector/wp-db-custom.php +13 -12
- classes/Views/ExternalDB.php +1 -1
- classes/Views/Help.php +2 -2
- classes/Views/Settings.php +16 -16
- classes/Views/ToggleAlerts.php +2 -2
- classes/WidgetManager.php +1 -1
- css/auditlog.css +5 -1
- defaults.php +1 -1
- readme.txt +9 -2
- wp-security-audit-log.php +2 -2
classes/AuditLogListView.php
CHANGED
@@ -92,7 +92,6 @@ class WSAL_AuditLogListView extends WP_List_Table {
|
|
92 |
if ( ! in_array( $p, $items ) ) {
|
93 |
$items[] = $p;
|
94 |
}
|
95 |
-
|
96 |
?>
|
97 |
<div class="wsal-ipp wsal-ipp-<?php echo esc_attr( $which ); ?>">
|
98 |
<?php esc_html_e( 'Show ', 'wp-security-audit-log' ); ?>
|
@@ -205,7 +204,7 @@ class WSAL_AuditLogListView extends WP_List_Table {
|
|
205 |
$name_column = __( 'Username', 'wp-security-audit-log' );
|
206 |
}
|
207 |
$cols = array(
|
208 |
-
'type' => __( '
|
209 |
'code' => __( 'Severity', 'wp-security-audit-log' ),
|
210 |
'crtd' => __( 'Date', 'wp-security-audit-log' ),
|
211 |
'user' => $name_column,
|
@@ -222,7 +221,7 @@ class WSAL_AuditLogListView extends WP_List_Table {
|
|
222 |
foreach ( $sel_columns as $key => $value ) {
|
223 |
switch ( $key ) {
|
224 |
case 'alert_code':
|
225 |
-
$cols['type'] = __( '
|
226 |
break;
|
227 |
case 'type':
|
228 |
$cols['code'] = __( 'Severity', 'wp-security-audit-log' );
|
@@ -311,7 +310,7 @@ class WSAL_AuditLogListView extends WP_List_Table {
|
|
311 |
return '<span class="log-disable">' . str_pad( $item->alert_id, 4, '0', STR_PAD_LEFT ) . ' </span>';
|
312 |
}
|
313 |
|
314 |
-
return '<span class="log-disable" data-disable-alert-nonce="' . wp_create_nonce( 'disable-alert-nonce' . $item->alert_id ) . '" data-tooltip="' . __( 'Disable this type of
|
315 |
. str_pad( $item->alert_id, 4, '0', STR_PAD_LEFT ) . ' </span>';
|
316 |
case 'code':
|
317 |
$code = $this->_plugin->alerts->GetAlert( $item->alert_id );
|
92 |
if ( ! in_array( $p, $items ) ) {
|
93 |
$items[] = $p;
|
94 |
}
|
|
|
95 |
?>
|
96 |
<div class="wsal-ipp wsal-ipp-<?php echo esc_attr( $which ); ?>">
|
97 |
<?php esc_html_e( 'Show ', 'wp-security-audit-log' ); ?>
|
204 |
$name_column = __( 'Username', 'wp-security-audit-log' );
|
205 |
}
|
206 |
$cols = array(
|
207 |
+
'type' => __( 'Event ID', 'wp-security-audit-log' ),
|
208 |
'code' => __( 'Severity', 'wp-security-audit-log' ),
|
209 |
'crtd' => __( 'Date', 'wp-security-audit-log' ),
|
210 |
'user' => $name_column,
|
221 |
foreach ( $sel_columns as $key => $value ) {
|
222 |
switch ( $key ) {
|
223 |
case 'alert_code':
|
224 |
+
$cols['type'] = __( 'Event ID', 'wp-security-audit-log' );
|
225 |
break;
|
226 |
case 'type':
|
227 |
$cols['code'] = __( 'Severity', 'wp-security-audit-log' );
|
310 |
return '<span class="log-disable">' . str_pad( $item->alert_id, 4, '0', STR_PAD_LEFT ) . ' </span>';
|
311 |
}
|
312 |
|
313 |
+
return '<span class="log-disable" data-disable-alert-nonce="' . wp_create_nonce( 'disable-alert-nonce' . $item->alert_id ) . '" data-tooltip="' . __( 'Disable this type of events.', 'wp-security-audit-log' ) . '<br>' . $item->alert_id . ' - ' . esc_html( $code->desc ) . $extra_msg . '" data-alert-id="' . $item->alert_id . '" ' . esc_attr( 'data-link=' . $data_link ) . ' >'
|
314 |
. str_pad( $item->alert_id, 4, '0', STR_PAD_LEFT ) . ' </span>';
|
315 |
case 'code':
|
316 |
$code = $this->_plugin->alerts->GetAlert( $item->alert_id );
|
classes/Connector/wp-db-custom.php
CHANGED
@@ -128,17 +128,17 @@ class wpdbCustom extends wpdb {
|
|
128 |
}
|
129 |
}
|
130 |
|
131 |
-
// Set SSL certs if we want to use secure DB connections
|
132 |
$ssl_opts = array(
|
133 |
-
'KEY' => ( defined( 'MYSQL_SSL_KEY'
|
134 |
-
'CERT' => ( defined( 'MYSQL_SSL_CERT'
|
135 |
-
'CA' => ( defined( 'MYSQL_SSL_CA'
|
136 |
-
'CA_PATH' => ( defined( 'MYSQL_SSL_CA_PATH' ) && is_dir
|
137 |
-
'CIPHER' => ( defined( 'MYSQL_SSL_CIPHER'
|
138 |
);
|
139 |
$ssl_opts_set = false;
|
140 |
foreach ( $ssl_opts as $ssl_opt_val ) {
|
141 |
-
if ( !is_null( $ssl_opt_val ) ) {
|
142 |
$ssl_opts_set = true;
|
143 |
break;
|
144 |
}
|
@@ -166,11 +166,12 @@ class wpdbCustom extends wpdb {
|
|
166 |
if ( $this->dbh->connect_errno ) {
|
167 |
$this->dbh = null;
|
168 |
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
|
|
174 |
$attempt_fallback = true;
|
175 |
|
176 |
if ( $this->has_connected ) {
|
128 |
}
|
129 |
}
|
130 |
|
131 |
+
// Set SSL certs if we want to use secure DB connections.
|
132 |
$ssl_opts = array(
|
133 |
+
'KEY' => ( defined( 'MYSQL_SSL_KEY' ) && is_file( MYSQL_SSL_KEY ) ) ? MYSQL_SSL_KEY : null,
|
134 |
+
'CERT' => ( defined( 'MYSQL_SSL_CERT' ) && is_file( MYSQL_SSL_CERT ) ) ? MYSQL_SSL_CERT : null,
|
135 |
+
'CA' => ( defined( 'MYSQL_SSL_CA' ) && is_file( MYSQL_SSL_CA ) ) ? MYSQL_SSL_CA : null,
|
136 |
+
'CA_PATH' => ( defined( 'MYSQL_SSL_CA_PATH' ) && is_dir( MYSQL_SSL_CA_PATH ) ) ? MYSQL_SSL_CA_PATH : null,
|
137 |
+
'CIPHER' => ( defined( 'MYSQL_SSL_CIPHER' ) ) ? MYSQL_SSL_CIPHER : null,
|
138 |
);
|
139 |
$ssl_opts_set = false;
|
140 |
foreach ( $ssl_opts as $ssl_opt_val ) {
|
141 |
+
if ( ! is_null( $ssl_opt_val ) ) {
|
142 |
$ssl_opts_set = true;
|
143 |
break;
|
144 |
}
|
166 |
if ( $this->dbh->connect_errno ) {
|
167 |
$this->dbh = null;
|
168 |
|
169 |
+
/**
|
170 |
+
* It's possible ext/mysqli is misconfigured. Fall back to ext/mysql if:
|
171 |
+
* - We haven't previously connected, and
|
172 |
+
* - WP_USE_EXT_MYSQL isn't set to false, and
|
173 |
+
* - ext/mysql is loaded.
|
174 |
+
*/
|
175 |
$attempt_fallback = true;
|
176 |
|
177 |
if ( $this->has_connected ) {
|
classes/Views/ExternalDB.php
CHANGED
@@ -118,7 +118,7 @@ class WSAL_Views_ExternalDB extends WSAL_AbstractView {
|
|
118 |
<li><?php esc_html_e( 'Move the audit log to an external database for improved security & performance,', 'wp-security-audit-log' ); ?></li>
|
119 |
<li><?php esc_html_e( 'Centralize the audit log in your centralized logging system,', 'wp-security-audit-log' ); ?></li>
|
120 |
<li><?php esc_html_e( 'Mirror the audit trail to Syslog, Papertrail etc,', 'wp-security-audit-log' ); ?></li>
|
121 |
-
<li><?php esc_html_e( 'Configure archiving rules to archive old
|
122 |
<li><?php esc_html_e( '& more.', 'wp-security-audit-log' ); ?></li>
|
123 |
</ul>
|
124 |
</p>
|
118 |
<li><?php esc_html_e( 'Move the audit log to an external database for improved security & performance,', 'wp-security-audit-log' ); ?></li>
|
119 |
<li><?php esc_html_e( 'Centralize the audit log in your centralized logging system,', 'wp-security-audit-log' ); ?></li>
|
120 |
<li><?php esc_html_e( 'Mirror the audit trail to Syslog, Papertrail etc,', 'wp-security-audit-log' ); ?></li>
|
121 |
+
<li><?php esc_html_e( 'Configure archiving rules to archive old events in an archiving database,', 'wp-security-audit-log' ); ?></li>
|
122 |
<li><?php esc_html_e( '& more.', 'wp-security-audit-log' ); ?></li>
|
123 |
</ul>
|
124 |
</p>
|
classes/Views/Help.php
CHANGED
@@ -99,13 +99,13 @@ class WSAL_Views_Help extends WSAL_AbstractView {
|
|
99 |
<h2><?php esc_html_e( 'Plugin Documentation', 'wp-security-audit-log' ); ?></h2>
|
100 |
<p>
|
101 |
<?php esc_html_e( 'For more technical information about the WP Security Audit Log plugin please visit the plugin’s knowledge base.', 'wp-security-audit-log' ); ?>
|
102 |
-
<?php esc_html_e( 'Refer to the list of WordPress security
|
103 |
</p><p>
|
104 |
<a class="button" href="http://www.wpsecurityauditlog.com/?utm_source=plugin&utm_medium=helppage&utm_campaign=support" target="_blank"><?php esc_html_e( 'Plugin Website', 'wp-security-audit-log' ); ?></a>
|
105 |
|
106 |
<a class="button" href="https://www.wpsecurityauditlog.com/support-documentation/?utm_source=plugin&utm_medium=helppage&utm_campaign=support" target="_blank"><?php esc_html_e( 'Knowledge Base', 'wp-security-audit-log' ); ?></a>
|
107 |
|
108 |
-
<a class="button" href="http://www.wpsecurityauditlog.com/documentation/list-monitoring-wordpress-security-alerts-audit-log/?utm_source=plugin&utm_medium=helppage&utm_campaign=support" target="_blank"><?php esc_html_e( 'List of WordPress Security
|
109 |
</p>
|
110 |
</div>
|
111 |
<!-- /.activity-block -->
|
99 |
<h2><?php esc_html_e( 'Plugin Documentation', 'wp-security-audit-log' ); ?></h2>
|
100 |
<p>
|
101 |
<?php esc_html_e( 'For more technical information about the WP Security Audit Log plugin please visit the plugin’s knowledge base.', 'wp-security-audit-log' ); ?>
|
102 |
+
<?php esc_html_e( 'Refer to the list of WordPress security events for a complete list of Events and IDs that the plugin uses to keep a log of all the changes in the WordPress audit log.', 'wp-security-audit-log' ); ?>
|
103 |
</p><p>
|
104 |
<a class="button" href="http://www.wpsecurityauditlog.com/?utm_source=plugin&utm_medium=helppage&utm_campaign=support" target="_blank"><?php esc_html_e( 'Plugin Website', 'wp-security-audit-log' ); ?></a>
|
105 |
|
106 |
<a class="button" href="https://www.wpsecurityauditlog.com/support-documentation/?utm_source=plugin&utm_medium=helppage&utm_campaign=support" target="_blank"><?php esc_html_e( 'Knowledge Base', 'wp-security-audit-log' ); ?></a>
|
107 |
|
108 |
+
<a class="button" href="http://www.wpsecurityauditlog.com/documentation/list-monitoring-wordpress-security-alerts-audit-log/?utm_source=plugin&utm_medium=helppage&utm_campaign=support" target="_blank"><?php esc_html_e( 'List of WordPress Security Events', 'wp-security-audit-log' ); ?></a>
|
109 |
</p>
|
110 |
</div>
|
111 |
<!-- /.activity-block -->
|
classes/Views/Settings.php
CHANGED
@@ -353,9 +353,9 @@ class WSAL_Views_Settings extends WSAL_AbstractView {
|
|
353 |
</p>
|
354 |
</td>
|
355 |
</tr>
|
356 |
-
<!--
|
357 |
<tr>
|
358 |
-
<th><label for="dwoption_on"><?php esc_html_e( '
|
359 |
<td>
|
360 |
<fieldset>
|
361 |
<?php $dwe = $this->_plugin->settings->IsWidgetsEnabled(); ?>
|
@@ -372,7 +372,7 @@ class WSAL_Views_Settings extends WSAL_AbstractView {
|
|
372 |
<p class="description">
|
373 |
<?php
|
374 |
echo sprintf(
|
375 |
-
esc_html__( 'Display a dashboard widget with the latest %d security
|
376 |
esc_html( $this->_plugin->settings->GetDashboardWidgetMaxAlerts() )
|
377 |
);
|
378 |
?>
|
@@ -439,7 +439,7 @@ class WSAL_Views_Settings extends WSAL_AbstractView {
|
|
439 |
<br/>
|
440 |
<span class="description">
|
441 |
<?php esc_html_e( 'If this option is disabled all the administrators on this WordPress have access to manage this plugin.', 'wp-security-audit-log' ); ?><br/>
|
442 |
-
<?php echo wp_kses( __( 'By enabling this option only <strong>You</strong> and the users specified in the <strong>Can Manage Plugin</strong> and <strong>Can View
|
443 |
</span>
|
444 |
</fieldset>
|
445 |
</td>
|
@@ -591,7 +591,7 @@ class WSAL_Views_Settings extends WSAL_AbstractView {
|
|
591 |
<!-- Audit Log Retention -->
|
592 |
<?php
|
593 |
$disabled = '';
|
594 |
-
if ( $this->_plugin->settings->IsArchivingEnabled() )
|
595 |
$disabled = 'disabled';
|
596 |
?>
|
597 |
<tr>
|
@@ -599,7 +599,7 @@ class WSAL_Views_Settings extends WSAL_AbstractView {
|
|
599 |
<?php esc_html_e( 'The options below are disabled because you enabled archiving of alerts to the archiving table from', 'wp-security-audit-log' ); ?> <a href="<?php echo esc_url( admin_url( 'admin.php?page=wsal-ext-settings#mirroring' ) ); ?>" target="_blank">here</a>
|
600 |
</td>
|
601 |
</tr>
|
602 |
-
<?php
|
603 |
<tr>
|
604 |
<th><label for="delete1"><?php esc_html_e( 'Audit Log Retention', 'wp-security-audit-log' ); ?></label></th>
|
605 |
<td>
|
@@ -620,7 +620,7 @@ class WSAL_Views_Settings extends WSAL_AbstractView {
|
|
620 |
<input type="radio" id="delete1" name="PruneBy" value="date"
|
621 |
<?php checked( $nbld ); ?>
|
622 |
<?php echo esc_attr( $disabled ); ?> />
|
623 |
-
<?php echo esc_html__( 'Delete
|
624 |
</label>
|
625 |
<?php
|
626 |
// Find and replace ` months` in the string.
|
@@ -644,7 +644,7 @@ class WSAL_Views_Settings extends WSAL_AbstractView {
|
|
644 |
<input type="text" id="PruningLimit" name="PruningLimit" placeholder="<?php echo esc_attr( $text ); ?>"
|
645 |
value="<?php echo esc_attr( $this->_plugin->settings->GetPruningLimit() ); ?>"
|
646 |
onfocus="jQuery('#delete2').attr('checked', true);" <?php echo esc_attr( $disabled ); ?>/>
|
647 |
-
<?php echo esc_html__( '
|
648 |
<span><?php echo esc_html( $text ); ?></span>
|
649 |
</fieldset>
|
650 |
<p class="description">
|
@@ -663,14 +663,14 @@ class WSAL_Views_Settings extends WSAL_AbstractView {
|
|
663 |
</tr>
|
664 |
<!-- Can View Alerts -->
|
665 |
<tr>
|
666 |
-
<th><label for="ViewerQueryBox"><?php esc_html_e( 'Can View
|
667 |
<td>
|
668 |
<fieldset>
|
669 |
<input type="text" id="ViewerQueryBox" style="float: left; display: block; width: 250px;">
|
670 |
<input type="button" id="ViewerQueryAdd" style="float: left; display: block;" class="button-primary" value="Add">
|
671 |
<br style="clear: both;"/>
|
672 |
<p class="description">
|
673 |
-
<?php esc_html_e( 'Users and Roles in this list can view the security
|
674 |
</p>
|
675 |
<div id="ViewerList">
|
676 |
<?php foreach ( $this->_plugin->settings->GetAllowedPluginViewers() as $item ) : ?>
|
@@ -695,7 +695,7 @@ class WSAL_Views_Settings extends WSAL_AbstractView {
|
|
695 |
<?php checked( $are ); ?> value="1">
|
696 |
<span><?php esc_html_e( 'Automatic', 'wp-security-audit-log' ); ?></span>
|
697 |
</label>
|
698 |
-
<span class="description"> — <?php esc_html_e( 'Refresh Audit Log Viewer as soon as there are new
|
699 |
<br/>
|
700 |
<label for="aroption_off">
|
701 |
<input type="radio" name="EnableAuditViewRefresh" id="aroption_off" style="margin-top: 2px;"
|
@@ -709,7 +709,7 @@ class WSAL_Views_Settings extends WSAL_AbstractView {
|
|
709 |
</tr>
|
710 |
<!-- Alerts Timestamp -->
|
711 |
<tr>
|
712 |
-
<th><label for="timezone-default"><?php esc_html_e( '
|
713 |
<td>
|
714 |
<fieldset>
|
715 |
<?php $timezone = $this->_plugin->settings->GetTimezone(); ?>
|
@@ -725,7 +725,7 @@ class WSAL_Views_Settings extends WSAL_AbstractView {
|
|
725 |
<span><?php esc_html_e( 'WordPress\' timezone', 'wp-security-audit-log' ); ?></span>
|
726 |
</label>
|
727 |
<br/>
|
728 |
-
<span class="description"><?php esc_html_e( 'Select which timestamp the
|
729 |
</fieldset>
|
730 |
</td>
|
731 |
</tr>
|
@@ -762,7 +762,7 @@ class WSAL_Views_Settings extends WSAL_AbstractView {
|
|
762 |
<?php if ( 'alert_code' !== $key ) : ?>
|
763 |
<span><?php echo esc_html( ucwords( str_replace( '_', ' ', $key ) ) ); ?></span>
|
764 |
<?php else : ?>
|
765 |
-
<span><?php
|
766 |
<?php endif; ?>
|
767 |
</label>
|
768 |
<br/>
|
@@ -773,7 +773,7 @@ class WSAL_Views_Settings extends WSAL_AbstractView {
|
|
773 |
</tr>
|
774 |
<!-- Disable Alerts for WordPress Background activity -->
|
775 |
<tr>
|
776 |
-
<th><label for="DeleteData"><?php esc_html_e( 'Disable
|
777 |
<td>
|
778 |
<fieldset>
|
779 |
<label for="WPBackend">
|
@@ -783,7 +783,7 @@ class WSAL_Views_Settings extends WSAL_AbstractView {
|
|
783 |
</label>
|
784 |
<br/>
|
785 |
<span class="description">
|
786 |
-
<?php esc_html_e( 'For example do not raise an
|
787 |
</span>
|
788 |
</fieldset>
|
789 |
</td>
|
353 |
</p>
|
354 |
</td>
|
355 |
</tr>
|
356 |
+
<!-- Events Dashboard Widget -->
|
357 |
<tr>
|
358 |
+
<th><label for="dwoption_on"><?php esc_html_e( 'Events Dashboard Widget', 'wp-security-audit-log' ); ?></label></th>
|
359 |
<td>
|
360 |
<fieldset>
|
361 |
<?php $dwe = $this->_plugin->settings->IsWidgetsEnabled(); ?>
|
372 |
<p class="description">
|
373 |
<?php
|
374 |
echo sprintf(
|
375 |
+
esc_html__( 'Display a dashboard widget with the latest %d security events.', 'wp-security-audit-log' ),
|
376 |
esc_html( $this->_plugin->settings->GetDashboardWidgetMaxAlerts() )
|
377 |
);
|
378 |
?>
|
439 |
<br/>
|
440 |
<span class="description">
|
441 |
<?php esc_html_e( 'If this option is disabled all the administrators on this WordPress have access to manage this plugin.', 'wp-security-audit-log' ); ?><br/>
|
442 |
+
<?php echo wp_kses( __( 'By enabling this option only <strong>You</strong> and the users specified in the <strong>Can Manage Plugin</strong> and <strong>Can View Events</strong> can configure this plugin or view the events in the WordPress audit trail.', 'wp-security-audit-log' ), $this->_plugin->allowed_html_tags ); ?>
|
443 |
</span>
|
444 |
</fieldset>
|
445 |
</td>
|
591 |
<!-- Audit Log Retention -->
|
592 |
<?php
|
593 |
$disabled = '';
|
594 |
+
if ( $this->_plugin->settings->IsArchivingEnabled() ) :
|
595 |
$disabled = 'disabled';
|
596 |
?>
|
597 |
<tr>
|
599 |
<?php esc_html_e( 'The options below are disabled because you enabled archiving of alerts to the archiving table from', 'wp-security-audit-log' ); ?> <a href="<?php echo esc_url( admin_url( 'admin.php?page=wsal-ext-settings#mirroring' ) ); ?>" target="_blank">here</a>
|
600 |
</td>
|
601 |
</tr>
|
602 |
+
<?php endif; ?>
|
603 |
<tr>
|
604 |
<th><label for="delete1"><?php esc_html_e( 'Audit Log Retention', 'wp-security-audit-log' ); ?></label></th>
|
605 |
<td>
|
620 |
<input type="radio" id="delete1" name="PruneBy" value="date"
|
621 |
<?php checked( $nbld ); ?>
|
622 |
<?php echo esc_attr( $disabled ); ?> />
|
623 |
+
<?php echo esc_html__( 'Delete events older than', 'wp-security-audit-log' ); ?>
|
624 |
</label>
|
625 |
<?php
|
626 |
// Find and replace ` months` in the string.
|
644 |
<input type="text" id="PruningLimit" name="PruningLimit" placeholder="<?php echo esc_attr( $text ); ?>"
|
645 |
value="<?php echo esc_attr( $this->_plugin->settings->GetPruningLimit() ); ?>"
|
646 |
onfocus="jQuery('#delete2').attr('checked', true);" <?php echo esc_attr( $disabled ); ?>/>
|
647 |
+
<?php echo esc_html__( 'events', 'wp-security-audit-log' ); ?>
|
648 |
<span><?php echo esc_html( $text ); ?></span>
|
649 |
</fieldset>
|
650 |
<p class="description">
|
663 |
</tr>
|
664 |
<!-- Can View Alerts -->
|
665 |
<tr>
|
666 |
+
<th><label for="ViewerQueryBox"><?php esc_html_e( 'Can View Events', 'wp-security-audit-log' ); ?></label></th>
|
667 |
<td>
|
668 |
<fieldset>
|
669 |
<input type="text" id="ViewerQueryBox" style="float: left; display: block; width: 250px;">
|
670 |
<input type="button" id="ViewerQueryAdd" style="float: left; display: block;" class="button-primary" value="Add">
|
671 |
<br style="clear: both;"/>
|
672 |
<p class="description">
|
673 |
+
<?php esc_html_e( 'Users and Roles in this list can view the security events', 'wp-security-audit-log' ); ?>
|
674 |
</p>
|
675 |
<div id="ViewerList">
|
676 |
<?php foreach ( $this->_plugin->settings->GetAllowedPluginViewers() as $item ) : ?>
|
695 |
<?php checked( $are ); ?> value="1">
|
696 |
<span><?php esc_html_e( 'Automatic', 'wp-security-audit-log' ); ?></span>
|
697 |
</label>
|
698 |
+
<span class="description"> — <?php esc_html_e( 'Refresh Audit Log Viewer as soon as there are new events.', 'wp-security-audit-log' ); ?></span>
|
699 |
<br/>
|
700 |
<label for="aroption_off">
|
701 |
<input type="radio" name="EnableAuditViewRefresh" id="aroption_off" style="margin-top: 2px;"
|
709 |
</tr>
|
710 |
<!-- Alerts Timestamp -->
|
711 |
<tr>
|
712 |
+
<th><label for="timezone-default"><?php esc_html_e( 'Events Timestamp', 'wp-security-audit-log' ); ?></label></th>
|
713 |
<td>
|
714 |
<fieldset>
|
715 |
<?php $timezone = $this->_plugin->settings->GetTimezone(); ?>
|
725 |
<span><?php esc_html_e( 'WordPress\' timezone', 'wp-security-audit-log' ); ?></span>
|
726 |
</label>
|
727 |
<br/>
|
728 |
+
<span class="description"><?php esc_html_e( 'Select which timestamp the events should have in the Audit Log viewer. Note that the WordPress\' timezone might be different from that of the server.', 'wp-security-audit-log' ); ?></span>
|
729 |
</fieldset>
|
730 |
</td>
|
731 |
</tr>
|
762 |
<?php if ( 'alert_code' !== $key ) : ?>
|
763 |
<span><?php echo esc_html( ucwords( str_replace( '_', ' ', $key ) ) ); ?></span>
|
764 |
<?php else : ?>
|
765 |
+
<span><?php esc_html_e( 'Event ID', 'wp-security-audit-log' ); ?></span>
|
766 |
<?php endif; ?>
|
767 |
</label>
|
768 |
<br/>
|
773 |
</tr>
|
774 |
<!-- Disable Alerts for WordPress Background activity -->
|
775 |
<tr>
|
776 |
+
<th><label for="DeleteData"><?php esc_html_e( 'Disable Events for WordPress Background Activity', 'wp-security-audit-log' ); ?></label></th>
|
777 |
<td>
|
778 |
<fieldset>
|
779 |
<label for="WPBackend">
|
783 |
</label>
|
784 |
<br/>
|
785 |
<span class="description">
|
786 |
+
<?php esc_html_e( 'For example do not raise an event when WordPress deletes the auto drafts.', 'wp-security-audit-log' ); ?>
|
787 |
</span>
|
788 |
</fieldset>
|
789 |
</td>
|
classes/Views/ToggleAlerts.php
CHANGED
@@ -24,7 +24,7 @@ class WSAL_Views_ToggleAlerts extends WSAL_AbstractView {
|
|
24 |
* Method: Get View Title.
|
25 |
*/
|
26 |
public function GetTitle() {
|
27 |
-
return __( 'Enable/Disable
|
28 |
}
|
29 |
|
30 |
/**
|
@@ -38,7 +38,7 @@ class WSAL_Views_ToggleAlerts extends WSAL_AbstractView {
|
|
38 |
* Method: Get View Name.
|
39 |
*/
|
40 |
public function GetName() {
|
41 |
-
return __( 'Enable/Disable
|
42 |
}
|
43 |
|
44 |
/**
|
24 |
* Method: Get View Title.
|
25 |
*/
|
26 |
public function GetTitle() {
|
27 |
+
return __( 'Enable/Disable Events', 'wp-security-audit-log' );
|
28 |
}
|
29 |
|
30 |
/**
|
38 |
* Method: Get View Name.
|
39 |
*/
|
40 |
public function GetName() {
|
41 |
+
return __( 'Enable/Disable Events', 'wp-security-audit-log' );
|
42 |
}
|
43 |
|
44 |
/**
|
classes/WidgetManager.php
CHANGED
@@ -33,7 +33,7 @@ class WSAL_WidgetManager {
|
|
33 |
&& $this->_plugin->settings->CurrentUserCan( 'view' ) ) {
|
34 |
wp_add_dashboard_widget(
|
35 |
'wsal',
|
36 |
-
__( 'Latest
|
37 |
array( $this, 'RenderWidget' )
|
38 |
);
|
39 |
}
|
33 |
&& $this->_plugin->settings->CurrentUserCan( 'view' ) ) {
|
34 |
wp_add_dashboard_widget(
|
35 |
'wsal',
|
36 |
+
__( 'Latest Events', 'wp-security-audit-log' ) . ' | WP Security Audit Log',
|
37 |
array( $this, 'RenderWidget' )
|
38 |
);
|
39 |
}
|
css/auditlog.css
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
*
|
4 |
*/
|
5 |
|
6 |
-
.top .wsal-ipp {
|
7 |
display: none;
|
8 |
}
|
9 |
.top .wsal-ssa select {
|
@@ -301,3 +301,7 @@ div.wsal_notice__wrapper p {
|
|
301 |
.wp-list-table #code {
|
302 |
width: 55px;
|
303 |
}
|
|
|
|
|
|
|
|
3 |
*
|
4 |
*/
|
5 |
|
6 |
+
.top .wsal-ipp {
|
7 |
display: none;
|
8 |
}
|
9 |
.top .wsal-ssa select {
|
301 |
.wp-list-table #code {
|
302 |
width: 55px;
|
303 |
}
|
304 |
+
|
305 |
+
.wp-list-table #type {
|
306 |
+
width: 87px;
|
307 |
+
}
|
defaults.php
CHANGED
@@ -346,7 +346,7 @@ function wsaldefaults_wsal_init( WpSecurityAuditLog $wsal ) {
|
|
346 |
array( 0003, E_NOTICE, __( 'PHP notice', 'wp-security-audit-log' ), __( '%Message%.', 'wp-security-audit-log' ) ),
|
347 |
array( 0004, E_CRITICAL, __( 'PHP exception', 'wp-security-audit-log' ), __( '%Message%.', 'wp-security-audit-log' ) ),
|
348 |
array( 0005, E_CRITICAL, __( 'PHP shutdown error', 'wp-security-audit-log' ), __( '%Message%.', 'wp-security-audit-log' ) ),
|
349 |
-
array( 6000, E_NOTICE, __( 'Events automatically pruned by system', 'wp-security-audit-log' ), __( 'System automatically deleted %EventCount%
|
350 |
array( 6001, E_CRITICAL, __( 'Option Anyone Can Register in WordPress settings changed', 'wp-security-audit-log' ), __( '%NewValue% the option "Anyone can register".', 'wp-security-audit-log' ) ),
|
351 |
array( 6002, E_CRITICAL, __( 'New User Default Role changed', 'wp-security-audit-log' ), __( 'Changed the New User Default Role from %OldRole% to %NewRole%.', 'wp-security-audit-log' ) ),
|
352 |
array( 6003, E_CRITICAL, __( 'WordPress Administrator Notification email changed', 'wp-security-audit-log' ), __( 'Changed the WordPress administrator notifications email address from %OldEmail% to %NewEmail%.', 'wp-security-audit-log' ) ),
|
346 |
array( 0003, E_NOTICE, __( 'PHP notice', 'wp-security-audit-log' ), __( '%Message%.', 'wp-security-audit-log' ) ),
|
347 |
array( 0004, E_CRITICAL, __( 'PHP exception', 'wp-security-audit-log' ), __( '%Message%.', 'wp-security-audit-log' ) ),
|
348 |
array( 0005, E_CRITICAL, __( 'PHP shutdown error', 'wp-security-audit-log' ), __( '%Message%.', 'wp-security-audit-log' ) ),
|
349 |
+
array( 6000, E_NOTICE, __( 'Events automatically pruned by system', 'wp-security-audit-log' ), __( 'System automatically deleted %EventCount% event(s).', 'wp-security-audit-log' ) ),
|
350 |
array( 6001, E_CRITICAL, __( 'Option Anyone Can Register in WordPress settings changed', 'wp-security-audit-log' ), __( '%NewValue% the option "Anyone can register".', 'wp-security-audit-log' ) ),
|
351 |
array( 6002, E_CRITICAL, __( 'New User Default Role changed', 'wp-security-audit-log' ), __( 'Changed the New User Default Role from %OldRole% to %NewRole%.', 'wp-security-audit-log' ) ),
|
352 |
array( 6003, E_CRITICAL, __( 'WordPress Administrator Notification email changed', 'wp-security-audit-log' ), __( 'Changed the WordPress administrator notifications email address from %OldEmail% to %NewEmail%.', 'wp-security-audit-log' ) ),
|
readme.txt
CHANGED
@@ -6,8 +6,8 @@ License URI: http://www.gnu.org/licenses/gpl.html
|
|
6 |
Tags: wordpress security plugin, wordpress security audit log, audit log, event log wordpress, wordpress user tracking, wordpress activity log, wordpress audit, security event log, audit trail, wordpress security monitor, wordpress admin, wordpress admin monitoring, user activity, admin, multisite, dashboard, notification, wordpress monitoring, email notification, wordpress email alerts, tracking, user tracking, user activity report, wordpress audit trail
|
7 |
Requires at least: 3.6
|
8 |
Tested up to: 4.9.6
|
9 |
-
Stable tag: 3.2.
|
10 |
-
Requires PHP: 5.
|
11 |
|
12 |
An easy to use and comprehensive monitoring & activity log solution that keeps a log of all changes & user activity on your WordPress site.
|
13 |
|
@@ -179,6 +179,13 @@ Please refer to our [Support & Documentation pages](https://www.wpsecurityauditl
|
|
179 |
|
180 |
== Changelog ==
|
181 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
182 |
= 3.2.0(2018-06-05) =
|
183 |
|
184 |
Release notes: [WordPress file changes warnings & more in WP Security Audit Log 3.2](https://www.wpsecurityauditlog.com/releases/3-2-website-file-changes-logs/)
|
6 |
Tags: wordpress security plugin, wordpress security audit log, audit log, event log wordpress, wordpress user tracking, wordpress activity log, wordpress audit, security event log, audit trail, wordpress security monitor, wordpress admin, wordpress admin monitoring, user activity, admin, multisite, dashboard, notification, wordpress monitoring, email notification, wordpress email alerts, tracking, user tracking, user activity report, wordpress audit trail
|
7 |
Requires at least: 3.6
|
8 |
Tested up to: 4.9.6
|
9 |
+
Stable tag: 3.2.1
|
10 |
+
Requires PHP: 5.4.43
|
11 |
|
12 |
An easy to use and comprehensive monitoring & activity log solution that keeps a log of all changes & user activity on your WordPress site.
|
13 |
|
179 |
|
180 |
== Changelog ==
|
181 |
|
182 |
+
= 3.2.1(2018-06-05) =
|
183 |
+
|
184 |
+
* **Improvements**
|
185 |
+
* Improved connectivity checks of archiving and mirroring external databases.
|
186 |
+
* Updated external database connection SSL code to support PHP 5.4.
|
187 |
+
* Renamed Alerts to Events - [More information on WordPress activity log events](https://www.wpsecurityauditlog.com/support-documentation/what-are-alerts-and-alert-ids-in-the-wordpress-activity-log/)
|
188 |
+
|
189 |
= 3.2.0(2018-06-05) =
|
190 |
|
191 |
Release notes: [WordPress file changes warnings & more in WP Security Audit Log 3.2](https://www.wpsecurityauditlog.com/releases/3-2-website-file-changes-logs/)
|
wp-security-audit-log.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* Plugin URI: http://www.wpsecurityauditlog.com/
|
5 |
* Description: Identify WordPress security issues before they become a problem. Keep track of everything happening on your WordPress including WordPress users activity. Similar to Windows Event Log and Linux Syslog, WP Security Audit Log generates a security alert for everything that happens on your WordPress blogs and websites. Use the Audit Log Viewer included in the plugin to see all the security alerts.
|
6 |
* Author: WP White Security
|
7 |
-
* Version: 3.2.
|
8 |
* Text Domain: wp-security-audit-log
|
9 |
* Author URI: http://www.wpsecurityauditlog.com/
|
10 |
* License: GPL2
|
@@ -54,7 +54,7 @@ if ( ! function_exists( 'wsal_freemius' ) ) {
|
|
54 |
*
|
55 |
* @var string
|
56 |
*/
|
57 |
-
public $version = '3.2.
|
58 |
|
59 |
// Plugin constants.
|
60 |
const PLG_CLS_PRFX = 'WSAL_';
|
4 |
* Plugin URI: http://www.wpsecurityauditlog.com/
|
5 |
* Description: Identify WordPress security issues before they become a problem. Keep track of everything happening on your WordPress including WordPress users activity. Similar to Windows Event Log and Linux Syslog, WP Security Audit Log generates a security alert for everything that happens on your WordPress blogs and websites. Use the Audit Log Viewer included in the plugin to see all the security alerts.
|
6 |
* Author: WP White Security
|
7 |
+
* Version: 3.2.1
|
8 |
* Text Domain: wp-security-audit-log
|
9 |
* Author URI: http://www.wpsecurityauditlog.com/
|
10 |
* License: GPL2
|
54 |
*
|
55 |
* @var string
|
56 |
*/
|
57 |
+
public $version = '3.2.1';
|
58 |
|
59 |
// Plugin constants.
|
60 |
const PLG_CLS_PRFX = 'WSAL_';
|