|
@@ -353,13 +353,6 @@ function cwp7_ClientArea($params) {
|
|
|
array_push($clientInfo['domains'], $domain);
|
|
array_push($clientInfo['domains'], $domain);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- logModuleCall(
|
|
|
|
|
- 'cwp7',
|
|
|
|
|
- __FUNCTION__,
|
|
|
|
|
- $params,
|
|
|
|
|
- 'debug',
|
|
|
|
|
- $clientInfo
|
|
|
|
|
- );
|
|
|
|
|
return array(
|
|
return array(
|
|
|
'tabOverviewReplacementTemplate' => 'clientarea',
|
|
'tabOverviewReplacementTemplate' => 'clientarea',
|
|
|
'vars' => $clientInfo,
|
|
'vars' => $clientInfo,
|
|
@@ -380,13 +373,6 @@ function cwp7_ClientArea($params) {
|
|
|
function cwp7_ServiceSingleSignOn($params) {
|
|
function cwp7_ServiceSingleSignOn($params) {
|
|
|
$cwp7 = new cwp7_Admin($params['serverhostname'], $params['serveraccesshash']);
|
|
$cwp7 = new cwp7_Admin($params['serverhostname'], $params['serveraccesshash']);
|
|
|
$response = $cwp7->getLoginLink($params['username']);
|
|
$response = $cwp7->getLoginLink($params['username']);
|
|
|
- logModuleCall(
|
|
|
|
|
- 'cwp7',
|
|
|
|
|
- __FUNCTION__,
|
|
|
|
|
- $params,
|
|
|
|
|
- 'debug',
|
|
|
|
|
- $response
|
|
|
|
|
- );
|
|
|
|
|
if($response['status'] == 'OK') {
|
|
if($response['status'] == 'OK') {
|
|
|
$link = $response['msj']['details'];
|
|
$link = $response['msj']['details'];
|
|
|
$linkautologin = $link[0]['url'];
|
|
$linkautologin = $link[0]['url'];
|
|
@@ -475,6 +461,15 @@ function cwp7_UsageUpdate($params) {
|
|
|
$response = $cwp7->getAllAccounts();
|
|
$response = $cwp7->getAllAccounts();
|
|
|
if($response['status'] == 'OK'){
|
|
if($response['status'] == 'OK'){
|
|
|
$results = $response['msj'];
|
|
$results = $response['msj'];
|
|
|
|
|
+
|
|
|
|
|
+ logModuleCall(
|
|
|
|
|
+ 'cwp7',
|
|
|
|
|
+ __FUNCTION__,
|
|
|
|
|
+ $params,
|
|
|
|
|
+ 'debug',
|
|
|
|
|
+ $result
|
|
|
|
|
+ );
|
|
|
|
|
+
|
|
|
for($i = 0; $i < count($results); $i++){
|
|
for($i = 0; $i < count($results); $i++){
|
|
|
if($results[$i]['diskusage'] == '') {
|
|
if($results[$i]['diskusage'] == '') {
|
|
|
$diskusage = 0;
|
|
$diskusage = 0;
|