diff --git a/interface/lib/classes/remoting.inc.php b/interface/lib/classes/remoting.inc.php index d009781c565d0ae5a80141d3209cf20b15733163..b8764ce6244c70f115b3569ca4c076662a463b1e 100644 --- a/interface/lib/classes/remoting.inc.php +++ b/interface/lib/classes/remoting.inc.php @@ -157,6 +157,38 @@ class remoting { return $all; } + //* Add a IP address record + public function server_ip_add($session_id, $client_id, $params) + { + if(!$this->checkPerm($session_id, 'server_ip_add')) { + $this->server->fault('permission_denied', 'You do not have the permissions to access this function.'); + return false; + } + return $this->insertQuery('../admin/form/server_ip.tform.php',$client_id,$params); + } + + //* Update IP address record + public function server_ip_update($session_id, $client_id, $ip_id, $params) + { + if(!$this->checkPerm($session_id, 'server_ip_update')) { + $this->server->fault('permission_denied', 'You do not have the permissions to access this function.'); + return false; + } + $affected_rows = $this->updateQuery('../admin/form/server_ip.tform.php',$client_id,$ip_id,$params); + return $affected_rows; + } + + //* Delete IP address record + public function server_ip_delete($session_id, $ip_id) + { + if(!$this->checkPerm($session_id, 'server_ip_delete')) { + $this->server->fault('permission_denied', 'You do not have the permissions to access this function.'); + return false; + } + $affected_rows = $this->deleteQuery('../admin/form/server_ip.tform.php',$ip_id); + return $affected_rows; + } + //* Get mail domain details public function mail_domain_get($session_id, $primary_id) { diff --git a/interface/web/admin/lib/remote.conf.php b/interface/web/admin/lib/remote.conf.php index 7f2d9068738740c6a7bf1cae3cf3494befa96fd6..6a87e9579bd7b81279b3998f316ae4b622170c99 100644 --- a/interface/web/admin/lib/remote.conf.php +++ b/interface/web/admin/lib/remote.conf.php @@ -1,5 +1,5 @@ \ No newline at end of file