Fortune 매크로 플러그인은 GNU fortune프로그램을 이용한 매크로입니다.
모니위키 1.1.5 이전에는 유닉스만 지원하며 다음을 만족시켜야 합니다.- fortune이 설치되어 있어야 한다.
/usr/bin/fortune, /usr/share/games/fortune/
- 이게 맞지 않는다면
plugin/fortune.php에서 소스를 직접 조정해 주세요.
모니위키 1.1.5 이후부터는 fortune 데이터만 세팅하면 사용 가능합니다.- 예를 들어
data/fortune아래에 fortune 데이타를 복사해 넣고$fortune_dir='data/fortune';세팅을 config.php에 넣으면 됩니다.
모니위키 1.2.1 이후부터는 유닉스/윈도우 가릴 것 없이 기본으로 지원합니다.data/fortune아래에 몇가지 fortune 데이타가 기본으로 패키징되어 들어있습니다.
$fortune_dir='data/fortune';세팅을 config.php에 넣어주세요.
사용예 ¶
[[Fortune]] (default art)Thus spake the master programmer:
"Time for you to leave."
-- Geoffrey James, "The Tao of Programming"
[[Fortune(love)]]Love is always open arms. With arms open you allow love to come and
go as it wills, freely, for it will do so anyway. If you close your
arms about love you'll find you are left only holding yourself.
[[Fortune(*)]]`Lasu' Releases SAG 0.3 -- Freeware Book Takes Paves For New World Order
by staff writers
...
The central Superhighway site called ``sunsite.unc.edu''
collapsed in the morning before the release. News about the release had
been leaked by a German hacker group, Harmonious Hardware Hackers, who
had cracked into the author's computer earlier in the week. They had
got the release date wrong by one day, and caused dozens of eager fans
to connect to the sunsite computer at the wrong time. ``No computer can
handle that kind of stress,'' explained the mourning sunsite manager,
Erik Troan. ``The spinning disks made the whole computer jump, and
finally it crashed through the floor to the basement.'' Luckily,
repairs were swift and the computer was working again the same evening.
``Thank God we were able to buy enough needles and thread and patch it
together without major problems.'' The site has also installed a new
throttle on the network pipe, allowing at most four clients at the same
time, thus making a new crash less likely. ``The book is now in our
Incoming folder'', says Troan, ``and you're all welcome to come and get it.''
-- Lars Wirzenius
[comp.os.linux.announce]
특징 ¶
Please see also










.png)