inc/record.inc.php
changeset 128 12f5e0869676
parent 127 e2c54e888f7e
child 133 7863d881b8a5
equal deleted inserted replaced
127:e2c54e888f7e 128:12f5e0869676
   110 			return false;
   110 			return false;
   111 		}
   111 		}
   112 		global $db;
   112 		global $db;
   113 		// TODO: no need to check for numeric-ness of zone id if we check with validate_input as well?
   113 		// TODO: no need to check for numeric-ness of zone id if we check with validate_input as well?
   114 		if (is_numeric($record['zid'])) {
   114 		if (is_numeric($record['zid'])) {
   115 			debug_print($record['type']);
       
   116 			validate_input($record['zid'], $record['type'], $record['content'], $record['name'], $record['prio'], $record['ttl']);
   115 			validate_input($record['zid'], $record['type'], $record['content'], $record['name'], $record['prio'], $record['ttl']);
   117 			$query = "UPDATE records 
   116 			$query = "UPDATE records 
   118 					SET name=".$db->quote($record['name']).", 
   117 					SET name=".$db->quote($record['name']).", 
   119 					type=".$db->quote($record['type']).", 
   118 					type=".$db->quote($record['type']).", 
   120 					content=".$db->quote($record['content']).", 
   119 					content=".$db->quote($record['content']).",