Marius Cramer
2014-01-28 4193f48b5da0981d9f2bdae887a7bddc5d6dbce8
Added remoting function to get server ip
2 files modified
16 ■■■■■ changed files
interface/lib/classes/remoting.inc.php 14 ●●●●● patch | view | raw | blame | history
interface/web/admin/lib/remote.conf.php 2 ●●● patch | view | raw | blame | history
interface/lib/classes/remoting.inc.php
@@ -328,6 +328,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)
    {
interface/web/admin/lib/remote.conf.php
@@ -1,6 +1,6 @@
<?php
$function_list['server_get,get_function_list,client_templates_get_all,server_get_serverid_by_ip,server_ip_add,server_ip_update,server_ip_delete'] = 'Server functions';
$function_list['server_get,get_function_list,client_templates_get_all,server_get_serverid_by_ip,server_ip_get,server_ip_add,server_ip_update,server_ip_delete'] = 'Server functions';
$function_list['admin_record_permissions'] = 'Record permission changes';
?>