[dev] diff for fortunes to allow selection of different fortunes

Tim Gorter email at teletechnics.com
Wed Aug 20 06:51:22 PDT 2003


Below is a diff for the fortune block, to allow multiple fortune files to
be selected from a pull down list.

files changed:
config/registry.php.dist
lib/Block/fortune.php




Index: config/registry.php.dist
===================================================================
RCS file: /repository/horde/config/registry.php.dist,v
retrieving revision 1.173
diff -r1.173 registry.php.dist
569,570c569,581
<     'type' => 'fortune',
<     'default' => '/usr/games/fortune'
---
>     'type' => 'enum',
>     'default' => '/usr/bin/fortunes/fortune /usr/bin/fortunes/fortunes',
>     'values' => array('/usr/games/fortune /usr/games/fortunes' => 'Fortunes',
>                       '/usr/games/fortune /usr/games/hitchhiker' => 'Hitchhiker',
>                       '/usr/games/fortune /usr/games/calvin' => 'Calvin & Hobbs',
>                       '/usr/games/fortune /usr/games/murphy' => 'Murphys Law',
>                       '/usr/games/fortune /usr/games/freebsd-tips' => 'FreeBSD tips')
> /**
>  * check out http://freshmeat.net/browse/895/?topic_id=895 for more
>  * on fortune files
>  */




Index: lib/Block/fortune.php
===================================================================
RCS file: /repository/horde/lib/Block/fortune.php,v
retrieving revision 1.2
diff -r1.2 fortune.php
27c27
<         return false;
---
>         return true;



More information about the dev mailing list