Skip to content

Commit bca1af5

Browse files
author
Marius Cramer
committed
Added remoting function to get server ip
1 parent 9f1e987 commit bca1af5

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

interface/lib/classes/remote.d/server.inc.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,20 @@ public function server_get_serverid_by_ip($session_id, $ipaddress)
6060
return $all;
6161
}
6262

63+
//* Get server ips
64+
public function server_ip_get($session_id, $primary_id)
65+
{
66+
global $app;
67+
68+
if(!$this->checkPerm($session_id, 'server_ip_get')) {
69+
$this->server->fault('permission_denied', 'You do not have the permissions to access this function.');
70+
return false;
71+
}
72+
$app->uses('remoting_lib');
73+
$app->remoting_lib->loadFormDef('../admin/form/server_ip.tform.php');
74+
return $app->remoting_lib->getDataRecord($primary_id);
75+
}
76+
6377
//* Add a IP address record
6478
public function server_ip_add($session_id, $client_id, $params)
6579
{

0 commit comments

Comments
 (0)