equal
deleted
inserted
replaced
24 $xsid = (isset($_GET['id'])) ? $_GET['id'] : $_POST['zoneid']; |
24 $xsid = (isset($_GET['id'])) ? $_GET['id'] : $_POST['zoneid']; |
25 if ((!level(5)) && ((!xs($xsid) || ($_SESSION[$xsid.'_ispartial'])))) { |
25 if ((!level(5)) && ((!xs($xsid) || ($_SESSION[$xsid.'_ispartial'])))) { |
26 error(ERR_RECORD_ACCESS_DENIED); |
26 error(ERR_RECORD_ACCESS_DENIED); |
27 } |
27 } |
28 |
28 |
29 if ($_POST["commit"]) { |
29 if (isset($_POST["commit"]) && isset($_POST['zoneid']) && isset($_POST['name']) && isset($_POST['type']) && isset($_POST['content']) && isset($_POST['ttl']) && isset($_POST['prio']) ) { |
30 $ret = add_record($_POST["zoneid"], $_POST["name"], $_POST["type"], $_POST["content"], $_POST["ttl"], $_POST["prio"]); |
30 $ret = add_record($_POST["zoneid"], $_POST["name"], $_POST["type"], $_POST["content"], $_POST["ttl"], $_POST["prio"]); |
31 if ($ret != '1') { |
31 if ($ret != '1') { |
32 die("$ret"); |
32 die("$ret"); |
33 } |
33 } |
34 clean_page("edit.php?id=".$_POST["zoneid"]); |
34 clean_page("edit.php?id=".$_POST["zoneid"]); |
61 if (eregi('in-addr.arpa', $dname) && strtoupper($c) == 'PTR') { |
61 if (eregi('in-addr.arpa', $dname) && strtoupper($c) == 'PTR') { |
62 $add = " SELECTED"; |
62 $add = " SELECTED"; |
63 } elseif (strtoupper($c) == 'A') { |
63 } elseif (strtoupper($c) == 'A') { |
64 $add = " SELECTED"; |
64 $add = " SELECTED"; |
65 } else { |
65 } else { |
66 unset($add); |
66 $add = ''; |
67 } |
67 } |
68 ?><option<?php echo $add ?> value="<?php echo $c ?>"><?php echo $c ?></option><?php |
68 ?><option<?php echo $add ?> value="<?php echo $c ?>"><?php echo $c ?></option><?php |
69 } |
69 } |
70 ?> |
70 ?> |
71 </select> |
71 </select> |