edit_record.php
changeset 37 b785e54690ce
parent 13 2ff220cfde13
child 47 ae140472d97c
equal deleted inserted replaced
36:4ec5ab29f634 37:b785e54690ce
    17 {
    17 {
    18         edit_record($_POST["recordid"], $_POST["domainid"], $_POST["name"], $_POST["type"], $_POST["content"], $_POST["ttl"], $_POST["prio"]);
    18         edit_record($_POST["recordid"], $_POST["domainid"], $_POST["name"], $_POST["type"], $_POST["content"], $_POST["ttl"], $_POST["prio"]);
    19         clean_page("edit.php?id=".$_POST["domainid"]);
    19         clean_page("edit.php?id=".$_POST["domainid"]);
    20 } elseif($_SESSION["partial_".get_domain_name_from_id($_GET["domain"])] == 1)
    20 } elseif($_SESSION["partial_".get_domain_name_from_id($_GET["domain"])] == 1)
    21 {
    21 {
    22     $checkPartial = $db->getOne("SELECT id FROM record_owners WHERE record_id='".$_GET["id"]."' AND user_id='".$_SESSION["userid"]."' LIMIT 1");
    22     $checkPartial = $db->queryOne("SELECT id FROM record_owners WHERE record_id='".$_GET["id"]."' AND user_id='".$_SESSION["userid"]."' LIMIT 1");
    23     if (empty($checkPartial)) {
    23     if (empty($checkPartial)) {
    24         error(ERR_RECORD_ACCESS_DENIED);
    24         error(ERR_RECORD_ACCESS_DENIED);
    25     }
    25     }
    26 }
    26 }
    27 include_once("inc/header.inc.php");
    27 include_once("inc/header.inc.php");