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)God is love, but get it in writing.
-- Gypsy Rose Lee
[[Fortune(love)]]My cup hath runneth'd over with love.
[[Fortune(*)]]The Gurus of Unix Meeting of Minds (GUMM) takes place Wednesday, April
1, 2076 (check THAT in your perpetual calendar program), 14 feet above
the ground directly in front of the Milpitas Gumps. Members will grep
each other by the hand (after intro), yacc a lot, smoke filtered
chroots in pipes, chown with forks, use the wc (unless uuclean), fseek
nice zombie processes, strip, and sleep, but not, we hope, od. Three
days will be devoted to discussion of the ramifications of whodo. Two
seconds have been allotted for a complete rundown of all the user-
friendly features of Unix. Seminars include "Everything You Know is
Wrong", led by Tom Kempson, "Batman or Cat:man?" led by Richie Dennis
"cc C? Si! Si!" led by Kerwin Bernighan, and "Document Unix, Are You
Kidding?" led by Jan Yeats. No Reader Service No. is necessary because
all GUGUs (Gurus of Unix Group of Users) already know everything we
could tell them.
-- "Get GUMMed," Dr. Dobb's Journal, June '84
특징 ¶
Please see also










.png)