function isZone($domain)
{
$sql = sprintf("SELECT count(domainid) FROM domains WHERE domain = %s", $this->db->quote($domain));
$result = $this->db->getOne($sql);
if ($result > 0) {
return true;
} else {
$sql = sprintf("SELECT count(queueid) FROM add_queue WHERE domain = %s AND completed = '0'", $this->db->quote($domain));
$result = $this->db->getOne($sql);
if ($result > 0) {
return true;
}
return false;
}
}