inc/record.inc.php
changeset 127 e2c54e888f7e
parent 126 cb06e3e29ed8
child 128 12f5e0869676
equal deleted inserted replaced
126:cb06e3e29ed8 127:e2c54e888f7e
   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']);
   115 			validate_input($record['zid'], $record['type'], $record['content'], $record['name'], $record['prio'], $record['ttl']);
   116 			validate_input($record['zid'], $record['type'], $record['content'], $record['name'], $record['prio'], $record['ttl']);
   116 			$query = "UPDATE records 
   117 			$query = "UPDATE records 
   117 					SET name=".$db->quote($record['name']).", 
   118 					SET name=".$db->quote($record['name']).", 
   118 					type=".$db->quote($record['type']).", 
   119 					type=".$db->quote($record['type']).", 
   119 					content=".$db->quote($record['content']).", 
   120 					content=".$db->quote($record['content']).",