equal
deleted
inserted
replaced
125 $query = "UPDATE records |
125 $query = "UPDATE records |
126 SET name=".$db->quote($record['name']).", |
126 SET name=".$db->quote($record['name']).", |
127 type=".$db->quote($record['type']).", |
127 type=".$db->quote($record['type']).", |
128 content='" . $record['content'] . "', |
128 content='" . $record['content'] . "', |
129 ttl=".$db->quote($record['ttl']).", |
129 ttl=".$db->quote($record['ttl']).", |
130 prio=".$db->quote($record['prio']).", |
130 prio=".$db->quote($record['prio'], 'integer').", |
131 change_date=".$db->quote(time())." |
131 change_date=".$db->quote(time())." |
132 WHERE id=".$db->quote($record['rid']); |
132 WHERE id=".$db->quote($record['rid']); |
133 $result = $db->Query($query); |
133 $result = $db->Query($query); |
134 if (PEAR::isError($result)) { |
134 if (PEAR::isError($result)) { |
135 error($result->getMessage()); |
135 error($result->getMessage()); |
176 . $db->quote($zoneid) . "," |
176 . $db->quote($zoneid) . "," |
177 . $db->quote($name) . "," |
177 . $db->quote($name) . "," |
178 . $db->quote($type) . "," |
178 . $db->quote($type) . "," |
179 . $db->quote($content) . "," |
179 . $db->quote($content) . "," |
180 . $db->quote($ttl) . "," |
180 . $db->quote($ttl) . "," |
181 . $db->quote($prio) . "," |
181 . $db->quote($prio, 'integer') . "," |
182 . $db->quote($change) . ")"; |
182 . $db->quote($change) . ")"; |
183 $response = $db->query($query); |
183 $response = $db->query($query); |
184 if (PEAR::isError($response)) { |
184 if (PEAR::isError($response)) { |
185 error($response->getMessage()); |
185 error($response->getMessage()); |
186 return false; |
186 return false; |
378 . $db->quote($domain_id) . "," |
378 . $db->quote($domain_id) . "," |
379 . $db->quote($name) . "," |
379 . $db->quote($name) . "," |
380 . $db->quote($type) . "," |
380 . $db->quote($type) . "," |
381 . $db->quote($content) . "," |
381 . $db->quote($content) . "," |
382 . $db->quote($ttl) . "," |
382 . $db->quote($ttl) . "," |
383 . $db->quote($prio) . "," |
383 . $db->quote($prio, 'integer') . "," |
384 . $db->quote($now) . ")"; |
384 . $db->quote($now) . ")"; |
385 $response = $db->query($query); |
385 $response = $db->query($query); |
386 if (PEAR::isError($response)) { error($response->getMessage()); return false; } |
386 if (PEAR::isError($response)) { error($response->getMessage()); return false; } |
387 } |
387 } |
388 } |
388 } |