Location: PHPKode > projects > RabbitBB - Online Web Storage Project > mywebdrive/PHP_CON/dir/BSXMLDirProp.php
<?PHP
class BSXMLDirProp
{

	function BSXMLDirProp()
	{
	}

	function getXMLDirProp($_request, $_response)
	{
		if (!isset($_request['ownerid']))
		{
			$_response['ERROR'][] = "NOOWNERID";
		}
		else
		{
			if ($_request['ownerid']==NSession::getuid())
			{
				// Type must be Directory
				$bsdirsize = new BSGetDirFileSize();
				$_response = $bsdirsize->getDirSize($_request, $_response);
				$_response['dir_id'] = $_request['dir_id'];
				$bsgdfra = new BSGetDirFileReadAccess();
				$_response = $bsgdfra->getDirAuthList($_request, $_response);
				$bsgal = new BSGetAttrList();
				$_response = $bsgal->getOwnerDir($_request, $_response);
				$bssp = new BSSharePublic();
				$_response = $bssp->getDirPublicAuth($_request, $_response);
			}
			else
			{
				$_response['ERROR'][] = "OWNERIDMISMATCH";
			}

		}

		return $_response;
	}

}

?>
Return current item: RabbitBB - Online Web Storage Project