|
|
@@ -464,40 +464,6 @@ function cwp7_UsageUpdate($params) {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-/**
|
|
|
- * Additional actions a client user can invoke.
|
|
|
- *
|
|
|
- * Define additional actions a client user can perform for an instance of a
|
|
|
- * product/service.
|
|
|
- *
|
|
|
- * Any actions you define here will be automatically displayed in the available
|
|
|
- * list of actions within the client area.
|
|
|
- *
|
|
|
- * @return array
|
|
|
- */
|
|
|
-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
|
|
|
- );
|
|
|
- }
|
|
|
- if(count($response['result']['domains']) < 2) {
|
|
|
- return array(
|
|
|
- 'Neue Domaine' => 'newDomain',
|
|
|
- );
|
|
|
- };
|
|
|
- return array(
|
|
|
- 'Neue Domaine' => 'newDomain',
|
|
|
- 'Neue Subdomaine' => 'newSubdomain',
|
|
|
- );
|
|
|
-}
|
|
|
-
|
|
|
/**
|
|
|
* Additional actions a client user can invoke.
|
|
|
*
|