Changeset 1866986
- Timestamp:
- 05/01/2018 01:17:43 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ose-firewall/trunk/classes/Library/fwscannerv7/fwscannerv7.php
r1815669 r1866986 75 75 private $ip32 = null; 76 76 77 protected $auditor_scan_url = "https://auditor-dev.centrora.com/index.php?task=scan"; 77 78 78 79 public function __construct($qatest = false) … … 839 840 $record[$key] = $rec; 840 841 $result = $this->scanRequests($record,$request_variablesfiltered_decoded,$settings); //$request_stringsfiltered 842 //$result = $this->scanRequestsFromAuditor($record); 841 843 unset($record); 842 844 if($result['status'] == 6) … … 4134 4136 $panel->saveCronConfigEmailStats($result['custhours'], $result['custweekdays'], 6, 1, $enabled, 1,true); 4135 4137 } 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 } 4136 4152 } 4137 4153
Note: See TracChangeset
for help on using the changeset viewer.