Commit bca1af51 authored by Marius Cramer's avatar Marius Cramer

Added remoting function to get server ip

parent 9f1e9877
......@@ -60,6 +60,20 @@ class remoting_server extends 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)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment