rem: var i, count=0, ret = new Object(); 
add: var i, count=0, ret = new Array(0); 
context: function smbsrv_sessions(){	var irpc = irpc_init();	status = irpc.connect("smb_server");	if (status.is_ok != true) {		return undefined;	}	var io = irpcObj();	io.input.level = irpc.SMBSRV_INFO_SESSIONS;	status = irpc.smbsrv_information(io);	if (status.is_ok != true) {		return undefined;	}	/* gather the results into a single array */	var i, count=0, ret = new Object();	for (i=0;i<io.results.length;i++) {		var sessions = io.results[i].info.sessions.sessions;		var j;		for (j=0;j<sessions.length;j++) {			ret[count] = sessions[j];			count++;		}	}	ret.length = count;	return ret;}
meta: 5771	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5771/783851099b43236666b2fc0cc866834773d6e7b7/management.js/clean/source4/scripting/libjs/management.js