|
@@ -201,7 +201,7 @@ function cwp7_ClientArea($params){
|
|
|
$domain['sslexpire'] = $sslSites[$domain['domain']]['expire'];
|
|
$domain['sslexpire'] = $sslSites[$domain['domain']]['expire'];
|
|
|
$domain['autossl'] = $sslSites[$domain['domain']]['auotssl'];
|
|
$domain['autossl'] = $sslSites[$domain['domain']]['auotssl'];
|
|
|
}
|
|
}
|
|
|
- if(cwp7CheckDNS($domain['domain']) == 1) {
|
|
|
|
|
|
|
+ if(cwp7CheckDNS($domain['domain'],$params['serverip']) == 1) {
|
|
|
$domain['DNS'] = 1;
|
|
$domain['DNS'] = 1;
|
|
|
}
|
|
}
|
|
|
$domain['subdomains'] = array();
|
|
$domain['subdomains'] = array();
|
|
@@ -217,7 +217,7 @@ function cwp7_ClientArea($params){
|
|
|
unset($subDomain['sslexpire']);
|
|
unset($subDomain['sslexpire']);
|
|
|
unset($subDomain['autossl']);
|
|
unset($subDomain['autossl']);
|
|
|
}
|
|
}
|
|
|
- if(cwp7CheckDNS($domain['domain']) == 1) {
|
|
|
|
|
|
|
+ if(cwp7CheckDNS($domain['domain'],$params['serverip']) == 1) {
|
|
|
$subDomain['DNS'] = 1;
|
|
$subDomain['DNS'] = 1;
|
|
|
} else {
|
|
} else {
|
|
|
unset($subDomain['DNS']);
|
|
unset($subDomain['DNS']);
|
|
@@ -322,7 +322,7 @@ function cwp7_UsageUpdate($params) {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-function cwp7CheckDNS($domain) {
|
|
|
|
|
|
|
+function cwp7CheckDNS($domain, $serverIP) {
|
|
|
$nameserver = array( NS1, NS2);
|
|
$nameserver = array( NS1, NS2);
|
|
|
$resolver = new Net_DNS2_Resolver(array('nameservers' => $nameserver));
|
|
$resolver = new Net_DNS2_Resolver(array('nameservers' => $nameserver));
|
|
|
try {
|
|
try {
|
|
@@ -338,9 +338,10 @@ function cwp7CheckDNS($domain) {
|
|
|
);
|
|
);
|
|
|
}
|
|
}
|
|
|
$domainA = $result->answer;
|
|
$domainA = $result->answer;
|
|
|
- if($domainA[0]->address == '85.25.4.56'){
|
|
|
|
|
|
|
+ if($domainA[0]->address == $serverIP){
|
|
|
return true;
|
|
return true;
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
logModuleCall(
|
|
logModuleCall(
|
|
|
'cwp7',
|
|
'cwp7',
|
|
|
__FUNCTION__,
|
|
__FUNCTION__,
|