<function name="rpcf_whoami" id="0x440a"> <input/> <output> <integer name="my_uid" /> <string name="login"/> <ip_address name="user_ip" /> <ip_address name="user_mask" /> <integer name="system_group_size" /> <for name="i" from="0" count="system_group_size"> <integer name="system_group_id" array_index="i" /> <string name="system_group_name" array_index="i" /> <string name="system_group_info" array_index="i" /> </for> <integer name="allowed_fids_size" /> <for name="i" from="0" count="allowed_fids_size"> <integer name="id" array_index="i" /> <string name="name" array_index="i" /> <string name="module" array_index="i" /> </for> <integer name="not_allowed_size" /> <for name="i" from="0" count="not_allowed_size"> <integer name="id_not_allowed" array_index="i" /> <string name="name_not_allowed" array_index="i" /> <string name="module_not_allowed" array_index="i" /> </for> </output> </function>
function rpcf_whoami() { //0x440a $ret=array(); if (!$this->connection->urfa_call(0x440a)) { print "Error calling function ". __FUNCTION__ ."\n"; return FALSE; } $x = $this->connection->urfa_get_data(); $ret['my_uid']=$x->DataGetInt(); $ret['login']=$x->DataGetString(); $ret['user_ip']=$x->DataGetIPAddress(); $ret['user_mask']=$x->DataGetIPAddress(); $count=$x->DataGetInt(); $ret['system_group_size']=$count; for ($i=0; $i < $count; $i++ ) { $list['system_group_id']=$x->DataGetInt(); $list['system_group_name']=$x->DataGetString(); $list['system_group_info']=$x->DataGetString(); $ret['system_groups'][]=$list; } $count=$x->DataGetInt(); $ret['allowed_fids_size']=$count; for ($i=0; $i < $count; $i++ ) { $list['id']=$x->DataGetInt(); $list['name']=$x->DataGetString(); $list['module']=$x->DataGetString(); $ret['allowed_fids'][]=$list; } $count=$x->DataGetInt(); $ret['not_allowed_size']=$count; for ($i=0; $i < $count; $i++ ) { $list['id_not_allowed']=$x->DataGetInt(); $list['name_not_allowed']=$x->DataGetString(); $list['module_not_allowed']=$x->DataGetString(); $ret['not_allowed_fids'][]=$list; } // $this->connection->urfa_get_data(); return $ret; }