Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
2779286
Ref. Code. Coverage with tests spbc-scanner file.
svfcode Jul 19, 2025
3a19af6
Fix. Code. Removed unused uses.
Glomberg Jul 23, 2025
4dcc2da
Fix. Code. Unit tests structure fixed.
Glomberg Jul 23, 2025
301367a
Merge remote-tracking branch 'origin/dev' into ref-inc-scan
Glomberg Aug 11, 2025
4565711
Fix. List table. Getting total data method supports methods, not only…
Glomberg Aug 11, 2025
14bc440
Fix. Scanner. Outbound links getting total logic moved to the `Links`…
Glomberg Aug 11, 2025
edba7c6
Fix. List table. Getting data method supports methods, not only funct…
Glomberg Aug 11, 2025
4f31ce2
Fix. List table. Prepare data method supports methods, not only funct…
Glomberg Aug 11, 2025
a1ea814
Fix. Scanner. Domains getting data logic moved to the `Links` class.
Glomberg Aug 11, 2025
678b8b2
Fix. Scanner. Domains section logic fixed.
Glomberg Aug 11, 2025
728aa49
Fix. Scanner. Domains section config removed.
Glomberg Aug 11, 2025
c5a2471
Fix. Code. Code style and psalm fixed.
Glomberg Aug 11, 2025
ae4b456
Merge branch 'dev' into ref-inc-scan
alexandergull Sep 4, 2025
3f1e306
Fix. Test fixed.
alexandergull Sep 4, 2025
316e7bc
Ref. File spbc-scanner.php refactored to classes.
alexandergull Sep 4, 2025
72b05c4
Ref. File ScannerAjaxEndpoints. Separate handlers.
svfcode Sep 22, 2025
a296e4e
fix phpcs
svfcode Sep 22, 2025
b89f8a7
Merge remote-tracking branch 'origin/dev' into ref-inc-scan
Glomberg Oct 1, 2025
8cd74c0
Fix. Code. Psalm notice fixed.
Glomberg Oct 1, 2025
a41a67a
Fix. Code. React rebuild.
Glomberg Oct 1, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 15 additions & 14 deletions inc/spbc-admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
use CleantalkSP\SpbctWP\VulnerabilityAlarm\VulnerabilityAlarmView;
use CleantalkSP\SpbctWP\FileEditorDisabler\FileEditorDisabler;
use CleantalkSP\SpbctWP\UsersPassCheckModule\UsersPassCheckHandler;
use CleantalkSP\SpbctWP\Scanner\ScannerAjaxEndpoints;

// Prevent direct call
if ( ! defined('ABSPATH') ) {
Expand Down Expand Up @@ -86,23 +87,23 @@ function spbc_admin_init()

// Scanner
add_action('wp_ajax_spbc_scanner_controller_front', array(ScannerQueue::class, 'controllerFront'));
add_action('wp_ajax_spbc_scanner_load_more_scan_logs', 'spbc_scanner_load_more_scan_logs');
add_action('wp_ajax_spbc_scanner_save_to_pdf', 'spbc_scanner_save_to_pdf');
add_action('wp_ajax_spbc_scanner_get_pdf_file_name', 'spbc_scanner_get_pdf_file_name');
add_action('wp_ajax_spbc_scanner_clear', 'spbc_scanner_clear'); // Debug. Clear the table
add_action('wp_ajax_spbc_scanner_load_more_scan_logs', array(ScannerAjaxEndpoints::class, 'loadMoreScanLogs'));
add_action('wp_ajax_spbc_scanner_save_to_pdf', array(ScannerAjaxEndpoints::class, 'downloadPDFReport'));
add_action('wp_ajax_spbc_scanner_get_pdf_file_name', array(ScannerAjaxEndpoints::class, 'getPDFReportFileName'));
add_action('wp_ajax_spbc_scanner_clear', array(ScannerAjaxEndpoints::class, 'clearScannerResults')); // Debug. Clear the table
add_action('wp_ajax_spbc_scanner__last_scan_info', 'spbc_scanner__last_scan_info');

// Scanner buttons
add_action('wp_ajax_spbc_scanner_file_send', 'spbc_scanner_file_send');
add_action('wp_ajax_spbc_scanner_file_delete', 'spbc_scanner_file_delete');
add_action('wp_ajax_spbc_scanner_file_approve', 'spbc_scanner_file_approve');
add_action('wp_ajax_spbc_scanner_file_view', 'spbc_scanner_file_view');
add_action('wp_ajax_spbc_scanner_page_view', 'spbc_scanner_page_view');
add_action('wp_ajax_spbc_scanner_file_replace', 'spbc_scanner_file_replace');
add_action('wp_ajax_spbc_scanner_file_check_analysis_status', 'spbc_scanner_pscan_check_analysis_status');
add_action('wp_ajax_spbc_scanner_analysis_log_delete_from_log', 'spbc_scanner_analysis_log_delete_from_log');
add_action('wp_ajax_spbc_file_cure_ajax_action', 'spbc_file_cure_ajax_action');
add_action('wp_ajax_spbc_restore_file_from_backup_ajax_action', 'spbc_restore_file_from_backup_ajax_action');
add_action('wp_ajax_spbc_scanner_file_send', array(ScannerAjaxEndpoints::class, 'sendFileForAnalysis'));
add_action('wp_ajax_spbc_scanner_file_delete', array(ScannerAjaxEndpoints::class, 'deleteFile'));
add_action('wp_ajax_spbc_scanner_file_approve', array(ScannerAjaxEndpoints::class, 'approveFile'));
add_action('wp_ajax_spbc_scanner_file_view', array(ScannerAjaxEndpoints::class, 'viewFile'));
add_action('wp_ajax_spbc_scanner_page_view', array(ScannerAjaxEndpoints::class, 'viewPage'));
add_action('wp_ajax_spbc_scanner_file_replace', array(ScannerAjaxEndpoints::class, 'replaceFileWithOriginal'));
add_action('wp_ajax_spbc_scanner_file_check_analysis_status', array(ScannerAjaxEndpoints::class, 'checkFilesAnalysisStatus'));
add_action('wp_ajax_spbc_scanner_analysis_log_delete_from_log', array(ScannerAjaxEndpoints::class, 'deleteFileFromAnalysisLog'));
add_action('wp_ajax_spbc_file_cure_ajax_action', array(ScannerAjaxEndpoints::class, 'cureFile'));
add_action('wp_ajax_spbc_restore_file_from_backup_ajax_action', array(ScannerAjaxEndpoints::class, 'restoreFileFromBackup'));

// Settings
add_action('wp_ajax_spbc_settings__draw_elements', 'spbc_settings__draw_elements');
Expand Down
Loading