|
|
@@ -282,7 +282,7 @@ function cwp7_ClientArea($params) {
|
|
|
$response
|
|
|
);
|
|
|
}
|
|
|
- cwp7CheckLimit($params,'test');
|
|
|
+ cwp7CheckLimit($params,'domain');
|
|
|
|
|
|
$domains = $response['result']['domains'];
|
|
|
$subDomains = $response['result']['subdomins'];
|
|
|
@@ -1156,13 +1156,13 @@ function cwp7CheckSOA($domain, $nameserverIP, $nameserverName ) {
|
|
|
* Check limits for a service of an account .
|
|
|
*
|
|
|
* @param array $params common module parameters
|
|
|
- * @param string $service target service for check
|
|
|
+ * @param string $type domain|subdomain
|
|
|
*
|
|
|
* @see https://developers.whmcs.com/provisioning-modules/supported-functions/
|
|
|
*
|
|
|
* @return bool 'none' -> not registered, 'self' -> registered at own or the name of an other responsible nameserver
|
|
|
*/
|
|
|
-function cwp7CheckLimit($params, $service) {
|
|
|
+function cwp7CheckLimit($params, $type) {
|
|
|
$cwp7 = new cwp7_Admin($params['serverhostname'], $params['serveraccesshash']);
|
|
|
$response = $cwp7->getQuota($params['username']);
|
|
|
logModuleCall(
|
|
|
@@ -1170,6 +1170,6 @@ function cwp7CheckLimit($params, $service) {
|
|
|
__FUNCTION__,
|
|
|
$response,
|
|
|
'debug',
|
|
|
- $service
|
|
|
+ $type
|
|
|
);
|
|
|
}
|