code cleanup & minor fixes
This commit is contained in:
parent
adeb67fcc1
commit
25fde61aa5
1 changed files with 2 additions and 18 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue