View Single Post
  #11  
Old 28th March 2011, 22:55
xaver xaver is offline
Member
 
Join Date: May 2009
Posts: 77
Thanks: 10
Thanked 24 Times in 14 Posts
Default

Hello,

till told me you need for client_group_id the groupid form sys_group.
I dont wanna use MySQL in a API... i created a new functionfor this in remote.inc.php
PHP Code:
    public function client_id_get_SysGroupID($session_id$client_id){
        global 
$app;
        if(!
$this->checkPerm($session_id'sites_web_domain_get')) {
        
$this->server->fault('permission_denied''You do not have the permissions to access this function.');
        return 
false;
        }
        
$sysGroupID $app->db->queryOneRecord("SELECT groupid FROM sys_group WHERE client_id = '$client_id'");
        return 
$sysGroupID["groupid"];
    } 
Reply With Quote
Sponsored Links