function addZone($domain, $address, $password)
{
if ($this->isDomain($domain) && $this->isIP($address)) {
if ($this->isZone($domain)) {
$this->raiseError("Domain exists or is in the queue to be created\n");
return false;
}
$sql = sprintf("INSERT INTO add_queue (domain, address, password) VALUES (%s, %s, %s)", $this->db->quote($domain), $this->db->quote($address), $this->db->quote($password));
$this->db->Execute($sql);
return true;
} else {
$this->raiseError("Invalid IP\n");
return false;
}
}