|
|
@@ -319,6 +319,29 @@ function cwp7_UsageUpdate($params) {
|
|
|
}
|
|
|
|
|
|
function cwp7_ClientAreaCustomButtonArray ($params) {
|
|
|
+ $cwp7 = new cwp7_Admin($params['serverhostname'], $params['serveraccesshash']);
|
|
|
+ $response = $cwp7->getAccount($params['username']);
|
|
|
+ if($response['status'] != 'OK') {
|
|
|
+ logModuleCall(
|
|
|
+ 'cwp7',
|
|
|
+ __FUNCTION__,
|
|
|
+ $params,
|
|
|
+ 'debug',
|
|
|
+ $response
|
|
|
+ );
|
|
|
+ }
|
|
|
+ logModuleCall(
|
|
|
+ 'cwp7',
|
|
|
+ __FUNCTION__,
|
|
|
+ $response,
|
|
|
+ 'debug',
|
|
|
+ count($response['result']['domains'])
|
|
|
+ );
|
|
|
+ if(count($response['result']['domains']) < 1) {
|
|
|
+ return array(
|
|
|
+ 'Neue Domaine' => 'newDomain',
|
|
|
+ );
|
|
|
+ };
|
|
|
return array(
|
|
|
'Neue Domaine' => 'newDomain',
|
|
|
'Neue Subdomaine' => 'newSubdomain',
|