Location: PHPKode > projects > RabbitBB - Online Web Storage Project > mywebdrive/xmlfeed/fileauthlist.php
<authlist>
<user>
<?PHP
if (isset($response['userattrlist'][0][SFILE]))
{
	for ($i=0; $i<count($response['userattrlist'][0][SFILE]); $i++)
	{
		$fa = $response['userattrlist'][0][SFILE][$i];
		$ua = null;
		if (isset($response['userattrlist'][1]) && (count($response['userattrlist'][1])>0))
		{
			$ua = $response['userattrlist'][1][$i];
		}
?>
<fileauth>
<id><?PHP echo(xmlentities($fa->getid())); ?></id>
<filedb_id><?PHP echo(xmlentities($fa->getfiledb_id())); ?></filedb_id>
<user_id><?PHP echo(xmlentities($fa->getuser_id())); ?></user_id>
<username><?PHP if ($ua!=null) echo(xmlentities($ua->getUsername())); ?></username>
<owner><?PHP echo(xmlentities($fa->getowner())); ?></owner>
<allowread><?PHP echo(xmlentities($fa->getread())); ?></allowread>
<allowwrite><?PHP echo(xmlentities($fa->getwrite())); ?></allowwrite>
</fileauth>
<?PHP
	}
}
?>
</user>
<group>
<?PHP
if (isset($response['groupattrlist'][SFILE]))
{
	for ($i=0; $i<count($response['groupattrlist'][SFILE]); $i++)
	{
		$fa = $response['groupattrlist'][SFILE][$i];
?>
<fileauth>
<id><?PHP echo(xmlentities($fa->getid())); ?></id>
<filedb_id><?PHP echo(xmlentities($fa->getfiledb_id())); ?></filedb_id>
<group_id><?PHP echo(xmlentities($fa->getgroup_id())); ?></group_id>
<owner><?PHP echo(xmlentities($fa->getowner())); ?></owner>
<allowread><?PHP echo(xmlentities($fa->getread())); ?></allowread>
<allowwrite><?PHP echo(xmlentities($fa->getwrite())); ?></allowwrite>
</fileauth>
<?PHP
	}
}
?>
</group>
</authlist>
Return current item: RabbitBB - Online Web Storage Project