|
@@ -176,12 +176,12 @@ discard block |
|
|
block discarded – undo |
|
176
|
176
|
return false; |
|
177
|
177
|
} |
|
178
|
178
|
$this->connect(); |
|
179
|
|
- \StatisticClient::tick('Fantastico', 'getIpList'); |
|
|
179
|
+ \StatisticClient::tick('Fantastico', 'getIpList'); |
|
180
|
180
|
$this->cache['getIpList_'.$type] = json_decode($this->soapClient->getIpList($this->getHash(), $type), true); |
|
181
|
|
- if ($this->cache['getIpList_'.$type] === false) |
|
182
|
|
- \StatisticClient::report('Fantastico', 'getIpList', false, 1, 'Soap Client Error', STATISTICS_SERVER); |
|
183
|
|
- else |
|
184
|
|
- \StatisticClient::report('Fantastico', 'getIpList', true, 0, '', STATISTICS_SERVER); |
|
|
181
|
+ if ($this->cache['getIpList_'.$type] === false) |
|
|
182
|
+ \StatisticClient::report('Fantastico', 'getIpList', false, 1, 'Soap Client Error', STATISTICS_SERVER); |
|
|
183
|
+ else |
|
|
184
|
+ \StatisticClient::report('Fantastico', 'getIpList', true, 0, '', STATISTICS_SERVER); |
|
185
|
185
|
myadmin_log('fantastico', 'debug', json_encode($this->cache['getIpList_'.$type]), __LINE__, __FILE__); |
|
186
|
186
|
return $this->cache['getIpList_'.$type]; |
|
187
|
187
|
} |
|
@@ -237,12 +237,12 @@ discard block |
|
|
block discarded – undo |
|
237
|
237
|
} |
|
238
|
238
|
$this->connect(); |
|
239
|
239
|
//try { |
|
240
|
|
- \StatisticClient::tick('Fantastico', 'getIpListDetailed'); |
|
|
240
|
+ \StatisticClient::tick('Fantastico', 'getIpListDetailed'); |
|
241
|
241
|
$response = json_decode($this->soapClient->__soapCall('getIpListDetailed', [$this->getHash(), $type]), true); |
|
242
|
|
- if ($response === false) |
|
243
|
|
- \StatisticClient::report('Fantastico', 'getIpListDetailed', false, 1, 'Soap Client Error', STATISTICS_SERVER); |
|
244
|
|
- else |
|
245
|
|
- \StatisticClient::report('Fantastico', 'getIpListDetailed', true, 0, '', STATISTICS_SERVER); |
|
|
242
|
+ if ($response === false) |
|
|
243
|
+ \StatisticClient::report('Fantastico', 'getIpListDetailed', false, 1, 'Soap Client Error', STATISTICS_SERVER); |
|
|
244
|
+ else |
|
|
245
|
+ \StatisticClient::report('Fantastico', 'getIpListDetailed', true, 0, '', STATISTICS_SERVER); |
|
246
|
246
|
myadmin_log('fantastico', 'debug', json_encode($response), __LINE__, __FILE__); |
|
247
|
247
|
//echo '<pre>';echo print_r($response, TRUE);echo '</pre>'; |
|
248
|
248
|
//$this->cache['getIpListDetailed_'.$type] = $this->cache['getIpListDetailed_'.$type]->Licenses; |
|
@@ -321,12 +321,12 @@ discard block |
|
|
block discarded – undo |
|
321
|
321
|
return $this->cache['getIpDetails_'.$ipAddress]; |
|
322
|
322
|
} |
|
323
|
323
|
$this->connect(); |
|
324
|
|
- \StatisticClient::tick('Fantastico', 'getIpDetails'); |
|
|
324
|
+ \StatisticClient::tick('Fantastico', 'getIpDetails'); |
|
325
|
325
|
$this->cache['getIpDetails_'.$ipAddress] = json_decode($this->soapClient->getIpDetails($this->getHash(), $ipAddress), true); |
|
326
|
|
- if ($this->cache['getIpDetails_'.$ipAddress] === false) |
|
327
|
|
- \StatisticClient::report('Fantastico', 'getIpDetails', false, 1, 'Soap Client Error', STATISTICS_SERVER); |
|
328
|
|
- else |
|
329
|
|
- \StatisticClient::report('Fantastico', 'getIpDetails', true, 0, '', STATISTICS_SERVER); |
|
|
326
|
+ if ($this->cache['getIpDetails_'.$ipAddress] === false) |
|
|
327
|
+ \StatisticClient::report('Fantastico', 'getIpDetails', false, 1, 'Soap Client Error', STATISTICS_SERVER); |
|
|
328
|
+ else |
|
|
329
|
+ \StatisticClient::report('Fantastico', 'getIpDetails', true, 0, '', STATISTICS_SERVER); |
|
330
|
330
|
myadmin_log('fantastico', 'debug', json_encode($this->cache['getIpDetails_'.$ipAddress]), __LINE__, __FILE__); |
|
331
|
331
|
return $this->cache['getIpDetails_'.$ipAddress]; |
|
332
|
332
|
} |
|
@@ -405,12 +405,12 @@ discard block |
|
|
block discarded – undo |
|
405
|
405
|
$response = ['faultcode' => 2, 'fault' => 'Invalid IP Address '.$newip]; |
|
406
|
406
|
} else { |
|
407
|
407
|
$this->connect(); |
|
408
|
|
- \StatisticClient::tick('Fantastico', 'editIp'); |
|
|
408
|
+ \StatisticClient::tick('Fantastico', 'editIp'); |
|
409
|
409
|
$response = json_decode($this->soapClient->editIp($this->getHash(), $ipAddress, $newip), true); |
|
410
|
|
- if ($response === false) |
|
411
|
|
- \StatisticClient::report('Fantastico', 'editIp', false, 1, 'Soap Client Error', STATISTICS_SERVER); |
|
412
|
|
- else |
|
413
|
|
- \StatisticClient::report('Fantastico', 'editIp', true, 0, '', STATISTICS_SERVER); |
|
|
410
|
+ if ($response === false) |
|
|
411
|
+ \StatisticClient::report('Fantastico', 'editIp', false, 1, 'Soap Client Error', STATISTICS_SERVER); |
|
|
412
|
+ else |
|
|
413
|
+ \StatisticClient::report('Fantastico', 'editIp', true, 0, '', STATISTICS_SERVER); |
|
414
|
414
|
myadmin_log('fantastico', 'debug', json_encode($response), __LINE__, __FILE__); |
|
415
|
415
|
if (isset($response['fault '])) { |
|
416
|
416
|
$response['fault'] = $response['fault ']; |
|
@@ -489,12 +489,12 @@ discard block |
|
|
block discarded – undo |
|
489
|
489
|
$response = ['faultcode' => 1, 'fault' => 'Invalid IP Address '.$ipAddress]; |
|
490
|
490
|
} else { |
|
491
|
491
|
$this->connect(); |
|
492
|
|
- \StatisticClient::tick('Fantastico', 'addIp'); |
|
|
492
|
+ \StatisticClient::tick('Fantastico', 'addIp'); |
|
493
|
493
|
$response = json_decode($this->soapClient->addIp($this->getHash(), $ipAddress, $type), true); |
|
494
|
|
- if ($response === false) |
|
495
|
|
- \StatisticClient::report('Fantastico', 'addIp', false, 1, 'Soap Client Error', STATISTICS_SERVER); |
|
496
|
|
- else |
|
497
|
|
- \StatisticClient::report('Fantastico', 'addIp', true, 0, '', STATISTICS_SERVER); |
|
|
494
|
+ if ($response === false) |
|
|
495
|
+ \StatisticClient::report('Fantastico', 'addIp', false, 1, 'Soap Client Error', STATISTICS_SERVER); |
|
|
496
|
+ else |
|
|
497
|
+ \StatisticClient::report('Fantastico', 'addIp', true, 0, '', STATISTICS_SERVER); |
|
498
|
498
|
myadmin_log('fantastico', 'debug', json_encode($response), __LINE__, __FILE__); |
|
499
|
499
|
if (isset($response['fault '])) { |
|
500
|
500
|
$response['fault'] = $response['fault ']; |
|
@@ -516,12 +516,12 @@ discard block |
|
|
block discarded – undo |
|
516
|
516
|
return ['faultcode' => 1, 'fault ' => 'Invalid IP Address '.$ipAddress]; |
|
517
|
517
|
} |
|
518
|
518
|
$this->connect(); |
|
519
|
|
- \StatisticClient::tick('Fantastico', $function); |
|
|
519
|
+ \StatisticClient::tick('Fantastico', $function); |
|
520
|
520
|
$response = json_decode($this->soapClient->$function($this->getHash(), $ipAddress), true); |
|
521
|
|
- if ($response === false) |
|
522
|
|
- \StatisticClient::report('Fantastico', $function, false, 1, 'Soap Client Error', STATISTICS_SERVER); |
|
523
|
|
- else |
|
524
|
|
- \StatisticClient::report('Fantastico', $function, true, 0, '', STATISTICS_SERVER); |
|
|
521
|
+ if ($response === false) |
|
|
522
|
+ \StatisticClient::report('Fantastico', $function, false, 1, 'Soap Client Error', STATISTICS_SERVER); |
|
|
523
|
+ else |
|
|
524
|
+ \StatisticClient::report('Fantastico', $function, true, 0, '', STATISTICS_SERVER); |
|
525
|
525
|
myadmin_log('fantastico', 'debug', json_encode($response), __LINE__, __FILE__); |
|
526
|
526
|
$this->cache = []; |
|
527
|
527
|
return $response; |