|
|
@@ -19,6 +19,7 @@ if (!defined('WHMCS')) {
|
|
|
}
|
|
|
|
|
|
const NS1 = '10.200.22.100';
|
|
|
+const NSTHURDATA = 'ns1.thurdata.ch';
|
|
|
|
|
|
function cwp7_MetaData() {
|
|
|
return array(
|
|
|
@@ -163,9 +164,6 @@ function cwp7_UnsuspendAccount($params) {
|
|
|
}
|
|
|
|
|
|
function cwp7_ClientArea($params){
|
|
|
- //debug
|
|
|
-// $params['username'] = 'thurdata';
|
|
|
- //debug
|
|
|
$clientInfo = array('moduleclientarea' => '1');
|
|
|
$cwp7 = new cwp7_Admin($params['serverhostname'], $params['serveraccesshash']);
|
|
|
$response = $cwp7->getAutoSSL($params['username']);
|
|
|
@@ -229,13 +227,6 @@ function cwp7_ClientArea($params){
|
|
|
array_push($clientInfo['domains'], $domain);
|
|
|
}
|
|
|
}
|
|
|
- logModuleCall(
|
|
|
- 'cwp7',
|
|
|
- __FUNCTION__,
|
|
|
- $response,
|
|
|
- 'debug',
|
|
|
- $params
|
|
|
- );
|
|
|
return array(
|
|
|
'tabOverviewReplacementTemplate' => 'clientarea',
|
|
|
'vars' => $clientInfo,
|
|
|
@@ -404,8 +395,8 @@ function cwp7CheckSOA($domain) {
|
|
|
return 'none';
|
|
|
}
|
|
|
|
|
|
-// if($result->answer[0]['mname'] == NSTHURDATA) {
|
|
|
-// return 'self';
|
|
|
-// }
|
|
|
+ if($result->answer[0]->mname == NSTHURDATA) {
|
|
|
+ return 'self';
|
|
|
+ }
|
|
|
return $result->answer[0]->mname;
|
|
|
}
|