code cleanup & minor fixes

This commit is contained in:
sparc 2003-02-16 16:31:26 +00:00
parent adeb67fcc1
commit 25fde61aa5

View file

@ -81,7 +81,8 @@ while (list($key,$val)=each($rawdata))
if ($hasdata) $blocks[$gkey]=$block;
if (is_array($disclaimer)) $ret["disclaimer"]=$disclaimer;
if (isset($disclaimer) && is_array($disclaimer))
$ret["disclaimer"]=$disclaimer;
if (!is_array($blocks["main"]))
{ $ret["registered"]="no";
@ -99,23 +100,6 @@ while (list($key,$val)=each($contacts))
unset($r[$key]);
}
/*
if (is_array($r["descr"]))
{ $ret["owner"]["address"]=$r["descr"];
unset($r["descr"]);
}
while (list($key,$val)=each($r))
{ switch ($key)
{ case "domain": $ret["domain"]["name"]=$val; break;
case "changed":
case "nserver": $ret["domain"][$key]=$val; break;
default: $ret["owner"][$key]=$val;
}
}
*/
$ret["domain"]=$r;
return $ret;
}