|
@@ 124-134 (lines=11) @@
|
| 121 |
|
return $this->get("XMLlicenseExpire.cgi", $args); |
| 122 |
|
} |
| 123 |
|
|
| 124 |
|
public function extendOnetimeUpdates($args) { |
| 125 |
|
if (!array_key_exists("ip", $args)) { |
| 126 |
|
error_log("cpanelLicensing::extendOnetimeUpdates requires that the element ip exists in the array is passed to it"); |
| 127 |
|
return; |
| 128 |
|
} |
| 129 |
|
if (!$this->validateIP($args['ip'])) { |
| 130 |
|
error_log("cpanelLicensing::extendOnetimeUpdates was passed an invalid ip"); |
| 131 |
|
return; |
| 132 |
|
} |
| 133 |
|
return $this->get("XMLonetimeext.cgi", $args); |
| 134 |
|
} |
| 135 |
|
|
| 136 |
|
public function changeip($args) { |
| 137 |
|
if (!array_key_exists("oldip", $args) || !array_key_exists("newip", $args)) { |
|
@@ 221-231 (lines=11) @@
|
| 218 |
|
return $this->get("XMLgroupInfo.cgi"); |
| 219 |
|
} |
| 220 |
|
|
| 221 |
|
public function fetchLicenseRiskData($args) { |
| 222 |
|
if (!array_key_exists("ip", $args)) { |
| 223 |
|
error_log("cpanelLicensing::fetchLicenseRiskData requires that ip exists as an element in the array is passed to it"); |
| 224 |
|
return; |
| 225 |
|
} |
| 226 |
|
if (!$this->validateIP($args['ip'])) { |
| 227 |
|
error_log("cpanelLicensing::fetchLicenseRiskData was passed an invalid ip"); |
| 228 |
|
return; |
| 229 |
|
} |
| 230 |
|
return $this->get("XMLsecverify.cgi", $args); |
| 231 |
|
} |
| 232 |
|
|
| 233 |
|
public function fetchLicenseRaw($args) { |
| 234 |
|
$args = array_merge(array("all" => 1), $args); |