[dev] fortune block(s) broken

Jan Schneider jan at horde.org
Thu Oct 28 02:23:29 PDT 2004


Zitat von Rick Emery <rick at emery.homelinux.net>:

> Quoting Chuck Hagenbuch <chuck at horde.org>:
>
>> Sounds reasonable enough to me. That block is kind of a hack, anyways;
>> I'd love
>> to either ditch it or replace it with an interface into a Horde 
>> quotes service
>> with a potential fortune backend. Much safer/more robust.
>>
>> -chuck
>
> I know this isn't what you want, but I was looking over the fortune man page
> this afternoon and came up with these modifications.
>
> These patches allow the administrator to set the path to the fortune
> executable
> (using conf.xml), and allow a user to choose which kinds of fortunes to
> display
> in the layout section. The one's in the patch are those available on my
> machine; if one is selected that doesn't exist, an empty block is displayed.

Committed, thanks.

> It would be cool to dynamically build this list based on what's available on
> the server ("fortune -f" lists them on the command line), but that's a little
> beyond my skills and, as you said, this is kind of a hack and will hopefully
> be replaced in the future.

I added this feature, but unfortunately this doesn't work. I have no idea,
but if fortune -f is run by the webserver user, I don't get any output.
Everything else works. Anyone else knows what's going wrong here?

Jan.

-- 
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/


More information about the dev mailing list