equal
deleted
inserted
replaced
16 * GNU General Public License for more details. |
16 * GNU General Public License for more details. |
17 * |
17 * |
18 * You should have received a copy of the GNU General Public License |
18 * You should have received a copy of the GNU General Public License |
19 * along with this program. If not, see <http://www.gnu.org/licenses/>. |
19 * along with this program. If not, see <http://www.gnu.org/licenses/>. |
20 */ |
20 */ |
|
21 |
|
22 function get_zone_id_from_record_id($rid) { |
|
23 global $db; |
|
24 $query = "SELECT domain_id FROM records WHERE id = " . $db->quote($rid); |
|
25 $zid = $db->queryOne($query); |
|
26 return $zid; |
|
27 } |
21 |
28 |
22 function count_zone_records($zone_id) { |
29 function count_zone_records($zone_id) { |
23 global $db; |
30 global $db; |
24 $sqlq = "SELECT COUNT(id) FROM records WHERE domain_id = ".$db->quote($zone_id); |
31 $sqlq = "SELECT COUNT(id) FROM records WHERE domain_id = ".$db->quote($zone_id); |
25 $record_count = $db->queryOne($sqlq); |
32 $record_count = $db->queryOne($sqlq); |