equal
deleted
inserted
replaced
335 $ttl = $GLOBALS['DEFAULT_TTL']; |
335 $ttl = $GLOBALS['DEFAULT_TTL']; |
336 |
336 |
337 $query = "INSERT INTO records VALUES (''," |
337 $query = "INSERT INTO records VALUES (''," |
338 . $db->quote($domain_id) . "," |
338 . $db->quote($domain_id) . "," |
339 . $db->quote($domain) . "," |
339 . $db->quote($domain) . "," |
340 . $db->quote($ns1.' '.$hm.' 1') |
340 . "'SOA'," |
341 . ",'SOA'," |
341 . $db->quote($ns1.' '.$hm.' 1') . "," |
342 . $db->quote($ttl) |
342 . $db->quote($ttl) |
343 . ", 0, " |
343 . ", 0, " |
344 . $db->quote($now).")"; |
344 . $db->quote($now).")"; |
|
345 echo "<pre>" . $query . "</pre>"; |
345 $response = $db->query($query); |
346 $response = $db->query($query); |
346 if (PEAR::isError($response)) { error($response->getMessage()); return false; } |
347 if (PEAR::isError($response)) { error($response->getMessage()); return false; } |
347 } elseif ($domain_id) { |
348 } elseif ($domain_id) { |
348 global $template; |
349 global $template; |
349 |
350 |
361 } |
362 } |
362 |
363 |
363 $query = "INSERT INTO records VALUES (''," |
364 $query = "INSERT INTO records VALUES (''," |
364 . $db->quote($domain_id) . "," |
365 . $db->quote($domain_id) . "," |
365 . $db->quote($name) . "," |
366 . $db->quote($name) . "," |
|
367 . $db->quote($type) . "," |
366 . $db->quote($content) . "," |
368 . $db->quote($content) . "," |
367 . $db->quote($type) . "," |
|
368 . $db->quote($ttl) . "," |
369 . $db->quote($ttl) . "," |
369 . $db->quote($prio) . "," |
370 . $db->quote($prio) . "," |
370 . $db->quote($now) . ")"; |
371 . $db->quote($now) . ")"; |
|
372 echo "<pre>" . $query . "</pre>"; |
371 $response = $db->query($query); |
373 $response = $db->query($query); |
372 if (PEAR::isError($response)) { error($response->getMessage()); return false; } |
374 if (PEAR::isError($response)) { error($response->getMessage()); return false; } |
373 } |
375 } |
374 } |
376 } |
375 return true; |
377 return true; |