equal
deleted
inserted
replaced
334 $ttl = $GLOBALS['DEFAULT_TTL']; |
334 $ttl = $GLOBALS['DEFAULT_TTL']; |
335 |
335 |
336 $query = "INSERT INTO records (domain_id, name, content, type, ttl, prio, change_date) VALUES (" |
336 $query = "INSERT INTO records (domain_id, name, content, type, ttl, prio, change_date) VALUES (" |
337 . $db->quote($domain_id) . "," |
337 . $db->quote($domain_id) . "," |
338 . $db->quote($domain) . "," |
338 . $db->quote($domain) . "," |
|
339 . $db->quote($ns1.' '.$hm.' 1') . "," |
339 . $db->quote('SOA')."," |
340 . $db->quote('SOA')."," |
340 . $db->quote($ns1.' '.$hm.' 1') . "," |
|
341 . $db->quote($ttl) |
341 . $db->quote($ttl) |
342 . ", 0, " |
342 . ", 0, " |
343 . $db->quote($now).")"; |
343 . $db->quote($now).")"; |
344 $response = $db->query($query); |
344 $response = $db->query($query); |
345 if (PEAR::isError($response)) { error($response->getMessage()); return false; } |
345 if (PEAR::isError($response)) { error($response->getMessage()); return false; } |