/** * Execute the plugin' scheduled tasks. * * @return void */ public static function run_scheduled_task() { SucuriScanEvent::filesystem_scan(); sucuriscan_core_files(true); }
/** * WordPress core integrity page. * * It checks whether the WordPress core files are the original ones, and the state * of the themes and plugins reporting the availability of updates. It also checks * the user accounts under the administrator group. * * @return void */ function sucuriscan_page() { SucuriScanInterface::check_permissions(); // Process all form submissions. sucuriscan_integrity_form_submissions(); $params = array('WordpressVersion' => sucuriscan_wordpress_outdated(), 'CoreFiles' => sucuriscan_core_files(), 'AuditReports' => sucuriscan_auditreport(), 'AuditLogs' => sucuriscan_auditlogs()); echo SucuriScanTemplate::getTemplate('integrity', $params); }