From 28cd07d1a75c4e9dcaecac49efee0091f2fc62fa Mon Sep 17 00:00:00 2001
From: A. Täffner <darkalex@firesplash.de>
Date: Thu, 07 Apr 2016 05:30:49 -0400
Subject: [PATCH] Implemented a checkbox "enable DNSSEC" in DNS-Wizard. This Checkbox can be enabled or disabled by template.
---
interface/lib/classes/remote.d/domains.inc.php | 34 +++++++++++++++++-----------------
1 files changed, 17 insertions(+), 17 deletions(-)
diff --git a/interface/lib/classes/remote.d/domains.inc.php b/interface/lib/classes/remote.d/domains.inc.php
index 2afe815..3383033 100644
--- a/interface/lib/classes/remote.d/domains.inc.php
+++ b/interface/lib/classes/remote.d/domains.inc.php
@@ -40,12 +40,12 @@
class remoting_domains extends remoting {
// -----------------------------------------------------------------------------------------------
-
+
//* Get record details
public function domains_domain_get($session_id, $primary_id)
- {
+ {
global $app;
-
+
if(!$this->checkPerm($session_id, 'domains_domain_get')) {
throw new SoapFault('permission_denied', 'You do not have the permissions to access this function.');
return false;
@@ -57,40 +57,40 @@
//* Add a record
public function domains_domain_add($session_id, $client_id, $params)
- {
+ {
if(!$this->checkPerm($session_id, 'domains_domain_add')) {
throw new SoapFault('permission_denied', 'You do not have the permissions to access this function.');
return false;
}
- return $this->insertQuery('../client/form/domain.tform.php',$client_id,$params);
+ return $this->insertQuery('../client/form/domain.tform.php', $client_id, $params);
}
//* Delete a record
public function domains_domain_delete($session_id, $primary_id)
- {
+ {
if(!$this->checkPerm($session_id, 'domains_domain_delete')) {
throw new SoapFault('permission_denied', 'You do not have the permissions to access this function.');
return false;
}
- $affected_rows = $this->deleteQuery('../client/form/domain.tform.php',$primary_id);
+ $affected_rows = $this->deleteQuery('../client/form/domain.tform.php', $primary_id);
return $affected_rows;
}
-// -----------------------------------------------------------------------------------------------
+ // -----------------------------------------------------------------------------------------------
public function domains_get_all_by_user($session_id, $group_id)
- {
- global $app;
+ {
+ global $app;
if(!$this->checkPerm($session_id, 'domains_get_all_by_user')) {
- throw new SoapFault('permission_denied', 'You do not have the permissions to access this function.');
- return false;
+ throw new SoapFault('permission_denied', 'You do not have the permissions to access this function.');
+ return false;
}
- $group_id = $app->functions->intval($group_id);
- $sql = "SELECT domain_id, domain FROM domain WHERE sys_groupid = $group_id ";
- $all = $app->db->queryAllRecords($sql);
- return $all;
+ $group_id = $app->functions->intval($group_id);
+ $sql = "SELECT domain_id, domain FROM domain WHERE sys_groupid = ?";
+ $all = $app->db->queryAllRecords($sql, $group_id);
+ return $all;
}
}
-?>
\ No newline at end of file
+?>
--
Gitblit v1.9.1