@@ -105,12 +105,12 @@ discard block |
||
| 105 | 105 | */ |
| 106 | 106 | public function terminateKey($key) |
| 107 | 107 | { |
| 108 | - \StatisticClient::tick('Parallels', 'terminateKey'); |
|
| 108 | + \StatisticClient::tick('Parallels', 'terminateKey'); |
|
| 109 | 109 | $this->response = $this->xml->__call('partner10.terminateKey', [$this->authInfo(), $key]); |
| 110 | - if ($this->response === false) |
|
| 111 | - \StatisticClient::report('Parallels', 'terminateKey', false, 1, 'XML Call Error', STATISTICS_SERVER); |
|
| 112 | - else |
|
| 113 | - \StatisticClient::report('Parallels', 'terminateKey', true, 0, '', STATISTICS_SERVER); |
|
| 110 | + if ($this->response === false) |
|
| 111 | + \StatisticClient::report('Parallels', 'terminateKey', false, 1, 'XML Call Error', STATISTICS_SERVER); |
|
| 112 | + else |
|
| 113 | + \StatisticClient::report('Parallels', 'terminateKey', true, 0, '', STATISTICS_SERVER); |
|
| 114 | 114 | return $this->response; |
| 115 | 115 | } |
| 116 | 116 | |
@@ -120,12 +120,12 @@ discard block |
||
| 120 | 120 | */ |
| 121 | 121 | public function resetKey($key) |
| 122 | 122 | { |
| 123 | - \StatisticClient::tick('Parallels', 'resetKey'); |
|
| 123 | + \StatisticClient::tick('Parallels', 'resetKey'); |
|
| 124 | 124 | $this->response = $this->xml->__call('partner10.resetKey', [$this->authInfo(), $key]); |
| 125 | - if ($this->response === false) |
|
| 126 | - \StatisticClient::report('Parallels', 'resetKey', false, 1, 'XML Call Error', STATISTICS_SERVER); |
|
| 127 | - else |
|
| 128 | - \StatisticClient::report('Parallels', 'resetKey', true, 0, '', STATISTICS_SERVER); |
|
| 125 | + if ($this->response === false) |
|
| 126 | + \StatisticClient::report('Parallels', 'resetKey', false, 1, 'XML Call Error', STATISTICS_SERVER); |
|
| 127 | + else |
|
| 128 | + \StatisticClient::report('Parallels', 'resetKey', true, 0, '', STATISTICS_SERVER); |
|
| 129 | 129 | return $this->response; |
| 130 | 130 | } |
| 131 | 131 | |
@@ -135,12 +135,12 @@ discard block |
||
| 135 | 135 | */ |
| 136 | 136 | public function activateKey($key) |
| 137 | 137 | { |
| 138 | - \StatisticClient::tick('Parallels', 'activateKey'); |
|
| 138 | + \StatisticClient::tick('Parallels', 'activateKey'); |
|
| 139 | 139 | $this->response = $this->xml->__call('partner10.activateKey', [$this->authInfo(), $key]); |
| 140 | - if ($this->response === false) |
|
| 141 | - \StatisticClient::report('Parallels', 'activateKey', false, 1, 'XML Call Error', STATISTICS_SERVER); |
|
| 142 | - else |
|
| 143 | - \StatisticClient::report('Parallels', 'activateKey', true, 0, '', STATISTICS_SERVER); |
|
| 140 | + if ($this->response === false) |
|
| 141 | + \StatisticClient::report('Parallels', 'activateKey', false, 1, 'XML Call Error', STATISTICS_SERVER); |
|
| 142 | + else |
|
| 143 | + \StatisticClient::report('Parallels', 'activateKey', true, 0, '', STATISTICS_SERVER); |
|
| 144 | 144 | return $this->response; |
| 145 | 145 | } |
| 146 | 146 | |
@@ -151,12 +151,12 @@ discard block |
||
| 151 | 151 | */ |
| 152 | 152 | public function addNoteToKey($key, $note) |
| 153 | 153 | { |
| 154 | - \StatisticClient::tick('Parallels', 'addNoteToKey'); |
|
| 154 | + \StatisticClient::tick('Parallels', 'addNoteToKey'); |
|
| 155 | 155 | $this->response = $this->xml->__call('partner10.addNoteToKey', [$this->authInfo(), $key, $note]); |
| 156 | - if ($this->response === false) |
|
| 157 | - \StatisticClient::report('Parallels', 'addNoteToKey', false, 1, 'XML Call Error', STATISTICS_SERVER); |
|
| 158 | - else |
|
| 159 | - \StatisticClient::report('Parallels', 'addNoteToKey', true, 0, '', STATISTICS_SERVER); |
|
| 156 | + if ($this->response === false) |
|
| 157 | + \StatisticClient::report('Parallels', 'addNoteToKey', false, 1, 'XML Call Error', STATISTICS_SERVER); |
|
| 158 | + else |
|
| 159 | + \StatisticClient::report('Parallels', 'addNoteToKey', true, 0, '', STATISTICS_SERVER); |
|
| 160 | 160 | return $this->response; |
| 161 | 161 | } |
| 162 | 162 | |
@@ -167,16 +167,16 @@ discard block |
||
| 167 | 167 | */ |
| 168 | 168 | public function sendKeyByEmail($key, $email = false) |
| 169 | 169 | { |
| 170 | - \StatisticClient::tick('Parallels', 'sendKeyByEmail'); |
|
| 170 | + \StatisticClient::tick('Parallels', 'sendKeyByEmail'); |
|
| 171 | 171 | if ($email === false) { |
| 172 | 172 | $this->response = $this->xml->__call('partner10.sendKeyByEmail', [$this->authInfo(), $key]); |
| 173 | 173 | } else { |
| 174 | 174 | $this->response = $this->xml->__call('partner10.sendKeyByEmail', [$this->authInfo(), $key, $email]); |
| 175 | 175 | } |
| 176 | - if ($this->response === false) |
|
| 177 | - \StatisticClient::report('Parallels', 'sendKeyByEmail', false, 1, 'XML Call Error', STATISTICS_SERVER); |
|
| 178 | - else |
|
| 179 | - \StatisticClient::report('Parallels', 'sendKeyByEmail', true, 0, '', STATISTICS_SERVER); |
|
| 176 | + if ($this->response === false) |
|
| 177 | + \StatisticClient::report('Parallels', 'sendKeyByEmail', false, 1, 'XML Call Error', STATISTICS_SERVER); |
|
| 178 | + else |
|
| 179 | + \StatisticClient::report('Parallels', 'sendKeyByEmail', true, 0, '', STATISTICS_SERVER); |
|
| 180 | 180 | return $this->response; |
| 181 | 181 | } |
| 182 | 182 | |
@@ -194,7 +194,7 @@ discard block |
||
| 194 | 194 | if (!is_array($ips) && $ips != '') { |
| 195 | 195 | $ips = [$ips]; |
| 196 | 196 | } |
| 197 | - \StatisticClient::tick('Parallels', 'createKey'); |
|
| 197 | + \StatisticClient::tick('Parallels', 'createKey'); |
|
| 198 | 198 | $this->response = $this->xml->__call('partner10.createKey', [ |
| 199 | 199 | $this->authInfo(), |
| 200 | 200 | $this->serverAddress($ips, $macs), $client === false ? $this->client : $client, |
@@ -202,10 +202,10 @@ discard block |
||
| 202 | 202 | $upgradePlans, $licenseType === false ? $this->licenseType : $licenseType |
| 203 | 203 | ] |
| 204 | 204 | ); |
| 205 | - if ($this->response === false) |
|
| 206 | - \StatisticClient::report('Parallels', 'createKey', false, 1, 'XML Call Error', STATISTICS_SERVER); |
|
| 207 | - else |
|
| 208 | - \StatisticClient::report('Parallels', 'createKey', true, 0, '', STATISTICS_SERVER); |
|
| 205 | + if ($this->response === false) |
|
| 206 | + \StatisticClient::report('Parallels', 'createKey', false, 1, 'XML Call Error', STATISTICS_SERVER); |
|
| 207 | + else |
|
| 208 | + \StatisticClient::report('Parallels', 'createKey', true, 0, '', STATISTICS_SERVER); |
|
| 209 | 209 | return $this->response; |
| 210 | 210 | /* Success: |
| 211 | 211 | Array |
@@ -242,12 +242,12 @@ discard block |
||
| 242 | 242 | */ |
| 243 | 243 | public function retrieveKey($key) |
| 244 | 244 | { |
| 245 | - \StatisticClient::tick('Parallels', 'retrieveKey'); |
|
| 245 | + \StatisticClient::tick('Parallels', 'retrieveKey'); |
|
| 246 | 246 | $this->response = $this->xml->__call('partner10.retrieveKey', [$this->authInfo(), $key]); |
| 247 | - if ($this->response === false) |
|
| 248 | - \StatisticClient::report('Parallels', 'retrieveKey', false, 1, 'XML Call Error', STATISTICS_SERVER); |
|
| 249 | - else |
|
| 250 | - \StatisticClient::report('Parallels', 'retrieveKey', true, 0, '', STATISTICS_SERVER); |
|
| 247 | + if ($this->response === false) |
|
| 248 | + \StatisticClient::report('Parallels', 'retrieveKey', false, 1, 'XML Call Error', STATISTICS_SERVER); |
|
| 249 | + else |
|
| 250 | + \StatisticClient::report('Parallels', 'retrieveKey', true, 0, '', STATISTICS_SERVER); |
|
| 251 | 251 | return $this->response; |
| 252 | 252 | /* Success |
| 253 | 253 | Array |
@@ -409,12 +409,12 @@ discard block |
||
| 409 | 409 | */ |
| 410 | 410 | public function getAvailableUpgrades($key) |
| 411 | 411 | { |
| 412 | - \StatisticClient::tick('Parallels', 'getAvailableUpgrades'); |
|
| 412 | + \StatisticClient::tick('Parallels', 'getAvailableUpgrades'); |
|
| 413 | 413 | $this->response = $this->xml->__call('partner10.getAvailableUpgrades', [$this->authInfo(), $key]); |
| 414 | - if ($this->response === false) |
|
| 415 | - \StatisticClient::report('Parallels', 'getAvailableUpgrades', false, 1, 'XML Call Error', STATISTICS_SERVER); |
|
| 416 | - else |
|
| 417 | - \StatisticClient::report('Parallels', 'getAvailableUpgrades', true, 0, '', STATISTICS_SERVER); |
|
| 414 | + if ($this->response === false) |
|
| 415 | + \StatisticClient::report('Parallels', 'getAvailableUpgrades', false, 1, 'XML Call Error', STATISTICS_SERVER); |
|
| 416 | + else |
|
| 417 | + \StatisticClient::report('Parallels', 'getAvailableUpgrades', true, 0, '', STATISTICS_SERVER); |
|
| 418 | 418 | return $this->response; |
| 419 | 419 | } |
| 420 | 420 | |
@@ -584,12 +584,12 @@ discard block |
||
| 584 | 584 | */ |
| 585 | 585 | public function getKeyInfo($key) |
| 586 | 586 | { |
| 587 | - \StatisticClient::tick('Parallels', 'getKeyInfo'); |
|
| 587 | + \StatisticClient::tick('Parallels', 'getKeyInfo'); |
|
| 588 | 588 | $this->response = $this->xml->__call('partner10.getKeyInfo', [$this->authInfo(), $key]); |
| 589 | - if ($this->response === false) |
|
| 590 | - \StatisticClient::report('Parallels', 'getKeyInfo', false, 1, 'XML Call Error', STATISTICS_SERVER); |
|
| 591 | - else |
|
| 592 | - \StatisticClient::report('Parallels', 'getKeyInfo', true, 0, '', STATISTICS_SERVER); |
|
| 589 | + if ($this->response === false) |
|
| 590 | + \StatisticClient::report('Parallels', 'getKeyInfo', false, 1, 'XML Call Error', STATISTICS_SERVER); |
|
| 591 | + else |
|
| 592 | + \StatisticClient::report('Parallels', 'getKeyInfo', true, 0, '', STATISTICS_SERVER); |
|
| 593 | 593 | return $this->response; |
| 594 | 594 | } |
| 595 | 595 | |
@@ -624,12 +624,12 @@ discard block |
||
| 624 | 624 | */ |
| 625 | 625 | public function getKeysInfoByIP($ipAddress) |
| 626 | 626 | { |
| 627 | - \StatisticClient::tick('Parallels', 'getKeysInfoByIP'); |
|
| 627 | + \StatisticClient::tick('Parallels', 'getKeysInfoByIP'); |
|
| 628 | 628 | $this->response = $this->xml->__call('partner10.getKeysInfoByIP', [$this->authInfo(), $ipAddress]); |
| 629 | - if ($this->response === false) |
|
| 630 | - \StatisticClient::report('Parallels', 'getKeysInfoByIP', false, 1, 'XML Call Error', STATISTICS_SERVER); |
|
| 631 | - else |
|
| 632 | - \StatisticClient::report('Parallels', 'getKeysInfoByIP', true, 0, '', STATISTICS_SERVER); |
|
| 629 | + if ($this->response === false) |
|
| 630 | + \StatisticClient::report('Parallels', 'getKeysInfoByIP', false, 1, 'XML Call Error', STATISTICS_SERVER); |
|
| 631 | + else |
|
| 632 | + \StatisticClient::report('Parallels', 'getKeysInfoByIP', true, 0, '', STATISTICS_SERVER); |
|
| 633 | 633 | return $this->response; |
| 634 | 634 | } |
| 635 | 635 | |
@@ -641,13 +641,13 @@ discard block |
||
| 641 | 641 | public function getKeyNumbers($ips = [], $macs = []) |
| 642 | 642 | { |
| 643 | 643 | myadmin_log('licenses', 'info', json_encode($this->serverAddress($ips, $macs)), __LINE__, __FILE__); |
| 644 | - \StatisticClient::tick('Parallels', 'getKeyNumbers'); |
|
| 644 | + \StatisticClient::tick('Parallels', 'getKeyNumbers'); |
|
| 645 | 645 | $this->response = $this->xml->__call('partner10.getKeyNumbers', [$this->authInfo(), $this->serverAddress($ips, $macs)]); |
| 646 | - if ($this->response === false) |
|
| 647 | - \StatisticClient::report('Parallels', 'getKeyNumbers', false, 1, 'XML Call Error', STATISTICS_SERVER); |
|
| 648 | - else |
|
| 649 | - \StatisticClient::report('Parallels', 'getKeyNumbers', true, 0, '', STATISTICS_SERVER); |
|
| 650 | - return $this->response; |
|
| 646 | + if ($this->response === false) |
|
| 647 | + \StatisticClient::report('Parallels', 'getKeyNumbers', false, 1, 'XML Call Error', STATISTICS_SERVER); |
|
| 648 | + else |
|
| 649 | + \StatisticClient::report('Parallels', 'getKeyNumbers', true, 0, '', STATISTICS_SERVER); |
|
| 650 | + return $this->response; |
|
| 651 | 651 | /* Success |
| 652 | 652 | Array |
| 653 | 653 | ( |
@@ -775,12 +775,12 @@ discard block |
||
| 775 | 775 | */ |
| 776 | 776 | public function getAvailableKeyTypesAndFeatures($client = false) |
| 777 | 777 | { |
| 778 | - \StatisticClient::tick('Parallels', 'getAvailableKeyTypesAndFeatures'); |
|
| 778 | + \StatisticClient::tick('Parallels', 'getAvailableKeyTypesAndFeatures'); |
|
| 779 | 779 | $this->response = $this->xml->__call('partner10.getAvailableKeyTypesAndFeatures', [$this->authInfo(), $client === false ? $this->client : $client]); |
| 780 | - if ($this->response === false) |
|
| 781 | - \StatisticClient::report('Parallels', 'getAvailableKeyTypesAndFeatures', false, 1, 'XML Call Error', STATISTICS_SERVER); |
|
| 782 | - else |
|
| 783 | - \StatisticClient::report('Parallels', 'getAvailableKeyTypesAndFeatures', true, 0, '', STATISTICS_SERVER); |
|
| 780 | + if ($this->response === false) |
|
| 781 | + \StatisticClient::report('Parallels', 'getAvailableKeyTypesAndFeatures', false, 1, 'XML Call Error', STATISTICS_SERVER); |
|
| 782 | + else |
|
| 783 | + \StatisticClient::report('Parallels', 'getAvailableKeyTypesAndFeatures', true, 0, '', STATISTICS_SERVER); |
|
| 784 | 784 | return $this->response; |
| 785 | 785 | /* My Output: |
| 786 | 786 | Array |