示例#1
0
 public function handle_ajax_request($data)
 {
     if ('one-time-scan' === $data['method']) {
         require_once dirname(__FILE__) . '/scanner.php';
         ITSEC_Response::set_response(ITSEC_File_Change_Scanner::run_scan(false));
     } else {
         if ('get-filetree-data' === $data['method']) {
             ITSEC_Response::set_response($this->get_filetree_data($data));
         }
     }
 }
 public function run_scan()
 {
     require_once dirname(__FILE__) . '/scanner.php';
     return ITSEC_File_Change_Scanner::run_scan();
 }
 /**
  * Functionaly to execute when calling the verb
  *
  * Functionality to execute when calling this verb VIA Sync.
  *
  * @since 4.0.0
  *
  * @return array response indicating result of the file scan
  */
 public function run($arguments)
 {
     require_once dirname(__FILE__) . '/scanner.php';
     return ITSEC_File_Change_Scanner::run_scan(false, true);
 }