Re: Support for dynamic ftp server names, and configuring show_dotfiles

Amos Shapira <[email protected]>
Newsgroups gmane.comp.horde.gollem
Message-ID <[email protected]>
On 8/3/05, Jan Schneider <[email protected]> wrote:
> Zitat von Amos Shapira <[email protected]>:
> 
> > On 8/3/05, Michael M Slusarz <[email protected]> wrote:
> >> > Am I the first one to need such a thing from Gollem? I'd expect this
> >> > to be useful to any hosting provider, of which many must be using
> >> > Horde/Gollem.
> >>
> >> This might be something to shoot for in future Gollem versions, but
> >> it's not going to be implemented for 1.0.
> >
> > BTW - I've just tried to replace the hostname string by 'foo_func()' and
> > define a function but gollem doesn't let me in. I suppose it doesn't
> > "evaluate" this string but takes it literally. Did I miss-understand you?
> > Also it complains about the funtcion being re-defined when I put it
> > in backends.php and I have to restart apache to get rid of this error,
> > is there a better place to put the function in?
> > (sorry, I'm not familiar with PHP).
> 
> First, foo_func() shouldn't be in quotes, second, you need to wrap the

But wouldn't this cause foo_func() to be called at configuration
reading time?
I'd like it to be called when a user connects and return the name of
the ftp server at connection time.

> function definition inside a function_exists() if-clause. See
> horde/config/hooks.php.dist for examples.

Thanks. Will look at it.

> 
> Jan.

--Amos
-- 
Gollem mailing list - Join the hunt: http://horde.org/bounties/#gollem
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.