Skip to content

Commit

Permalink
Merge branch 'refs/heads/dev' into сure_bulk_fixed.ag
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandergull committed Dec 23, 2024
2 parents 4a65bf4 + 9000007 commit 2b95fd1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion inc/spbc-settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -3301,7 +3301,7 @@ function spbc_field_scanner()
//show backups link
printf(
__('%sBackups%s', 'security-malware-firewall'),
'&nbsp;<a href="/wp-admin/options-general.php?page=spbc&spbc_tab=backups">',
'&nbsp;<a href="' . admin_url('options-general.php?page=spbc&spbc_tab=backups') . '">',
'</a>'
);
echo '</p>';
Expand Down
5 changes: 4 additions & 1 deletion lib/CleantalkSP/SpbctWP/RemoteCalls.php
Original file line number Diff line number Diff line change
Expand Up @@ -318,12 +318,15 @@ public static function action__debug() // phpcs:ignore PSR1.Methods.CamelCapsMet
$out['settings'] = $spbc->settings;
$out['fw_stats'] = $spbc->fw_stats;
$out['data'] = $spbc->data;
$logs = array();
foreach (Repository::getAll() as $record) {
if (!empty($record['content']) && is_string($record['content']) && !empty($record['timestamp']) && strpos($record['content'], 'OK') === false) {
$logs[date('Y-m-d H:i:s', $record['timestamp'])] = ': ' . $record['content'];
}
}
$out['last_scan_log'] = array_reverse($logs);
if ($logs) {
$out['last_scan_log'] = array_reverse($logs);
}
$out['cron'] = $spbc->cron;
$out['errors'] = $spbc->errors;
$out['debug'] = $spbc->debug;
Expand Down

0 comments on commit 2b95fd1

Please sign in to comment.