<function name="rpcf_user5_blocks_report" id="-0x4013"> <input> <integer name="time_start" /> <integer name="time_end" /> </input> <output> <integer name="blocks_size" /> <for name="i" from="0" count="blocks_size"> <integer name="account_id" array_index="i" /> <integer name="start_date" array_index="i" /> <integer name="expire_date" array_index="i" /> <integer name="what_blocked" array_index="i" /> <integer name="block_type" array_index="i" /> <string name="comment" array_index="i" /> </for> </output> </function>
function rpcf_user5_blocks_report($start_date,$end_date) { //-0x4013 $ret=array(); if (!$this->connection->urfa_call(-0x4013)) { print "Error calling function ". __FUNCTION__ ."\n"; return FALSE; } $packet = $this->connection->getPacket(); $packet->DataSetInt($start_date); $packet->DataSetInt($end_date); $this->connection->urfa_send_param($packet); $x = $this->connection->urfa_get_data(); $ret['count']=$x->DataGetInt(); for ($i=0;$i<$ret['count'];$i++) { // $x = $this->connection->urfa_get_data(); $block['account_id'] = $x->DataGetInt(); $block['start_date'] = $x->DataGetInt(); $block['expire_date'] = $x->DataGetInt(); $block['what_blocked'] = $x->DataGetInt(); $block['block_type'] = $x->DataGetInt(); $block['comment'] = $x->DataGetString(); $ret['block'][]=$block; } // $this->connection->urfa_get_data(); return $ret; }