Plugin Directory

Changeset 1866986


Ignore:
Timestamp:
05/01/2018 01:17:43 PM (8 years ago)
Author:
osexcel
Message:

Centrora Joomla 7.4.1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ose-firewall/trunk/classes/Library/fwscannerv7/fwscannerv7.php

    r1815669 r1866986  
    7575    private $ip32 = null;
    7676
     77    protected $auditor_scan_url = "https://auditor-dev.centrora.com/index.php?task=scan";
    7778
    7879    public function __construct($qatest = false)
     
    839840                        $record[$key] = $rec;
    840841                        $result = $this->scanRequests($record,$request_variablesfiltered_decoded,$settings);  //$request_stringsfiltered
     842                        //$result = $this->scanRequestsFromAuditor($record);
    841843                        unset($record);
    842844                        if($result['status'] == 6)
     
    41344136        $panel->saveCronConfigEmailStats($result['custhours'], $result['custweekdays'], 6, 1, $enabled, 1,true);
    41354137    }
     4138    public function scanRequestsFromAuditor($record)
     4139    {
     4140        $query = http_build_query($record);
     4141        $url = $this->auditor_scan_url."&".$query;
     4142        $curl = curl_init();
     4143        curl_setopt_array($curl, array(
     4144            CURLOPT_RETURNTRANSFER => 1,
     4145            CURLOPT_URL => $url,
     4146            CURLOPT_USERAGENT => 'Centrora Security Download Request Agent',
     4147        ));
     4148        $resp = curl_exec($curl);
     4149        curl_close($curl);
     4150        return json_decode($resp);
     4151    }
    41364152}
    41374153
Note: See TracChangeset for help on using the changeset viewer.