114 if (is_numeric($record['zid'])) { |
114 if (is_numeric($record['zid'])) { |
115 if (validate_input($record['zid'], $record['type'], $record['content'], $record['name'], $record['prio'], $record['ttl'])) { |
115 if (validate_input($record['zid'], $record['type'], $record['content'], $record['name'], $record['prio'], $record['ttl'])) { |
116 $query = "UPDATE records |
116 $query = "UPDATE records |
117 SET name=".$db->quote($record['name']).", |
117 SET name=".$db->quote($record['name']).", |
118 type=".$db->quote($record['type']).", |
118 type=".$db->quote($record['type']).", |
119 content=".$db->quote($record['content']).", |
119 content='" . $record['content'] . "', |
120 ttl=".$db->quote($record['ttl']).", |
120 ttl=".$db->quote($record['ttl']).", |
121 prio=".$db->quote($record['prio']).", |
121 prio=".$db->quote($record['prio']).", |
122 change_date=".$db->quote(time())." |
122 change_date=".$db->quote(time())." |
123 WHERE id=".$db->quote($record['rid']); |
123 WHERE id=".$db->quote($record['rid']); |
124 $result = $db->Query($query); |
124 $result = $db->Query($query); |