diff -r 2cd8c1649ba9 -r 58094faf794d edit_record.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/edit_record.php Tue Apr 10 22:40:43 2007 +0000 @@ -0,0 +1,123 @@ + trancer nl> | +// | Sjeemz sjeemz nl> | +// +--------------------------------------------------------------------+ + +// +// $Id: edit_record.php,v 1.9 2003/05/14 22:48:13 azurazu Exp $ +// + +require_once("inc/toolkit.inc.php"); + +if (isset($_GET["delid"])) { + $db->query("DELETE FROM record_owners WHERE id='".$_GET["delid"]."'"); +} + +$xsid = (isset($_GET['id'])) ? $_GET['id'] : $_POST['recordid']; + +if(!xs(recid_to_domid($xsid))) +{ + error(ERR_RECORD_ACCESS_DENIED); +} + +/* +if($_SESSION["partial_".get_domain_name_from_id($_GET["domain"])] == 1 && !isset($_POST["recordid"])) +{ + $checkPartial = $db->getOne("SELECT id FROM record_owners WHERE record_id='".$_GET["id"]."' AND user_id='".$_SESSION["userid"]."' LIMIT 1"); + if (empty($checkPartial)) { + error(ERR_RECORD_ACCESS_DENIED); + } +} +*/ + +if ($_POST["commit"]) +{ + edit_record($_POST["recordid"], $_POST["domainid"], $_POST["name"], $_POST["type"], $_POST["content"], $_POST["ttl"], $_POST["prio"]); + clean_page("edit.php?id=".$_POST["domainid"]); +} elseif($_SESSION["partial_".get_domain_name_from_id($_GET["domain"])] == 1) +{ + $checkPartial = $db->getOne("SELECT id FROM record_owners WHERE record_id='".$_GET["id"]."' AND user_id='".$_SESSION["userid"]."' LIMIT 1"); + if (empty($checkPartial)) { + error(ERR_RECORD_ACCESS_DENIED); + } +} + + +include_once("inc/header.inc.php"); + +?> +

Edit record in zone ""

+
DNS Admin >> "> >> Edit record

+ +
+"> +"> + + + + + + +
Name TypePriorityContentTimeToLive
+ + + +" CLASS="input"> + + + +" CLASS="input"> + +.IN" CLASS="sinput">" CLASS="input">" CLASS="sinput">
+
   +
+ + + + +query("SELECT r.id,u.username FROM record_owners as r, users as u WHERE r.record_id='".$_GET['id']."' AND u.id=r.user_id"); +while ($x_r = $x_result->fetchRow()) { + echo ""; +} +?> +
Sub-users
".$x_r["username"].""; + echo ""; + echo "\"trash\"
+