private function start_scan() { $information = array(); if (!class_exists('wordfence') || !class_exists('wfScanEngine')) { $information['error'] = 'NO_WORDFENCE'; return $information; } if (wfUtils::isScanRunning()) { $information['error'] = 'SCAN_RUNNING'; return $information; } $err = wfScanEngine::startScan(); if ($err) { $information['error'] = htmlentities($err); } else { $information['result'] = 'SUCCESS'; } return $information; }
public static function startScan() { wfScanEngine::startScan(); }