diff --git a/interface/lib/classes/remoting.inc.php b/interface/lib/classes/remoting.inc.php index 2f9dc6e8231d6fecf9f7ec2fec86a9ea1e7f78c7..0005a3ac3755d9fc10422b16fb5dadb4a4b64362 100644 --- a/interface/lib/classes/remoting.inc.php +++ b/interface/lib/classes/remoting.inc.php @@ -328,6 +328,20 @@ class remoting { return $all; } + //* Get server ips + public function server_ip_get($session_id, $primary_id) + { + global $app; + + if(!$this->checkPerm($session_id, 'server_ip_get')) { + $this->server->fault('permission_denied', 'You do not have the permissions to access this function.'); + return false; + } + $app->uses('remoting_lib'); + $app->remoting_lib->loadFormDef('../admin/form/server_ip.tform.php'); + return $app->remoting_lib->getDataRecord($primary_id); + } + //* Add a IP address record public function server_ip_add($session_id, $client_id, $params) { diff --git a/interface/web/admin/lib/remote.conf.php b/interface/web/admin/lib/remote.conf.php index c40e8bf07257ddbbdaeae7e39395b6081b244398..37aec717946d5dc66ffbdda4b76cbfbff95a3d9a 100644 --- a/interface/web/admin/lib/remote.conf.php +++ b/interface/web/admin/lib/remote.conf.php @@ -1,6 +1,6 @@