Sfoglia il codice sorgente

clientareafunctions

andre 3 anni fa
parent
commit
91c297577c
1 ha cambiato i file con 6 aggiunte e 1 eliminazioni
  1. 6 1
      cwp7.php

+ 6 - 1
cwp7.php

@@ -394,6 +394,11 @@ function cwp7CheckSOA($domain) {
 		}
 		fclose($conn);
 		$responseArray = str_getcsv($response, "\n");
+		foreach($responseArray as $row) {
+			if(str_starts_with($row, 'whois')) {
+				$whoisServer = array_slice(explode(':', $domain), -1, 1);
+			}
+		}
 	} else {
 		logModuleCall(
 			'cwp7',
@@ -409,7 +414,7 @@ function cwp7CheckSOA($domain) {
 		__FUNCTION__,
 		$tld[0],
 		'debug2',
-		$responseArray
+		$whoisServer
 	);
 	return 'none';
 }