XML

    <function name="rpcf_get_sys_user" id="0x4409">
      <input>
      	     <integer name="user_id" />
      </input>
      <output>
            <string name="login" />
	    <ip_address name="ip" />
	    <ip_address name="mask" />
	    <integer name="groups_size" />
	    <for name="i" from="0" count="groups_size">
	      <integer name="group_id" array_index="i" />
	      <string name="group_name" array_index="i" />
	      <string name="group_info" array_index="i" />
	    </for>
      </output>
    </function>

PHP

	function rpcf_get_sys_user($user_id) { //0x4409
		$ret=array();
		if (!$this->connection->urfa_call(0x4409)) {
			print "Error calling function ". __FUNCTION__ ."\n";
			return FALSE;
		}
		$packet = $this->connection->getPacket();
		$packet->DataSetInt($user_id);
		$this->connection->urfa_send_param($packet);
		if ($x = $this->connection->urfa_get_data()){
			$ret['login']=$x->DataGetString();
			$ret['ip']=$x->DataGetIPAddress();
			$ret['mask']=$x->DataGetIPAddress();
			$ret['group_count']=$x->DataGetInt();
			for ($i=0;$i<$ret['group_count'];$i++) {
				$group['group_id']=$x->DataGetInt();
				$group['group_name']=$x->DataGetString();
				$ret['groups'][]=$group;
			}
//			$this->connection->urfa_get_data();
		}
		return $ret;
	}
 
/home/u18456/wiki.flintnet.ru/www/data/pages/function_admin/function_name_rpcf_get_sys_user_id_0x4409.txt · Последние изменения: 2009/07/23 15:00 От 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