inc/record.inc.php
changeset 133 7863d881b8a5
parent 128 12f5e0869676
child 134 a8228f676bf7
equal deleted inserted replaced
132:155178ad24e4 133:7863d881b8a5
   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; }