inc/dns.inc.php
changeset 136 c795dd75a77e
parent 122 2e2cc9cfa115
child 138 3e36ebbfe048
equal deleted inserted replaced
135:3673b1c9246c 136:c795dd75a77e
   176 		}
   176 		}
   177 	} else {
   177 	} else {
   178 		$prio=0;
   178 		$prio=0;
   179 	}
   179 	}
   180 	// Validate the TTL, it has to be numeric.
   180 	// Validate the TTL, it has to be numeric.
   181 	$ttl = (!isset($ttl) || !is_numeric($ttl)) ? $DEFAULT_TTL : $ttl;
   181 	$ttl = (!isset($ttl) || !is_numeric($ttl)) ? $dns_ttl : $ttl;
   182 	
   182 	
   183 	return true;
   183 	return true;
   184 }
   184 }
   185 
   185 
   186 
   186 
   437 
   437 
   438 		if(count($soacontent) > 1) {
   438 		if(count($soacontent) > 1) {
   439 			if(is_numeric($soacontent[1])) {
   439 			if(is_numeric($soacontent[1])) {
   440 				// its a TTL field, or at least not hostmaster or alike
   440 				// its a TTL field, or at least not hostmaster or alike
   441 				// Set final string to the default hostmaster addy
   441 				// Set final string to the default hostmaster addy
   442 				global $HOSTMASTER;
   442 				global $dns_hostmaster;
   443 				$totalsoa .= " ". $HOSTMASTER;
   443 				$totalsoa .= " ". $dns_hostmaster;
   444 			} else {
   444 			} else {
   445 				$totalsoa .= " ".$soacontent[1];
   445 				$totalsoa .= " ".$soacontent[1];
   446 			}
   446 			}
   447 			// For loop to iterate over the numbers
   447 			// For loop to iterate over the numbers
   448 			$imax = count($soacontent);
   448 			$imax = count($soacontent);