Location: PHPKode > projects > RabbitBB - Online Web Storage Project > mywebdrive/PHP_CON/general/BSGUserAuthAttr.php
<?PHP

class BSGUserAuthAttr extends BSGBasicAuth
{
	var $daog = null;
	var $param = null;
	var $cid = 0;

	function BSGUserAuthAttr()
	{
		$this->daoga = new DAOGAuth();
	}

	function getAuth($_filedirdb, $_user_id)
	{
		if ($this->daoga!=null)
		{
			if ($this->cid!=$_filedirdb->getid())
			{
				$this->param = $this->daoga->getuserparamattr($_filedirdb, $_user_id);
				$this->cid = $_filedirdb->getid();
			}


			if ($this->param!=null)
			{
				if ($_filedirdb->gettype()==DIRECTORY)
				{
					if (isset($this->param[DIRECTORY][0]))
						return $this->param[DIRECTORY][0];
				}
				elseif ($_filedirdb->gettype()==SFILE)
				{
					if (isset($this->param[SFILE][0]))
						return $this->param[SFILE][0];
				}
			}
			return false;
		}
	}

}

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