|
|
@@ -164,7 +164,19 @@ function cwp7_ClientArea($params){
|
|
|
$clientInfo = array('moduleclientarea' => '1');
|
|
|
$cwp7 = new cwp7_Admin($params['serverhostname'], $params['serveraccesshash']);
|
|
|
$response = $cwp7->getAutoSSL($params['username']);
|
|
|
- $clientInfo['ssl'] = $response;
|
|
|
+ if($response['status'] == 'OK') {
|
|
|
+ $sslSites = array();
|
|
|
+ foreach($response['msj'] as $sslSite) {
|
|
|
+ array_push(
|
|
|
+ $sslSites, array(
|
|
|
+ 'domain' => $sslSite['ssl'],
|
|
|
+ 'auotssl' => $sslSite['autossl'],
|
|
|
+ 'expire' => $sslSite['exp'],
|
|
|
+ )
|
|
|
+ );
|
|
|
+ }
|
|
|
+ }
|
|
|
+ $clientInfo['ssl'] = $sslSites;
|
|
|
$response = $cwp7->getAccount($params['username']);
|
|
|
if($response['status'] != 'OK') {
|
|
|
logModuleCall(
|
|
|
@@ -188,8 +200,8 @@ function cwp7_ClientArea($params){
|
|
|
if($subDomain['domain'] == $domain['domain']) {
|
|
|
array_push(
|
|
|
$domain['subdomains'], array(
|
|
|
- 'subdomain' => $subDomain['subdomain'],
|
|
|
- 'path' => $subDomain['path'],
|
|
|
+ 'subdomain' => $subDomain['subdomain'],
|
|
|
+ 'path' => $subDomain['path'],
|
|
|
)
|
|
|
);
|
|
|
}
|