[feladat @ 82]
Fixed a bug in add_zone_master.php.
<?phprequire_once("inc/toolkit.inc.php");if($_POST["commit"]){$ret=add_record($_POST["zoneid"],$_POST["name"],$_POST["type"],$_POST["content"],$_POST["ttl"],$_POST["prio"]);if($ret!='1'){die("$ret");}clean_page("edit.php?id=".$_POST["zoneid"]);}include_once("inc/header.inc.php");?><h2><?echo_('Add record to zone');?>"<?echoget_domain_name_from_id($_GET["id"])?>"</H2><formmethod="post"><inputtype="hidden"name="zoneid"value="<?echo$_GET["id"]?>"><tableborder="0"cellspacing="4"><tr><tdclass="n"><?echo_('Name');?></td><tdclass="n"> </td><tdclass="n"><?echo_('Type');?></td><tdclass="n"><?echo_('Priority');?></td><tdclass="n"><?echo_('Content');?></td><tdclass="n"><?echo_('TTL');?></td></tr><tr><tdclass="n"><inputtype="text"name="name"class="input">.<?echoget_domain_name_from_id($_GET["id"])?></td><tdclass="n">IN</td><tdclass="n"><selectname="type"><?$dname=get_domain_name_from_id($_GET["id"]);foreach(get_record_types()as$c){if(eregi('in-addr.arpa',$dname)&&strtoupper($c)=='PTR'){$add=" SELECTED";}elseif(strtoupper($c)=='A'){$add=" SELECTED";}else{unset($add);}?><option<?echo$add?>value="<?echo$c?>"><?echo$c?></option><?}?></select></td><tdclass="n"><inputtype="text"name="prio"class="sinput"></td><tdclass="n"><inputtype="text"name="content"class="input"></td><tdclass="n"><inputtype="text"name="ttl"class="sinput"value="<?echo$DEFAULT_TTL?>"></td></tr></table><br><inputtype="submit"name="commit"value="<?echo_('Add record');?>"class="button"></form><?include_once("inc/footer.inc.php");?>