From 21862e87ca78ffe550825f16065cf367b4eec40c Mon Sep 17 00:00:00 2001
From: latham <latham@ispconfig3>
Date: Mon, 23 May 2011 17:24:54 -0400
Subject: [PATCH] Example config.inc.local.php with settings commented out
---
interface/lib/classes/remoting.inc.php | 18 +++++++++++++++++-
1 files changed, 17 insertions(+), 1 deletions(-)
diff --git a/interface/lib/classes/remoting.inc.php b/interface/lib/classes/remoting.inc.php
index 8c71b9b..5e9e45d 100644
--- a/interface/lib/classes/remoting.inc.php
+++ b/interface/lib/classes/remoting.inc.php
@@ -2543,7 +2543,23 @@
return false;
}
-
+ /**
+ * Get all dns records for a zone
+ * @param int session id
+ * @param int dns zone id
+ * @author Sebastian Mogilowski <sebastian@mogilowski.net> 2011
+ */
+ public function dns_rr_get_all_by_zone($session_id, $zone_id) {
+ global $app;
+ if(!$this->checkPerm($session_id, 'dns_zone_get')) {
+ $this->server->fault('permission_denied', 'You do not have the permissions to access this function.');
+ return false;
+ }
+ $sql = "SELECT * FROM dns_rr WHERE zone = ".intval($zone_id);;
+ $result = $app->db->queryAllRecords($sql);
+ return $result;
+ }
+
/**
* Changes DNS zone status
* @param int session id
--
Gitblit v1.9.1