XML

  <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>

PHP

        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;
        }
 
/home/u18456/wiki.flintnet.ru/www/data/pages/function_admin/function_name_rpcf_whoami_id_0x440a.txt · Последние изменения: 2009/07/23 15:16 От swibl
 
За исключением случаев, когда указано иное, содержимое этой вики предоставляется на условиях следующей лицензии:CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki