|
@@ -107,6 +107,9 @@ discard block |
|
|
block discarded – undo |
|
107
|
107
|
return $ret; |
|
108
|
108
|
} |
|
109
|
109
|
|
|
|
110
|
+ /** |
|
|
111
|
+ * @param string $level |
|
|
112
|
+ */ |
|
110
|
113
|
public function log($level, $text, $line = '', $file = '') { |
|
111
|
114
|
if (function_exists('myadmin_log')) |
|
112
|
115
|
myadmin_log('cloudlinux', $level, $text, $line, $file); |
|
@@ -243,8 +246,8 @@ discard block |
|
|
block discarded – undo |
|
243
|
246
|
* or |
|
244
|
247
|
* Remove IP licenses with specified type for customer. Also unÂregisters from CLN server associated with IP. |
|
245
|
248
|
* @param string $ip ip address to remove |
|
246
|
|
- * @param bool|false|int $type optional parameter to specify the type of license to remove (1,2, or 16) |
|
247
|
|
- * @return integer 0 on success, -1 on error, Error will be returned also if account have no licenses for provided IP. |
|
|
249
|
+ * @param integer $type optional parameter to specify the type of license to remove (1,2, or 16) |
|
|
250
|
+ * @return boolean 0 on success, -1 on error, Error will be returned also if account have no licenses for provided IP. |
|
248
|
251
|
*/ |
|
249
|
252
|
public function remove_license($ip, $type = false) { |
|
250
|
253
|
$this->log('info', "Calling CLoudLinux->xml_client->remove_license({$this->authToken()}, {$ip}, {$type})", __LINE__, __FILE__); |
Please login to merge, or discard this patch.