inc/dns.inc.php
changeset 94 6b4d19ef3de4
parent 82 c255196bc447
child 95 737a213ad90c
equal deleted inserted replaced
93:92901b76946a 94:6b4d19ef3de4
    66 		$wildcard = true;
    66 		$wildcard = true;
    67 	} else {
    67 	} else {
    68 		$wildcard = false;
    68 		$wildcard = false;
    69 	}
    69 	}
    70 
    70 
    71 // TODO:	Needs to be checked what this is good for. Since we started insert an array
    71 	if ($name == "" || $name == "@") {
    72 //		in functions like edit_record, "name"'s like "sub-fqdn.example.net" became 
    72 		$name = $domain;
    73 //		"sub-fqdn.example.net.example.net". 
    73 	}
    74 //	if ($name=="0") {
       
    75 //		$name=$name.".".$domain;
       
    76 //	} else {
       
    77 //		$name = ($name) ? $name.".".$domain : $domain;
       
    78 //	}
       
    79 
    74 
    80 	if (preg_match('!@\.!i', $name))
    75 	if (preg_match('!@\.!i', $name))
    81 	{
    76 	{
    82 		$name = str_replace('@.', '@', $name);
    77 		$name = str_replace('@.', '@', $name);
    83 	}
    78 	}