@@ -48,7 +48,7 @@ class page_action extends dns_page_action {
protectedfunctioncheckDuplicate(){
global$app;
//* Check for duplicates where IP and hostname are the same
$tmp=$app->db->queryOneRecord("SELECT count(id) as number FROM dns_rr WHERE (type = 'A' AND name = ? AND zone = ? and data = ? and id != ?) OR (type = 'CNAME' AND name = ? AND zone = ? and id != ?) OR (type = 'DNAME' AND name = ? AND zone = ? and id != ?)",$this->dataRecord["name"],$this->dataRecord["zone"],$this->dataRecord["data"],$this->id,$this->dataRecord["name"],$this->dataRecord["zone"],$this->id,$this->dataRecord["name"],$this->dataRecord["zone"],$this->id);
$tmp=$app->db->queryOneRecord("SELECT count(id) as number FROM dns_rr WHERE (type = 'A' AND name = ? AND zone = ? and data = ? and id != ?) OR (type = 'CNAME' AND name = ? AND zone = ? and id != ?)",$this->dataRecord["name"],$this->dataRecord["zone"],$this->dataRecord["data"],$this->id,$this->dataRecord["name"],$this->dataRecord["zone"],$this->id);
@@ -48,7 +48,7 @@ class page_action extends dns_page_action {
protectedfunctioncheckDuplicate(){
global$app;
//* Check for duplicates where IP and hostname are the same
$tmp=$app->db->queryOneRecord("SELECT count(id) as number FROM dns_rr WHERE (type = 'AAAA' AND name = ? AND zone = ? and data = ? and id != ?) OR (type = 'CNAME' AND name = ? AND zone = ? and id != ?) OR (type = 'DNAME' AND name = ? AND zone = ? and id != ?)",$this->dataRecord["name"],$this->dataRecord["zone"],$this->dataRecord["data"],$this->id,$this->dataRecord["name"],$this->dataRecord["zone"],$this->id,$this->dataRecord["name"],$this->dataRecord["zone"],$this->id);
$tmp=$app->db->queryOneRecord("SELECT count(id) as number FROM dns_rr WHERE (type = 'AAAA' AND name = ? AND zone = ? and data = ? and id != ?) OR (type = 'CNAME' AND name = ? AND zone = ? and id != ?)",$this->dataRecord["name"],$this->dataRecord["zone"],$this->dataRecord["data"],$this->id,$this->dataRecord["name"],$this->dataRecord["zone"],$this->id);
@@ -48,7 +48,7 @@ class page_action extends dns_page_action {
protectedfunctioncheckDuplicate(){
global$app;
//* Check for duplicates where IP and hostname are the same
$tmp=$app->db->queryOneRecord("SELECT count(id) as number FROM dns_rr WHERE (type = 'A' AND name = ? AND zone = ? and id != ?) OR (type = 'AAAA' AND name = ? AND zone = ? and id != ?) OR (type = 'CNAME' AND name = ? AND zone = ? and id != ?) OR (type = 'DNAME' AND name = ? AND zone = ? and id != ?)",$this->dataRecord["name"],$this->dataRecord["zone"],$this->id,$this->dataRecord["name"],$this->dataRecord["zone"],$this->id,$this->dataRecord["name"],$this->dataRecord["zone"],$this->id,$this->dataRecord["name"],$this->dataRecord["zone"],$this->id);
$tmp=$app->db->queryOneRecord("SELECT count(id) as number FROM dns_rr WHERE (type = 'CNAME' AND name = ? AND zone = ? and id != ?) OR (type = 'DNAME' AND name = ? AND zone = ? and id != ?)",$this->dataRecord["name"],$this->dataRecord["zone"],$this->id,$this->dataRecord["name"],$this->dataRecord["zone"],$this->id);