Marius Cramer
2014-01-28 bca1af513a99742c23cf3e1e49e74a7f42b13d41
Added remoting function to get server ip
1 files modified
14 ■■■■■ changed files
interface/lib/classes/remote.d/server.inc.php 14 ●●●●● patch | view | raw | blame | history
interface/lib/classes/remote.d/server.inc.php
@@ -60,6 +60,20 @@
        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)
    {