--- a/inc/dns.inc.php Wed Apr 18 22:48:49 2007 +0000
+++ b/inc/dns.inc.php Sun Apr 22 07:20:09 2007 +0000
@@ -28,7 +28,7 @@
* Validates an IPv4 IP.
* returns true if valid.
*/
-function validate_input($recordid, $zoneid, $type, &$content, &$name, &$prio, &$ttl)
+function validate_input($zoneid, $type, &$content, &$name, &$prio, &$ttl)
{
global $db;
@@ -387,7 +387,7 @@
global $db;
// See if the destination to which this MX is pointing is NOT a CNAME record.
// Check inside our dns server.
- if($db->getOne("SELECT count(id) FROM records WHERE name='$content' AND type='CNAME'") > 0)
+ if($db->queryOne("SELECT count(id) FROM records WHERE name='$content' AND type='CNAME'") > 0)
{
return -1;
}
@@ -430,7 +430,7 @@
// "an IN NS field must be a hostname."
}
- if($db->getOne("SELECT count(id) FROM records WHERE name='$content' AND type='CNAME'") > 0)
+ if($db->queryOne("SELECT count(id) FROM records WHERE name='$content' AND type='CNAME'") > 0)
{
return -2;
// "You can not point a NS record to a CNAME record. Remove/rename the CNAME record first or take another name."