. * */ /** * Class for connecting multiply ownCloud installations * */ class OC_Connect{ static private $clouds=array(); static function connect($path,$user,$password){ $cloud=new OC_REMOTE_CLOUD($path,$user,$password); if($cloud->connected){ self::$clouds[$path]=$cloud; return $cloud; }else{ return false; } } }