|
|
@@ -158,16 +158,25 @@ function cwp7_UnsuspendAccount($params) {
|
|
|
}
|
|
|
|
|
|
function cwp7_ClientArea($params){
|
|
|
+ $clientInfo = array('moduleclientarea' => '1');
|
|
|
$cwp7 = new cwp7_Admin($params['serverhostname'], $params['serveraccesshash']);
|
|
|
$response = $cwp7->listDomains($params['username']);
|
|
|
+ if($response['status'] != 'OK') {
|
|
|
+ logModuleCall(
|
|
|
+ 'cwp7',
|
|
|
+ __FUNCTION__,
|
|
|
+ $params,
|
|
|
+ 'debug',
|
|
|
+ $response
|
|
|
+ );
|
|
|
+ }
|
|
|
logModuleCall(
|
|
|
'cwp7',
|
|
|
__FUNCTION__,
|
|
|
$params,
|
|
|
'debug',
|
|
|
$response
|
|
|
- );
|
|
|
- $clientInfo = array('moduleclientarea' => '1');
|
|
|
+ );
|
|
|
return array(
|
|
|
'tabOverviewReplacementTemplate' => 'clientarea',
|
|
|
'vars' => $clientInfo,
|