] by
anonymous
2010-03-31 18:04:19.
0000: 44 20 32 30 31 30 2d 30 33 2d 33 31 54 31 38 3a D 2010-03-31T18:
0010: 30 34 3a 31 39 0a 4c 20 43 6f 6f 6b 62 6f 6f 6b 04:19.L Cookbook
0020: 0a 50 20 39 32 32 63 37 63 63 63 64 36 32 39 61 .P 922c7cccd629a
0030: 32 61 61 36 61 64 66 32 31 36 35 64 31 39 37 66 2aa6adf2165d197f
0040: 37 37 38 35 31 39 65 39 38 66 34 0a 55 20 61 6e 778519e98f4.U an
0050: 6f 6e 79 6d 6f 75 73 0a 57 20 35 32 36 34 33 0a onymous.W 52643.
0060: 3c 68 31 3e 46 6f 73 73 69 6c 20 43 6f 6f 6b 62 <h1>Fossil Cookb
0070: 6f 6f 6b 3c 2f 68 31 3e 0d 0a 54 68 65 20 3c 63 ook</h1>..The <c
0080: 69 74 65 3e 46 6f 73 73 69 6c 3c 2f 63 69 74 65 ite>Fossil</cite
0090: 3e 20 43 6f 6f 6b 62 6f 6f 6b 20 69 73 20 61 20 > Cookbook is a
00a0: 63 6f 6c 6c 65 63 74 69 6f 6e 20 6f 66 20 74 61 collection of ta
00b0: 73 6b 2d 6f 72 69 65 6e 74 65 64 20 69 6e 73 74 sk-oriented inst
00c0: 72 75 63 74 69 6f 6e 73 20 66 6f 72 20 69 6e 74 ructions for int
00d0: 65 72 6d 65 64 69 61 74 65 20 75 73 65 72 73 20 ermediate users
00e0: 77 68 6f 20 77 69 73 68 20 74 6f 20 64 6f 20 6d who wish to do m
00f0: 6f 72 65 20 74 68 61 6e 20 62 61 73 69 63 20 6f ore than basic o
0100: 70 65 72 61 74 69 6f 6e 73 20 77 69 74 68 20 74 perations with t
0110: 68 65 69 72 20 3c 63 69 74 65 3e 46 6f 73 73 69 heir <cite>Fossi
0120: 6c 3c 2f 63 69 74 65 3e 20 72 65 70 6f 73 69 74 l</cite> reposit
0130: 6f 72 69 65 73 2e 20 20 54 68 65 20 5b 54 75 74 ories. The [Tut
0140: 6f 72 69 61 6c 7c 74 75 74 6f 72 69 61 6c 5d 20 orial|tutorial]
0150: 69 73 20 61 20 6d 6f 72 65 20 73 75 69 74 61 62 is a more suitab
0160: 6c 65 20 70 6c 61 63 65 20 66 6f 72 20 6e 65 77 le place for new
0170: 63 6f 6d 65 72 73 20 74 72 79 69 6e 67 20 74 6f comers trying to
0180: 20 6c 65 61 72 6e 20 74 68 65 20 62 61 73 69 63 learn the basic
0190: 20 63 6f 6e 63 65 70 74 73 20 74 6f 20 67 6f 20 concepts to go
01a0: 66 69 72 73 74 20 62 65 66 6f 72 65 20 74 61 63 first before tac
01b0: 6b 6c 69 6e 67 20 74 68 65 73 65 20 72 65 63 69 kling these reci
01c0: 70 65 73 2e 0d 0a 0d 0a 3c 68 32 3e 49 6e 64 65 pes.....<h2>Inde
01d0: 78 3c 2f 68 32 3e 0d 0a 3c 75 6c 3e 0d 0a 20 20 x</h2>..<ul>..
01e0: 3c 6c 69 3e 53 65 72 76 65 72 20 72 65 63 69 70 <li>Server recip
01f0: 65 73 3a 0d 0a 20 20 20 20 3c 75 6c 3e 0d 0a 20 es:.. <ul>..
0200: 20 20 20 20 20 3c 6c 69 3e 3c 61 20 68 72 65 66 <li><a href
0210: 3d 22 23 43 47 49 22 3e 55 73 69 6e 67 20 3c 63 ="#CGI">Using <c
0220: 69 74 65 3e 46 6f 73 73 69 6c 3c 2f 63 69 74 65 ite>Fossil</cite
0230: 3e 27 73 20 42 75 69 6c 74 2d 49 6e 20 43 47 49 >'s Built-In CGI
0240: 3c 2f 61 3e 0d 0a 20 20 20 20 3c 2f 75 6c 3e 0d </a>.. </ul>.
0250: 0a 20 20 3c 2f 6c 69 3e 0d 0a 20 20 3c 6c 69 3e . </li>.. <li>
0260: 3c 61 20 68 72 65 66 3d 22 23 65 6e 76 22 3e 55 <a href="#env">U
0270: 73 69 6e 67 20 45 6e 76 69 72 6f 6e 6d 65 6e 74 sing Environment
0280: 20 76 61 72 69 61 62 6c 65 73 3c 2f 61 3e 3c 2f variables</a></
0290: 6c 69 3e 0d 0a 20 20 3c 6c 69 3e 3c 61 20 68 72 li>.. <li><a hr
02a0: 65 66 3d 22 23 63 73 73 22 3e 45 78 61 6d 70 6c ef="#css">Exampl
02b0: 65 20 43 53 53 3c 2f 61 3e 3c 2f 6c 69 3e 0d 0a e CSS</a></li>..
02c0: 20 20 3c 6c 69 3e 3c 61 20 68 72 65 66 3d 22 23 <li><a href="#
02d0: 73 6f 75 72 63 65 2d 68 69 6c 69 67 68 74 22 3e source-hilight">
02e0: 53 6f 75 72 63 65 20 68 69 67 68 6c 69 67 68 74 Source highlight
02f0: 69 6e 67 3c 2f 61 3e 3c 2f 6c 69 3e 0d 0a 20 20 ing</a></li>..
0300: 3c 6c 69 3e 3c 61 20 68 72 65 66 3d 22 23 77 69 <li><a href="#wi
0310: 6e 33 32 64 65 76 22 3e 46 6f 73 73 69 6c 20 57 n32dev">Fossil W
0320: 69 6e 33 32 20 44 65 76 65 6c 6f 70 6d 65 6e 74 in32 Development
0330: 20 4d 61 63 68 69 6e 65 20 73 65 74 75 70 3c 2f Machine setup</
0340: 61 3e 3c 2f 6c 69 3e 0d 0a 20 20 3c 6c 69 3e 3c a></li>.. <li><
0350: 61 20 68 72 65 66 3d 22 23 4d 69 6e 67 57 22 3e a href="#MingW">
0360: 43 6f 6d 70 69 6c 69 6e 67 20 66 6f 72 20 77 69 Compiling for wi
0370: 6e 64 6f 77 73 3c 2f 61 3e 3c 2f 6c 69 3e 0d 0a ndows</a></li>..
0380: 20 20 3c 6c 69 3e 3c 61 20 68 72 65 66 3d 22 23 <li><a href="#
0390: 77 79 73 69 77 69 67 22 3e 4a 61 76 61 73 63 72 wysiwig">Javascr
03a0: 69 70 74 20 48 54 4d 4c 20 57 59 53 49 57 59 47 ipt HTML WYSIWYG
03b0: 20 65 64 69 74 6f 72 20 63 6f 6e 74 72 6f 6c 3c editor control<
03c0: 2f 61 3e 0d 0a 20 20 20 20 3c 75 6c 3e 0d 0a 20 /a>.. <ul>..
03d0: 20 20 20 20 20 3c 6c 69 3e 3c 61 20 68 72 65 66 <li><a href
03e0: 3d 22 23 74 69 6e 79 6d 63 65 22 3e 54 69 6e 79 ="#tinymce">Tiny
03f0: 4d 43 45 3c 2f 61 3e 3c 2f 6c 69 3e 0d 0a 20 20 MCE</a></li>..
0400: 20 20 20 20 3c 6c 69 3e 3c 61 20 68 72 65 66 3d <li><a href=
0410: 22 23 6d 61 72 6b 69 74 75 70 22 3e 6d 61 72 6b "#markitup">mark
0420: 69 74 75 70 21 3c 2f 61 3e 3c 2f 6c 69 3e 0d 0a itup!</a></li>..
0430: 20 20 20 20 3c 2f 75 6c 3e 0d 0a 20 20 3c 2f 6c </ul>.. </l
0440: 69 3e 0d 0a 20 20 3c 6c 69 3e 3c 61 20 68 72 65 i>.. <li><a hre
0450: 66 3d 22 23 74 69 63 6b 65 74 2d 63 68 65 63 6b f="#ticket-check
0460: 69 6e 2d 6c 69 6e 6b 73 22 3e 4c 69 6e 6b 20 74 in-links">Link t
0470: 69 63 6b 65 74 73 20 74 6f 20 63 68 65 63 6b 69 ickets to checki
0480: 6e 73 3c 2f 61 3e 3c 2f 6c 69 3e 0d 0a 20 20 3c ns</a></li>.. <
0490: 6c 69 3e 3c 61 20 68 72 65 66 3d 22 23 74 68 31 li><a href="#th1
04a0: 2d 75 73 61 67 65 22 3e 46 6f 73 73 69 6c 20 61 -usage">Fossil a
04b0: 6e 64 20 54 68 31 3c 2f 61 3e 3c 2f 6c 69 3e 0d nd Th1</a></li>.
04c0: 0a 3c 2f 75 6c 3e 0d 0a 0d 0a 3c 68 32 3e 3c 61 .</ul>....<h2><a
04d0: 20 6e 61 6d 65 3d 22 43 47 49 22 3e 55 73 69 6e name="CGI">Usin
04e0: 67 20 3c 63 69 74 65 3e 46 6f 73 73 69 6c 3c 2f g <cite>Fossil</
04f0: 63 69 74 65 3e 27 73 20 42 75 69 6c 74 2d 49 6e cite>'s Built-In
0500: 20 43 47 49 3c 2f 61 3e 3c 2f 68 32 3e 0d 0a 3c CGI</a></h2>..<
0510: 68 33 3e 4d 6f 74 69 76 61 74 69 6f 6e 3c 2f 68 h3>Motivation</h
0520: 33 3e 0d 0a 20 20 2a 20 20 59 6f 75 20 77 61 6e 3>.. * You wan
0530: 74 20 74 6f 20 73 68 61 72 65 20 61 20 72 65 70 t to share a rep
0540: 6f 73 69 74 6f 72 79 20 74 68 72 6f 75 67 68 20 ository through
0550: 79 6f 75 72 20 65 78 69 73 74 69 6e 67 20 77 65 your existing we
0560: 62 20 69 6e 66 72 61 73 74 72 75 63 74 75 72 65 b infrastructure
0570: 2e 0d 0a 20 20 2a 20 20 59 6f 75 20 77 61 6e 74 ... * You want
0580: 20 74 6f 20 73 68 61 72 65 20 6d 6f 72 65 20 74 to share more t
0590: 68 61 6e 20 6f 6e 65 20 72 65 70 6f 73 69 74 6f han one reposito
05a0: 72 79 20 61 74 20 74 68 65 20 73 61 6d 65 20 74 ry at the same t
05b0: 69 6d 65 2e 0d 0a 0d 0a 3c 68 33 3e 50 72 6f 62 ime.....<h3>Prob
05c0: 6c 65 6d 3c 2f 68 33 3e 0d 0a 55 6e 6c 69 6b 65 lem</h3>..Unlike
05d0: 20 73 6f 6d 65 20 6f 74 68 65 72 20 64 69 73 74 some other dist
05e0: 72 69 62 75 74 65 64 20 53 43 4d 73 2c 20 3c 63 ributed SCMs, <c
05f0: 69 74 65 3e 46 6f 73 73 69 6c 3c 2f 63 69 74 65 ite>Fossil</cite
0600: 3e 20 63 61 6e 20 6f 6e 6c 79 20 63 6c 6f 6e 65 > can only clone
0610: 2c 20 70 75 73 68 2c 20 70 75 6c 6c 20 61 6e 64 , push, pull and
0620: 20 61 6e 64 20 6f 74 68 65 72 77 69 73 65 20 69 and otherwise i
0630: 6e 74 65 72 61 63 74 20 74 68 72 6f 75 67 68 20 nteract through
0640: 72 65 70 6f 73 69 74 6f 72 69 65 73 20 6f 76 65 repositories ove
0650: 72 20 48 54 54 50 2e 20 20 54 68 69 73 20 63 61 r HTTP. This ca
0660: 6e 20 62 65 20 73 69 6d 70 6c 79 20 61 6e 64 20 n be simply and
0670: 65 61 73 69 6c 79 20 6d 61 6e 61 67 65 64 20 74 easily managed t
0680: 68 72 6f 75 67 68 20 75 73 65 20 6f 66 20 74 68 hrough use of th
0690: 65 20 3c 63 6f 64 65 3e 66 6f 73 73 69 6c 20 73 e <code>fossil s
06a0: 65 72 76 65 72 3c 2f 63 6f 64 65 3e 20 61 6e 64 erver</code> and
06b0: 2f 6f 72 20 3c 63 6f 64 65 3e 66 6f 73 73 69 6c /or <code>fossil
06c0: 20 75 69 3c 2f 63 6f 64 65 3e 20 63 6f 6d 6d 61 ui</code> comma
06d0: 6e 64 73 2c 20 6f 66 20 63 6f 75 72 73 65 2c 20 nds, of course,
06e0: 62 75 74 20 74 68 69 73 20 69 73 20 72 65 61 6c but this is real
06f0: 6c 79 20 6f 6e 6c 79 20 61 64 65 71 75 61 74 65 ly only adequate
0700: 20 66 6f 72 20 61 64 2d 68 6f 63 20 72 65 70 6f for ad-hoc repo
0710: 73 69 74 6f 72 79 20 73 68 61 72 69 6e 67 2e 20 sitory sharing.
0720: 20 43 6f 6e 73 69 64 65 72 2c 20 66 6f 72 20 65 Consider, for e
0730: 78 61 6d 70 6c 65 2c 20 73 68 61 72 69 6e 67 20 xample, sharing
0740: 74 65 6e 20 72 65 70 6f 73 69 74 6f 72 69 65 73 ten repositories
0750: 2e 20 20 55 73 69 6e 67 20 74 68 65 20 62 75 69 . Using the bui
0760: 6c 74 2d 69 6e 20 73 65 72 76 65 72 20 77 6f 75 lt-in server wou
0770: 6c 64 20 72 65 71 75 69 72 65 20 79 6f 75 20 74 ld require you t
0780: 6f 20 6f 70 65 6e 20 74 65 6e 20 70 6f 72 74 73 o open ten ports
0790: 20 69 6e 20 79 6f 75 72 20 66 69 72 65 77 61 6c in your firewal
07a0: 6c 20 74 6f 20 70 65 72 6d 69 74 20 61 63 63 65 l to permit acce
07b0: 73 73 2e 20 20 41 6e 79 20 73 65 72 69 6f 75 73 ss. Any serious
07c0: 20 73 68 61 72 69 6e 67 20 77 69 6c 6c 20 72 65 sharing will re
07d0: 71 75 69 72 65 20 73 6f 6d 65 74 68 69 6e 67 20 quire something
07e0: 6d 6f 72 65 20 72 6f 62 75 73 74 20 61 6e 64 20 more robust and
07f0: 70 65 72 6d 61 6e 65 6e 74 2c 20 61 6e 64 20 73 permanent, and s
0800: 6f 6c 75 74 69 6f 6e 73 20 66 6f 72 20 64 6f 69 olutions for doi
0810: 6e 67 20 73 6f 20 61 72 65 20 64 65 73 63 72 69 ng so are descri
0820: 62 65 64 20 62 65 6c 6f 77 2e 0d 0a 0d 0a 3c 68 bed below.....<h
0830: 33 3e 53 6f 6c 75 74 69 6f 6e 3c 2f 68 33 3e 0d 3>Solution</h3>.
0840: 0a 3c 63 69 74 65 3e 46 6f 73 73 69 6c 3c 2f 63 .<cite>Fossil</c
0850: 69 74 65 3e 20 73 75 70 70 6f 72 74 73 20 74 68 ite> supports th
0860: 72 65 65 20 64 69 66 66 65 72 65 6e 74 20 77 61 ree different wa
0870: 79 73 20 74 6f 20 73 68 61 72 65 20 72 65 70 6f ys to share repo
0880: 73 69 74 6f 72 69 65 73 2e 20 20 46 6f 72 20 61 sitories. For a
0890: 64 2d 68 6f 63 20 73 68 61 72 69 6e 67 20 3c 63 d-hoc sharing <c
08a0: 6f 64 65 3e 66 6f 73 73 69 6c 20 73 65 72 76 65 ode>fossil serve
08b0: 72 2f 75 69 3c 2f 63 6f 64 65 3e 20 69 73 20 6d r/ui</code> is m
08c0: 6f 72 65 20 74 68 61 6e 20 61 64 65 71 75 61 74 ore than adequat
08d0: 65 2e 20 20 46 6f 72 20 6d 6f 72 65 20 72 6f 62 e. For more rob
08e0: 75 73 74 20 73 6f 6c 75 74 69 6f 6e 73 2c 20 68 ust solutions, h
08f0: 6f 77 65 76 65 72 2c 20 74 68 65 20 75 73 65 20 owever, the use
0900: 6f 66 20 3c 63 69 74 65 3e 28 78 29 69 6e 65 74 of <cite>(x)inet
0910: 64 3c 2f 63 69 74 65 3e 20 6f 72 20 43 47 49 20 d</cite> or CGI
0920: 73 75 70 70 6f 72 74 20 69 73 20 69 6e 64 69 63 support is indic
0930: 61 74 65 64 2e 0d 0a 0d 0a 53 65 74 74 69 6e 67 ated.....Setting
0940: 20 75 70 20 66 6f 73 73 69 6c 20 66 6f 72 20 43 up fossil for C
0950: 47 49 20 73 75 70 70 6f 72 74 20 69 73 20 73 69 GI support is si
0960: 6d 70 6c 65 2e 20 20 28 53 65 74 74 69 6e 67 20 mple. (Setting
0970: 75 70 20 79 6f 75 72 20 77 65 62 20 73 65 72 76 up your web serv
0980: 65 72 20 66 6f 72 20 43 47 49 20 73 75 70 70 6f er for CGI suppo
0990: 72 74 20 6d 61 79 20 6f 72 20 6d 61 79 20 6e 6f rt may or may no
09a0: 74 20 62 65 20 73 69 6d 70 6c 65 2c 20 62 75 74 t be simple, but
09b0: 20 69 74 20 69 73 20 6f 75 74 20 6f 66 20 73 63 it is out of sc
09c0: 6f 70 65 20 6f 66 20 74 68 69 73 20 72 65 63 69 ope of this reci
09d0: 70 65 2e 20 20 43 6f 6e 73 75 6c 74 20 79 6f 75 pe. Consult you
09e0: 72 20 77 65 62 20 73 65 72 76 65 72 2f 73 65 72 r web server/ser
09f0: 76 69 63 65 20 70 72 6f 76 69 64 65 72 27 73 20 vice provider's
0a00: 64 6f 63 75 6d 65 6e 74 61 74 69 6f 6e 20 66 6f documentation fo
0a10: 72 20 74 68 69 73 2e 29 0d 0a 0d 0a 3c 68 34 3e r this.)....<h4>
0a20: 55 4e 49 58 3c 2f 68 34 3e 0d 0a 20 20 31 2e 20 UNIX</h4>.. 1.
0a30: 20 46 69 6e 64 20 79 6f 75 72 20 43 47 49 20 73 Find your CGI s
0a40: 63 72 69 70 74 73 20 64 69 72 65 63 74 6f 72 79 cripts directory
0a50: 20 28 69 66 20 61 70 70 6c 69 63 61 62 6c 65 29 (if applicable)
0a60: 2e 20 20 54 68 69 73 20 69 73 20 63 6f 6d 6d 6f . This is commo
0a70: 6e 6c 79 20 73 6f 6d 65 74 68 69 6e 67 20 6c 69 nly something li
0a80: 6b 65 20 3c 62 61 73 65 3e 2f 63 67 69 2d 62 69 ke <base>/cgi-bi
0a90: 6e 2f 2c 20 62 75 74 20 64 6f 65 73 20 6e 6f 74 n/, but does not
0aa0: 20 68 61 76 65 20 74 6f 20 62 65 2e 0d 0a 20 20 have to be...
0ab0: 32 2e 20 20 49 6e 73 69 64 65 20 74 68 61 74 20 2. Inside that
0ac0: 64 69 72 65 63 74 6f 72 79 20 62 75 69 6c 64 20 directory build
0ad0: 61 20 73 63 72 69 70 74 20 66 69 6c 65 20 77 68 a script file wh
0ae0: 69 63 68 20 6c 6f 6f 6b 73 20 6c 69 6b 65 20 74 ich looks like t
0af0: 68 69 73 3a 3c 62 72 3e 3c 63 6f 64 65 3e 3c 70 his:<br><code><p
0b00: 72 65 3e 20 20 23 21 20 2f 75 73 72 2f 62 69 6e re> #! /usr/bin
0b10: 2f 65 6e 76 20 66 6f 73 73 69 6c 3c 62 72 3e 20 /env fossil<br>
0b20: 20 72 65 70 6f 73 69 74 6f 72 79 3a 20 2f 66 75 repository: /fu
0b30: 6c 6c 2f 70 61 74 68 2f 74 6f 2f 72 65 70 6f 73 ll/path/to/repos
0b40: 69 74 6f 72 79 2f 66 69 6c 65 2e 66 73 6c 3c 2f itory/file.fsl</
0b50: 70 72 65 3e 3c 2f 63 6f 64 65 3e 0d 0a 20 20 33 pre></code>.. 3
0b60: 2e 20 20 45 6e 73 75 72 65 20 74 68 61 74 20 74 . Ensure that t
0b70: 68 65 20 73 63 72 69 70 74 20 66 69 6c 65 20 73 he script file s
0b80: 6f 20 67 65 6e 65 72 61 74 65 64 20 69 73 20 73 o generated is s
0b90: 65 74 20 65 78 65 63 75 74 61 62 6c 65 20 66 6f et executable fo
0ba0: 72 20 74 68 65 20 43 47 49 20 75 73 65 72 20 61 r the CGI user a
0bb0: 63 63 6f 75 6e 74 2e 0d 0a 20 20 34 2e 20 20 45 ccount... 4. E
0bc0: 6e 73 75 72 65 20 74 68 61 74 20 65 76 65 72 79 nsure that every
0bd0: 20 64 69 72 65 63 74 6f 72 79 20 69 6e 20 74 68 directory in th
0be0: 65 20 70 61 74 68 20 6c 65 61 64 69 6e 67 20 74 e path leading t
0bf0: 6f 20 74 68 65 20 72 65 70 6f 73 69 74 6f 72 79 o the repository
0c00: 20 69 73 20 20 62 72 6f 77 73 65 61 62 6c 65 20 is browseable
0c10: 28 63 68 6d 6f 64 20 2b 78 29 20 74 6f 20 74 68 (chmod +x) to th
0c20: 65 20 43 47 49 20 75 73 65 72 20 61 63 63 6f 75 e CGI user accou
0c30: 6e 74 2e 0d 0a 20 20 35 2e 20 20 45 6e 73 75 72 nt... 5. Ensur
0c40: 65 20 74 68 61 74 20 74 68 65 20 72 65 70 6f 73 e that the repos
0c50: 69 74 6f 72 79 20 66 69 6c 65 20 69 73 20 72 65 itory file is re
0c60: 61 64 61 62 6c 65 20 3c 65 6d 3e 61 6e 64 3c 2f adable <em>and</
0c70: 65 6d 3e 20 77 72 69 74 61 62 6c 65 20 74 6f 20 em> writable to
0c80: 74 68 65 20 43 47 49 20 75 73 65 72 20 61 63 63 the CGI user acc
0c90: 6f 75 6e 74 2e 0d 0a 0d 0a 54 68 65 20 66 6f 6c ount.....The fol
0ca0: 6c 6f 77 69 6e 67 20 3c 63 69 74 65 3e 62 61 73 lowing <cite>bas
0cb0: 68 3c 2f 63 69 74 65 3e 20 73 63 72 69 70 74 20 h</cite> script
0cc0: 63 61 6e 20 62 65 20 72 75 6e 20 66 72 6f 6d 20 can be run from
0cd0: 77 69 74 68 69 6e 20 74 68 65 20 64 69 72 65 63 within the direc
0ce0: 74 6f 72 79 20 63 6f 6e 74 61 69 6e 69 6e 67 20 tory containing
0cf0: 74 68 65 20 3c 63 69 74 65 3e 46 6f 73 73 69 6c the <cite>Fossil
0d00: 3c 2f 63 69 74 65 3e 20 72 65 70 6f 73 69 74 6f </cite> reposito
0d10: 72 69 65 73 20 74 6f 20 62 65 20 73 68 61 72 65 ries to be share
0d20: 64 20 28 61 6e 64 2c 20 6f 66 20 63 6f 75 72 73 d (and, of cours
0d30: 65 2c 20 61 6c 74 65 72 65 64 20 66 6f 72 20 79 e, altered for y
0d40: 6f 75 72 20 73 65 74 75 70 29 20 74 6f 20 73 65 our setup) to se
0d50: 74 20 73 6f 6d 65 20 6f 66 20 74 68 65 20 63 6f t some of the co
0d60: 6e 73 74 72 61 69 6e 74 73 20 61 62 6f 76 65 20 nstraints above
0d70: 75 70 20 61 75 74 6f 6d 61 74 69 63 61 6c 6c 79 up automatically
0d80: 3a 0d 0a 0d 0a 3c 6e 6f 77 69 6b 69 3e 3c 66 6f :....<nowiki><fo
0d90: 6e 74 20 66 61 63 65 3d 22 6d 6f 6e 6f 73 70 61 nt face="monospa
0da0: 63 65 22 3e 0d 0a 3c 66 6f 6e 74 20 63 6f 6c 6f ce">..<font colo
0db0: 72 3d 22 23 61 35 32 61 32 61 22 3e 26 6e 62 73 r="#a52a2a">&nbs
0dc0: 70 3b 31 20 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 p;1 </font><font
0dd0: 20 63 6f 6c 6f 72 3d 22 23 30 30 30 30 66 66 22 color="#0000ff"
0de0: 3e 23 21 20 2f 75 73 72 2f 62 69 6e 2f 65 6e 76 >#! /usr/bin/env
0df0: 20 62 61 73 68 3c 2f 66 6f 6e 74 3e 3c 62 72 3e bash</font><br>
0e00: 0d 0a 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 ..<font color="#
0e10: 61 35 32 61 32 61 22 3e 26 6e 62 73 70 3b 32 20 a52a2a"> 2
0e20: 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c </font><font col
0e30: 6f 72 3d 22 23 30 30 38 62 38 62 22 3e 43 47 49 or="#008b8b">CGI
0e40: 5f 52 4f 4f 54 3c 2f 66 6f 6e 74 3e 3d 2f 75 73 _ROOT</font>=/us
0e50: 72 2f 6c 69 62 2f 66 6f 73 73 69 6c 3c 62 72 3e r/lib/fossil<br>
0e60: 0d 0a 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 ..<font color="#
0e70: 61 35 32 61 32 61 22 3e 26 6e 62 73 70 3b 33 20 a52a2a"> 3
0e80: 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c </font><font col
0e90: 6f 72 3d 22 23 30 30 38 62 38 62 22 3e 52 45 50 or="#008b8b">REP
0ea0: 4f 53 49 54 4f 52 59 5f 4f 57 4e 45 52 3c 2f 66 OSITORY_OWNER</f
0eb0: 6f 6e 74 3e 3d 6d 69 63 68 61 65 6c 3c 62 72 3e ont>=michael<br>
0ec0: 0d 0a 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 ..<font color="#
0ed0: 61 35 32 61 32 61 22 3e 26 6e 62 73 70 3b 34 20 a52a2a"> 4
0ee0: 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c </font><font col
0ef0: 6f 72 3d 22 23 30 30 38 62 38 62 22 3e 43 47 49 or="#008b8b">CGI
0f00: 5f 47 52 4f 55 50 3c 2f 66 6f 6e 74 3e 3d 77 77 _GROUP</font>=ww
0f10: 77 2d 64 61 74 61 3c 62 72 3e 0d 0a 3c 66 6f 6e w-data<br>..<fon
0f20: 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 t color="#a52a2a
0f30: 22 3e 26 6e 62 73 70 3b 35 20 3c 2f 66 6f 6e 74 "> 5 </font
0f40: 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 ><font color="#a
0f50: 35 32 61 32 61 22 3e 3c 62 3e 69 66 3c 2f 62 3e 52a2a"><b>if</b>
0f60: 3c 2f 66 6f 6e 74 3e 26 6e 62 73 70 3b 3c 66 6f </font> <fo
0f70: 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 nt color="#a52a2
0f80: 61 22 3e 3c 62 3e 5b 3c 2f 62 3e 3c 2f 66 6f 6e a"><b>[</b></fon
0f90: 74 3e 26 6e 62 73 70 3b 3c 66 6f 6e 74 20 63 6f t> <font co
0fa0: 6c 6f 72 3d 22 23 36 61 35 61 63 64 22 3e 60 77 lor="#6a5acd">`w
0fb0: 68 6f 61 6d 69 60 3c 2f 66 6f 6e 74 3e 26 6e 62 hoami`</font>&nb
0fc0: 73 70 3b 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 sp;<font color="
0fd0: 23 61 35 32 61 32 61 22 3e 3c 62 3e 3d 3c 2f 62 #a52a2a"><b>=</b
0fe0: 3e 3c 2f 66 6f 6e 74 3e 26 6e 62 73 70 3b 3c 66 ></font> <f
0ff0: 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 66 66 30 30 ont color="#ff00
1000: 66 66 22 3e 27 72 6f 6f 74 27 3c 2f 66 6f 6e 74 ff">'root'</font
1010: 3e 26 6e 62 73 70 3b 3c 66 6f 6e 74 20 63 6f 6c > <font col
1020: 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 3c 62 3e or="#a52a2a"><b>
1030: 5d 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 3c 62 72 3e ]</b></font><br>
1040: 0d 0a 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 ..<font color="#
1050: 61 35 32 61 32 61 22 3e 26 6e 62 73 70 3b 36 20 a52a2a"> 6
1060: 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c </font><font col
1070: 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 3c 62 3e or="#a52a2a"><b>
1080: 74 68 65 6e 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 3c then</b></font><
1090: 62 72 3e 0d 0a 3c 66 6f 6e 74 20 63 6f 6c 6f 72 br>..<font color
10a0: 3d 22 23 61 35 32 61 32 61 22 3e 26 6e 62 73 70 ="#a52a2a"> 
10b0: 3b 37 20 3c 2f 66 6f 6e 74 3e 26 6e 62 73 70 3b ;7 </font>
10c0: 26 6e 62 73 70 3b 3c 66 6f 6e 74 20 63 6f 6c 6f <font colo
10d0: 72 3d 22 23 61 35 32 61 32 61 22 3e 3c 62 3e 66 r="#a52a2a"><b>f
10e0: 6f 72 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 26 6e 62 or</b></font>&nb
10f0: 73 70 3b 72 65 70 6f 73 69 74 6f 72 79 20 3c 66 sp;repository <f
1100: 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 ont color="#a52a
1110: 32 61 22 3e 3c 62 3e 69 6e 3c 2f 62 3e 3c 2f 66 2a"><b>in</b></f
1120: 6f 6e 74 3e 26 6e 62 73 70 3b 2a 2e 66 73 6c 3c ont> *.fsl<
1130: 62 72 3e 0d 0a 3c 66 6f 6e 74 20 63 6f 6c 6f 72 br>..<font color
1140: 3d 22 23 61 35 32 61 32 61 22 3e 26 6e 62 73 70 ="#a52a2a"> 
1150: 3b 38 20 3c 2f 66 6f 6e 74 3e 26 6e 62 73 70 3b ;8 </font>
1160: 26 6e 62 73 70 3b 3c 66 6f 6e 74 20 63 6f 6c 6f <font colo
1170: 72 3d 22 23 61 35 32 61 32 61 22 3e 3c 62 3e 64 r="#a52a2a"><b>d
1180: 6f 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 3c 62 72 3e o</b></font><br>
1190: 0d 0a 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 ..<font color="#
11a0: 61 35 32 61 32 61 22 3e 26 6e 62 73 70 3b 39 20 a52a2a"> 9
11b0: 3c 2f 66 6f 6e 74 3e 26 6e 62 73 70 3b 26 6e 62 </font> &nb
11c0: 73 70 3b 26 6e 62 73 70 3b 26 6e 62 73 70 3b 3c sp; <
11d0: 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 30 30 38 font color="#008
11e0: 62 38 62 22 3e 53 4f 55 52 43 45 3c 2f 66 6f 6e b8b">SOURCE</fon
11f0: 74 3e 3d 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 t>=<font color="
1200: 23 36 61 35 61 63 64 22 3e 60 3c 2f 66 6f 6e 74 #6a5acd">`</font
1210: 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 ><font color="#a
1220: 35 32 61 32 61 22 3e 3c 62 3e 70 77 64 3c 2f 62 52a2a"><b>pwd</b
1230: 3e 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f ></font><font co
1240: 6c 6f 72 3d 22 23 36 61 35 61 63 64 22 3e 60 3c lor="#6a5acd">`<
1250: 2f 66 6f 6e 74 3e 2f 3c 66 6f 6e 74 20 63 6f 6c /font>/<font col
1260: 6f 72 3d 22 23 61 30 32 30 66 30 22 3e 24 72 65 or="#a020f0">$re
1270: 70 6f 73 69 74 6f 72 79 3c 2f 66 6f 6e 74 3e 3c pository</font><
1280: 62 72 3e 0d 0a 3c 66 6f 6e 74 20 63 6f 6c 6f 72 br>..<font color
1290: 3d 22 23 61 35 32 61 32 61 22 3e 31 30 20 3c 2f ="#a52a2a">10 </
12a0: 66 6f 6e 74 3e 26 6e 62 73 70 3b 26 6e 62 73 70 font>  
12b0: 3b 26 6e 62 73 70 3b 26 6e 62 73 70 3b 3c 66 6f ; <fo
12c0: 6e 74 20 63 6f 6c 6f 72 3d 22 23 30 30 38 62 38 nt color="#008b8
12d0: 62 22 3e 44 45 53 54 49 4e 41 54 49 4f 4e 3c 2f b">DESTINATION</
12e0: 66 6f 6e 74 3e 3d 3c 66 6f 6e 74 20 63 6f 6c 6f font>=<font colo
12f0: 72 3d 22 23 61 30 32 30 66 30 22 3e 24 43 47 49 r="#a020f0">$CGI
1300: 5f 52 4f 4f 54 3c 2f 66 6f 6e 74 3e 2f 3c 66 6f _ROOT</font>/<fo
1310: 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 30 32 30 66 nt color="#a020f
1320: 30 22 3e 24 7b 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 0">${</font><fon
1330: 74 20 63 6f 6c 6f 72 3d 22 23 61 30 32 30 66 30 t color="#a020f0
1340: 22 3e 72 65 70 6f 73 69 74 6f 72 79 3c 2f 66 6f ">repository</fo
1350: 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 nt><font color="
1360: 23 61 35 32 61 32 61 22 3e 3c 62 3e 25 3c 2f 62 #a52a2a"><b>%</b
1370: 3e 3c 2f 66 6f 6e 74 3e 2e 66 73 6c 3c 66 6f 6e ></font>.fsl<fon
1380: 74 20 63 6f 6c 6f 72 3d 22 23 61 30 32 30 66 30 t color="#a020f0
1390: 22 3e 7d 3c 2f 66 6f 6e 74 3e 3c 62 72 3e 0d 0a ">}</font><br>..
13a0: 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 <font color="#a5
13b0: 32 61 32 61 22 3e 31 31 20 3c 2f 66 6f 6e 74 3e 2a2a">11 </font>
13c0: 26 6e 62 73 70 3b 26 6e 62 73 70 3b 26 6e 62 73 &nbs
13d0: 70 3b 26 6e 62 73 70 3b 3c 66 6f 6e 74 20 63 6f p; <font co
13e0: 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 3c 62 lor="#a52a2a"><b
13f0: 3e 65 63 68 6f 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e >echo</b></font>
1400: 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 66 66 <font color="#ff
1410: 30 30 66 66 22 3e 26 6e 62 73 70 3b 3c 2f 66 6f 00ff"> </fo
1420: 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 nt><font color="
1430: 23 61 35 32 61 32 61 22 3e 3c 62 3e 26 71 75 6f #a52a2a"><b>&quo
1440: 74 3b 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 3c 66 6f t;</b></font><fo
1450: 6e 74 20 63 6f 6c 6f 72 3d 22 23 66 66 30 30 66 nt color="#ff00f
1460: 66 22 3e 23 21 20 2f 75 73 72 2f 62 69 6e 2f 65 f">#! /usr/bin/e
1470: 6e 76 20 66 6f 73 73 69 6c 3c 2f 66 6f 6e 74 3e nv fossil</font>
1480: 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 <font color="#a5
1490: 32 61 32 61 22 3e 3c 62 3e 26 71 75 6f 74 3b 3c 2a2a"><b>"<
14a0: 2f 62 3e 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 /b></font><font
14b0: 63 6f 6c 6f 72 3d 22 23 66 66 30 30 66 66 22 3e color="#ff00ff">
14c0: 26 6e 62 73 70 3b 3c 2f 66 6f 6e 74 3e 3c 66 6f </font><fo
14d0: 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 nt color="#a52a2
14e0: 61 22 3e 3c 62 3e 26 67 74 3b 3c 2f 62 3e 3c 2f a"><b>></b></
14f0: 66 6f 6e 74 3e 26 6e 62 73 70 3b 3c 66 6f 6e 74 font> <font
1500: 20 63 6f 6c 6f 72 3d 22 23 61 30 32 30 66 30 22 color="#a020f0"
1510: 3e 24 44 45 53 54 49 4e 41 54 49 4f 4e 3c 2f 66 >$DESTINATION</f
1520: 6f 6e 74 3e 3c 62 72 3e 0d 0a 3c 66 6f 6e 74 20 ont><br>..<font
1530: 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e color="#a52a2a">
1540: 31 32 20 3c 2f 66 6f 6e 74 3e 26 6e 62 73 70 3b 12 </font>
1550: 26 6e 62 73 70 3b 26 6e 62 73 70 3b 26 6e 62 73 &nbs
1560: 70 3b 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 p;<font color="#
1570: 61 35 32 61 32 61 22 3e 3c 62 3e 65 63 68 6f 3c a52a2a"><b>echo<
1580: 2f 62 3e 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 /b></font><font
1590: 63 6f 6c 6f 72 3d 22 23 66 66 30 30 66 66 22 3e color="#ff00ff">
15a0: 26 6e 62 73 70 3b 3c 2f 66 6f 6e 74 3e 3c 66 6f </font><fo
15b0: 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 nt color="#a52a2
15c0: 61 22 3e 3c 62 3e 26 71 75 6f 74 3b 3c 2f 62 3e a"><b>"</b>
15d0: 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c </font><font col
15e0: 6f 72 3d 22 23 66 66 30 30 66 66 22 3e 72 65 70 or="#ff00ff">rep
15f0: 6f 73 69 74 6f 72 79 3a 20 3c 2f 66 6f 6e 74 3e ository: </font>
1600: 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 30 <font color="#a0
1610: 32 30 66 30 22 3e 24 53 4f 55 52 43 45 3c 2f 66 20f0">$SOURCE</f
1620: 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d ont><font color=
1630: 22 23 61 35 32 61 32 61 22 3e 3c 62 3e 26 71 75 "#a52a2a"><b>&qu
1640: 6f 74 3b 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 3c 66 ot;</b></font><f
1650: 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 66 66 30 30 ont color="#ff00
1660: 66 66 22 3e 26 6e 62 73 70 3b 3c 2f 66 6f 6e 74 ff"> </font
1670: 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 ><font color="#a
1680: 35 32 61 32 61 22 3e 3c 62 3e 26 67 74 3b 26 67 52a2a"><b>>&g
1690: 74 3b 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 26 6e 62 t;</b></font>&nb
16a0: 73 70 3b 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 sp;<font color="
16b0: 23 61 30 32 30 66 30 22 3e 24 44 45 53 54 49 4e #a020f0">$DESTIN
16c0: 41 54 49 4f 4e 3c 2f 66 6f 6e 74 3e 3c 62 72 3e ATION</font><br>
16d0: 0d 0a 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 ..<font color="#
16e0: 61 35 32 61 32 61 22 3e 31 33 20 3c 2f 66 6f 6e a52a2a">13 </fon
16f0: 74 3e 26 6e 62 73 70 3b 26 6e 62 73 70 3b 26 6e t> &n
1700: 62 73 70 3b 26 6e 62 73 70 3b 63 68 6f 77 6e 20 bsp; chown
1710: 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 30 <font color="#a0
1720: 32 30 66 30 22 3e 24 52 45 50 4f 53 49 54 4f 52 20f0">$REPOSITOR
1730: 59 5f 4f 57 4e 45 52 3c 2f 66 6f 6e 74 3e 3a 3c Y_OWNER</font>:<
1740: 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 30 32 font color="#a02
1750: 30 66 30 22 3e 24 43 47 49 5f 47 52 4f 55 50 3c 0f0">$CGI_GROUP<
1760: 2f 66 6f 6e 74 3e 26 6e 62 73 70 3b 3c 66 6f 6e /font> <fon
1770: 74 20 63 6f 6c 6f 72 3d 22 23 61 30 32 30 66 30 t color="#a020f0
1780: 22 3e 24 53 4f 55 52 43 45 3c 2f 66 6f 6e 74 3e ">$SOURCE</font>
1790: 3c 62 72 3e 0d 0a 3c 66 6f 6e 74 20 63 6f 6c 6f <br>..<font colo
17a0: 72 3d 22 23 61 35 32 61 32 61 22 3e 31 34 20 3c r="#a52a2a">14 <
17b0: 2f 66 6f 6e 74 3e 26 6e 62 73 70 3b 26 6e 62 73 /font> &nbs
17c0: 70 3b 26 6e 62 73 70 3b 26 6e 62 73 70 3b 3c 66 p; <f
17d0: 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 ont color="#a52a
17e0: 32 61 22 3e 3c 62 3e 63 68 6d 6f 64 3c 2f 62 3e 2a"><b>chmod</b>
17f0: 3c 2f 66 6f 6e 74 3e 26 6e 62 73 70 3b 3c 66 6f </font> <fo
1800: 6e 74 20 63 6f 6c 6f 72 3d 22 23 66 66 30 30 66 nt color="#ff00f
1810: 66 22 3e 36 36 34 3c 2f 66 6f 6e 74 3e 26 6e 62 f">664</font>&nb
1820: 73 70 3b 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 sp;<font color="
1830: 23 61 30 32 30 66 30 22 3e 24 53 4f 55 52 43 45 #a020f0">$SOURCE
1840: 3c 2f 66 6f 6e 74 3e 3c 62 72 3e 0d 0a 3c 66 6f </font><br>..<fo
1850: 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 nt color="#a52a2
1860: 61 22 3e 31 35 20 3c 2f 66 6f 6e 74 3e 26 6e 62 a">15 </font>&nb
1870: 73 70 3b 26 6e 62 73 70 3b 26 6e 62 73 70 3b 26 sp; &
1880: 6e 62 73 70 3b 63 68 6f 77 6e 20 72 6f 6f 74 3a nbsp;chown root:
1890: 72 6f 6f 74 20 3c 66 6f 6e 74 20 63 6f 6c 6f 72 root <font color
18a0: 3d 22 23 61 30 32 30 66 30 22 3e 24 44 45 53 54 ="#a020f0">$DEST
18b0: 49 4e 41 54 49 4f 4e 3c 2f 66 6f 6e 74 3e 3c 62 INATION</font><b
18c0: 72 3e 0d 0a 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d r>..<font color=
18d0: 22 23 61 35 32 61 32 61 22 3e 31 36 20 3c 2f 66 "#a52a2a">16 </f
18e0: 6f 6e 74 3e 26 6e 62 73 70 3b 26 6e 62 73 70 3b ont>
18f0: 26 6e 62 73 70 3b 26 6e 62 73 70 3b 3c 66 6f 6e <fon
1900: 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 t color="#a52a2a
1910: 22 3e 3c 62 3e 63 68 6d 6f 64 3c 2f 62 3e 3c 2f "><b>chmod</b></
1920: 66 6f 6e 74 3e 26 6e 62 73 70 3b 3c 66 6f 6e 74 font> <font
1930: 20 63 6f 6c 6f 72 3d 22 23 66 66 30 30 66 66 22 color="#ff00ff"
1940: 3e 37 35 35 3c 2f 66 6f 6e 74 3e 26 6e 62 73 70 >755</font> 
1950: 3b 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 ;<font color="#a
1960: 30 32 30 66 30 22 3e 24 44 45 53 54 49 4e 41 54 020f0">$DESTINAT
1970: 49 4f 4e 3c 2f 66 6f 6e 74 3e 3c 62 72 3e 0d 0a ION</font><br>..
1980: 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 <font color="#a5
1990: 32 61 32 61 22 3e 31 37 20 3c 2f 66 6f 6e 74 3e 2a2a">17 </font>
19a0: 26 6e 62 73 70 3b 26 6e 62 73 70 3b 3c 66 6f 6e <fon
19b0: 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 t color="#a52a2a
19c0: 22 3e 3c 62 3e 64 6f 6e 65 3c 2f 62 3e 3c 2f 66 "><b>done</b></f
19d0: 6f 6e 74 3e 3c 62 72 3e 0d 0a 3c 66 6f 6e 74 20 ont><br>..<font
19e0: 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e color="#a52a2a">
19f0: 31 38 20 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 18 </font><font
1a00: 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e color="#a52a2a">
1a10: 3c 62 3e 65 6c 73 65 3c 2f 62 3e 3c 2f 66 6f 6e <b>else</b></fon
1a20: 74 3e 3c 62 72 3e 0d 0a 3c 66 6f 6e 74 20 63 6f t><br>..<font co
1a30: 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 31 39 lor="#a52a2a">19
1a40: 20 3c 2f 66 6f 6e 74 3e 26 6e 62 73 70 3b 26 6e </font> &n
1a50: 62 73 70 3b 73 75 64 6f 20 3c 66 6f 6e 74 20 63 bsp;sudo <font c
1a60: 6f 6c 6f 72 3d 22 23 61 30 32 30 66 30 22 3e 24 olor="#a020f0">$
1a70: 30 3c 2f 66 6f 6e 74 3e 26 6e 62 73 70 3b 3c 66 0</font> <f
1a80: 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 30 32 30 ont color="#a020
1a90: 66 30 22 3e 24 2a 3c 2f 66 6f 6e 74 3e 3c 62 72 f0">$*</font><br
1aa0: 3e 0d 0a 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 >..<font color="
1ab0: 23 61 35 32 61 32 61 22 3e 32 30 20 3c 2f 66 6f #a52a2a">20 </fo
1ac0: 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 nt><font color="
1ad0: 23 61 35 32 61 32 61 22 3e 3c 62 3e 66 69 3c 2f #a52a2a"><b>fi</
1ae0: 62 3e 3c 2f 66 6f 6e 74 3e 3c 62 72 3e 0d 0a 3c b></font><br>..<
1af0: 2f 66 6f 6e 74 3e 3c 2f 6e 6f 77 69 6b 69 3e 0d /font></nowiki>.
1b00: 0a 0d 0a 48 65 72 65 20 69 73 20 61 20 6c 69 74 ...Here is a lit
1b10: 74 6c 65 20 70 65 72 6c 20 73 63 72 69 70 74 20 tle perl script
1b20: 74 6f 20 70 75 74 20 69 6e 20 79 6f 75 72 20 63 to put in your c
1b30: 67 69 2d 62 69 6e 20 74 6f 20 6c 69 73 74 20 61 gi-bin to list a
1b40: 6c 6c 20 74 68 65 20 66 6f 73 73 69 6c 73 20 79 ll the fossils y
1b50: 6f 75 20 61 72 65 20 70 75 62 6c 69 73 68 69 6e ou are publishin
1b60: 67 3a 0d 0a 0d 0a 3c 6e 6f 77 69 6b 69 3e 0d 0a g:....<nowiki>..
1b70: 3c 70 72 65 3e 0d 0a 3c 66 6f 6e 74 20 63 6f 6c <pre>..<font col
1b80: 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 26 6e 62 or="#a52a2a">&nb
1b90: 73 70 3b 31 20 3c 2f 66 6f 6e 74 3e 20 23 21 2f sp;1 </font> #!/
1ba0: 75 73 72 2f 62 69 6e 2f 70 65 72 6c 20 2d 77 0d usr/bin/perl -w.
1bb0: 0a 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 .<font color="#a
1bc0: 35 32 61 32 61 22 3e 26 6e 62 73 70 3b 32 20 3c 52a2a"> 2 <
1bd0: 2f 66 6f 6e 74 3e 20 3c 66 6f 6e 74 20 63 6f 6c /font> <font col
1be0: 6f 72 3d 22 23 38 42 30 30 38 42 22 3e 3c 62 3e or="#8B008B"><b>
1bf0: 6d 79 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 20 3c 66 my</b></font> <f
1c00: 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 30 30 36 38 ont color="#0068
1c10: 38 42 22 3e 24 43 47 49 5f 42 49 4e 3c 2f 66 6f 8B">$CGI_BIN</fo
1c20: 6e 74 3e 20 3d 20 3c 66 6f 6e 74 20 63 6f 6c 6f nt> = <font colo
1c30: 72 3d 22 23 43 44 35 35 35 35 22 3e 26 23 33 39 r="#CD5555">'
1c40: 3b 2f 4c 69 62 72 61 72 79 2f 57 65 62 53 65 72 ;/Library/WebSer
1c50: 76 65 72 2f 43 47 49 2d 45 78 65 63 75 74 61 62 ver/CGI-Executab
1c60: 6c 65 73 26 23 33 39 3b 3c 2f 66 6f 6e 74 3e 3c les'</font><
1c70: 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 30 30 30 font color="#000
1c80: 30 30 30 22 3e 3b 3c 2f 66 6f 6e 74 3e 0d 0a 3c 000">;</font>..<
1c90: 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 font color="#a52
1ca0: 61 32 61 22 3e 26 6e 62 73 70 3b 33 20 3c 2f 66 a2a"> 3 </f
1cb0: 6f 6e 74 3e 20 3c 66 6f 6e 74 20 63 6f 6c 6f 72 ont> <font color
1cc0: 3d 22 23 38 42 30 30 38 42 22 3e 3c 62 3e 6d 79 ="#8B008B"><b>my
1cd0: 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 20 3c 66 6f 6e </b></font> <fon
1ce0: 74 20 63 6f 6c 6f 72 3d 22 23 30 30 36 38 38 42 t color="#00688B
1cf0: 22 3e 40 66 69 6c 65 73 3c 2f 66 6f 6e 74 3e 20 ">@files</font>
1d00: 3d 20 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 = <font color="#
1d10: 43 44 35 35 35 35 22 3e 60 67 72 65 70 20 2d 6c CD5555">`grep -l
1d20: 20 72 65 70 6f 73 69 74 6f 72 79 3a 20 20 24 43 repository: $C
1d30: 47 49 5f 42 49 4e 2f 2a 20 60 3c 2f 66 6f 6e 74 GI_BIN/* `</font
1d40: 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 30 ><font color="#0
1d50: 30 30 30 30 30 22 3e 3b 3c 2f 66 6f 6e 74 3e 0d 00000">;</font>.
1d60: 0a 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 .<font color="#a
1d70: 35 32 61 32 61 22 3e 26 6e 62 73 70 3b 34 20 3c 52a2a"> 4 <
1d80: 2f 66 6f 6e 74 3e 20 3c 66 6f 6e 74 20 63 6f 6c /font> <font col
1d90: 6f 72 3d 22 23 38 42 30 30 38 42 22 3e 3c 62 3e or="#8B008B"><b>
1da0: 70 72 69 6e 74 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e print</b></font>
1db0: 20 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 43 <font color="#C
1dc0: 44 35 35 35 35 22 3e 3c 62 3e 26 6c 74 3b 26 6c D5555"><b><&l
1dd0: 74 3b 45 4f 4d 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e t;EOM</b></font>
1de0: 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 30 30 <font color="#00
1df0: 30 30 30 30 22 3e 3b 3c 2f 66 6f 6e 74 3e 0d 0a 0000">;</font>..
1e00: 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 <font color="#a5
1e10: 32 61 32 61 22 3e 26 6e 62 73 70 3b 35 20 3c 2f 2a2a"> 5 </
1e20: 66 6f 6e 74 3e 20 3c 66 6f 6e 74 20 63 6f 6c 6f font> <font colo
1e30: 72 3d 22 23 43 44 35 35 35 35 22 3e 3c 69 3e 43 r="#CD5555"><i>C
1e40: 6f 6e 74 65 6e 74 2d 54 79 70 65 3a 20 74 65 78 ontent-Type: tex
1e50: 74 2f 68 74 6d 6c 3c 2f 69 3e 3c 2f 66 6f 6e 74 t/html</i></font
1e60: 3e 0d 0a 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 >..<font color="
1e70: 23 61 35 32 61 32 61 22 3e 26 6e 62 73 70 3b 36 #a52a2a"> 6
1e80: 20 3c 2f 66 6f 6e 74 3e 0d 0a 3c 66 6f 6e 74 20 </font>..<font
1e90: 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e color="#a52a2a">
1ea0: 26 6e 62 73 70 3b 37 20 3c 2f 66 6f 6e 74 3e 20 7 </font>
1eb0: 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 43 44 <font color="#CD
1ec0: 35 35 35 35 22 3e 3c 69 3e 46 6f 73 73 69 6c 73 5555"><i>Fossils
1ed0: 20 66 6f 72 20 74 68 69 73 20 73 65 72 76 65 72 for this server
1ee0: 3c 2f 69 3e 3c 2f 66 6f 6e 74 3e 0d 0a 3c 66 6f </i></font>..<fo
1ef0: 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 nt color="#a52a2
1f00: 61 22 3e 26 6e 62 73 70 3b 38 20 3c 2f 66 6f 6e a"> 8 </fon
1f10: 74 3e 20 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 t> <font color="
1f20: 23 43 44 35 35 35 35 22 3e 3c 69 3e 26 6c 74 3b #CD5555"><i><
1f30: 75 6c 26 67 74 3b 3c 2f 69 3e 3c 2f 66 6f 6e 74 ul></i></font
1f40: 3e 0d 0a 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 >..<font color="
1f50: 23 61 35 32 61 32 61 22 3e 26 6e 62 73 70 3b 39 #a52a2a"> 9
1f60: 20 3c 2f 66 6f 6e 74 3e 20 3c 66 6f 6e 74 20 63 </font> <font c
1f70: 6f 6c 6f 72 3d 22 23 43 44 35 35 35 35 22 3e 3c olor="#CD5555"><
1f80: 62 3e 45 4f 4d 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e b>EOM</b></font>
1f90: 0d 0a 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 ..<font color="#
1fa0: 61 35 32 61 32 61 22 3e 26 6e 62 73 70 3b 31 30 a52a2a"> 10
1fb0: 20 3c 2f 66 6f 6e 74 3e 0d 0a 3c 66 6f 6e 74 20 </font>..<font
1fc0: 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e color="#a52a2a">
1fd0: 26 6e 62 73 70 3b 31 31 20 3c 2f 66 6f 6e 74 3e 11 </font>
1fe0: 20 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 38 <font color="#8
1ff0: 42 30 30 38 42 22 3e 3c 62 3e 66 6f 72 3c 2f 62 B008B"><b>for</b
2000: 3e 3c 2f 66 6f 6e 74 3e 20 3c 66 6f 6e 74 20 63 ></font> <font c
2010: 6f 6c 6f 72 3d 22 23 30 30 30 30 30 30 22 3e 28 olor="#000000">(
2020: 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c </font><font col
2030: 6f 72 3d 22 23 30 30 36 38 38 42 22 3e 40 66 69 or="#00688B">@fi
2040: 6c 65 73 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 les</font><font
2050: 63 6f 6c 6f 72 3d 22 23 30 30 30 30 30 30 22 3e color="#000000">
2060: 29 3c 2f 66 6f 6e 74 3e 20 3c 66 6f 6e 74 20 63 )</font> <font c
2070: 6f 6c 6f 72 3d 22 23 30 30 30 30 30 30 22 3e 7b olor="#000000">{
2080: 3c 2f 66 6f 6e 74 3e 0d 0a 3c 66 6f 6e 74 20 63 </font>..<font c
2090: 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 26 olor="#a52a2a">&
20a0: 6e 62 73 70 3b 31 32 20 3c 2f 66 6f 6e 74 3e 20 nbsp;12 </font>
20b0: 20 20 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 <font color="#
20c0: 43 44 35 35 35 35 22 3e 73 7b 2e 2a 2f 7d 7b 7d CD5555">s{.*/}{}
20d0: 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c </font><font col
20e0: 6f 72 3d 22 23 30 30 30 30 30 30 22 3e 3b 3c 2f or="#000000">;</
20f0: 66 6f 6e 74 3e 0d 0a 3c 66 6f 6e 74 20 63 6f 6c font>..<font col
2100: 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 26 6e 62 or="#a52a2a">&nb
2110: 73 70 3b 31 33 20 3c 2f 66 6f 6e 74 3e 20 20 20 sp;13 </font>
2120: 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 38 42 <font color="#8B
2130: 30 30 38 42 22 3e 3c 62 3e 6e 65 78 74 3c 2f 62 008B"><b>next</b
2140: 3e 3c 2f 66 6f 6e 74 3e 20 3c 66 6f 6e 74 20 63 ></font> <font c
2150: 6f 6c 6f 72 3d 22 23 38 42 30 30 38 42 22 3e 3c olor="#8B008B"><
2160: 62 3e 69 66 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 20 b>if</b></font>
2170: 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 43 44 <font color="#CD
2180: 35 35 35 35 22 3e 2f 7e 24 2f 3c 2f 66 6f 6e 74 5555">/~$/</font
2190: 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 30 ><font color="#0
21a0: 30 30 30 30 30 22 3e 3b 3c 2f 66 6f 6e 74 3e 0d 00000">;</font>.
21b0: 0a 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 .<font color="#a
21c0: 35 32 61 32 61 22 3e 26 6e 62 73 70 3b 31 34 20 52a2a"> 14
21d0: 3c 2f 66 6f 6e 74 3e 20 20 20 3c 66 6f 6e 74 20 </font> <font
21e0: 63 6f 6c 6f 72 3d 22 23 38 42 30 30 38 42 22 3e color="#8B008B">
21f0: 3c 62 3e 70 72 69 6e 74 3c 2f 62 3e 3c 2f 66 6f <b>print</b></fo
2200: 6e 74 3e 20 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d nt> <font color=
2210: 22 23 43 44 35 35 35 35 22 3e 26 71 75 6f 74 3b "#CD5555">"
2220: 26 6c 74 3b 6c 69 26 67 74 3b 26 6c 74 3b 61 20 <li><a
2230: 68 72 65 66 3d 26 23 33 39 3b 24 5f 26 23 33 39 href='$_'
2240: 3b 26 67 74 3b 24 5f 26 6c 74 3b 2f 61 26 67 74 ;>$_</a>
2250: 3b 26 6c 74 3b 2f 6c 69 26 67 74 3b 5c 6e 26 71 ;</li>\n&q
2260: 75 6f 74 3b 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 uot;</font><font
2270: 20 63 6f 6c 6f 72 3d 22 23 30 30 30 30 30 30 22 color="#000000"
2280: 3e 3b 3c 2f 66 6f 6e 74 3e 0d 0a 3c 66 6f 6e 74 >;</font>..<font
2290: 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 color="#a52a2a"
22a0: 3e 26 6e 62 73 70 3b 31 35 20 3c 2f 66 6f 6e 74 > 15 </font
22b0: 3e 20 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 > <font color="#
22c0: 30 30 30 30 30 30 22 3e 7d 3c 2f 66 6f 6e 74 3e 000000">}</font>
22d0: 0d 0a 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 ..<font color="#
22e0: 61 35 32 61 32 61 22 3e 26 6e 62 73 70 3b 31 36 a52a2a"> 16
22f0: 20 3c 2f 66 6f 6e 74 3e 20 3c 66 6f 6e 74 20 63 </font> <font c
2300: 6f 6c 6f 72 3d 22 23 38 42 30 30 38 42 22 3e 3c olor="#8B008B"><
2310: 62 3e 70 72 69 6e 74 3c 2f 62 3e 3c 2f 66 6f 6e b>print</b></fon
2320: 74 3e 20 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 t> <font color="
2330: 23 43 44 35 35 35 35 22 3e 26 71 75 6f 74 3b 26 #CD5555">"&
2340: 6c 74 3b 2f 75 6c 26 67 74 3b 5c 6e 26 71 75 6f lt;/ul>\n&quo
2350: 74 3b 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 t;</font><font c
2360: 6f 6c 6f 72 3d 22 23 30 30 30 30 30 30 22 3e 3b olor="#000000">;
2370: 3c 2f 66 6f 6e 74 3e 0d 0a 3c 2f 70 72 65 3e 0d </font>..</pre>.
2380: 0a 3c 2f 6e 6f 77 69 6b 69 3e 0d 0a 0d 0a 54 68 .</nowiki>....Th
2390: 65 20 66 6f 6c 6c 6f 77 69 6e 67 20 3c 63 69 74 e following <cit
23a0: 65 3e 61 70 61 63 68 65 32 3c 2f 63 69 74 65 3e e>apache2</cite>
23b0: 20 63 6f 6e 66 69 67 75 72 61 74 69 6f 6e 20 63 configuration c
23c0: 61 6e 20 62 65 20 75 73 65 64 20 74 6f 20 72 75 an be used to ru
23d0: 6e 20 74 68 65 20 72 6f 6f 74 20 6f 66 20 61 20 n the root of a
23e0: 77 65 62 20 73 69 74 65 20 77 69 74 68 20 66 6f web site with fo
23f0: 73 73 69 6c 2c 20 62 75 74 20 73 74 69 6c 6c 20 ssil, but still
2400: 61 6c 6c 6f 77 20 6f 74 68 65 72 20 73 65 72 76 allow other serv
2410: 69 63 65 73 20 2f 20 64 6f 63 75 6d 65 6e 74 73 ices / documents
2420: 20 74 6f 20 62 65 20 72 65 61 63 68 65 64 20 76 to be reached v
2430: 69 61 20 73 70 65 63 69 66 69 63 20 55 52 4c 73 ia specific URLs
2440: 2e 20 52 65 70 6c 61 63 65 20 22 63 6f 64 65 2e . Replace "code.
2450: 61 75 74 6f 6e 6f 6d 6f 2e 75 73 22 20 77 69 74 autonomo.us" wit
2460: 68 20 79 6f 75 72 20 73 69 74 65 27 73 20 6e 61 h your site's na
2470: 6d 65 20 61 6e 64 20 22 64 63 6c 61 72 6b 40 70 me and "dclark@p
2480: 6f 62 6f 78 2e 63 6f 6d 22 20 77 69 74 68 20 79 obox.com" with y
2490: 6f 75 72 20 65 6d 61 69 6c 2e 0d 0a 0d 0a 3c 76 our email.....<v
24a0: 65 72 62 61 74 69 6d 3e 0d 0a 4e 61 6d 65 56 69 erbatim>..NameVi
24b0: 72 74 75 61 6c 48 6f 73 74 20 2a 3a 38 30 0d 0a rtualHost *:80..
24c0: 3c 56 69 72 74 75 61 6c 48 6f 73 74 20 2a 3a 38 <VirtualHost *:8
24d0: 30 3e 0d 0a 20 20 20 20 53 65 72 76 65 72 4e 61 0>.. ServerNa
24e0: 6d 65 20 63 6f 64 65 2e 61 75 74 6f 6e 6f 6d 6f me code.autonomo
24f0: 2e 75 73 0d 0a 20 20 20 20 53 65 72 76 65 72 41 .us.. ServerA
2500: 64 6d 69 6e 20 64 63 6c 61 72 6b 40 70 6f 62 6f dmin dclark@pobo
2510: 78 2e 63 6f 6d 0d 0a 20 20 20 20 45 72 72 6f 72 x.com.. Error
2520: 4c 6f 67 20 2f 76 61 72 2f 6c 6f 67 2f 61 70 61 Log /var/log/apa
2530: 63 68 65 32 2f 63 6f 64 65 2e 61 75 74 6f 6e 6f che2/code.autono
2540: 6d 6f 2e 75 73 2d 65 72 72 6f 72 2e 6c 6f 67 0d mo.us-error.log.
2550: 0a 20 20 20 20 4c 6f 67 4c 65 76 65 6c 20 77 61 . LogLevel wa
2560: 72 6e 0d 0a 20 20 20 20 43 75 73 74 6f 6d 4c 6f rn.. CustomLo
2570: 67 20 2f 76 61 72 2f 6c 6f 67 2f 61 70 61 63 68 g /var/log/apach
2580: 65 32 2f 63 6f 64 65 2e 61 75 74 6f 6e 6f 6d 6f e2/code.autonomo
2590: 2e 75 73 2d 61 63 63 65 73 73 2e 6c 6f 67 20 63 .us-access.log c
25a0: 6f 6d 62 69 6e 65 64 0d 0a 20 20 20 20 53 65 72 ombined.. Ser
25b0: 76 65 72 53 69 67 6e 61 74 75 72 65 20 4f 6e 0d verSignature On.
25c0: 0a 0d 0a 20 20 20 20 44 6f 63 75 6d 65 6e 74 52 ... DocumentR
25d0: 6f 6f 74 20 2f 76 61 72 2f 77 77 77 2f 0d 0a 0d oot /var/www/...
25e0: 0a 20 20 20 20 53 63 72 69 70 74 41 6c 69 61 73 . ScriptAlias
25f0: 20 2f 63 67 69 2d 62 69 6e 2f 20 2f 75 73 72 2f /cgi-bin/ /usr/
2600: 6c 69 62 2f 63 67 69 2d 62 69 6e 2f 0d 0a 20 20 lib/cgi-bin/..
2610: 20 20 3c 44 69 72 65 63 74 6f 72 79 20 22 2f 75 <Directory "/u
2620: 73 72 2f 6c 69 62 2f 63 67 69 2d 62 69 6e 22 3e sr/lib/cgi-bin">
2630: 0d 0a 20 20 20 20 20 20 20 20 41 6c 6c 6f 77 4f .. AllowO
2640: 76 65 72 72 69 64 65 20 4e 6f 6e 65 0d 0a 20 20 verride None..
2650: 20 20 20 20 20 20 4f 70 74 69 6f 6e 73 20 2b 45 Options +E
2660: 78 65 63 43 47 49 20 2d 4d 75 6c 74 69 56 69 65 xecCGI -MultiVie
2670: 77 73 20 2b 53 79 6d 4c 69 6e 6b 73 49 66 4f 77 ws +SymLinksIfOw
2680: 6e 65 72 4d 61 74 63 68 0d 0a 20 20 20 20 20 20 nerMatch..
2690: 20 20 4f 72 64 65 72 20 61 6c 6c 6f 77 2c 64 65 Order allow,de
26a0: 6e 79 0d 0a 20 20 20 20 20 20 20 20 41 6c 6c 6f ny.. Allo
26b0: 77 20 66 72 6f 6d 20 61 6c 6c 0d 0a 20 20 20 20 w from all..
26c0: 3c 2f 44 69 72 65 63 74 6f 72 79 3e 0d 0a 0d 0a </Directory>....
26d0: 20 20 20 20 23 20 46 6f 73 73 69 6c 20 53 43 4d # Fossil SCM
26e0: 20 61 74 20 72 6f 6f 74 20 6f 66 20 77 65 62 20 at root of web
26f0: 73 69 74 65 20 28 68 74 74 70 3a 2f 2f 65 78 61 site (http://exa
2700: 6d 70 6c 65 2e 63 6f 6d 29 20 63 6f 6e 66 69 67 mple.com) config
2710: 75 72 61 74 69 6f 6e 2e 2e 2e 0d 0a 20 20 20 20 uration.....
2720: 52 65 77 72 69 74 65 45 6e 67 69 6e 65 20 4f 6e RewriteEngine On
2730: 0d 0a 20 20 20 20 23 20 52 65 77 72 69 74 65 43 .. # RewriteC
2740: 6f 6e 64 20 2d 20 4f 6e 65 20 66 6f 72 20 65 76 ond - One for ev
2750: 65 72 79 20 55 52 4c 20 77 65 20 64 6f 6e 27 74 ery URL we don't
2760: 20 77 61 6e 74 20 46 6f 73 73 69 6c 20 53 43 4d want Fossil SCM
2770: 20 74 6f 20 73 65 72 76 65 2e 20 49 6e 20 74 68 to serve. In th
2780: 65 0d 0a 20 20 20 20 23 20 20 20 20 20 20 20 20 e.. #
2790: 20 20 20 20 20 20 20 65 78 61 6d 70 6c 65 2c 20 example,
27a0: 72 65 71 75 65 73 74 73 20 74 68 61 74 20 67 6f requests that go
27b0: 20 74 6f 20 74 68 65 20 2f 76 61 72 2f 77 77 77 to the /var/www
27c0: 2f 74 6d 70 20 64 69 72 65 63 74 6f 72 79 20 61 /tmp directory a
27d0: 6e 64 20 0d 0a 20 20 20 20 23 20 20 20 20 20 20 nd .. #
27e0: 20 20 20 20 20 20 20 20 20 74 68 65 20 2f 75 73 the /us
27f0: 72 2f 6c 69 62 2f 63 67 69 2d 62 69 6e 20 64 69 r/lib/cgi-bin di
2800: 72 65 63 74 6f 74 79 20 61 72 65 20 69 67 6e 6f rectoty are igno
2810: 72 65 64 20 62 79 20 46 6f 73 73 69 6c 20 53 43 red by Fossil SC
2820: 4d 2e 0d 0a 20 20 20 20 52 65 77 72 69 74 65 43 M... RewriteC
2830: 6f 6e 64 20 25 7b 52 45 51 55 45 53 54 5f 55 52 ond %{REQUEST_UR
2840: 49 7d 20 21 5e 2f 74 6d 70 2f 2e 2a 24 0d 0a 20 I} !^/tmp/.*$..
2850: 20 20 20 52 65 77 72 69 74 65 43 6f 6e 64 20 25 RewriteCond %
2860: 7b 52 45 51 55 45 53 54 5f 55 52 49 7d 20 21 5e {REQUEST_URI} !^
2870: 2f 63 67 69 2d 62 69 6e 2f 2e 2a 24 0d 0a 20 20 /cgi-bin/.*$..
2880: 20 20 52 65 77 72 69 74 65 52 75 6c 65 20 5e 28 RewriteRule ^(
2890: 2e 2a 29 24 20 2f 75 73 72 2f 6c 69 62 2f 63 67 .*)$ /usr/lib/cg
28a0: 69 2d 62 69 6e 2f 63 6f 64 65 2e 61 75 74 6f 6e i-bin/code.auton
28b0: 6f 6d 6f 2e 75 73 2f 24 31 20 5b 54 3d 61 70 70 omo.us/$1 [T=app
28c0: 6c 69 63 61 74 69 6f 6e 2f 78 2d 68 74 74 70 64 lication/x-httpd
28d0: 2d 63 67 69 5d 0d 0a 3c 2f 56 69 72 74 75 61 6c -cgi]..</Virtual
28e0: 48 6f 73 74 3e 0d 0a 3c 2f 76 65 72 62 61 74 69 Host>..</verbati
28f0: 6d 3e 0d 0a 0d 0a 2f 75 73 72 2f 6c 69 62 2f 63 m>..../usr/lib/c
2900: 67 69 2d 62 69 6e 2f 63 6f 64 65 2e 61 75 74 6f gi-bin/code.auto
2910: 6e 6f 6d 6f 2e 75 73 20 69 73 20 6a 75 73 74 20 nomo.us is just
2920: 61 20 73 74 61 6e 64 61 72 64 20 66 6f 73 73 69 a standard fossi
2930: 6c 20 43 47 49 20 66 69 6c 65 3b 20 69 74 20 6c l CGI file; it l
2940: 6f 6f 6b 73 20 6c 69 6b 65 20 74 68 69 73 3a 0d ooks like this:.
2950: 0a 0d 0a 3c 76 65 72 62 61 74 69 6d 3e 0d 0a 23 ...<verbatim>..#
2960: 21 2f 75 73 72 2f 62 69 6e 2f 66 6f 73 73 69 6c !/usr/bin/fossil
2970: 0d 0a 72 65 70 6f 73 69 74 6f 72 79 3a 20 2f 73 ..repository: /s
2980: 72 76 2f 66 6f 73 73 69 6c 2d 73 63 6d 2f 63 6f rv/fossil-scm/co
2990: 64 65 2e 61 75 74 6f 6e 6f 6d 6f 2e 75 73 2e 66 de.autonomo.us.f
29a0: 6f 73 73 69 6c 2d 73 63 6d 0d 0a 3c 2f 76 65 72 ossil-scm..</ver
29b0: 62 61 74 69 6d 3e 0d 0a 0d 0a 3c 68 33 3e 41 6e batim>....<h3>An
29c0: 6f 74 68 65 72 20 73 6f 6c 75 74 69 6f 6e 20 74 other solution t
29d0: 6f 20 3c 69 3e 61 75 74 6f 6d 61 74 69 63 61 6c o <i>automatical
29e0: 6c 79 3c 2f 69 3e 20 73 65 72 76 65 20 6d 75 6c ly</i> serve mul
29f0: 74 69 70 6c 65 20 72 65 70 6f 73 69 74 6f 72 69 tiple repositori
2a00: 65 73 3c 2f 68 33 3e 0d 0a 0d 0a 57 69 74 68 20 es</h3>....With
2a10: 74 68 65 20 66 6f 6c 6c 6f 77 69 6e 67 20 43 47 the following CG
2a20: 49 20 73 63 72 69 70 74 20 28 49 20 68 61 76 65 I script (I have
2a30: 20 6e 61 6d 65 64 20 69 74 20 3c 73 61 6d 70 3e named it <samp>
2a40: 70 3c 2f 73 61 6d 70 3e 20 73 69 6d 70 6c 79 29 p</samp> simply)
2a50: 20 69 74 20 69 73 20 70 6f 73 73 69 62 6c 65 20 it is possible
2a60: 74 6f 20 64 65 66 69 6e 65 20 61 20 6c 6f 63 61 to define a loca
2a70: 74 69 6f 6e 20 77 68 65 72 65 20 61 6c 6c 20 74 tion where all t
2a80: 68 65 20 79 6f 75 72 20 72 65 70 6f 73 69 74 6f he your reposito
2a90: 72 69 65 73 20 73 68 6f 75 6c 64 20 62 65 20 6c ries should be l
2aa0: 6f 63 61 74 65 64 20 28 69 6e 20 74 68 69 73 20 ocated (in this
2ab0: 65 78 61 6d 70 6c 65 3a 20 3c 73 61 6d 70 3e 2f example: <samp>/
2ac0: 68 6f 6d 65 2f 72 65 70 6f 73 2f 66 6f 73 73 69 home/repos/fossi
2ad0: 6c 3c 2f 73 61 6d 70 3e 29 2e 20 41 6c 6c 20 74 l</samp>). All t
2ae0: 68 65 20 72 65 70 6f 73 69 74 6f 72 69 65 73 20 he repositories
2af0: 61 72 65 20 6e 61 6d 65 64 20 61 63 63 6f 72 64 are named accord
2b00: 69 6e 67 20 74 68 65 20 73 63 68 65 6d 65 20 3c ing the scheme <
2b10: 73 61 6d 70 3e 3c 70 72 6f 6a 65 63 74 20 6e 61 samp><project na
2b20: 6d 65 3e 2e 66 73 6c 3c 2f 73 61 6d 70 3e 20 66 me>.fsl</samp> f
2b30: 6f 72 20 73 61 6b 65 20 6f 66 20 74 68 69 73 20 or sake of this
2b40: 65 78 61 6d 70 6c 65 2e 0d 0a 0d 0a 49 66 20 74 example.....If t
2b50: 68 69 73 20 73 63 72 69 70 74 20 69 73 20 63 61 his script is ca
2b60: 6c 6c 65 64 20 61 6c 6f 6e 65 20 28 6c 69 6b 65 lled alone (like
2b70: 20 65 2e 67 2e 3a 20 3c 73 61 6d 70 3e 68 74 74 e.g.: <samp>htt
2b80: 70 3a 2f 2f 79 6f 75 72 2e 73 65 72 76 65 72 2e p://your.server.
2b90: 68 65 72 65 2f 63 67 69 2d 62 69 6e 2f 70 3c 2f here/cgi-bin/p</
2ba0: 73 61 6d 70 3e 29 2c 20 69 74 20 77 69 6c 6c 20 samp>), it will
2bb0: 6c 69 73 74 20 61 6c 6c 20 72 65 70 6f 73 69 74 list all reposit
2bc0: 6f 72 69 65 73 20 6c 6f 63 61 74 65 64 20 75 6e ories located un
2bd0: 64 65 72 20 3c 73 61 6d 70 3e 24 52 45 50 4f 53 der <samp>$REPOS
2be0: 52 4f 4f 54 3c 2f 73 61 6d 70 3e 2c 20 3c 62 3e ROOT</samp>, <b>
2bf0: 69 66 3c 2f 62 3e 20 74 68 65 72 65 20 3c 62 3e if</b> there <b>
2c00: 64 6f 65 73 20 6e 6f 74 3c 2f 62 3e 20 65 78 69 does not</b> exi
2c10: 73 74 20 61 20 63 6f 72 72 65 73 70 6f 6e 64 69 st a correspondi
2c20: 6e 67 20 66 69 6c 65 20 3c 73 61 6d 70 3e 2e 3c ng file <samp>.<
2c30: 70 72 6f 6a 65 63 74 20 6e 61 6d 65 3e 3c 2f 73 project name></s
2c40: 61 6d 70 3e 20 28 74 68 61 74 20 6d 65 63 68 61 amp> (that mecha
2c50: 6e 69 73 6d 20 69 73 20 75 73 65 64 20 74 6f 20 nism is used to
2c60: 3c 69 3e 68 69 64 65 3c 2f 69 3e 20 73 6f 6d 65 <i>hide</i> some
2c70: 20 72 65 70 6f 73 69 74 6f 72 79 20 69 6e 20 74 repository in t
2c80: 68 65 20 6c 69 73 74 69 6e 67 29 2e 0d 0a 0d 0a he listing).....
2c90: 49 66 20 74 68 65 20 73 63 72 69 70 74 20 69 73 If the script is
2ca0: 20 63 61 6c 6c 65 64 20 6c 69 6b 65 20 65 2e 67 called like e.g
2cb0: 2e 20 3c 73 61 6d 70 3e 68 74 74 70 3a 2f 2f 79 . <samp>http://y
2cc0: 6f 75 72 2e 73 65 72 76 65 72 2e 68 65 72 65 2f our.server.here/
2cd0: 63 67 69 2d 62 69 6e 2f 70 2f 3c 70 72 6f 6a 65 cgi-bin/p/<proje
2ce0: 63 74 20 6e 61 6d 65 3e 3c 2f 73 61 6d 70 3e 2c ct name></samp>,
2cf0: 20 74 68 65 6e 20 74 68 65 20 63 6f 72 72 65 73 then the corres
2d00: 70 6f 6e 64 69 6e 67 20 72 65 70 6f 73 69 74 6f ponding reposito
2d10: 72 79 20 77 69 6c 6c 20 62 65 20 73 65 6c 65 63 ry will be selec
2d20: 74 65 64 20 74 6f 20 77 6f 72 6b 20 77 69 74 68 ted to work with
2d30: 2e 0d 0a 0d 0a 54 68 65 20 6c 69 6e 65 73 20 35 .....The lines 5
2d40: 20 2d 20 38 20 69 6e 20 74 68 65 20 73 63 72 69 - 8 in the scri
2d50: 70 74 20 62 65 6c 6f 77 20 61 6c 6c 6f 77 20 63 pt below allow c
2d60: 6f 6e 66 69 67 75 72 61 74 69 6f 6e 20 66 6f 72 onfiguration for
2d70: 20 79 6f 75 20 6e 65 65 64 73 2e 20 59 6f 75 20 you needs. You
2d80: 68 61 76 65 20 74 6f 20 63 68 6f 73 65 2c 20 77 have to chose, w
2d90: 68 61 74 20 66 6f 73 73 69 6c 20 62 69 6e 61 72 hat fossil binar
2da0: 79 20 74 6f 20 75 73 65 2c 20 77 68 61 74 20 65 y to use, what e
2db0: 78 74 65 6e 73 69 6f 6e 20 79 6f 75 72 20 72 65 xtension your re
2dc0: 70 6f 73 69 74 6f 72 79 20 64 61 74 61 62 61 73 pository databas
2dd0: 65 73 20 68 61 76 65 20 61 6e 64 20 77 68 65 72 es have and wher
2de0: 65 20 61 6c 6c 20 79 6f 75 72 20 64 61 74 61 62 e all your datab
2df0: 61 73 65 73 20 61 72 65 20 6c 6f 63 61 74 65 64 ases are located
2e00: 2e 0d 0a 0d 0a 3c 6e 6f 77 69 6b 69 3e 0d 0a 3c .....<nowiki>..<
2e10: 66 6f 6e 74 20 66 61 63 65 3d 22 6d 6f 6e 6f 73 font face="monos
2e20: 70 61 63 65 22 3e 0d 0a 3c 66 6f 6e 74 20 63 6f pace">..<font co
2e30: 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 26 6e lor="#a52a2a">&n
2e40: 62 73 70 3b 31 20 3c 2f 66 6f 6e 74 3e 3c 66 6f bsp;1 </font><fo
2e50: 6e 74 20 63 6f 6c 6f 72 3d 22 23 30 30 30 30 66 nt color="#0000f
2e60: 66 22 3e 23 21 2f 62 69 6e 2f 73 68 3c 2f 66 6f f">#!/bin/sh</fo
2e70: 6e 74 3e 3c 62 72 3e 0d 0a 3c 66 6f 6e 74 20 63 nt><br>..<font c
2e80: 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 26 olor="#a52a2a">&
2e90: 6e 62 73 70 3b 32 20 3c 2f 66 6f 6e 74 3e 3c 62 nbsp;2 </font><b
2ea0: 72 3e 0d 0a 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d r>..<font color=
2eb0: 22 23 61 35 32 61 32 61 22 3e 26 6e 62 73 70 3b "#a52a2a">
2ec0: 33 20 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 3 </font><font c
2ed0: 6f 6c 6f 72 3d 22 23 30 30 30 30 66 66 22 3e 23 olor="#0000ff">#
2ee0: 23 23 20 43 6f 6e 66 69 67 75 72 61 74 69 6f 6e ## Configuration
2ef0: 20 73 65 63 74 69 6f 6e 20 23 23 23 3c 2f 66 6f section ###</fo
2f00: 6e 74 3e 3c 62 72 3e 0d 0a 3c 66 6f 6e 74 20 63 nt><br>..<font c
2f10: 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 26 olor="#a52a2a">&
2f20: 6e 62 73 70 3b 34 20 3c 2f 66 6f 6e 74 3e 3c 62 nbsp;4 </font><b
2f30: 72 3e 0d 0a 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d r>..<font color=
2f40: 22 23 61 35 32 61 32 61 22 3e 26 6e 62 73 70 3b "#a52a2a">
2f50: 35 20 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 5 </font><font c
2f60: 6f 6c 6f 72 3d 22 23 30 30 38 62 38 62 22 3e 54 olor="#008b8b">T
2f70: 49 54 4c 45 3c 2f 66 6f 6e 74 3e 3d 3c 66 6f 6e ITLE</font>=<fon
2f80: 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 t color="#a52a2a
2f90: 22 3e 3c 62 3e 26 71 75 6f 74 3b 3c 2f 62 3e 3c "><b>"</b><
2fa0: 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f /font><font colo
2fb0: 72 3d 22 23 66 66 30 30 66 66 22 3e 26 6c 74 3b r="#ff00ff"><
2fc0: 68 32 26 67 74 3b 46 6f 73 73 69 6c 20 72 65 70 h2>Fossil rep
2fd0: 6f 73 69 74 6f 72 69 65 73 26 6c 74 3b 2f 68 32 ositories</h2
2fe0: 26 67 74 3b 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 ></font><font
2ff0: 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 color="#a52a2a"
3000: 3e 3c 62 3e 26 71 75 6f 74 3b 3c 2f 62 3e 3c 2f ><b>"</b></
3010: 66 6f 6e 74 3e 3c 62 72 3e 0d 0a 3c 66 6f 6e 74 font><br>..<font
3020: 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 color="#a52a2a"
3030: 3e 26 6e 62 73 70 3b 36 20 3c 2f 66 6f 6e 74 3e > 6 </font>
3040: 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 30 30 <font color="#00
3050: 38 62 38 62 22 3e 46 4f 53 53 49 4c 3c 2f 66 6f 8b8b">FOSSIL</fo
3060: 6e 74 3e 3d 2f 75 73 72 2f 6c 6f 63 61 6c 2f 62 nt>=/usr/local/b
3070: 69 6e 2f 66 6f 73 73 69 6c 3c 62 72 3e 0d 0a 3c in/fossil<br>..<
3080: 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 font color="#a52
3090: 61 32 61 22 3e 26 6e 62 73 70 3b 37 20 3c 2f 66 a2a"> 7 </f
30a0: 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d ont><font color=
30b0: 22 23 30 30 38 62 38 62 22 3e 52 45 50 4f 53 52 "#008b8b">REPOSR
30c0: 4f 4f 54 3c 2f 66 6f 6e 74 3e 3d 2f 68 6f 6d 65 OOT</font>=/home
30d0: 2f 72 65 70 6f 73 2f 66 6f 73 73 69 6c 3c 62 72 /repos/fossil<br
30e0: 3e 0d 0a 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 >..<font color="
30f0: 23 61 35 32 61 32 61 22 3e 26 6e 62 73 70 3b 38 #a52a2a"> 8
3100: 20 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f </font><font co
3110: 6c 6f 72 3d 22 23 30 30 38 62 38 62 22 3e 52 45 lor="#008b8b">RE
3120: 50 4f 53 45 58 54 3c 2f 66 6f 6e 74 3e 3d 3c 66 POSEXT</font>=<f
3130: 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 ont color="#a52a
3140: 32 61 22 3e 3c 62 3e 26 71 75 6f 74 3b 3c 2f 62 2a"><b>"</b
3150: 3e 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f ></font><font co
3160: 6c 6f 72 3d 22 23 66 66 30 30 66 66 22 3e 2e 66 lor="#ff00ff">.f
3170: 73 6c 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 sl</font><font c
3180: 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 3c olor="#a52a2a"><
3190: 62 3e 26 71 75 6f 74 3b 3c 2f 62 3e 3c 2f 66 6f b>"</b></fo
31a0: 6e 74 3e 3c 62 72 3e 0d 0a 3c 66 6f 6e 74 20 63 nt><br>..<font c
31b0: 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 26 olor="#a52a2a">&
31c0: 6e 62 73 70 3b 39 20 3c 2f 66 6f 6e 74 3e 3c 62 nbsp;9 </font><b
31d0: 72 3e 0d 0a 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d r>..<font color=
31e0: 22 23 61 35 32 61 32 61 22 3e 31 30 20 3c 2f 66 "#a52a2a">10 </f
31f0: 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d ont><font color=
3200: 22 23 30 30 30 30 66 66 22 3e 23 23 23 20 50 72 "#0000ff">### Pr
3210: 6f 63 65 73 73 69 6e 67 20 73 65 63 74 69 6f 6e ocessing section
3220: 20 2d 2d 20 6e 6f 74 68 69 6e 67 20 74 6f 20 63 -- nothing to c
3230: 6f 6e 66 69 67 75 72 65 20 68 65 72 65 21 20 23 onfigure here! #
3240: 23 23 3c 2f 66 6f 6e 74 3e 3c 62 72 3e 0d 0a 3c ##</font><br>..<
3250: 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 font color="#a52
3260: 61 32 61 22 3e 31 31 20 3c 2f 66 6f 6e 74 3e 3c a2a">11 </font><
3270: 62 72 3e 0d 0a 3c 66 6f 6e 74 20 63 6f 6c 6f 72 br>..<font color
3280: 3d 22 23 61 35 32 61 32 61 22 3e 31 32 20 3c 2f ="#a52a2a">12 </
3290: 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 font><font color
32a0: 3d 22 23 61 35 32 61 32 61 22 3e 3c 62 3e 73 65 ="#a52a2a"><b>se
32b0: 74 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e t</b></font><fon
32c0: 74 20 63 6f 6c 6f 72 3d 22 23 30 30 38 62 38 62 t color="#008b8b
32d0: 22 3e 26 6e 62 73 70 3b 3c 2f 66 6f 6e 74 3e 3c "> </font><
32e0: 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 36 61 35 font color="#6a5
32f0: 61 63 64 22 3e 2d 66 3c 2f 66 6f 6e 74 3e 3c 66 acd">-f</font><f
3300: 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 30 30 38 62 ont color="#008b
3310: 38 62 22 3e 26 6e 62 73 70 3b 26 6e 62 73 70 3b 8b">
3320: 26 6e 62 73 70 3b 26 6e 62 73 70 3b 3c 2f 66 6f </fo
3330: 6e 74 3e 3b 20 3c 66 6f 6e 74 20 63 6f 6c 6f 72 nt>; <font color
3340: 3d 22 23 30 30 30 30 66 66 22 3e 23 20 64 69 73 ="#0000ff"># dis
3350: 61 62 6c 65 20 66 69 6c 65 6e 61 6d 65 20 67 6c able filename gl
3360: 6f 62 62 69 6e 67 3c 2f 66 6f 6e 74 3e 3c 62 72 obbing</font><br
3370: 3e 0d 0a 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 >..<font color="
3380: 23 61 35 32 61 32 61 22 3e 31 33 20 3c 2f 66 6f #a52a2a">13 </fo
3390: 6e 74 3e 3c 62 72 3e 0d 0a 3c 66 6f 6e 74 20 63 nt><br>..<font c
33a0: 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 31 olor="#a52a2a">1
33b0: 34 20 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 4 </font><font c
33c0: 6f 6c 6f 72 3d 22 23 30 30 30 30 66 66 22 3e 23 olor="#0000ff">#
33d0: 23 20 53 6f 6d 65 20 68 65 6c 70 65 72 20 66 75 # Some helper fu
33e0: 6e 63 74 69 6f 6e 73 3c 2f 66 6f 6e 74 3e 3c 62 nctions</font><b
33f0: 72 3e 0d 0a 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d r>..<font color=
3400: 22 23 61 35 32 61 32 61 22 3e 31 35 20 3c 2f 66 "#a52a2a">15 </f
3410: 6f 6e 74 3e 3c 62 72 3e 0d 0a 3c 66 6f 6e 74 20 ont><br>..<font
3420: 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e color="#a52a2a">
3430: 31 36 20 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 16 </font><font
3440: 63 6f 6c 6f 72 3d 22 23 30 30 38 62 38 62 22 3e color="#008b8b">
3450: 48 65 61 64 65 72 54 65 78 74 20 28 29 20 7b 3c HeaderText () {<
3460: 2f 66 6f 6e 74 3e 3c 62 72 3e 0d 0a 3c 66 6f 6e /font><br>..<fon
3470: 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 t color="#a52a2a
3480: 22 3e 31 37 20 3c 2f 66 6f 6e 74 3e 26 6e 62 73 ">17 </font>&nbs
3490: 70 3b 26 6e 62 73 70 3b 3c 66 6f 6e 74 20 63 6f p; <font co
34a0: 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 3c 62 lor="#a52a2a"><b
34b0: 3e 69 66 20 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 3c >if </b></font><
34c0: 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 font color="#a52
34d0: 61 32 61 22 3e 3c 62 3e 5b 3c 2f 62 3e 3c 2f 66 a2a"><b>[</b></f
34e0: 6f 6e 74 3e 26 6e 62 73 70 3b 3c 66 6f 6e 74 20 ont> <font
34f0: 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e color="#a52a2a">
3500: 3c 62 3e 2d 7a 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e <b>-z</b></font>
3510: 26 6e 62 73 70 3b 3c 66 6f 6e 74 20 63 6f 6c 6f <font colo
3520: 72 3d 22 23 61 35 32 61 32 61 22 3e 3c 62 3e 26 r="#a52a2a"><b>&
3530: 71 75 6f 74 3b 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e quot;</b></font>
3540: 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 30 <font color="#a0
3550: 32 30 66 30 22 3e 24 68 65 61 64 65 72 57 72 69 20f0">$headerWri
3560: 74 74 65 6e 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 tten</font><font
3570: 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 color="#a52a2a"
3580: 3e 3c 62 3e 26 71 75 6f 74 3b 3c 2f 62 3e 3c 2f ><b>"</b></
3590: 66 6f 6e 74 3e 26 6e 62 73 70 3b 3c 66 6f 6e 74 font> <font
35a0: 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 color="#a52a2a"
35b0: 3e 3c 62 3e 5d 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e ><b>]</b></font>
35c0: 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 <font color="#a5
35d0: 32 61 32 61 22 3e 3c 62 3e 3b 3c 2f 62 3e 3c 2f 2a2a"><b>;</b></
35e0: 66 6f 6e 74 3e 26 6e 62 73 70 3b 3c 66 6f 6e 74 font> <font
35f0: 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 color="#a52a2a"
3600: 3e 3c 62 3e 74 68 65 6e 3c 2f 62 3e 3c 2f 66 6f ><b>then</b></fo
3610: 6e 74 3e 3c 62 72 3e 0d 0a 3c 66 6f 6e 74 20 63 nt><br>..<font c
3620: 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 31 olor="#a52a2a">1
3630: 38 20 3c 2f 66 6f 6e 74 3e 26 6e 62 73 70 3b 26 8 </font> &
3640: 6e 62 73 70 3b 26 6e 62 73 70 3b 26 6e 62 73 70 nbsp;  
3650: 3b 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 ;<font color="#a
3660: 35 32 61 32 61 22 3e 3c 62 3e 65 63 68 6f 3c 2f 52a2a"><b>echo</
3670: 62 3e 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 b></font><font c
3680: 6f 6c 6f 72 3d 22 23 66 66 30 30 66 66 22 3e 26 olor="#ff00ff">&
3690: 6e 62 73 70 3b 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e nbsp;</font><fon
36a0: 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 t color="#a52a2a
36b0: 22 3e 3c 62 3e 26 71 75 6f 74 3b 3c 2f 62 3e 3c "><b>"</b><
36c0: 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f /font><font colo
36d0: 72 3d 22 23 66 66 30 30 66 66 22 3e 43 6f 6e 74 r="#ff00ff">Cont
36e0: 65 6e 74 2d 74 79 70 65 3a 20 74 65 78 74 2f 70 ent-type: text/p
36f0: 6c 61 69 6e 3b 20 63 68 61 72 73 65 74 3d 69 73 lain; charset=is
3700: 6f 2d 38 38 35 39 2d 31 3c 2f 66 6f 6e 74 3e 3c o-8859-1</font><
3710: 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 font color="#a52
3720: 61 32 61 22 3e 3c 62 3e 26 71 75 6f 74 3b 3c 2f a2a"><b>"</
3730: 62 3e 3c 2f 66 6f 6e 74 3e 3c 62 72 3e 0d 0a 3c b></font><br>..<
3740: 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 font color="#a52
3750: 61 32 61 22 3e 31 39 20 3c 2f 66 6f 6e 74 3e 26 a2a">19 </font>&
3760: 6e 62 73 70 3b 26 6e 62 73 70 3b 26 6e 62 73 70 nbsp;  
3770: 3b 26 6e 62 73 70 3b 3c 66 6f 6e 74 20 63 6f 6c ; <font col
3780: 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 3c 62 3e or="#a52a2a"><b>
3790: 65 63 68 6f 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 3c echo</b></font><
37a0: 62 72 3e 0d 0a 3c 66 6f 6e 74 20 63 6f 6c 6f 72 br>..<font color
37b0: 3d 22 23 61 35 32 61 32 61 22 3e 32 30 20 3c 2f ="#a52a2a">20 </
37c0: 66 6f 6e 74 3e 26 6e 62 73 70 3b 26 6e 62 73 70 font>  
37d0: 3b 26 6e 62 73 70 3b 26 6e 62 73 70 3b 3c 66 6f ; <fo
37e0: 6e 74 20 63 6f 6c 6f 72 3d 22 23 30 30 38 62 38 nt color="#008b8
37f0: 62 22 3e 68 65 61 64 65 72 57 72 69 74 74 65 6e b">headerWritten
3800: 3c 2f 66 6f 6e 74 3e 3d 3c 66 6f 6e 74 20 63 6f </font>=<font co
3810: 6c 6f 72 3d 22 23 66 66 30 30 66 66 22 3e 31 3c lor="#ff00ff">1<
3820: 2f 66 6f 6e 74 3e 3c 62 72 3e 0d 0a 3c 66 6f 6e /font><br>..<fon
3830: 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 t color="#a52a2a
3840: 22 3e 32 31 20 3c 2f 66 6f 6e 74 3e 26 6e 62 73 ">21 </font>&nbs
3850: 70 3b 26 6e 62 73 70 3b 3c 66 6f 6e 74 20 63 6f p; <font co
3860: 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 3c 62 lor="#a52a2a"><b
3870: 3e 66 69 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 3c 62 >fi</b></font><b
3880: 72 3e 0d 0a 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d r>..<font color=
3890: 22 23 61 35 32 61 32 61 22 3e 32 32 20 3c 2f 66 "#a52a2a">22 </f
38a0: 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d ont><font color=
38b0: 22 23 30 30 38 62 38 62 22 3e 7d 3c 2f 66 6f 6e "#008b8b">}</fon
38c0: 74 3e 3c 62 72 3e 0d 0a 3c 66 6f 6e 74 20 63 6f t><br>..<font co
38d0: 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 32 33 lor="#a52a2a">23
38e0: 20 3c 2f 66 6f 6e 74 3e 3c 62 72 3e 0d 0a 3c 66 </font><br>..<f
38f0: 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 ont color="#a52a
3900: 32 61 22 3e 32 34 20 3c 2f 66 6f 6e 74 3e 3c 66 2a">24 </font><f
3910: 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 30 30 38 62 ont color="#008b
3920: 38 62 22 3e 48 65 61 64 65 72 48 54 4d 4c 20 28 8b">HeaderHTML (
3930: 29 20 7b 3c 2f 66 6f 6e 74 3e 3c 62 72 3e 0d 0a ) {</font><br>..
3940: 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 <font color="#a5
3950: 32 61 32 61 22 3e 32 35 20 3c 2f 66 6f 6e 74 3e 2a2a">25 </font>
3960: 26 6e 62 73 70 3b 26 6e 62 73 70 3b 3c 66 6f 6e <fon
3970: 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 t color="#a52a2a
3980: 22 3e 3c 62 3e 69 66 20 3c 2f 62 3e 3c 2f 66 6f "><b>if </b></fo
3990: 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 nt><font color="
39a0: 23 61 35 32 61 32 61 22 3e 3c 62 3e 5b 3c 2f 62 #a52a2a"><b>[</b
39b0: 3e 3c 2f 66 6f 6e 74 3e 26 6e 62 73 70 3b 3c 66 ></font> <f
39c0: 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 ont color="#a52a
39d0: 32 61 22 3e 3c 62 3e 2d 7a 3c 2f 62 3e 3c 2f 66 2a"><b>-z</b></f
39e0: 6f 6e 74 3e 26 6e 62 73 70 3b 3c 66 6f 6e 74 20 ont> <font
39f0: 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e color="#a52a2a">
3a00: 3c 62 3e 26 71 75 6f 74 3b 3c 2f 62 3e 3c 2f 66 <b>"</b></f
3a10: 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d ont><font color=
3a20: 22 23 61 30 32 30 66 30 22 3e 24 68 65 61 64 65 "#a020f0">$heade
3a30: 72 57 72 69 74 74 65 6e 3c 2f 66 6f 6e 74 3e 3c rWritten</font><
3a40: 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 font color="#a52
3a50: 61 32 61 22 3e 3c 62 3e 26 71 75 6f 74 3b 3c 2f a2a"><b>"</
3a60: 62 3e 3c 2f 66 6f 6e 74 3e 26 6e 62 73 70 3b 3c b></font> <
3a70: 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 font color="#a52
3a80: 61 32 61 22 3e 3c 62 3e 5d 3c 2f 62 3e 3c 2f 66 a2a"><b>]</b></f
3a90: 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d ont><font color=
3aa0: 22 23 61 35 32 61 32 61 22 3e 3c 62 3e 3b 3c 2f "#a52a2a"><b>;</
3ab0: 62 3e 3c 2f 66 6f 6e 74 3e 26 6e 62 73 70 3b 3c b></font> <
3ac0: 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 font color="#a52
3ad0: 61 32 61 22 3e 3c 62 3e 74 68 65 6e 3c 2f 62 3e a2a"><b>then</b>
3ae0: 3c 2f 66 6f 6e 74 3e 3c 62 72 3e 0d 0a 3c 66 6f </font><br>..<fo
3af0: 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 nt color="#a52a2
3b00: 61 22 3e 32 36 20 3c 2f 66 6f 6e 74 3e 26 6e 62 a">26 </font>&nb
3b10: 73 70 3b 26 6e 62 73 70 3b 26 6e 62 73 70 3b 26 sp; &
3b20: 6e 62 73 70 3b 3c 66 6f 6e 74 20 63 6f 6c 6f 72 nbsp;<font color
3b30: 3d 22 23 61 35 32 61 32 61 22 3e 3c 62 3e 65 63 ="#a52a2a"><b>ec
3b40: 68 6f 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 3c 66 6f ho</b></font><fo
3b50: 6e 74 20 63 6f 6c 6f 72 3d 22 23 66 66 30 30 66 nt color="#ff00f
3b60: 66 22 3e 26 6e 62 73 70 3b 3c 2f 66 6f 6e 74 3e f"> </font>
3b70: 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 <font color="#a5
3b80: 32 61 32 61 22 3e 3c 62 3e 26 71 75 6f 74 3b 3c 2a2a"><b>"<
3b90: 2f 62 3e 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 /b></font><font
3ba0: 63 6f 6c 6f 72 3d 22 23 66 66 30 30 66 66 22 3e color="#ff00ff">
3bb0: 43 6f 6e 74 65 6e 74 2d 74 79 70 65 3a 20 74 65 Content-type: te
3bc0: 78 74 2f 68 74 6d 6c 3b 20 63 68 61 72 73 65 74 xt/html; charset
3bd0: 3d 69 73 6f 2d 38 38 35 39 2d 31 3c 2f 66 6f 6e =iso-8859-1</fon
3be0: 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 t><font color="#
3bf0: 61 35 32 61 32 61 22 3e 3c 62 3e 26 71 75 6f 74 a52a2a"><b>"
3c00: 3b 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 3c 62 72 3e ;</b></font><br>
3c10: 0d 0a 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 ..<font color="#
3c20: 61 35 32 61 32 61 22 3e 32 37 20 3c 2f 66 6f 6e a52a2a">27 </fon
3c30: 74 3e 26 6e 62 73 70 3b 26 6e 62 73 70 3b 26 6e t> &n
3c40: 62 73 70 3b 26 6e 62 73 70 3b 3c 66 6f 6e 74 20 bsp; <font
3c50: 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e color="#a52a2a">
3c60: 3c 62 3e 65 63 68 6f 3c 2f 62 3e 3c 2f 66 6f 6e <b>echo</b></fon
3c70: 74 3e 3c 62 72 3e 0d 0a 3c 66 6f 6e 74 20 63 6f t><br>..<font co
3c80: 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 32 38 lor="#a52a2a">28
3c90: 20 3c 2f 66 6f 6e 74 3e 26 6e 62 73 70 3b 26 6e </font> &n
3ca0: 62 73 70 3b 26 6e 62 73 70 3b 26 6e 62 73 70 3b bsp;
3cb0: 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 30 30 <font color="#00
3cc0: 38 62 38 62 22 3e 68 65 61 64 65 72 57 72 69 74 8b8b">headerWrit
3cd0: 74 65 6e 3c 2f 66 6f 6e 74 3e 3d 3c 66 6f 6e 74 ten</font>=<font
3ce0: 20 63 6f 6c 6f 72 3d 22 23 66 66 30 30 66 66 22 color="#ff00ff"
3cf0: 3e 31 3c 2f 66 6f 6e 74 3e 3c 62 72 3e 0d 0a 3c >1</font><br>..<
3d00: 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 font color="#a52
3d10: 61 32 61 22 3e 32 39 20 3c 2f 66 6f 6e 74 3e 26 a2a">29 </font>&
3d20: 6e 62 73 70 3b 26 6e 62 73 70 3b 3c 66 6f 6e 74 nbsp; <font
3d30: 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 color="#a52a2a"
3d40: 3e 3c 62 3e 66 69 3c 2f 62 3e 3c 2f 66 6f 6e 74 ><b>fi</b></font
3d50: 3e 3c 62 72 3e 0d 0a 3c 66 6f 6e 74 20 63 6f 6c ><br>..<font col
3d60: 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 33 30 20 or="#a52a2a">30
3d70: 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c </font><font col
3d80: 6f 72 3d 22 23 30 30 38 62 38 62 22 3e 7d 3c 2f or="#008b8b">}</
3d90: 66 6f 6e 74 3e 3c 62 72 3e 0d 0a 3c 66 6f 6e 74 font><br>..<font
3da0: 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 color="#a52a2a"
3db0: 3e 33 31 20 3c 2f 66 6f 6e 74 3e 3c 62 72 3e 0d >31 </font><br>.
3dc0: 0a 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 .<font color="#a
3dd0: 35 32 61 32 61 22 3e 33 32 20 3c 2f 66 6f 6e 74 52a2a">32 </font
3de0: 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 30 ><font color="#0
3df0: 30 38 62 38 62 22 3e 45 72 72 6f 72 20 28 29 20 08b8b">Error ()
3e00: 7b 3c 2f 66 6f 6e 74 3e 3c 62 72 3e 0d 0a 3c 66 {</font><br>..<f
3e10: 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 ont color="#a52a
3e20: 32 61 22 3e 33 33 20 3c 2f 66 6f 6e 74 3e 26 6e 2a">33 </font>&n
3e30: 62 73 70 3b 26 6e 62 73 70 3b 48 65 61 64 65 72 bsp; Header
3e40: 48 54 4d 4c 3c 62 72 3e 0d 0a 3c 66 6f 6e 74 20 HTML<br>..<font
3e50: 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e color="#a52a2a">
3e60: 33 34 20 3c 2f 66 6f 6e 74 3e 26 6e 62 73 70 3b 34 </font>
3e70: 26 6e 62 73 70 3b 3c 66 6f 6e 74 20 63 6f 6c 6f <font colo
3e80: 72 3d 22 23 61 35 32 61 32 61 22 3e 3c 62 3e 65 r="#a52a2a"><b>e
3e90: 63 68 6f 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 3c 66 cho</b></font><f
3ea0: 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 66 66 30 30 ont color="#ff00
3eb0: 66 66 22 3e 26 6e 62 73 70 3b 3c 2f 66 6f 6e 74 ff"> </font
3ec0: 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 ><font color="#a
3ed0: 35 32 61 32 61 22 3e 3c 62 3e 26 71 75 6f 74 3b 52a2a"><b>"
3ee0: 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 </b></font><font
3ef0: 20 63 6f 6c 6f 72 3d 22 23 66 66 30 30 66 66 22 color="#ff00ff"
3f00: 3e 26 6c 74 3b 70 26 67 74 3b 26 6c 74 3b 66 6f ><p><fo
3f10: 6e 74 20 63 6f 6c 6f 72 3d 3c 2f 66 6f 6e 74 3e nt color=</font>
3f20: 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 <font color="#a5
3f30: 32 61 32 61 22 3e 3c 62 3e 26 71 75 6f 74 3b 3c 2a2a"><b>"<
3f40: 2f 62 3e 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 /b></font><font
3f50: 63 6f 6c 6f 72 3d 22 23 66 66 30 30 66 66 22 3e color="#ff00ff">
3f60: 72 65 64 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 red</font><font
3f70: 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e color="#a52a2a">
3f80: 3c 62 3e 26 71 75 6f 74 3b 3c 2f 62 3e 3c 2f 66 <b>"</b></f
3f90: 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d ont><font color=
3fa0: 22 23 66 66 30 30 66 66 22 3e 26 67 74 3b 45 52 "#ff00ff">>ER
3fb0: 52 4f 52 3a 20 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e ROR: </font><fon
3fc0: 74 20 63 6f 6c 6f 72 3d 22 23 61 30 32 30 66 30 t color="#a020f0
3fd0: 22 3e 24 31 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 ">$1</font><font
3fe0: 20 63 6f 6c 6f 72 3d 22 23 66 66 30 30 66 66 22 color="#ff00ff"
3ff0: 3e 26 6c 74 3b 2f 66 6f 6e 74 26 67 74 3b 26 6c ></font>&l
4000: 74 3b 2f 70 26 67 74 3b 3c 2f 66 6f 6e 74 3e 3c t;/p></font><
4010: 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 font color="#a52
4020: 61 32 61 22 3e 3c 62 3e 26 71 75 6f 74 3b 3c 2f a2a"><b>"</
4030: 62 3e 3c 2f 66 6f 6e 74 3e 3c 62 72 3e 0d 0a 3c b></font><br>..<
4040: 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 font color="#a52
4050: 61 32 61 22 3e 33 35 20 3c 2f 66 6f 6e 74 3e 26 a2a">35 </font>&
4060: 6e 62 73 70 3b 26 6e 62 73 70 3b 3c 66 6f 6e 74 nbsp; <font
4070: 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 color="#a52a2a"
4080: 3e 3c 62 3e 65 78 69 74 3c 2f 62 3e 3c 2f 66 6f ><b>exit</b></fo
4090: 6e 74 3e 26 6e 62 73 70 3b 3c 66 6f 6e 74 20 63 nt> <font c
40a0: 6f 6c 6f 72 3d 22 23 66 66 30 30 66 66 22 3e 31 olor="#ff00ff">1
40b0: 3c 2f 66 6f 6e 74 3e 3c 62 72 3e 0d 0a 3c 66 6f </font><br>..<fo
40c0: 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 nt color="#a52a2
40d0: 61 22 3e 33 36 20 3c 2f 66 6f 6e 74 3e 3c 66 6f a">36 </font><fo
40e0: 6e 74 20 63 6f 6c 6f 72 3d 22 23 30 30 38 62 38 nt color="#008b8
40f0: 62 22 3e 7d 3c 2f 66 6f 6e 74 3e 3c 62 72 3e 0d b">}</font><br>.
4100: 0a 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 .<font color="#a
4110: 35 32 61 32 61 22 3e 33 37 20 3c 2f 66 6f 6e 74 52a2a">37 </font
4120: 3e 3c 62 72 3e 0d 0a 3c 66 6f 6e 74 20 63 6f 6c ><br>..<font col
4130: 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 33 38 20 or="#a52a2a">38
4140: 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c </font><font col
4150: 6f 72 3d 22 23 30 30 38 62 38 62 22 3e 50 20 28 or="#008b8b">P (
4160: 29 20 7b 3c 2f 66 6f 6e 74 3e 3c 62 72 3e 0d 0a ) {</font><br>..
4170: 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 <font color="#a5
4180: 32 61 32 61 22 3e 33 39 20 3c 2f 66 6f 6e 74 3e 2a2a">39 </font>
4190: 26 6e 62 73 70 3b 26 6e 62 73 70 3b 48 65 61 64 Head
41a0: 65 72 54 65 78 74 3c 62 72 3e 0d 0a 3c 66 6f 6e erText<br>..<fon
41b0: 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 t color="#a52a2a
41c0: 22 3e 34 30 20 3c 2f 66 6f 6e 74 3e 26 6e 62 73 ">40 </font>&nbs
41d0: 70 3b 26 6e 62 73 70 3b 3c 66 6f 6e 74 20 63 6f p; <font co
41e0: 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 3c 62 lor="#a52a2a"><b
41f0: 3e 66 6f 72 20 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e >for </b></font>
4200: 76 61 72 20 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d var <font color=
4210: 22 23 61 35 32 61 32 61 22 3e 3c 62 3e 69 6e 3c "#a52a2a"><b>in<
4220: 2f 62 3e 3c 2f 66 6f 6e 74 3e 26 6e 62 73 70 3b /b></font>
4230: 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 30 <font color="#a0
4240: 32 30 66 30 22 3e 24 2a 3c 2f 66 6f 6e 74 3e 3c 20f0">$*</font><
4250: 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 font color="#a52
4260: 61 32 61 22 3e 3c 62 3e 3b 3c 2f 62 3e 3c 2f 66 a2a"><b>;</b></f
4270: 6f 6e 74 3e 26 6e 62 73 70 3b 3c 66 6f 6e 74 20 ont> <font
4280: 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e color="#a52a2a">
4290: 3c 62 3e 64 6f 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e <b>do</b></font>
42a0: 3c 62 72 3e 0d 0a 3c 66 6f 6e 74 20 63 6f 6c 6f <br>..<font colo
42b0: 72 3d 22 23 61 35 32 61 32 61 22 3e 34 31 20 3c r="#a52a2a">41 <
42c0: 2f 66 6f 6e 74 3e 26 6e 62 73 70 3b 26 6e 62 73 /font> &nbs
42d0: 70 3b 26 6e 62 73 70 3b 26 6e 62 73 70 3b 3c 66 p; <f
42e0: 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 ont color="#a52a
42f0: 32 61 22 3e 3c 62 3e 65 76 61 6c 3c 2f 62 3e 3c 2a"><b>eval</b><
4300: 2f 66 6f 6e 74 3e 26 6e 62 73 70 3b 3c 66 6f 6e /font> <fon
4310: 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 t color="#a52a2a
4320: 22 3e 3c 62 3e 65 63 68 6f 3c 2f 62 3e 3c 2f 66 "><b>echo</b></f
4330: 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d ont><font color=
4340: 22 23 66 66 30 30 66 66 22 3e 26 6e 62 73 70 3b "#ff00ff">
4350: 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c </font><font col
4360: 6f 72 3d 22 23 61 30 32 30 66 30 22 3e 24 76 61 or="#a020f0">$va
4370: 72 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f r</font><font co
4380: 6c 6f 72 3d 22 23 66 66 30 30 66 66 22 3e 26 6e lor="#ff00ff">&n
4390: 62 73 70 3b 3d 20 3c 2f 66 6f 6e 74 3e 3c 66 6f bsp;= </font><fo
43a0: 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 nt color="#a52a2
43b0: 61 22 3e 3c 62 3e 26 71 75 6f 74 3b 3c 2f 62 3e a"><b>"</b>
43c0: 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c </font><font col
43d0: 6f 72 3d 22 23 36 61 35 61 63 64 22 3e 5c 24 3c or="#6a5acd">\$<
43e0: 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f /font><font colo
43f0: 72 3d 22 23 61 30 32 30 66 30 22 3e 24 76 61 72 r="#a020f0">$var
4400: 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c </font><font col
4410: 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 3c 62 3e or="#a52a2a"><b>
4420: 26 71 75 6f 74 3b 3c 2f 62 3e 3c 2f 66 6f 6e 74 "</b></font
4430: 3e 3c 62 72 3e 0d 0a 3c 66 6f 6e 74 20 63 6f 6c ><br>..<font col
4440: 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 34 32 20 or="#a52a2a">42
4450: 3c 2f 66 6f 6e 74 3e 26 6e 62 73 70 3b 26 6e 62 </font> &nb
4460: 73 70 3b 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 sp;<font color="
4470: 23 61 35 32 61 32 61 22 3e 3c 62 3e 64 6f 6e 65 #a52a2a"><b>done
4480: 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 3c 62 72 3e 0d </b></font><br>.
4490: 0a 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 .<font color="#a
44a0: 35 32 61 32 61 22 3e 34 33 20 3c 2f 66 6f 6e 74 52a2a">43 </font
44b0: 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 30 ><font color="#0
44c0: 30 38 62 38 62 22 3e 7d 3c 2f 66 6f 6e 74 3e 3c 08b8b">}</font><
44d0: 62 72 3e 0d 0a 3c 66 6f 6e 74 20 63 6f 6c 6f 72 br>..<font color
44e0: 3d 22 23 61 35 32 61 32 61 22 3e 34 34 20 3c 2f ="#a52a2a">44 </
44f0: 66 6f 6e 74 3e 3c 62 72 3e 0d 0a 3c 66 6f 6e 74 font><br>..<font
4500: 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 color="#a52a2a"
4510: 3e 34 35 20 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 >45 </font><font
4520: 20 63 6f 6c 6f 72 3d 22 23 30 30 30 30 66 66 22 color="#0000ff"
4530: 3e 23 23 20 44 6f 20 74 68 65 20 72 65 61 6c 20 >## Do the real
4540: 77 6f 72 6b 20 68 65 72 65 20 2e 2e 2e 3c 2f 66 work here ...</f
4550: 6f 6e 74 3e 3c 62 72 3e 0d 0a 3c 66 6f 6e 74 20 ont><br>..<font
4560: 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e color="#a52a2a">
4570: 34 36 20 3c 2f 66 6f 6e 74 3e 3c 62 72 3e 0d 0a 46 </font><br>..
4580: 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 <font color="#a5
4590: 32 61 32 61 22 3e 34 37 20 3c 2f 66 6f 6e 74 3e 2a2a">47 </font>
45a0: 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 30 30 <font color="#00
45b0: 38 62 38 62 22 3e 70 72 6f 6a 65 63 74 3c 2f 66 8b8b">project</f
45c0: 6f 6e 74 3e 3d 3c 66 6f 6e 74 20 63 6f 6c 6f 72 ont>=<font color
45d0: 3d 22 23 36 61 35 61 63 64 22 3e 60 65 63 68 6f ="#6a5acd">`echo
45e0: 20 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f </font><font co
45f0: 6c 6f 72 3d 22 23 61 30 32 30 66 30 22 3e 24 50 lor="#a020f0">$P
4600: 41 54 48 5f 49 4e 46 4f 3c 2f 66 6f 6e 74 3e 3c ATH_INFO</font><
4610: 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 36 61 35 font color="#6a5
4620: 61 63 64 22 3e 26 6e 62 73 70 3b 3c 2f 66 6f 6e acd"> </fon
4630: 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 t><font color="#
4640: 61 35 32 61 32 61 22 3e 3c 62 3e 7c 3c 2f 62 3e a52a2a"><b>|</b>
4650: 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c </font><font col
4660: 6f 72 3d 22 23 36 61 35 61 63 64 22 3e 26 6e 62 or="#6a5acd">&nb
4670: 73 70 3b 73 65 64 20 2d 65 20 3c 2f 66 6f 6e 74 sp;sed -e </font
4680: 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 ><font color="#a
4690: 35 32 61 32 61 22 3e 3c 62 3e 27 3c 2f 62 3e 3c 52a2a"><b>'</b><
46a0: 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f /font><font colo
46b0: 72 3d 22 23 66 66 30 30 66 66 22 3e 73 21 2f 3c r="#ff00ff">s!/<
46c0: 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f /font><font colo
46d0: 72 3d 22 23 36 61 35 61 63 64 22 3e 5c 28 3c 2f r="#6a5acd">\(</
46e0: 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 font><font color
46f0: 3d 22 23 66 66 30 30 66 66 22 3e 5b 5e 2f 5d 2a ="#ff00ff">[^/]*
4700: 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c </font><font col
4710: 6f 72 3d 22 23 36 61 35 61 63 64 22 3e 5c 29 3c or="#6a5acd">\)<
4720: 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f /font><font colo
4730: 72 3d 22 23 66 66 30 30 66 66 22 3e 2e 2a 21 5c r="#ff00ff">.*!\
4740: 31 21 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 1!</font><font c
4750: 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 3c olor="#a52a2a"><
4760: 62 3e 27 7c 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 3c b>'|</b></font><
4770: 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 36 61 35 font color="#6a5
4780: 61 63 64 22 3e 26 6e 62 73 70 3b 74 72 20 3c 2f acd"> tr </
4790: 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 font><font color
47a0: 3d 22 23 61 35 32 61 32 61 22 3e 3c 62 3e 26 71 ="#a52a2a"><b>&q
47b0: 75 6f 74 3b 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 3c uot;</b></font><
47c0: 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 66 66 30 font color="#ff0
47d0: 30 66 66 22 3e 5b 41 2d 5a 5d 3c 2f 66 6f 6e 74 0ff">[A-Z]</font
47e0: 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 ><font color="#a
47f0: 35 32 61 32 61 22 3e 3c 62 3e 26 71 75 6f 74 3b 52a2a"><b>"
4800: 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 </b></font><font
4810: 20 63 6f 6c 6f 72 3d 22 23 36 61 35 61 63 64 22 color="#6a5acd"
4820: 3e 26 6e 62 73 70 3b 3c 2f 66 6f 6e 74 3e 3c 66 > </font><f
4830: 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 ont color="#a52a
4840: 32 61 22 3e 3c 62 3e 26 71 75 6f 74 3b 3c 2f 62 2a"><b>"</b
4850: 3e 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f ></font><font co
4860: 6c 6f 72 3d 22 23 66 66 30 30 66 66 22 3e 5b 61 lor="#ff00ff">[a
4870: 2d 7a 5d 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 -z]</font><font
4880: 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e color="#a52a2a">
4890: 3c 62 3e 26 71 75 6f 74 3b 3c 2f 62 3e 3c 2f 66 <b>"</b></f
48a0: 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d ont><font color=
48b0: 22 23 36 61 35 61 63 64 22 3e 60 3c 2f 66 6f 6e "#6a5acd">`</fon
48c0: 74 3e 3c 62 72 3e 0d 0a 3c 66 6f 6e 74 20 63 6f t><br>..<font co
48d0: 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 34 38 lor="#a52a2a">48
48e0: 20 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f </font><font co
48f0: 6c 6f 72 3d 22 23 30 30 38 62 38 62 22 3e 72 65 lor="#008b8b">re
4900: 70 6f 73 3c 2f 66 6f 6e 74 3e 3d 3c 66 6f 6e 74 pos</font>=<font
4910: 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 color="#a52a2a"
4920: 3e 3c 62 3e 26 71 75 6f 74 3b 3c 2f 62 3e 3c 2f ><b>"</b></
4930: 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 font><font color
4940: 3d 22 23 61 30 32 30 66 30 22 3e 24 52 45 50 4f ="#a020f0">$REPO
4950: 53 52 4f 4f 54 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e SROOT</font><fon
4960: 74 20 63 6f 6c 6f 72 3d 22 23 66 66 30 30 66 66 t color="#ff00ff
4970: 22 3e 2f 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 ">/</font><font
4980: 63 6f 6c 6f 72 3d 22 23 61 30 32 30 66 30 22 3e color="#a020f0">
4990: 24 70 72 6f 6a 65 63 74 24 52 45 50 4f 53 45 58 $project$REPOSEX
49a0: 54 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f T</font><font co
49b0: 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 3c 62 lor="#a52a2a"><b
49c0: 3e 26 71 75 6f 74 3b 3c 2f 62 3e 3c 2f 66 6f 6e >"</b></fon
49d0: 74 3e 3c 62 72 3e 0d 0a 3c 66 6f 6e 74 20 63 6f t><br>..<font co
49e0: 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 34 39 lor="#a52a2a">49
49f0: 20 3c 2f 66 6f 6e 74 3e 3c 62 72 3e 0d 0a 3c 66 </font><br>..<f
4a00: 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 ont color="#a52a
4a10: 32 61 22 3e 35 30 20 3c 2f 66 6f 6e 74 3e 3c 66 2a">50 </font><f
4a20: 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 ont color="#a52a
4a30: 32 61 22 3e 3c 62 3e 69 66 20 3c 2f 62 3e 3c 2f 2a"><b>if </b></
4a40: 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 font><font color
4a50: 3d 22 23 61 35 32 61 32 61 22 3e 3c 62 3e 5b 3c ="#a52a2a"><b>[<
4a60: 2f 62 3e 3c 2f 66 6f 6e 74 3e 26 6e 62 73 70 3b /b></font>
4a70: 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 <font color="#a5
4a80: 32 61 32 61 22 3e 3c 62 3e 2d 72 3c 2f 62 3e 3c 2a2a"><b>-r</b><
4a90: 2f 66 6f 6e 74 3e 26 6e 62 73 70 3b 3c 66 6f 6e /font> <fon
4aa0: 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 t color="#a52a2a
4ab0: 22 3e 3c 62 3e 26 71 75 6f 74 3b 3c 2f 62 3e 3c "><b>"</b><
4ac0: 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f /font><font colo
4ad0: 72 3d 22 23 61 30 32 30 66 30 22 3e 24 72 65 70 r="#a020f0">$rep
4ae0: 6f 73 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 os</font><font c
4af0: 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 3c olor="#a52a2a"><
4b00: 62 3e 26 71 75 6f 74 3b 3c 2f 62 3e 3c 2f 66 6f b>"</b></fo
4b10: 6e 74 3e 26 6e 62 73 70 3b 3c 66 6f 6e 74 20 63 nt> <font c
4b20: 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 3c olor="#a52a2a"><
4b30: 62 3e 5d 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 3c 66 b>]</b></font><f
4b40: 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 ont color="#a52a
4b50: 32 61 22 3e 3c 62 3e 3b 3c 2f 62 3e 3c 2f 66 6f 2a"><b>;</b></fo
4b60: 6e 74 3e 26 6e 62 73 70 3b 3c 66 6f 6e 74 20 63 nt> <font c
4b70: 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 3c olor="#a52a2a"><
4b80: 62 3e 74 68 65 6e 3c 2f 62 3e 3c 2f 66 6f 6e 74 b>then</b></font
4b90: 3e 3c 62 72 3e 0d 0a 3c 66 6f 6e 74 20 63 6f 6c ><br>..<font col
4ba0: 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 35 31 20 or="#a52a2a">51
4bb0: 3c 2f 66 6f 6e 74 3e 26 6e 62 73 70 3b 26 6e 62 </font> &nb
4bc0: 73 70 3b 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 sp;<font color="
4bd0: 23 30 30 38 62 38 62 22 3e 50 41 54 48 5f 49 4e #008b8b">PATH_IN
4be0: 46 4f 3c 2f 66 6f 6e 74 3e 3d 3c 66 6f 6e 74 20 FO</font>=<font
4bf0: 63 6f 6c 6f 72 3d 22 23 36 61 35 61 63 64 22 3e color="#6a5acd">
4c00: 60 65 63 68 6f 20 3c 2f 66 6f 6e 74 3e 3c 66 6f `echo </font><fo
4c10: 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 30 32 30 66 nt color="#a020f
4c20: 30 22 3e 24 52 45 51 55 45 53 54 5f 55 52 49 3c 0">$REQUEST_URI<
4c30: 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f /font><font colo
4c40: 72 3d 22 23 36 61 35 61 63 64 22 3e 26 6e 62 73 r="#6a5acd">&nbs
4c50: 70 3b 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 p;</font><font c
4c60: 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 3c olor="#a52a2a"><
4c70: 62 3e 7c 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 3c 66 b>|</b></font><f
4c80: 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 36 61 35 61 ont color="#6a5a
4c90: 63 64 22 3e 26 6e 62 73 70 3b 73 65 64 20 2d 65 cd"> sed -e
4ca0: 20 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f </font><font co
4cb0: 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 3c 62 lor="#a52a2a"><b
4cc0: 3e 26 71 75 6f 74 3b 3c 2f 62 3e 3c 2f 66 6f 6e >"</b></fon
4cd0: 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 t><font color="#
4ce0: 66 66 30 30 66 66 22 3e 73 21 5e 3c 2f 66 6f 6e ff00ff">s!^</fon
4cf0: 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 t><font color="#
4d00: 61 30 32 30 66 30 22 3e 24 53 43 52 49 50 54 5f a020f0">$SCRIPT_
4d10: 4e 41 4d 45 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 NAME</font><font
4d20: 20 63 6f 6c 6f 72 3d 22 23 66 66 30 30 66 66 22 color="#ff00ff"
4d30: 3e 2f 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 >/</font><font c
4d40: 6f 6c 6f 72 3d 22 23 61 30 32 30 66 30 22 3e 24 olor="#a020f0">$
4d50: 70 72 6f 6a 65 63 74 3c 2f 66 6f 6e 74 3e 3c 66 project</font><f
4d60: 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 36 61 35 61 ont color="#6a5a
4d70: 63 64 22 3e 5c 5c 3c 2f 66 6f 6e 74 3e 3c 66 6f cd">\\</font><fo
4d80: 6e 74 20 63 6f 6c 6f 72 3d 22 23 66 66 30 30 66 nt color="#ff00f
4d90: 66 22 3e 28 5b 5e 3f 5d 2a 3c 2f 66 6f 6e 74 3e f">([^?]*</font>
4da0: 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 36 61 <font color="#6a
4db0: 35 61 63 64 22 3e 5c 5c 3c 2f 66 6f 6e 74 3e 3c 5acd">\\</font><
4dc0: 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 66 66 30 font color="#ff0
4dd0: 30 66 66 22 3e 29 2e 2a 21 3c 2f 66 6f 6e 74 3e 0ff">).*!</font>
4de0: 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 36 61 <font color="#6a
4df0: 35 61 63 64 22 3e 5c 5c 3c 2f 66 6f 6e 74 3e 3c 5acd">\\</font><
4e00: 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 66 66 30 font color="#ff0
4e10: 30 66 66 22 3e 31 21 3c 2f 66 6f 6e 74 3e 3c 66 0ff">1!</font><f
4e20: 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 ont color="#a52a
4e30: 32 61 22 3e 3c 62 3e 26 71 75 6f 74 3b 3c 2f 62 2a"><b>"</b
4e40: 3e 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f ></font><font co
4e50: 6c 6f 72 3d 22 23 36 61 35 61 63 64 22 3e 60 3c lor="#6a5acd">`<
4e60: 2f 66 6f 6e 74 3e 3c 62 72 3e 0d 0a 3c 66 6f 6e /font><br>..<fon
4e70: 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 t color="#a52a2a
4e80: 22 3e 35 32 20 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e ">52 </font><fon
4e90: 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 t color="#a52a2a
4ea0: 22 3e 3c 62 3e 26 6e 62 73 70 3b 26 6e 62 73 70 "><b>  
4eb0: 3b 3a 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 26 6e 62 ;:</b></font>&nb
4ec0: 73 70 3b 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 sp;<font color="
4ed0: 23 61 30 32 30 66 30 22 3e 24 7b 3c 2f 66 6f 6e #a020f0">${</fon
4ee0: 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 t><font color="#
4ef0: 61 30 32 30 66 30 22 3e 50 41 54 48 5f 49 4e 46 a020f0">PATH_INF
4f00: 4f 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f O</font><font co
4f10: 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 3c 62 lor="#a52a2a"><b
4f20: 3e 3a 3d 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 3c 66 >:=</b></font><f
4f30: 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 66 66 30 30 ont color="#ff00
4f40: 66 66 22 3e 2f 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e ff">/</font><fon
4f50: 74 20 63 6f 6c 6f 72 3d 22 23 61 30 32 30 66 30 t color="#a020f0
4f60: 22 3e 7d 3c 2f 66 6f 6e 74 3e 3c 62 72 3e 0d 0a ">}</font><br>..
4f70: 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 <font color="#a5
4f80: 32 61 32 61 22 3e 35 33 20 3c 2f 66 6f 6e 74 3e 2a2a">53 </font>
4f90: 26 6e 62 73 70 3b 26 6e 62 73 70 3b 3c 66 6f 6e <fon
4fa0: 74 20 63 6f 6c 6f 72 3d 22 23 30 30 38 62 38 62 t color="#008b8b
4fb0: 22 3e 53 43 52 49 50 54 5f 4e 41 4d 45 3c 2f 66 ">SCRIPT_NAME</f
4fc0: 6f 6e 74 3e 3d 3c 66 6f 6e 74 20 63 6f 6c 6f 72 ont>=<font color
4fd0: 3d 22 23 61 30 32 30 66 30 22 3e 24 53 43 52 49 ="#a020f0">$SCRI
4fe0: 50 54 5f 4e 41 4d 45 3c 2f 66 6f 6e 74 3e 2f 3c PT_NAME</font>/<
4ff0: 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 30 32 font color="#a02
5000: 30 66 30 22 3e 24 70 72 6f 6a 65 63 74 3c 2f 66 0f0">$project</f
5010: 6f 6e 74 3e 3c 62 72 3e 0d 0a 3c 66 6f 6e 74 20 ont><br>..<font
5020: 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e color="#a52a2a">
5030: 35 34 20 3c 2f 66 6f 6e 74 3e 26 6e 62 73 70 3b 54 </font>
5040: 26 6e 62 73 70 3b 3c 66 6f 6e 74 20 63 6f 6c 6f <font colo
5050: 72 3d 22 23 30 30 38 62 38 62 22 3e 54 45 4d 50 r="#008b8b">TEMP
5060: 46 49 4c 45 3c 2f 66 6f 6e 74 3e 3d 3c 66 6f 6e FILE</font>=<fon
5070: 74 20 63 6f 6c 6f 72 3d 22 23 36 61 35 61 63 64 t color="#6a5acd
5080: 22 3e 60 6d 6b 74 65 6d 70 20 2f 74 6d 70 2f 66 ">`mktemp /tmp/f
5090: 6f 73 73 69 6c 2d 3c 2f 66 6f 6e 74 3e 3c 66 6f ossil-</font><fo
50a0: 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 30 32 30 66 nt color="#a020f
50b0: 30 22 3e 24 70 72 6f 6a 65 63 74 3c 2f 66 6f 6e 0">$project</fon
50c0: 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 t><font color="#
50d0: 36 61 35 61 63 64 22 3e 2e 58 58 58 58 58 58 60 6a5acd">.XXXXXX`
50e0: 3c 2f 66 6f 6e 74 3e 26 6e 62 73 70 3b 3c 66 6f </font> <fo
50f0: 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 nt color="#a52a2
5100: 61 22 3e 3c 62 3e 7c 7c 3c 2f 62 3e 3c 2f 66 6f a"><b>||</b></fo
5110: 6e 74 3e 26 6e 62 73 70 3b 45 72 72 6f 72 20 3c nt> Error <
5120: 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 font color="#a52
5130: 61 32 61 22 3e 3c 62 3e 26 71 75 6f 74 3b 3c 2f a2a"><b>"</
5140: 62 3e 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 b></font><font c
5150: 6f 6c 6f 72 3d 22 23 66 66 30 30 66 66 22 3e 43 olor="#ff00ff">C
5160: 6f 75 6c 64 6e 27 74 20 63 72 65 61 74 65 20 74 ouldn't create t
5170: 65 6d 70 66 69 6c 65 3c 2f 66 6f 6e 74 3e 3c 66 empfile</font><f
5180: 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 ont color="#a52a
5190: 32 61 22 3e 3c 62 3e 26 71 75 6f 74 3b 3c 2f 62 2a"><b>"</b
51a0: 3e 3c 2f 66 6f 6e 74 3e 3c 62 72 3e 0d 0a 3c 66 ></font><br>..<f
51b0: 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 ont color="#a52a
51c0: 32 61 22 3e 35 35 20 3c 2f 66 6f 6e 74 3e 26 6e 2a">55 </font>&n
51d0: 62 73 70 3b 26 6e 62 73 70 3b 3c 66 6f 6e 74 20 bsp; <font
51e0: 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e color="#a52a2a">
51f0: 3c 62 3e 74 72 61 70 3c 2f 62 3e 3c 2f 66 6f 6e <b>trap</b></fon
5200: 74 3e 26 6e 62 73 70 3b 3c 66 6f 6e 74 20 63 6f t> <font co
5210: 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 3c 62 lor="#a52a2a"><b
5220: 3e 26 71 75 6f 74 3b 3c 2f 62 3e 3c 2f 66 6f 6e >"</b></fon
5230: 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 t><font color="#
5240: 66 66 30 30 66 66 22 3e 72 6d 20 2d 66 20 3c 2f ff00ff">rm -f </
5250: 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 font><font color
5260: 3d 22 23 61 30 32 30 66 30 22 3e 24 54 45 4d 50 ="#a020f0">$TEMP
5270: 46 49 4c 45 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 FILE</font><font
5280: 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 color="#a52a2a"
5290: 3e 3c 62 3e 26 71 75 6f 74 3b 3c 2f 62 3e 3c 2f ><b>"</b></
52a0: 66 6f 6e 74 3e 26 6e 62 73 70 3b 45 58 49 54 20 font> EXIT
52b0: 51 55 49 54 20 49 4e 54 20 54 45 52 4d 3c 62 72 QUIT INT TERM<br
52c0: 3e 0d 0a 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 >..<font color="
52d0: 23 61 35 32 61 32 61 22 3e 35 36 20 3c 2f 66 6f #a52a2a">56 </fo
52e0: 6e 74 3e 26 6e 62 73 70 3b 26 6e 62 73 70 3b 3c nt> <
52f0: 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 font color="#a52
5300: 61 32 61 22 3e 3c 62 3e 65 63 68 6f 3c 2f 62 3e a2a"><b>echo</b>
5310: 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c </font><font col
5320: 6f 72 3d 22 23 66 66 30 30 66 66 22 3e 26 6e 62 or="#ff00ff">&nb
5330: 73 70 3b 72 65 70 6f 73 69 74 6f 72 79 3a 20 3c sp;repository: <
5340: 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f /font><font colo
5350: 72 3d 22 23 61 30 32 30 66 30 22 3e 24 72 65 70 r="#a020f0">$rep
5360: 6f 73 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 os</font><font c
5370: 6f 6c 6f 72 3d 22 23 66 66 30 30 66 66 22 3e 26 olor="#ff00ff">&
5380: 6e 62 73 70 3b 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e nbsp;</font><fon
5390: 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 t color="#a52a2a
53a0: 22 3e 3c 62 3e 26 67 74 3b 3c 2f 62 3e 3c 2f 66 "><b>></b></f
53b0: 6f 6e 74 3e 26 6e 62 73 70 3b 3c 66 6f 6e 74 20 ont> <font
53c0: 63 6f 6c 6f 72 3d 22 23 61 30 32 30 66 30 22 3e color="#a020f0">
53d0: 24 54 45 4d 50 46 49 4c 45 3c 2f 66 6f 6e 74 3e $TEMPFILE</font>
53e0: 3c 62 72 3e 0d 0a 3c 66 6f 6e 74 20 63 6f 6c 6f <br>..<font colo
53f0: 72 3d 22 23 61 35 32 61 32 61 22 3e 35 37 20 3c r="#a52a2a">57 <
5400: 2f 66 6f 6e 74 3e 26 6e 62 73 70 3b 26 6e 62 73 /font> &nbs
5410: 70 3b 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 p;<font color="#
5420: 61 30 32 30 66 30 22 3e 24 46 4f 53 53 49 4c 3c a020f0">$FOSSIL<
5430: 2f 66 6f 6e 74 3e 26 6e 62 73 70 3b 63 67 69 20 /font> cgi
5440: 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 30 <font color="#a0
5450: 32 30 66 30 22 3e 24 54 45 4d 50 46 49 4c 45 3c 20f0">$TEMPFILE<
5460: 2f 66 6f 6e 74 3e 3c 62 72 3e 0d 0a 3c 66 6f 6e /font><br>..<fon
5470: 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 t color="#a52a2a
5480: 22 3e 35 38 20 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e ">58 </font><fon
5490: 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 t color="#a52a2a
54a0: 22 3e 3c 62 3e 65 6c 69 66 3c 2f 62 3e 3c 2f 66 "><b>elif</b></f
54b0: 6f 6e 74 3e 26 6e 62 73 70 3b 3c 66 6f 6e 74 20 ont> <font
54c0: 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e color="#a52a2a">
54d0: 3c 62 3e 5b 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 26 <b>[</b></font>&
54e0: 6e 62 73 70 3b 3c 66 6f 6e 74 20 63 6f 6c 6f 72 nbsp;<font color
54f0: 3d 22 23 61 35 32 61 32 61 22 3e 3c 62 3e 2d 7a ="#a52a2a"><b>-z
5500: 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 26 6e 62 73 70 </b></font> 
5510: 3b 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 ;<font color="#a
5520: 35 32 61 32 61 22 3e 3c 62 3e 26 71 75 6f 74 3b 52a2a"><b>"
5530: 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 </b></font><font
5540: 20 63 6f 6c 6f 72 3d 22 23 61 30 32 30 66 30 22 color="#a020f0"
5550: 3e 24 70 72 6f 6a 65 63 74 3c 2f 66 6f 6e 74 3e >$project</font>
5560: 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 <font color="#a5
5570: 32 61 32 61 22 3e 3c 62 3e 26 71 75 6f 74 3b 3c 2a2a"><b>"<
5580: 2f 62 3e 3c 2f 66 6f 6e 74 3e 26 6e 62 73 70 3b /b></font>
5590: 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 <font color="#a5
55a0: 32 61 32 61 22 3e 3c 62 3e 5d 3c 2f 62 3e 3c 2f 2a2a"><b>]</b></
55b0: 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 font><font color
55c0: 3d 22 23 61 35 32 61 32 61 22 3e 3c 62 3e 3b 3c ="#a52a2a"><b>;<
55d0: 2f 62 3e 3c 2f 66 6f 6e 74 3e 26 6e 62 73 70 3b /b></font>
55e0: 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 <font color="#a5
55f0: 32 61 32 61 22 3e 3c 62 3e 74 68 65 6e 3c 2f 62 2a2a"><b>then</b
5600: 3e 3c 2f 66 6f 6e 74 3e 3c 62 72 3e 0d 0a 3c 66 ></font><br>..<f
5610: 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 ont color="#a52a
5620: 32 61 22 3e 35 39 20 3c 2f 66 6f 6e 74 3e 26 6e 2a">59 </font>&n
5630: 62 73 70 3b 26 6e 62 73 70 3b 48 65 61 64 65 72 bsp; Header
5640: 48 54 4d 4c 3c 62 72 3e 0d 0a 3c 66 6f 6e 74 20 HTML<br>..<font
5650: 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e color="#a52a2a">
5660: 36 30 20 3c 2f 66 6f 6e 74 3e 26 6e 62 73 70 3b 60 </font>
5670: 26 6e 62 73 70 3b 3c 66 6f 6e 74 20 63 6f 6c 6f <font colo
5680: 72 3d 22 23 61 35 32 61 32 61 22 3e 3c 62 3e 65 r="#a52a2a"><b>e
5690: 63 68 6f 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 3c 66 cho</b></font><f
56a0: 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 66 66 30 30 ont color="#ff00
56b0: 66 66 22 3e 26 6e 62 73 70 3b 3c 2f 66 6f 6e 74 ff"> </font
56c0: 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 ><font color="#a
56d0: 35 32 61 32 61 22 3e 3c 62 3e 26 71 75 6f 74 3b 52a2a"><b>"
56e0: 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 </b></font><font
56f0: 20 63 6f 6c 6f 72 3d 22 23 61 30 32 30 66 30 22 color="#a020f0"
5700: 3e 24 54 49 54 4c 45 3c 2f 66 6f 6e 74 3e 3c 66 >$TITLE</font><f
5710: 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 ont color="#a52a
5720: 32 61 22 3e 3c 62 3e 26 71 75 6f 74 3b 3c 2f 62 2a"><b>"</b
5730: 3e 3c 2f 66 6f 6e 74 3e 3c 62 72 3e 0d 0a 3c 66 ></font><br>..<f
5740: 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 ont color="#a52a
5750: 32 61 22 3e 36 31 20 3c 2f 66 6f 6e 74 3e 26 6e 2a">61 </font>&n
5760: 62 73 70 3b 26 6e 62 73 70 3b 3c 66 6f 6e 74 20 bsp; <font
5770: 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e color="#a52a2a">
5780: 3c 62 3e 65 63 68 6f 3c 2f 62 3e 3c 2f 66 6f 6e <b>echo</b></fon
5790: 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 t><font color="#
57a0: 66 66 30 30 66 66 22 3e 26 6e 62 73 70 3b 3c 2f ff00ff"> </
57b0: 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 font><font color
57c0: 3d 22 23 61 35 32 61 32 61 22 3e 3c 62 3e 26 71 ="#a52a2a"><b>&q
57d0: 75 6f 74 3b 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 3c uot;</b></font><
57e0: 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 66 66 30 font color="#ff0
57f0: 30 66 66 22 3e 26 6c 74 3b 75 6c 26 67 74 3b 3c 0ff"><ul><
5800: 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f /font><font colo
5810: 72 3d 22 23 61 35 32 61 32 61 22 3e 3c 62 3e 26 r="#a52a2a"><b>&
5820: 71 75 6f 74 3b 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e quot;</b></font>
5830: 3c 62 72 3e 0d 0a 3c 66 6f 6e 74 20 63 6f 6c 6f <br>..<font colo
5840: 72 3d 22 23 61 35 32 61 32 61 22 3e 36 32 20 3c r="#a52a2a">62 <
5850: 2f 66 6f 6e 74 3e 26 6e 62 73 70 3b 26 6e 62 73 /font> &nbs
5860: 70 3b 66 69 6e 64 20 3c 66 6f 6e 74 20 63 6f 6c p;find <font col
5870: 6f 72 3d 22 23 61 30 32 30 66 30 22 3e 24 52 45 or="#a020f0">$RE
5880: 50 4f 53 52 4f 4f 54 3c 2f 66 6f 6e 74 3e 26 6e POSROOT</font>&n
5890: 62 73 70 3b 2d 6e 61 6d 65 20 3c 66 6f 6e 74 20 bsp;-name <font
58a0: 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e color="#a52a2a">
58b0: 3c 62 3e 26 71 75 6f 74 3b 3c 2f 62 3e 3c 2f 66 <b>"</b></f
58c0: 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d ont><font color=
58d0: 22 23 66 66 30 30 66 66 22 3e 2a 3c 2f 66 6f 6e "#ff00ff">*</fon
58e0: 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 t><font color="#
58f0: 61 30 32 30 66 30 22 3e 24 52 45 50 4f 53 45 58 a020f0">$REPOSEX
5900: 54 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f T</font><font co
5910: 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 3c 62 lor="#a52a2a"><b
5920: 3e 26 71 75 6f 74 3b 3c 2f 62 3e 3c 2f 66 6f 6e >"</b></fon
5930: 74 3e 26 6e 62 73 70 3b 3c 66 6f 6e 74 20 63 6f t> <font co
5940: 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 3c 62 lor="#a52a2a"><b
5950: 3e 7c 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 26 6e 62 >|</b></font>&nb
5960: 73 70 3b 5c 3c 62 72 3e 0d 0a 3c 66 6f 6e 74 20 sp;\<br>..<font
5970: 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e color="#a52a2a">
5980: 36 33 20 3c 2f 66 6f 6e 74 3e 26 6e 62 73 70 3b 63 </font>
5990: 26 6e 62 73 70 3b 77 68 69 6c 65 20 3c 66 6f 6e while <fon
59a0: 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 t color="#a52a2a
59b0: 22 3e 3c 62 3e 72 65 61 64 3c 2f 62 3e 3c 2f 66 "><b>read</b></f
59c0: 6f 6e 74 3e 26 6e 62 73 70 3b 72 65 70 6f 73 3c ont> repos<
59d0: 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 font color="#a52
59e0: 61 32 61 22 3e 3c 62 3e 3b 3c 2f 62 3e 3c 2f 66 a2a"><b>;</b></f
59f0: 6f 6e 74 3e 26 6e 62 73 70 3b 3c 66 6f 6e 74 20 ont> <font
5a00: 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e color="#a52a2a">
5a10: 3c 62 3e 64 6f 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e <b>do</b></font>
5a20: 3c 62 72 3e 0d 0a 3c 66 6f 6e 74 20 63 6f 6c 6f <br>..<font colo
5a30: 72 3d 22 23 61 35 32 61 32 61 22 3e 36 34 20 3c r="#a52a2a">64 <
5a40: 2f 66 6f 6e 74 3e 26 6e 62 73 70 3b 26 6e 62 73 /font> &nbs
5a50: 70 3b 26 6e 62 73 70 3b 26 6e 62 73 70 3b 3c 66 p; <f
5a60: 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 30 30 38 62 ont color="#008b
5a70: 38 62 22 3e 70 72 6f 6a 65 63 74 3c 2f 66 6f 6e 8b">project</fon
5a80: 74 3e 3d 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 t>=<font color="
5a90: 23 36 61 35 61 63 64 22 3e 60 62 61 73 65 6e 61 #6a5acd">`basena
5aa0: 6d 65 20 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 me </font><font
5ab0: 63 6f 6c 6f 72 3d 22 23 61 30 32 30 66 30 22 3e color="#a020f0">
5ac0: 24 72 65 70 6f 73 3c 2f 66 6f 6e 74 3e 3c 66 6f $repos</font><fo
5ad0: 6e 74 20 63 6f 6c 6f 72 3d 22 23 36 61 35 61 63 nt color="#6a5ac
5ae0: 64 22 3e 26 6e 62 73 70 3b 3c 2f 66 6f 6e 74 3e d"> </font>
5af0: 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 30 <font color="#a0
5b00: 32 30 66 30 22 3e 24 52 45 50 4f 53 45 58 54 3c 20f0">$REPOSEXT<
5b10: 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f /font><font colo
5b20: 72 3d 22 23 36 61 35 61 63 64 22 3e 60 3c 2f 66 r="#6a5acd">`</f
5b30: 6f 6e 74 3e 3c 62 72 3e 0d 0a 3c 66 6f 6e 74 20 ont><br>..<font
5b40: 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e color="#a52a2a">
5b50: 36 35 20 3c 2f 66 6f 6e 74 3e 26 6e 62 73 70 3b 65 </font>
5b60: 26 6e 62 73 70 3b 26 6e 62 73 70 3b 26 6e 62 73 &nbs
5b70: 70 3b 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 p;<font color="#
5b80: 61 35 32 61 32 61 22 3e 3c 62 3e 69 66 20 3c 2f a52a2a"><b>if </
5b90: 62 3e 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 b></font><font c
5ba0: 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 3c olor="#a52a2a"><
5bb0: 62 3e 5b 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 26 6e b>[</b></font>&n
5bc0: 62 73 70 3b 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d bsp;<font color=
5bd0: 22 23 61 35 32 61 32 61 22 3e 3c 62 3e 2d 66 3c "#a52a2a"><b>-f<
5be0: 2f 62 3e 3c 2f 66 6f 6e 74 3e 26 6e 62 73 70 3b /b></font>
5bf0: 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 30 <font color="#a0
5c00: 32 30 66 30 22 3e 24 72 65 70 6f 73 3c 2f 66 6f 20f0">$repos</fo
5c10: 6e 74 3e 26 6e 62 73 70 3b 3c 66 6f 6e 74 20 63 nt> <font c
5c20: 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 3c olor="#a52a2a"><
5c30: 62 3e 2d 61 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 26 b>-a</b></font>&
5c40: 6e 62 73 70 3b 3c 66 6f 6e 74 20 63 6f 6c 6f 72 nbsp;<font color
5c50: 3d 22 23 61 35 32 61 32 61 22 3e 3c 62 3e 21 3c ="#a52a2a"><b>!<
5c60: 2f 62 3e 3c 2f 66 6f 6e 74 3e 26 6e 62 73 70 3b /b></font>
5c70: 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 <font color="#a5
5c80: 32 61 32 61 22 3e 3c 62 3e 2d 65 3c 2f 62 3e 3c 2a2a"><b>-e</b><
5c90: 2f 66 6f 6e 74 3e 26 6e 62 73 70 3b 3c 66 6f 6e /font> <fon
5ca0: 74 20 63 6f 6c 6f 72 3d 22 23 61 30 32 30 66 30 t color="#a020f0
5cb0: 22 3e 24 52 45 50 4f 53 52 4f 4f 54 3c 2f 66 6f ">$REPOSROOT</fo
5cc0: 6e 74 3e 2f 2e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 nt>/.<font color
5cd0: 3d 22 23 61 30 32 30 66 30 22 3e 24 70 72 6f 6a ="#a020f0">$proj
5ce0: 65 63 74 3c 2f 66 6f 6e 74 3e 26 6e 62 73 70 3b ect</font>
5cf0: 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 <font color="#a5
5d00: 32 61 32 61 22 3e 3c 62 3e 5d 3c 2f 62 3e 3c 2f 2a2a"><b>]</b></
5d10: 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 font><font color
5d20: 3d 22 23 61 35 32 61 32 61 22 3e 3c 62 3e 3b 3c ="#a52a2a"><b>;<
5d30: 2f 62 3e 3c 2f 66 6f 6e 74 3e 26 6e 62 73 70 3b /b></font>
5d40: 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 <font color="#a5
5d50: 32 61 32 61 22 3e 3c 62 3e 74 68 65 6e 3c 2f 62 2a2a"><b>then</b
5d60: 3e 3c 2f 66 6f 6e 74 3e 3c 62 72 3e 0d 0a 3c 66 ></font><br>..<f
5d70: 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 ont color="#a52a
5d80: 32 61 22 3e 36 36 20 3c 2f 66 6f 6e 74 3e 26 6e 2a">66 </font>&n
5d90: 62 73 70 3b 26 6e 62 73 70 3b 26 6e 62 73 70 3b bsp;
5da0: 26 6e 62 73 70 3b 26 6e 62 73 70 3b 26 6e 62 73 &nbs
5db0: 70 3b 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 p;<font color="#
5dc0: 61 35 32 61 32 61 22 3e 3c 62 3e 65 63 68 6f 3c a52a2a"><b>echo<
5dd0: 2f 62 3e 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 /b></font><font
5de0: 63 6f 6c 6f 72 3d 22 23 66 66 30 30 66 66 22 3e color="#ff00ff">
5df0: 26 6e 62 73 70 3b 3c 2f 66 6f 6e 74 3e 3c 66 6f </font><fo
5e00: 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 nt color="#a52a2
5e10: 61 22 3e 3c 62 3e 26 71 75 6f 74 3b 3c 2f 62 3e a"><b>"</b>
5e20: 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c </font><font col
5e30: 6f 72 3d 22 23 66 66 30 30 66 66 22 3e 26 6c 74 or="#ff00ff"><
5e40: 3b 6c 69 26 67 74 3b 26 6c 74 3b 61 20 68 72 65 ;li><a hre
5e50: 66 3d 27 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 f='</font><font
5e60: 63 6f 6c 6f 72 3d 22 23 61 30 32 30 66 30 22 3e color="#a020f0">
5e70: 24 7b 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 ${</font><font c
5e80: 6f 6c 6f 72 3d 22 23 61 30 32 30 66 30 22 3e 52 olor="#a020f0">R
5e90: 45 51 55 45 53 54 5f 55 52 49 3c 2f 66 6f 6e 74 EQUEST_URI</font
5ea0: 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 ><font color="#a
5eb0: 30 32 30 66 30 22 3e 7d 3c 2f 66 6f 6e 74 3e 3c 020f0">}</font><
5ec0: 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 66 66 30 font color="#ff0
5ed0: 30 66 66 22 3e 2f 3c 2f 66 6f 6e 74 3e 3c 66 6f 0ff">/</font><fo
5ee0: 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 30 32 30 66 nt color="#a020f
5ef0: 30 22 3e 24 70 72 6f 6a 65 63 74 3c 2f 66 6f 6e 0">$project</fon
5f00: 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 t><font color="#
5f10: 66 66 30 30 66 66 22 3e 27 26 67 74 3b 3c 2f 66 ff00ff">'></f
5f20: 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d ont><font color=
5f30: 22 23 61 30 32 30 66 30 22 3e 24 70 72 6f 6a 65 "#a020f0">$proje
5f40: 63 74 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 ct</font><font c
5f50: 6f 6c 6f 72 3d 22 23 66 66 30 30 66 66 22 3e 26 olor="#ff00ff">&
5f60: 6c 74 3b 2f 61 26 67 74 3b 26 6c 74 3b 2f 6c 69 lt;/a></li
5f70: 26 67 74 3b 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 ></font><font
5f80: 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 color="#a52a2a"
5f90: 3e 3c 62 3e 26 71 75 6f 74 3b 3c 2f 62 3e 3c 2f ><b>"</b></
5fa0: 66 6f 6e 74 3e 3c 62 72 3e 0d 0a 3c 66 6f 6e 74 font><br>..<font
5fb0: 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 color="#a52a2a"
5fc0: 3e 36 37 20 3c 2f 66 6f 6e 74 3e 26 6e 62 73 70 >67 </font> 
5fd0: 3b 26 6e 62 73 70 3b 26 6e 62 73 70 3b 26 6e 62 ; &nb
5fe0: 73 70 3b 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 sp;<font color="
5ff0: 23 61 35 32 61 32 61 22 3e 3c 62 3e 66 69 3c 2f #a52a2a"><b>fi</
6000: 62 3e 3c 2f 66 6f 6e 74 3e 3c 62 72 3e 0d 0a 3c b></font><br>..<
6010: 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 font color="#a52
6020: 61 32 61 22 3e 36 38 20 3c 2f 66 6f 6e 74 3e 26 a2a">68 </font>&
6030: 6e 62 73 70 3b 26 6e 62 73 70 3b 3c 66 6f 6e 74 nbsp; <font
6040: 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 color="#a52a2a"
6050: 3e 3c 62 3e 64 6f 6e 65 3c 2f 62 3e 3c 2f 66 6f ><b>done</b></fo
6060: 6e 74 3e 3c 62 72 3e 0d 0a 3c 66 6f 6e 74 20 63 nt><br>..<font c
6070: 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 36 olor="#a52a2a">6
6080: 39 20 3c 2f 66 6f 6e 74 3e 26 6e 62 73 70 3b 26 9 </font> &
6090: 6e 62 73 70 3b 3c 66 6f 6e 74 20 63 6f 6c 6f 72 nbsp;<font color
60a0: 3d 22 23 61 35 32 61 32 61 22 3e 3c 62 3e 65 63 ="#a52a2a"><b>ec
60b0: 68 6f 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 3c 66 6f ho</b></font><fo
60c0: 6e 74 20 63 6f 6c 6f 72 3d 22 23 66 66 30 30 66 nt color="#ff00f
60d0: 66 22 3e 26 6e 62 73 70 3b 3c 2f 66 6f 6e 74 3e f"> </font>
60e0: 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 <font color="#a5
60f0: 32 61 32 61 22 3e 3c 62 3e 26 71 75 6f 74 3b 3c 2a2a"><b>"<
6100: 2f 62 3e 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 /b></font><font
6110: 63 6f 6c 6f 72 3d 22 23 66 66 30 30 66 66 22 3e color="#ff00ff">
6120: 26 6c 74 3b 2f 75 6c 26 67 74 3b 3c 2f 66 6f 6e </ul></fon
6130: 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 t><font color="#
6140: 61 35 32 61 32 61 22 3e 3c 62 3e 26 71 75 6f 74 a52a2a"><b>"
6150: 3b 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 3c 62 72 3e ;</b></font><br>
6160: 0d 0a 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 ..<font color="#
6170: 61 35 32 61 32 61 22 3e 37 30 20 3c 2f 66 6f 6e a52a2a">70 </fon
6180: 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 t><font color="#
6190: 61 35 32 61 32 61 22 3e 3c 62 3e 65 6c 73 65 3c a52a2a"><b>else<
61a0: 2f 62 3e 3c 2f 66 6f 6e 74 3e 3c 62 72 3e 0d 0a /b></font><br>..
61b0: 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 <font color="#a5
61c0: 32 61 32 61 22 3e 37 31 20 3c 2f 66 6f 6e 74 3e 2a2a">71 </font>
61d0: 26 6e 62 73 70 3b 26 6e 62 73 70 3b 45 72 72 6f Erro
61e0: 72 20 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 r <font color="#
61f0: 61 35 32 61 32 61 22 3e 3c 62 3e 26 71 75 6f 74 a52a2a"><b>"
6200: 3b 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e ;</b></font><fon
6210: 74 20 63 6f 6c 6f 72 3d 22 23 66 66 30 30 66 66 t color="#ff00ff
6220: 22 3e 4e 6f 20 73 75 63 68 20 70 72 6f 6a 65 63 ">No such projec
6230: 74 3a 20 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 t: </font><font
6240: 63 6f 6c 6f 72 3d 22 23 61 30 32 30 66 30 22 3e color="#a020f0">
6250: 24 70 72 6f 6a 65 63 74 3c 2f 66 6f 6e 74 3e 3c $project</font><
6260: 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 font color="#a52
6270: 61 32 61 22 3e 3c 62 3e 26 71 75 6f 74 3b 3c 2f a2a"><b>"</
6280: 62 3e 3c 2f 66 6f 6e 74 3e 3c 62 72 3e 0d 0a 3c b></font><br>..<
6290: 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 font color="#a52
62a0: 61 32 61 22 3e 37 32 20 3c 2f 66 6f 6e 74 3e 3c a2a">72 </font><
62b0: 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 font color="#a52
62c0: 61 32 61 22 3e 3c 62 3e 66 69 3c 2f 62 3e 3c 2f a2a"><b>fi</b></
62d0: 66 6f 6e 74 3e 3c 62 72 3e 0d 0a 3c 66 6f 6e 74 font><br>..<font
62e0: 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 color="#a52a2a"
62f0: 3e 37 33 20 3c 2f 66 6f 6e 74 3e 3c 62 72 3e 0d >73 </font><br>.
6300: 0a 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 .<font color="#a
6310: 35 32 61 32 61 22 3e 37 34 20 3c 2f 66 6f 6e 74 52a2a">74 </font
6320: 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 ><font color="#a
6330: 35 32 61 32 61 22 3e 3c 62 3e 65 78 69 74 3c 2f 52a2a"><b>exit</
6340: 62 3e 3c 2f 66 6f 6e 74 3e 26 6e 62 73 70 3b 3c b></font> <
6350: 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 66 66 30 font color="#ff0
6360: 30 66 66 22 3e 30 3c 2f 66 6f 6e 74 3e 3c 62 72 0ff">0</font><br
6370: 3e 0d 0a 3c 2f 66 6f 6e 74 3e 0d 0a 3c 2f 6e 6f >..</font>..</no
6380: 77 69 6b 69 3e 0d 0a 0d 0a 3c 68 34 3e 57 69 6e wiki>....<h4>Win
6390: 64 6f 77 73 3c 2f 68 34 3e 0d 0a 3c 70 3e 57 68 dows</h4>..<p>Wh
63a0: 69 6c 65 20 69 74 20 69 73 20 66 61 72 20 66 72 ile it is far fr
63b0: 6f 6d 20 61 20 70 65 72 66 65 63 74 20 73 65 74 om a perfect set
63c0: 20 6f 66 20 69 6e 73 74 72 75 63 74 69 6f 6e 73 of instructions
63d0: 2e 2e 20 68 65 72 65 20 61 72 65 20 73 6f 6d 65 .. here are some
63e0: 20 71 75 69 63 6b 20 6e 6f 74 65 73 20 74 68 61 quick notes tha
63f0: 74 20 73 68 6f 75 6c 64 20 68 65 6c 70 20 77 69 t should help wi
6400: 6e 64 6f 77 73 20 75 73 65 72 73 20 61 6c 6f 6e ndows users alon
6410: 67 20 74 68 65 20 77 61 79 2e 2e 2e 3c 2f 70 3e g the way...</p>
6420: 0d 0a 3c 75 6c 3e 0d 0a 3c 6c 69 3e 79 6f 75 20 ..<ul>..<li>you
6430: 6e 65 65 64 20 66 6f 73 73 69 6c 2e 65 78 65 20 need fossil.exe
6440: 61 63 63 65 73 73 69 62 6c 65 20 62 79 20 79 6f accessible by yo
6450: 75 72 20 77 65 62 20 73 65 72 76 65 72 20 6f 72 ur web server or
6460: 20 6f 6e 20 79 6f 75 72 20 70 61 74 68 2e 2e 20 on your path..
6470: 65 61 73 69 65 73 74 20 69 73 20 74 6f 20 6a 75 easiest is to ju
6480: 73 74 20 63 68 75 63 6b 20 69 74 20 69 6e 20 5c st chuck it in \
6490: 25 53 59 53 54 45 4d 5f 52 4f 4f 54 25 5c 20 28 %SYSTEM_ROOT%\ (
64a0: 75 73 75 61 6c 6c 79 20 63 3a 5c 77 69 6e 64 6f usually c:\windo
64b0: 77 73 5c 29 20 3c 2f 6c 69 3e 0d 0a 3c 6c 69 3e ws\) </li>..<li>
64c0: 61 73 73 75 6d 69 6e 67 20 79 6f 75 20 61 72 65 assuming you are
64d0: 20 72 75 6e 6e 69 6e 67 20 61 70 61 63 68 65 2c running apache,
64e0: 20 79 6f 75 20 6e 65 65 64 20 74 6f 20 65 69 74 you need to eit
64f0: 68 65 72 20 61 64 64 20 74 68 65 20 45 78 65 63 her add the Exec
6500: 43 47 49 20 74 6f 20 74 68 65 20 6f 70 74 69 6f CGI to the optio
6510: 6e 73 20 6f 6e 20 79 6f 75 72 20 44 6f 63 75 6d ns on your Docum
6520: 65 6e 74 52 6f 6f 74 2c 20 6f 72 20 6d 61 6b 65 entRoot, or make
6530: 20 73 75 72 65 20 74 68 65 20 53 63 72 69 70 74 sure the Script
6540: 41 6c 69 61 73 20 64 69 72 65 63 74 69 76 65 20 Alias directive
6550: 69 73 20 73 65 74 20 61 6e 64 20 70 75 74 20 79 is set and put y
6560: 6f 75 72 20 2e 63 67 69 20 66 69 6c 65 73 20 69 our .cgi files i
6570: 6e 20 74 68 61 74 20 66 6f 6c 64 65 72 2e 2e 3c n that folder..<
6580: 2f 6c 69 3e 0d 0a 3c 6c 69 3e 74 68 65 20 63 6f /li>..<li>the co
6590: 6e 74 65 6e 74 73 20 6f 66 20 79 6f 75 72 20 63 ntents of your c
65a0: 67 69 20 66 69 6c 65 20 6e 65 65 64 73 20 74 6f gi file needs to
65b0: 20 65 73 73 65 6e 74 69 61 6c 6c 79 20 74 68 65 essentially the
65c0: 20 73 61 6d 65 20 61 73 20 61 62 6f 76 65 2e 2e same as above..
65d0: 20 68 6f 77 65 76 65 72 20 70 61 74 68 73 20 6e however paths n
65e0: 65 65 64 73 20 74 6f 20 62 65 20 77 69 6e 64 6f eeds to be windo
65f0: 77 73 20 66 72 69 65 6e 64 6c 79 2e 2e 20 69 20 ws friendly.. i
6600: 68 61 76 65 20 6d 61 64 65 20 73 75 72 65 20 74 have made sure t
6610: 68 61 74 20 61 6c 6c 20 66 6f 6c 64 65 72 73 20 hat all folders
6620: 6f 6e 20 6d 79 20 74 65 73 74 20 62 6f 78 20 61 on my test box a
6630: 72 65 20 66 72 65 65 20 6f 66 20 73 70 61 63 65 re free of space
6640: 73 2c 20 61 6e 64 20 61 73 20 73 75 63 68 20 74 s, and as such t
6650: 68 69 73 20 66 69 6c 65 20 77 6f 72 6b 73 20 66 his file works f
6660: 6f 72 20 6d 65 20 28 6f 62 76 69 6f 75 73 6c 79 or me (obviously
6670: 20 79 6f 75 72 20 70 61 74 68 73 20 6d 61 79 20 your paths may
6680: 64 69 66 66 65 72 29 0d 0a 3c 70 72 65 3e 0d 0a differ)..<pre>..
6690: 23 21 20 66 6f 73 73 69 6c 2e 65 78 65 0d 0a 72 #! fossil.exe..r
66a0: 65 70 6f 73 69 74 6f 72 79 3a 20 63 3a 2f 77 61 epository: c:/wa
66b0: 6d 70 2f 77 77 77 2f 64 65 76 2f 61 63 63 6f 75 mp/www/dev/accou
66c0: 6e 74 73 2e 66 6f 73 73 69 6c 0d 0a 3c 2f 70 72 nts.fossil..</pr
66d0: 65 3e 0d 0a 49 20 73 75 70 70 6f 73 65 20 79 6f e>..I suppose yo
66e0: 75 20 63 6f 75 6c 64 20 70 75 74 20 66 6f 73 73 u could put foss
66f0: 69 6c 2e 65 78 65 20 73 6f 6d 65 77 68 65 72 65 il.exe somewhere
6700: 20 6d 6f 72 65 20 73 70 65 63 69 66 69 63 20 61 more specific a
6710: 6e 64 20 73 65 74 20 74 68 65 20 70 61 74 68 20 nd set the path
6720: 74 6f 20 69 74 20 61 73 20 77 65 6c 6c 2c 20 62 to it as well, b
6730: 75 74 20 73 69 6e 63 65 20 79 6f 75 20 61 72 65 ut since you are
6740: 20 70 72 6f 62 61 62 6c 79 20 75 73 69 6e 67 20 probably using
6750: 74 68 65 20 73 61 6d 65 20 65 78 65 63 75 74 61 the same executa
6760: 62 6c 65 20 66 6f 72 20 63 6d 64 6c 69 6e 65 20 ble for cmdline
6770: 61 6e 64 20 63 67 69 20 69 74 20 6b 69 6e 64 20 and cgi it kind
6780: 6f 66 20 6a 75 73 74 20 6d 61 6b 65 73 20 73 65 of just makes se
6790: 6e 73 65 20 74 6f 20 70 75 74 20 69 74 20 73 6f nse to put it so
67a0: 6d 65 77 68 65 72 65 20 6d 6f 72 65 20 61 63 63 mewhere more acc
67b0: 65 73 73 69 62 6c 65 3c 2f 6c 69 3e 0d 0a 3c 6c essible</li>..<l
67c0: 69 3e 41 73 20 77 69 74 68 20 6d 6f 73 74 20 57 i>As with most W
67d0: 69 6e 64 6f 77 73 20 62 61 73 65 64 20 77 65 62 indows based web
67e0: 20 69 6e 73 74 72 75 63 74 69 6f 6e 73 2c 20 70 instructions, p
67f0: 65 72 6d 69 73 73 69 6f 6e 20 61 72 65 20 6e 6f ermission are no
6800: 74 20 61 73 20 69 6d 70 6f 72 74 61 6e 74 2c 20 t as important,
6810: 68 6f 77 65 76 65 72 20 61 74 20 74 68 65 20 6c however at the l
6820: 65 61 73 74 2c 20 79 6f 75 20 6e 65 65 64 20 74 east, you need t
6830: 6f 20 6d 61 6b 65 20 73 75 72 65 20 74 68 61 74 o make sure that
6840: 20 79 6f 75 72 20 72 65 70 6f 73 69 74 6f 72 79 your repository
6850: 20 69 73 20 6e 6f 74 20 66 6c 61 67 67 65 64 20 is not flagged
6860: 72 65 61 64 2d 6f 6e 6c 79 2c 20 61 73 20 79 6f read-only, as yo
6870: 75 20 77 69 6c 6c 20 65 6e 63 6f 75 6e 74 65 72 u will encounter
6880: 20 64 61 74 61 62 61 73 65 20 65 72 72 6f 72 73 database errors
6890: 20 69 66 20 69 74 20 69 73 2e 3c 2f 6c 69 3e 0d if it is.</li>.
68a0: 0a 3c 2f 75 6c 3e 0d 0a 0d 0a 3c 68 33 3e 44 69 .</ul>....<h3>Di
68b0: 73 63 75 73 73 69 6f 6e 3c 2f 68 33 3e 0d 0a 55 scussion</h3>..U
68c0: 73 69 6e 67 20 74 68 65 20 43 47 49 20 73 65 72 sing the CGI ser
68d0: 76 65 72 20 69 73 20 74 68 65 20 62 65 73 74 20 ver is the best
68e0: 73 6f 6c 75 74 69 6f 6e 20 63 6f 6d 62 69 6e 69 solution combini
68f0: 6e 67 20 61 6e 20 65 78 69 73 74 69 6e 67 20 77 ng an existing w
6900: 65 62 20 69 6e 66 72 61 73 74 72 75 63 74 75 72 eb infrastructur
6910: 65 20 61 6e 64 20 74 68 65 20 73 68 61 72 69 6e e and the sharin
6920: 67 20 6f 66 20 6d 61 6e 79 20 3c 63 69 74 65 3e g of many <cite>
6930: 46 6f 73 73 69 6c 3c 2f 63 69 74 65 3e 20 72 65 Fossil</cite> re
6940: 70 6f 73 69 74 6f 72 69 65 73 2e 20 20 55 6e 6c positories. Unl
6950: 69 6b 65 20 74 68 65 20 61 64 2d 68 6f 63 20 73 ike the ad-hoc s
6960: 6f 6c 75 74 69 6f 6e 20 77 68 69 63 68 20 72 65 olution which re
6970: 71 75 69 72 65 73 2c 20 69 6e 20 65 66 66 65 63 quires, in effec
6980: 74 2c 20 61 20 73 65 70 61 72 61 74 65 20 70 6f t, a separate po
6990: 72 74 20 66 6f 72 20 65 61 63 68 20 73 69 6d 75 rt for each simu
69a0: 6c 74 61 6e 65 6f 75 73 6c 79 2d 73 68 61 72 65 ltaneously-share
69b0: 64 20 72 65 70 6f 73 69 74 6f 72 79 2c 20 61 6e d repository, an
69c0: 64 20 77 68 69 63 68 20 72 65 71 75 69 72 65 73 d which requires
69d0: 20 73 65 76 65 72 61 6c 20 69 6e 73 74 61 6e 63 several instanc
69e0: 65 73 20 6f 66 20 66 6f 73 73 69 6c 20 72 75 6e es of fossil run
69f0: 6e 69 6e 67 20 2d 2d 20 6f 6e 65 20 66 6f 72 20 ning -- one for
6a00: 65 61 63 68 20 73 68 61 72 65 64 20 72 65 70 6f each shared repo
6a10: 73 69 74 6f 72 79 20 2d 2d 20 74 68 65 20 43 47 sitory -- the CG
6a20: 49 20 61 70 70 72 6f 61 63 68 20 75 73 65 73 20 I approach uses
6a30: 55 52 4c 73 20 74 6f 20 64 69 73 74 69 6e 67 75 URLs to distingu
6a40: 69 73 68 20 62 65 74 77 65 65 6e 20 72 65 70 6f ish between repo
6a50: 73 69 74 6f 72 69 65 73 20 61 6e 64 20 6f 6e 6c sitories and onl
6a60: 79 20 28 62 72 69 65 66 6c 79 29 20 72 75 6e 73 y (briefly) runs
6a70: 20 61 20 63 6f 70 79 20 6f 66 20 66 6f 73 73 69 a copy of fossi
6a80: 6c 20 77 68 65 6e 20 74 68 65 20 72 65 70 6f 73 l when the repos
6a90: 69 74 6f 72 79 20 69 73 20 61 63 74 75 61 6c 6c itory is actuall
6aa0: 79 20 61 63 63 65 73 73 65 64 2e 0d 0a 0d 0a 53 y accessed.....S
6ab0: 68 61 72 69 6e 67 20 72 65 70 6f 73 69 74 6f 72 haring repositor
6ac0: 69 65 73 20 77 69 74 68 20 43 47 49 20 69 73 20 ies with CGI is
6ad0: 72 65 61 6c 6c 79 20 6f 6e 6c 79 20 77 6f 72 74 really only wort
6ae0: 68 20 74 68 65 20 65 66 66 6f 72 74 20 69 66 20 h the effort if
6af0: 6d 6f 72 65 20 74 68 61 6e 20 6f 6e 65 20 72 65 more than one re
6b00: 70 6f 73 69 74 6f 72 79 20 69 73 20 62 65 69 6e pository is bein
6b10: 67 20 73 68 61 72 65 64 2c 20 68 6f 77 65 76 65 g shared, howeve
6b20: 72 2e 20 20 57 69 74 68 20 6f 6e 6c 79 20 6f 6e r. With only on
6b30: 65 20 62 65 69 6e 67 20 73 68 61 72 65 64 2c 20 e being shared,
6b40: 3c 63 6f 64 65 3e 66 6f 73 73 69 6c 20 73 65 72 <code>fossil ser
6b50: 76 65 72 3c 2f 63 6f 64 65 3e 20 69 73 20 6c 69 ver</code> is li
6b60: 6b 65 6c 79 20 6d 6f 72 65 20 74 68 61 6e 20 61 kely more than a
6b70: 64 65 71 75 61 74 65 20 6f 72 20 74 68 65 20 75 dequate or the u
6b80: 73 65 20 6f 66 20 28 78 29 69 6e 65 74 64 20 6d se of (x)inetd m
6b90: 61 79 20 62 65 20 69 6e 64 69 63 61 74 65 64 2e ay be indicated.
6ba0: 20 20 49 66 2c 20 68 6f 77 65 76 65 72 2c 20 74 If, however, t
6bb0: 68 65 72 65 20 69 73 20 61 6c 72 65 61 64 79 20 here is already
6bc0: 61 6e 20 65 78 69 73 74 69 6e 67 20 77 65 62 20 an existing web
6bd0: 69 6e 66 72 61 73 74 72 75 63 74 75 72 65 20 69 infrastructure i
6be0: 6e 20 70 6c 61 63 65 2c 20 43 47 49 20 73 74 69 n place, CGI sti
6bf0: 6c 6c 20 6d 61 79 20 62 65 20 70 72 65 66 65 72 ll may be prefer
6c00: 72 65 64 20 69 66 20 6f 6e 6c 79 20 66 6f 72 20 red if only for
6c10: 63 6f 6e 73 69 73 74 65 6e 63 79 20 61 6e 64 20 consistency and
6c20: 6d 61 69 6e 74 61 69 6e 61 62 69 6c 69 74 79 20 maintainability
6c30: 6f 66 20 74 68 65 20 73 79 73 74 65 6d 20 61 73 of the system as
6c40: 20 61 20 77 68 6f 6c 65 2e 0d 0a 0d 0a 3c 68 32 a whole.....<h2
6c50: 3e 3c 61 20 6e 61 6d 65 3d 22 65 6e 76 22 3e 55 ><a name="env">U
6c60: 73 69 6e 67 20 45 6e 76 69 72 6f 6e 6d 65 6e 74 sing Environment
6c70: 20 76 61 72 69 61 62 6c 65 73 3c 2f 61 3e 3c 2f variables</a></
6c80: 68 32 3e 0d 0a 3c 68 33 3e 4d 6f 74 69 76 61 74 h2>..<h3>Motivat
6c90: 69 6f 6e 3c 2f 68 33 3e 0d 0a 20 20 2a 20 20 57 ion</h3>.. * W
6ca0: 61 6e 74 20 74 6f 20 75 73 65 20 61 20 64 69 66 ant to use a dif
6cb0: 66 65 72 65 6e 74 20 65 64 69 74 6f 72 20 66 6f ferent editor fo
6cc0: 72 20 63 68 65 63 6b 69 6e 73 20 28 55 6e 69 78 r checkins (Unix
6cd0: 2f 57 69 6e 64 6f 77 73 29 0d 0a 20 20 2a 20 20 /Windows).. *
6ce0: 55 73 65 20 61 20 70 72 6f 78 79 20 69 66 20 79 Use a proxy if y
6cf0: 6f 75 20 61 72 65 20 62 65 68 69 6e 64 20 61 20 ou are behind a
6d00: 66 69 72 65 77 61 6c 6c 0d 0a 0d 0a 3c 68 33 3e firewall....<h3>
6d10: 53 6f 6c 75 74 69 6f 6e 3c 2f 68 33 3e 0d 0a 45 Solution</h3>..E
6d20: 6e 76 69 72 6f 6e 6d 65 6e 74 20 76 61 72 69 61 nvironment varia
6d30: 62 6c 65 73 20 61 72 65 20 75 73 65 64 20 74 6f bles are used to
6d40: 20 63 75 73 74 6f 6d 69 7a 65 20 73 6f 6d 65 20 customize some
6d50: 70 72 6f 67 72 61 6d 6d 65 20 62 65 68 61 76 69 programme behavi
6d60: 6f 75 72 2e 20 4f 6e 20 4c 69 6e 75 78 2f 55 6e our. On Linux/Un
6d70: 69 78 20 74 68 65 79 20 63 61 6e 20 62 65 20 73 ix they can be s
6d80: 65 74 20 69 6e 20 79 6f 75 20 7e 2f 2e 62 61 73 et in you ~/.bas
6d90: 68 72 63 20 6f 72 20 65 76 65 6e 20 6f 6e 20 63 hrc or even on c
6da0: 6f 6d 6d 61 6e 64 20 6c 69 6e 65 2e 20 4f 6e 20 ommand line. On
6db0: 57 69 6e 64 6f 77 73 20 74 68 65 79 20 63 61 6e Windows they can
6dc0: 20 62 65 20 73 65 74 20 69 6e 20 74 68 65 20 73 be set in the s
6dd0: 79 73 74 65 6d 20 73 65 74 74 69 6e 67 73 2e 0d ystem settings..
6de0: 0a 0d 0a 3c 63 69 74 65 3e 46 6f 73 73 69 6c 3c ...<cite>Fossil<
6df0: 2f 63 69 74 65 3e 20 63 68 65 63 6b 73 20 74 68 /cite> checks th
6e00: 65 20 66 6f 6c 6c 6f 77 69 6e 67 20 65 6e 76 69 e following envi
6e10: 72 6f 6e 6d 65 6e 74 20 76 61 72 69 61 62 6c 65 ronment variable
6e20: 73 3a 0d 0a 20 20 2a 20 20 56 49 53 55 41 4c 2f s:.. * VISUAL/
6e30: 45 44 49 54 4f 52 0d 0a 20 20 2a 20 20 68 74 74 EDITOR.. * htt
6e40: 70 5f 70 72 6f 78 79 0d 0a 20 20 2a 20 20 54 4d p_proxy.. * TM
6e50: 50 5f 44 49 52 0d 0a 20 20 2a 20 20 47 41 54 45 P_DIR.. * GATE
6e60: 57 41 59 5f 49 4e 54 45 52 46 41 43 45 0d 0a 20 WAY_INTERFACE..
6e70: 20 2a 20 20 53 51 4c 49 54 45 5f 46 4f 52 43 45 * SQLITE_FORCE
6e80: 5f 50 52 4f 58 59 5f 4c 4f 43 4b 49 4e 47 0d 0a _PROXY_LOCKING..
6e90: 20 20 2a 20 20 55 53 45 52 0d 0a 20 20 2a 20 20 * USER.. *
6ea0: 55 53 45 52 4e 41 4d 45 0d 0a 0d 0a 3c 62 3e 56 USERNAME....<b>V
6eb0: 49 53 55 41 4c 2f 45 44 49 54 4f 52 3c 2f 62 3e ISUAL/EDITOR</b>
6ec0: 20 63 6f 6e 74 61 69 6e 20 74 68 65 20 65 64 69 contain the edi
6ed0: 74 6f 72 20 6f 66 20 79 6f 75 72 20 63 68 6f 69 tor of your choi
6ee0: 63 65 20 74 68 61 74 20 69 73 20 75 73 65 64 20 ce that is used
6ef0: 74 6f 20 77 72 69 74 65 20 74 68 65 20 63 6f 6d to write the com
6f00: 6d 69 74 20 66 69 6c 65 2e 0d 0a 0d 0a 3c 62 3e mit file.....<b>
6f10: 54 4d 50 5f 44 49 52 3c 2f 62 3e 20 73 70 65 63 TMP_DIR</b> spec
6f20: 69 66 69 65 73 20 74 68 65 20 64 69 72 65 63 74 ifies the direct
6f30: 6f 72 79 20 66 6f 72 20 74 65 6d 70 6f 72 61 72 ory for temporar
6f40: 79 20 66 69 6c 65 73 2e 0d 0a 0d 0a 3c 62 3e 47 y files.....<b>G
6f50: 41 54 45 57 41 59 5f 49 4e 54 45 52 46 41 43 45 ATEWAY_INTERFACE
6f60: 3c 2f 62 3e 20 3f 3f 3f 0d 0a 0d 0a 3c 62 3e 53 </b> ???....<b>S
6f70: 51 4c 49 54 45 5f 46 4f 52 43 45 5f 50 52 4f 58 QLITE_FORCE_PROX
6f80: 59 5f 4c 4f 43 4b 49 4e 47 3c 2f 62 3e 20 3f 3f Y_LOCKING</b> ??
6f90: 3f 0d 0a 0d 0a 3c 62 3e 55 53 45 52 3c 2f 62 3e ?....<b>USER</b>
6fa0: 0d 0a 0d 0a 3c 62 3e 55 53 45 52 4e 41 4d 45 3c ....<b>USERNAME<
6fb0: 2f 62 3e 0d 0a 0d 0a 0d 0a 3c 68 32 3e 3c 61 20 /b>......<h2><a
6fc0: 6e 61 6d 65 3d 22 63 73 73 22 3e 45 78 61 6d 70 name="css">Examp
6fd0: 6c 65 20 43 53 53 3c 2f 61 3e 3c 2f 68 32 3e 0d le CSS</a></h2>.
6fe0: 0a 3c 68 33 3e 4d 6f 74 69 76 61 74 69 6f 6e 3c .<h3>Motivation<
6ff0: 2f 68 33 3e 0d 0a 54 68 65 20 64 65 66 61 75 6c /h3>..The defaul
7000: 74 20 55 49 20 6d 61 79 20 6e 6f 74 20 62 65 20 t UI may not be
7010: 73 74 79 6c 69 73 68 20 69 6e 20 65 76 65 72 79 stylish in every
7020: 6f 6e 65 73 20 65 79 65 73 2e 0d 0a 49 74 20 69 ones eyes...It i
7030: 73 20 75 70 20 74 6f 20 79 6f 75 20 74 6f 20 63 s up to you to c
7040: 68 61 6e 67 65 20 69 74 2e 20 53 65 65 20 74 68 hange it. See th
7050: 65 20 43 53 53 20 63 6f 64 65 20 62 65 6c 6f 77 e CSS code below
7060: 20 66 72 6f 6d 20 74 68 69 73 20 73 69 74 65 20 from this site
7070: 5b 68 74 74 70 3a 2f 2f 66 6f 73 73 69 6c 2e 77 [http://fossil.w
7080: 61 6e 64 65 72 69 6e 67 68 6f 72 73 65 2e 6e 65 anderinghorse.ne
7090: 74 2f 69 6e 64 65 78 2e 63 67 69 2f 69 6e 64 65 t/index.cgi/inde
70a0: 78 7c 57 61 6e 64 65 72 69 6e 67 20 48 6f 72 73 x|Wandering Hors
70b0: 65 5d 0d 0a 0d 0a 3c 6e 6f 77 69 6b 69 3e 0d 0a e]....<nowiki>..
70c0: 3c 70 72 65 3e 0d 0a 2f 2a 20 47 65 6e 65 72 61 <pre>../* Genera
70d0: 6c 20 73 65 74 74 69 6e 67 73 20 66 6f 72 20 74 l settings for t
70e0: 68 65 20 65 6e 74 69 72 65 20 70 61 67 65 20 2a he entire page *
70f0: 2f 0d 0a 62 6f 64 79 20 7b 0d 0a 20 20 6d 61 72 /..body {.. mar
7100: 67 69 6e 3a 20 30 65 78 20 31 65 78 3b 0d 0a 20 gin: 0ex 1ex;..
7110: 20 70 61 64 64 69 6e 67 3a 20 30 70 78 3b 0d 0a padding: 0px;..
7120: 20 20 62 61 63 6b 67 72 6f 75 6e 64 2d 63 6f 6c background-col
7130: 6f 72 3a 20 77 68 69 74 65 3b 0d 0a 20 20 66 6f or: white;.. fo
7140: 6e 74 2d 66 61 6d 69 6c 79 3a 20 22 73 61 6e 73 nt-family: "sans
7150: 20 73 65 72 69 66 22 3b 0d 0a 7d 0d 0a 0d 0a 2f serif";..}..../
7160: 2a 20 4d 61 6b 65 20 74 68 65 20 6c 69 6e 6b 73 * Make the links
7170: 20 69 6e 20 74 68 65 20 66 6f 6f 74 65 72 20 6c in the footer l
7180: 65 73 73 20 75 67 6c 79 2e 2e 2e 20 2a 2f 0d 0a ess ugly... */..
7190: 61 20 7b 20 63 6f 6c 6f 72 3a 20 23 30 30 30 66 a { color: #000f
71a0: 36 61 3b 20 7d 0d 0a 61 3a 6c 69 6e 6b 20 7b 20 6a; }..a:link {
71b0: 63 6f 6c 6f 72 3a 20 23 30 30 30 66 36 61 3b 20 color: #000f6a;
71c0: 7d 0d 0a 61 3a 76 69 73 69 74 65 64 20 7b 20 63 }..a:visited { c
71d0: 6f 6c 6f 72 3a 20 23 30 30 30 66 36 61 3b 20 7d olor: #000f6a; }
71e0: 0d 0a 61 3a 68 6f 76 65 72 20 7b 20 62 61 63 6b ..a:hover { back
71f0: 67 72 6f 75 6e 64 2d 63 6f 6c 6f 72 3a 20 23 65 ground-color: #e
7200: 33 65 33 65 33 3b 20 7d 0d 0a 0d 0a 0d 0a 68 72 3e3e3; }......hr
7210: 20 7b 0d 0a 20 20 68 65 69 67 68 74 3a 20 33 70 {.. height: 3p
7220: 78 3b 0d 0a 20 20 62 6f 72 64 65 72 2d 74 6f 70 x;.. border-top
7230: 3a 20 6e 6f 6e 65 3b 20 2f 2a 31 70 78 20 64 61 : none; /*1px da
7240: 73 68 65 64 20 23 30 30 35 3b 2a 2f 0d 0a 20 20 shed #005;*/..
7250: 62 6f 72 64 65 72 2d 62 6f 74 74 6f 6d 3a 20 31 border-bottom: 1
7260: 70 78 20 64 61 73 68 65 64 20 23 30 30 35 3b 0d px dashed #005;.
7270: 0a 20 20 62 6f 72 64 65 72 2d 6c 65 66 74 3a 20 . border-left:
7280: 6e 6f 6e 65 3b 0d 0a 20 20 62 6f 72 64 65 72 2d none;.. border-
7290: 72 69 67 68 74 3a 20 6e 6f 6e 65 3b 0d 0a 7d 0d right: none;..}.
72a0: 0a 2f 2a 20 54 68 65 20 70 72 6f 6a 65 63 74 20 ./* The project
72b0: 6c 6f 67 6f 20 69 6e 20 74 68 65 20 75 70 70 65 logo in the uppe
72c0: 72 20 6c 65 66 74 2d 68 61 6e 64 20 63 6f 72 6e r left-hand corn
72d0: 65 72 20 6f 66 20 65 61 63 68 20 70 61 67 65 20 er of each page
72e0: 2a 2f 0d 0a 64 69 76 2e 6c 6f 67 6f 20 7b 0d 0a */..div.logo {..
72f0: 20 20 64 69 73 70 6c 61 79 3a 20 74 61 62 6c 65 display: table
7300: 2d 63 65 6c 6c 3b 0d 0a 20 20 74 65 78 74 2d 61 -cell;.. text-a
7310: 6c 69 67 6e 3a 20 63 65 6e 74 65 72 3b 0d 0a 20 lign: center;..
7320: 20 76 65 72 74 69 63 61 6c 2d 61 6c 69 67 6e 3a vertical-align:
7330: 20 62 6f 74 74 6f 6d 3b 0d 0a 20 20 63 6f 6c 6f bottom;.. colo
7340: 72 3a 20 23 30 30 30 66 36 61 3b 0d 0a 7d 0d 0a r: #000f6a;..}..
7350: 0d 0a 2f 2a 20 54 68 65 20 70 61 67 65 20 74 69 ../* The page ti
7360: 74 6c 65 20 63 65 6e 74 65 72 65 64 20 61 74 20 tle centered at
7370: 74 68 65 20 74 6f 70 20 6f 66 20 65 61 63 68 20 the top of each
7380: 70 61 67 65 20 2a 2f 0d 0a 64 69 76 2e 74 69 74 page */..div.tit
7390: 6c 65 20 7b 0d 0a 20 20 64 69 73 70 6c 61 79 3a le {.. display:
73a0: 20 74 61 62 6c 65 2d 63 65 6c 6c 3b 0d 0a 20 20 table-cell;..
73b0: 66 6f 6e 74 2d 73 69 7a 65 3a 20 32 65 6d 3b 0d font-size: 2em;.
73c0: 0a 20 20 66 6f 6e 74 2d 77 65 69 67 68 74 3a 20 . font-weight:
73d0: 62 6f 6c 64 3b 0d 0a 20 20 74 65 78 74 2d 61 6c bold;.. text-al
73e0: 69 67 6e 3a 20 63 65 6e 74 65 72 3b 0d 0a 20 20 ign: center;..
73f0: 63 6f 6c 6f 72 3a 20 23 30 30 30 66 36 61 3b 0d color: #000f6a;.
7400: 0a 20 20 76 65 72 74 69 63 61 6c 2d 61 6c 69 67 . vertical-alig
7410: 6e 3a 20 62 6f 74 74 6f 6d 3b 0d 0a 20 20 77 69 n: bottom;.. wi
7420: 64 74 68 3a 20 31 30 30 25 3b 0d 0a 7d 0d 0a 0d dth: 100%;..}...
7430: 0a 2f 2a 20 54 68 65 20 6c 6f 67 69 6e 20 73 74 ./* The login st
7440: 61 74 75 73 20 6d 65 73 73 61 67 65 20 69 6e 20 atus message in
7450: 74 68 65 20 74 6f 70 20 72 69 67 68 74 2d 68 61 the top right-ha
7460: 6e 64 20 63 6f 72 6e 65 72 20 2a 2f 0d 0a 64 69 nd corner */..di
7470: 76 2e 73 74 61 74 75 73 20 7b 0d 0a 20 20 64 69 v.status {.. di
7480: 73 70 6c 61 79 3a 20 74 61 62 6c 65 2d 63 65 6c splay: table-cel
7490: 6c 3b 0d 0a 20 20 74 65 78 74 2d 61 6c 69 67 6e l;.. text-align
74a0: 3a 20 72 69 67 68 74 3b 0d 0a 20 20 76 65 72 74 : right;.. vert
74b0: 69 63 61 6c 2d 61 6c 69 67 6e 3a 20 62 6f 74 74 ical-align: bott
74c0: 6f 6d 3b 0d 0a 20 20 63 6f 6c 6f 72 3a 20 23 30 om;.. color: #0
74d0: 30 30 66 36 61 3b 0d 0a 20 20 66 6f 6e 74 2d 73 00f6a;.. font-s
74e0: 69 7a 65 3a 20 30 2e 38 65 6d 3b 0d 0a 7d 0d 0a ize: 0.8em;..}..
74f0: 0d 0a 2f 2a 20 54 68 65 20 68 65 61 64 65 72 20 ../* The header
7500: 61 63 72 6f 73 73 20 74 68 65 20 74 6f 70 20 6f across the top o
7510: 66 20 74 68 65 20 70 61 67 65 20 2a 2f 0d 0a 64 f the page */..d
7520: 69 76 2e 68 65 61 64 65 72 20 7b 0d 0a 20 20 64 iv.header {.. d
7530: 69 73 70 6c 61 79 3a 20 74 61 62 6c 65 3b 0d 0a isplay: table;..
7540: 20 20 77 69 64 74 68 3a 20 31 30 30 25 3b 0d 0a width: 100%;..
7550: 20 20 74 65 78 74 2d 61 6c 69 67 6e 3a 20 63 65 text-align: ce
7560: 6e 74 65 72 3b 0d 0a 7d 0d 0a 0d 0a 2f 2a 20 54 nter;..}..../* T
7570: 68 65 20 6d 61 69 6e 20 6d 65 6e 75 20 62 61 72 he main menu bar
7580: 20 74 68 61 74 20 61 70 70 65 61 72 73 20 61 74 that appears at
7590: 20 74 68 65 20 74 6f 70 20 6f 66 20 74 68 65 20 the top of the
75a0: 70 61 67 65 20 62 65 6e 65 61 74 68 0d 0a 2a 2a page beneath..**
75b0: 20 74 68 65 20 68 65 61 64 65 72 20 2a 2f 0d 0a the header */..
75c0: 64 69 76 2e 6d 61 69 6e 6d 65 6e 75 20 7b 0d 0a div.mainmenu {..
75d0: 20 20 70 61 64 64 69 6e 67 3a 20 32 70 78 20 35 padding: 2px 5
75e0: 70 78 20 32 70 78 20 35 70 78 3b 0d 0a 20 20 66 px 2px 5px;.. f
75f0: 6f 6e 74 2d 73 69 7a 65 3a 20 30 2e 39 65 6d 3b ont-size: 0.9em;
7600: 0d 0a 20 20 74 65 78 74 2d 61 6c 69 67 6e 3a 20 .. text-align:
7610: 63 65 6e 74 65 72 3b 0d 0a 20 20 6c 65 74 74 65 center;.. lette
7620: 72 2d 73 70 61 63 69 6e 67 3a 20 31 70 78 3b 0d r-spacing: 1px;.
7630: 0a 20 20 62 61 63 6b 67 72 6f 75 6e 64 2d 63 6f . background-co
7640: 6c 6f 72 3a 20 23 65 33 65 33 65 33 3b 0d 0a 20 lor: #e3e3e3;..
7650: 20 63 6f 6c 6f 72 3a 20 23 30 30 30 66 36 61 3b color: #000f6a;
7660: 0d 0a 20 20 62 6f 72 64 65 72 3a 20 31 70 78 20 .. border: 1px
7670: 69 6e 73 65 74 20 62 6c 61 63 6b 3b 0d 0a 7d 0d inset black;..}.
7680: 0a 0d 0a 2f 2a 20 54 68 65 20 73 75 62 6d 65 6e .../* The submen
7690: 75 20 62 61 72 20 74 68 61 74 20 2a 73 6f 6d 65 u bar that *some
76a0: 74 69 6d 65 73 2a 20 61 70 70 65 61 72 73 20 62 times* appears b
76b0: 65 6c 6f 77 20 74 68 65 20 6d 61 69 6e 20 6d 65 elow the main me
76c0: 6e 75 20 2a 2f 0d 0a 64 69 76 2e 73 75 62 6d 65 nu */..div.subme
76d0: 6e 75 20 7b 0d 0a 20 20 70 61 64 64 69 6e 67 3a nu {.. padding:
76e0: 20 32 70 78 20 35 70 78 20 32 70 78 20 35 70 78 2px 5px 2px 5px
76f0: 3b 0d 0a 20 20 66 6f 6e 74 2d 73 69 7a 65 3a 20 ;.. font-size:
7700: 30 2e 39 65 6d 3b 0d 0a 20 20 74 65 78 74 2d 61 0.9em;.. text-a
7710: 6c 69 67 6e 3a 20 63 65 6e 74 65 72 3b 0d 0a 20 lign: center;..
7720: 20 62 61 63 6b 67 72 6f 75 6e 64 2d 63 6f 6c 6f background-colo
7730: 72 3a 20 23 65 33 65 33 65 33 3b 0d 0a 20 20 63 r: #e3e3e3;.. c
7740: 6f 6c 6f 72 3a 20 23 30 30 30 66 36 61 3b 0d 0a olor: #000f6a;..
7750: 7d 0d 0a 64 69 76 2e 6d 61 69 6e 6d 65 6e 75 20 }..div.mainmenu
7760: 61 2c 20 64 69 76 2e 6d 61 69 6e 6d 65 6e 75 20 a, div.mainmenu
7770: 61 3a 76 69 73 69 74 65 64 2c 20 64 69 76 2e 73 a:visited, div.s
7780: 75 62 6d 65 6e 75 20 61 2c 20 64 69 76 2e 73 75 ubmenu a, div.su
7790: 62 6d 65 6e 75 20 61 3a 76 69 73 69 74 65 64 20 bmenu a:visited
77a0: 7b 0d 0a 20 20 70 61 64 64 69 6e 67 3a 20 32 70 {.. padding: 2p
77b0: 78 20 31 30 70 78 20 32 70 78 20 31 30 70 78 3b x 10px 2px 10px;
77c0: 0d 0a 20 20 63 6f 6c 6f 72 3a 20 23 30 30 30 66 .. color: #000f
77d0: 36 61 3b 0d 0a 20 20 62 61 63 6b 67 72 6f 75 6e 6a;.. backgroun
77e0: 64 2d 63 6f 6c 6f 72 3a 20 23 65 33 65 33 65 33 d-color: #e3e3e3
77f0: 3b 0d 0a 20 20 74 65 78 74 2d 64 65 63 6f 72 61 ;.. text-decora
7800: 74 69 6f 6e 3a 20 6e 6f 6e 65 3b 0d 0a 7d 0d 0a tion: none;..}..
7810: 64 69 76 2e 6d 61 69 6e 6d 65 6e 75 20 61 3a 68 div.mainmenu a:h
7820: 6f 76 65 72 2c 20 64 69 76 2e 73 75 62 6d 65 6e over, div.submen
7830: 75 20 61 3a 68 6f 76 65 72 20 7b 0d 0a 20 20 63 u a:hover {.. c
7840: 6f 6c 6f 72 3a 20 23 65 33 65 33 65 33 3b 0d 0a olor: #e3e3e3;..
7850: 20 20 62 61 63 6b 67 72 6f 75 6e 64 2d 63 6f 6c background-col
7860: 6f 72 3a 20 23 30 30 30 66 36 61 3b 0d 0a 7d 0d or: #000f6a;..}.
7870: 0a 0d 0a 2f 2a 20 41 6c 6c 20 70 61 67 65 20 63 .../* All page c
7880: 6f 6e 74 65 6e 74 20 66 72 6f 6d 20 74 68 65 20 ontent from the
7890: 62 6f 74 74 6f 6d 20 6f 66 20 74 68 65 20 6d 65 bottom of the me
78a0: 6e 75 20 6f 72 20 73 75 62 6d 65 6e 75 20 64 6f nu or submenu do
78b0: 77 6e 20 74 6f 0d 0a 2a 2a 20 74 68 65 20 66 6f wn to..** the fo
78c0: 6f 74 65 72 20 2a 2f 0d 0a 64 69 76 2e 63 6f 6e oter */..div.con
78d0: 74 65 6e 74 20 7b 0d 0a 20 20 70 61 64 64 69 6e tent {.. paddin
78e0: 67 3a 20 30 65 78 20 31 65 78 20 30 65 78 20 32 g: 0ex 1ex 0ex 2
78f0: 65 78 3b 0d 0a 7d 0d 0a 0d 0a 2f 2a 20 53 6f 6d ex;..}..../* Som
7900: 65 20 70 61 67 65 73 20 68 61 76 65 20 73 65 63 e pages have sec
7910: 74 69 6f 6e 20 64 69 76 69 64 65 72 73 20 2a 2f tion dividers */
7920: 0d 0a 64 69 76 2e 73 65 63 74 69 6f 6e 20 7b 0d ..div.section {.
7930: 0a 20 20 6d 61 72 67 69 6e 2d 62 6f 74 74 6f 6d . margin-bottom
7940: 3a 20 30 70 78 3b 0d 0a 20 20 6d 61 72 67 69 6e : 0px;.. margin
7950: 2d 74 6f 70 3a 20 31 65 6d 3b 0d 0a 20 20 70 61 -top: 1em;.. pa
7960: 64 64 69 6e 67 3a 20 31 70 78 20 31 70 78 20 31 dding: 1px 1px 1
7970: 70 78 20 31 70 78 3b 0d 0a 20 20 66 6f 6e 74 2d px 1px;.. font-
7980: 73 69 7a 65 3a 20 31 2e 32 65 6d 3b 0d 0a 20 20 size: 1.2em;..
7990: 66 6f 6e 74 2d 77 65 69 67 68 74 3a 20 62 6f 6c font-weight: bol
79a0: 64 3b 0d 0a 20 20 62 61 63 6b 67 72 6f 75 6e 64 d;.. background
79b0: 2d 63 6f 6c 6f 72 3a 20 23 65 33 65 33 65 33 3b -color: #e3e3e3;
79c0: 0d 0a 20 20 63 6f 6c 6f 72 3a 20 23 30 30 30 66 .. color: #000f
79d0: 36 61 3b 0d 0a 7d 0d 0a 0d 0a 2f 2a 20 54 68 65 6a;..}..../* The
79e0: 20 22 44 61 74 65 22 20 74 68 61 74 20 6f 63 63 "Date" that occ
79f0: 75 72 73 20 6f 6e 20 74 68 65 20 6c 65 66 74 20 urs on the left
7a00: 68 61 6e 64 20 73 69 64 65 20 6f 66 20 74 69 6d hand side of tim
7a10: 65 6c 69 6e 65 73 20 2a 2f 0d 0a 64 69 76 2e 64 elines */..div.d
7a20: 69 76 69 64 65 72 20 7b 0d 0a 20 20 62 61 63 6b ivider {.. back
7a30: 67 72 6f 75 6e 64 2d 63 6f 6c 6f 72 3a 20 23 65 ground-color: #e
7a40: 33 65 33 65 33 3b 0d 0a 20 20 63 6f 6c 6f 72 3a 3e3e3;.. color:
7a50: 20 23 30 30 30 66 36 61 3b 0d 0a 20 20 62 6f 72 #000f6a;.. bor
7a60: 64 65 72 3a 20 31 70 78 20 23 62 62 62 62 66 66 der: 1px #bbbbff
7a70: 20 73 6f 6c 69 64 3b 0d 0a 20 20 66 6f 6e 74 2d solid;.. font-
7a80: 73 69 7a 65 3a 20 31 65 6d 3b 20 66 6f 6e 74 2d size: 1em; font-
7a90: 77 65 69 67 68 74 3a 20 6e 6f 72 6d 61 6c 3b 0d weight: normal;.
7aa0: 0a 20 20 70 61 64 64 69 6e 67 3a 20 2e 32 35 65 . padding: .25e
7ab0: 6d 3b 0d 0a 20 20 6d 61 72 67 69 6e 3a 20 2e 32 m;.. margin: .2
7ac0: 65 6d 20 30 20 2e 32 65 6d 20 30 3b 0d 0a 20 20 em 0 .2em 0;..
7ad0: 66 6c 6f 61 74 3a 20 6c 65 66 74 3b 0d 0a 20 20 float: left;..
7ae0: 63 6c 65 61 72 3a 20 6c 65 66 74 3b 0d 0a 7d 0d clear: left;..}.
7af0: 0a 0d 0a 2f 2a 20 54 68 65 20 66 6f 6f 74 65 72 .../* The footer
7b00: 20 61 74 20 74 68 65 20 76 65 72 79 20 62 6f 74 at the very bot
7b10: 74 6f 6d 20 6f 66 20 74 68 65 20 70 61 67 65 20 tom of the page
7b20: 2a 2f 0d 0a 64 69 76 2e 66 6f 6f 74 65 72 20 7b */..div.footer {
7b30: 0d 0a 20 20 66 6f 6e 74 2d 73 69 7a 65 3a 20 30 .. font-size: 0
7b40: 2e 38 65 6d 3b 0d 0a 20 20 70 61 64 64 69 6e 67 .8em;.. padding
7b50: 3a 20 32 70 78 20 35 70 78 20 32 70 78 20 35 70 : 2px 5px 2px 5p
7b60: 78 3b 0d 0a 20 20 74 65 78 74 2d 61 6c 69 67 6e x;.. text-align
7b70: 3a 20 63 65 6e 74 65 72 3b 0d 0a 20 20 6c 65 74 : center;.. let
7b80: 74 65 72 2d 73 70 61 63 69 6e 67 3a 20 31 70 78 ter-spacing: 1px
7b90: 3b 0d 0a 20 20 62 61 63 6b 67 72 6f 75 6e 64 2d ;.. background-
7ba0: 63 6f 6c 6f 72 3a 20 23 65 33 65 33 65 33 3b 0d color: #e3e3e3;.
7bb0: 0a 20 20 63 6f 6c 6f 72 3a 20 23 30 30 30 66 36 . color: #000f6
7bc0: 61 3b 0d 0a 20 20 62 6f 72 64 65 72 3a 20 31 70 a;.. border: 1p
7bd0: 78 20 69 6e 73 65 74 20 62 6c 61 63 6b 3b 0d 0a x inset black;..
7be0: 7d 0d 0a 0d 0a 2f 2a 20 4d 61 6b 65 20 74 68 65 }..../* Make the
7bf0: 20 6c 69 6e 6b 73 20 69 6e 20 74 68 65 20 66 6f links in the fo
7c00: 6f 74 65 72 20 6c 65 73 73 20 75 67 6c 79 2e 2e oter less ugly..
7c10: 2e 20 2a 2f 0d 0a 64 69 76 2e 66 6f 6f 74 65 72 . */..div.footer
7c20: 20 61 20 7b 20 63 6f 6c 6f 72 3a 20 23 30 30 30 a { color: #000
7c30: 66 36 61 3b 20 7d 0d 0a 64 69 76 2e 66 6f 6f 74 f6a; }..div.foot
7c40: 65 72 20 61 3a 6c 69 6e 6b 20 7b 20 63 6f 6c 6f er a:link { colo
7c50: 72 3a 20 23 30 30 30 66 36 61 3b 20 7d 0d 0a 64 r: #000f6a; }..d
7c60: 69 76 2e 66 6f 6f 74 65 72 20 61 3a 76 69 73 69 iv.footer a:visi
7c70: 74 65 64 20 7b 20 63 6f 6c 6f 72 3a 20 23 30 30 ted { color: #00
7c80: 30 66 36 61 3b 20 7d 0d 0a 64 69 76 2e 66 6f 6f 0f6a; }..div.foo
7c90: 74 65 72 20 61 3a 68 6f 76 65 72 20 7b 20 62 61 ter a:hover { ba
7ca0: 63 6b 67 72 6f 75 6e 64 2d 63 6f 6c 6f 72 3a 20 ckground-color:
7cb0: 23 30 30 30 66 36 61 3b 20 63 6f 6c 6f 72 3a 20 #000f6a; color:
7cc0: 23 65 33 65 33 65 33 3b 20 7d 0d 0a 0d 0a 2f 2a #e3e3e3; }..../*
7cd0: 20 76 65 72 62 61 74 69 6d 20 62 6c 6f 63 6b 73 verbatim blocks
7ce0: 20 2a 2f 0d 0a 70 72 65 2e 76 65 72 62 61 74 69 */..pre.verbati
7cf0: 6d 20 7b 0d 0a 20 20 20 62 61 63 6b 67 72 6f 75 m {.. backgrou
7d00: 6e 64 2d 63 6f 6c 6f 72 3a 20 23 66 35 66 35 66 nd-color: #f5f5f
7d10: 35 3b 0d 0a 20 20 20 70 61 64 64 69 6e 67 3a 20 5;.. padding:
7d20: 30 2e 35 65 6d 3b 0d 0a 7d 0d 0a 0d 0a 2f 2a 20 0.5em;..}..../*
7d30: 54 68 65 20 6c 61 62 65 6c 2f 76 61 6c 75 65 20 The label/value
7d40: 70 61 69 72 73 20 6f 6e 20 28 66 6f 72 20 65 78 pairs on (for ex
7d50: 61 6d 70 6c 65 29 20 74 68 65 20 76 69 6e 66 6f ample) the vinfo
7d60: 20 70 61 67 65 20 2a 2f 0d 0a 74 61 62 6c 65 2e page */..table.
7d70: 6c 61 62 65 6c 2d 76 61 6c 75 65 20 74 68 20 7b label-value th {
7d80: 0d 0a 20 20 76 65 72 74 69 63 61 6c 2d 61 6c 69 .. vertical-ali
7d90: 67 6e 3a 20 74 6f 70 3b 0d 0a 20 20 74 65 78 74 gn: top;.. text
7da0: 2d 61 6c 69 67 6e 3a 20 72 69 67 68 74 3b 0d 0a -align: right;..
7db0: 20 20 70 61 64 64 69 6e 67 3a 20 30 2e 32 65 78 padding: 0.2ex
7dc0: 20 32 65 78 3b 0d 0a 7d 0d 0a 0d 0a 2f 2a 20 46 2ex;..}..../* F
7dd0: 6f 72 20 6d 61 72 6b 69 6e 67 20 69 6d 70 6f 72 or marking impor
7de0: 74 61 6e 74 20 55 49 20 65 6c 65 6d 65 6e 74 73 tant UI elements
7df0: 20 77 68 69 63 68 20 73 68 6f 75 6c 64 6e 27 74 which shouldn't
7e00: 20 62 65 0d 0a 20 20 20 6c 69 67 68 74 6c 79 20 be.. lightly
7e10: 64 69 73 6d 69 73 73 65 64 2e 20 49 20 6d 61 69 dismissed. I mai
7e20: 6e 6c 79 20 75 73 65 20 69 74 20 74 6f 20 6d 61 nly use it to ma
7e30: 72 6b 20 22 6e 6f 74 20 79 65 74 0d 0a 20 20 20 rk "not yet..
7e40: 69 6d 70 6c 65 6d 65 6e 74 65 64 22 20 70 61 72 implemented" par
7e50: 74 73 20 6f 66 20 61 20 70 61 67 65 2e 20 57 68 ts of a page. Wh
7e60: 65 74 68 65 72 20 6f 72 20 6e 6f 74 20 74 6f 20 ether or not to
7e70: 68 61 76 65 0d 0a 20 20 20 61 20 27 62 6f 72 64 have.. a 'bord
7e80: 65 72 27 20 61 74 74 72 69 62 75 74 65 20 73 65 er' attribute se
7e90: 74 20 69 73 20 61 72 67 75 61 62 6c 65 2e 20 2a t is arguable. *
7ea0: 2f 0d 0a 2e 61 63 68 74 75 6e 67 20 7b 0d 0a 20 /...achtung {..
7eb0: 20 63 6f 6c 6f 72 3a 20 23 66 66 30 30 30 30 3b color: #ff0000;
7ec0: 0d 0a 20 20 62 61 63 6b 67 72 6f 75 6e 64 3a 20 .. background:
7ed0: 23 66 66 66 66 30 30 3b 0d 0a 20 20 62 6f 72 64 #ffff00;.. bord
7ee0: 65 72 3a 20 31 70 78 20 73 6f 6c 69 64 20 23 66 er: 1px solid #f
7ef0: 66 30 30 30 30 3b 0d 0a 7d 0d 0a 0d 0a 74 61 62 f0000;..}....tab
7f00: 6c 65 2e 66 6f 73 73 69 6c 5f 64 62 5f 67 65 6e le.fossil_db_gen
7f10: 65 72 69 63 5f 71 75 65 72 79 5f 76 69 65 77 20 eric_query_view
7f20: 7b 0d 0a 20 20 62 6f 72 64 65 72 2d 73 70 61 63 {.. border-spac
7f30: 69 6e 67 3a 20 30 70 78 3b 0d 0a 20 20 62 6f 72 ing: 0px;.. bor
7f40: 64 65 72 3a 20 31 70 78 20 73 6f 6c 69 64 20 62 der: 1px solid b
7f50: 6c 61 63 6b 3b 0d 0a 7d 0d 0a 74 61 62 6c 65 2e lack;..}..table.
7f60: 66 6f 73 73 69 6c 5f 64 62 5f 67 65 6e 65 72 69 fossil_db_generi
7f70: 63 5f 71 75 65 72 79 5f 76 69 65 77 20 74 64 20 c_query_view td
7f80: 7b 0d 0a 20 20 70 61 64 64 69 6e 67 3a 20 32 70 {.. padding: 2p
7f90: 78 20 31 65 6d 20 32 70 78 20 31 65 6d 3b 0d 0a x 1em 2px 1em;..
7fa0: 7d 0d 0a 74 61 62 6c 65 2e 66 6f 73 73 69 6c 5f }..table.fossil_
7fb0: 64 62 5f 67 65 6e 65 72 69 63 5f 71 75 65 72 79 db_generic_query
7fc0: 5f 76 69 65 77 20 74 72 20 7b 0d 0a 7d 0d 0a 74 _view tr {..}..t
7fd0: 61 62 6c 65 2e 66 6f 73 73 69 6c 5f 64 62 5f 67 able.fossil_db_g
7fe0: 65 6e 65 72 69 63 5f 71 75 65 72 79 5f 76 69 65 eneric_query_vie
7ff0: 77 20 74 72 2e 65 76 65 6e 20 7b 0d 0a 20 20 62 w tr.even {.. b
8000: 61 63 6b 67 72 6f 75 6e 64 3a 20 23 66 66 66 66 ackground: #ffff
8010: 66 66 3b 0d 0a 7d 0d 0a 74 61 62 6c 65 2e 66 6f ff;..}..table.fo
8020: 73 73 69 6c 5f 64 62 5f 67 65 6e 65 72 69 63 5f ssil_db_generic_
8030: 71 75 65 72 79 5f 76 69 65 77 20 74 72 2e 6f 64 query_view tr.od
8040: 64 20 7b 0d 0a 20 20 62 61 63 6b 67 72 6f 75 6e d {.. backgroun
8050: 64 3a 20 23 65 35 65 35 65 35 3b 0d 0a 7d 0d 0a d: #e5e5e5;..}..
8060: 74 61 62 6c 65 2e 66 6f 73 73 69 6c 5f 64 62 5f table.fossil_db_
8070: 67 65 6e 65 72 69 63 5f 71 75 65 72 79 5f 76 69 generic_query_vi
8080: 65 77 20 74 72 2e 68 65 61 64 65 72 20 7b 0d 0a ew tr.header {..
8090: 20 20 62 61 63 6b 67 72 6f 75 6e 64 3a 20 23 35 background: #5
80a0: 35 38 31 39 35 3b 0d 0a 20 20 66 6f 6e 74 2d 73 58195;.. font-s
80b0: 69 7a 65 3a 20 31 2e 35 65 6d 3b 0d 0a 20 20 63 ize: 1.5em;.. c
80c0: 6f 6c 6f 72 3a 20 23 66 66 66 66 66 66 3b 0d 0a olor: #ffffff;..
80d0: 7d 0d 0a 3c 2f 70 72 65 3e 0d 0a 3c 2f 6e 6f 77 }..</pre>..</now
80e0: 69 6b 69 3e 0d 0a 3c 68 32 3e 3c 61 20 6e 61 6d iki>..<h2><a nam
80f0: 65 3d 22 73 6f 75 72 63 65 2d 68 69 6c 69 67 68 e="source-hiligh
8100: 74 22 3e 53 6f 75 72 63 65 20 68 69 67 68 6c 69 t">Source highli
8110: 67 68 74 69 6e 67 3c 2f 61 3e 3c 2f 68 32 3e 0d ghting</a></h2>.
8120: 0a 3c 68 33 3e 4d 6f 74 69 76 61 74 69 6f 6e 3c .<h3>Motivation<
8130: 2f 68 33 3e 0d 0a 20 20 2a 20 20 59 6f 75 20 77 /h3>.. * You w
8140: 61 6e 74 20 74 6f 20 68 61 76 65 20 73 6f 75 72 ant to have sour
8150: 63 65 20 63 6f 64 65 20 68 69 67 68 6c 69 67 68 ce code highligh
8160: 74 69 6e 67 20 66 6f 72 20 74 68 65 20 66 69 6c ting for the fil
8170: 65 73 20 69 6e 20 79 6f 75 72 20 72 65 70 6f 73 es in your repos
8180: 69 74 6f 72 79 0d 0a 0d 0a 3c 68 33 3e 50 72 6f itory....<h3>Pro
8190: 62 6c 65 6d 3c 2f 68 33 3e 0d 0a 54 68 65 20 6d blem</h3>..The m
81a0: 61 69 6e 20 70 75 72 70 6f 73 65 20 6f 66 20 46 ain purpose of F
81b0: 6f 73 73 69 6c 20 69 73 20 74 6f 20 64 6f 20 76 ossil is to do v
81c0: 65 72 73 69 6f 6e 69 6e 67 20 66 6f 72 20 73 6f ersioning for so
81d0: 75 72 63 65 20 63 6f 64 65 2e 20 41 6c 74 68 6f urce code. Altho
81e0: 75 67 68 20 69 74 20 70 72 6f 76 69 64 65 73 20 ugh it provides
81f0: 61 20 73 74 61 6e 64 61 6c 6f 6e 65 20 73 65 72 a standalone ser
8200: 76 65 72 20 61 6e 64 20 6c 65 74 73 20 79 6f 75 ver and lets you
8210: 20 6e 61 76 69 67 61 74 65 20 74 68 72 6f 75 67 navigate throug
8220: 68 20 74 68 65 20 72 65 70 6f 73 69 74 6f 72 79 h the repository
8230: 20 66 69 6c 65 73 20 61 64 64 69 74 69 6f 6e 61 files additiona
8240: 6c 20 66 65 61 74 75 72 65 73 20 6c 69 6b 65 20 l features like
8250: 73 6f 75 72 63 65 20 63 6f 64 65 20 68 69 67 68 source code high
8260: 6c 69 67 68 74 69 6e 67 20 66 72 6f 6d 20 6d 79 lighting from my
8270: 20 70 65 72 73 70 65 63 74 69 76 65 20 28 49 20 perspective (I
8280: 61 6d 20 6e 6f 74 20 61 20 64 65 76 65 6c 6f 70 am not a develop
8290: 65 72 20 6f 66 20 46 6f 73 73 69 6c 29 20 61 72 er of Fossil) ar
82a0: 65 20 6f 75 74 20 6f 66 20 73 63 6f 70 65 20 66 e out of scope f
82b0: 6f 72 20 61 6e 20 53 43 4d 2e 20 4a 75 73 74 20 or an SCM. Just
82c0: 6b 65 65 70 20 74 68 65 20 55 6e 69 78 20 70 72 keep the Unix pr
82d0: 69 6e 63 69 70 6c 65 3a 20 73 6d 61 6c 6c 20 6c inciple: small l
82e0: 69 74 74 6c 65 20 70 72 6f 67 72 61 6d 73 20 74 ittle programs t
82f0: 68 61 74 20 64 6f 20 74 68 65 69 72 20 74 61 73 hat do their tas
8300: 6b 20 61 6e 64 20 64 6f 20 69 74 20 77 65 6c 6c k and do it well
8310: 2e 0d 0a 0d 0a 48 6f 77 65 76 65 72 20 74 6f 20 .....However to
8320: 68 61 76 65 20 73 6f 75 72 63 65 20 63 6f 64 65 have source code
8330: 20 68 69 67 68 6c 69 67 68 74 65 64 20 69 6e 20 highlighted in
8340: 74 68 65 20 70 72 65 73 65 6e 74 65 64 20 77 65 the presented we
8350: 62 20 70 61 67 65 73 20 77 6f 75 6c 64 20 73 74 b pages would st
8360: 69 6c 6c 20 62 65 20 64 65 73 69 72 61 62 6c 65 ill be desirable
8370: 2e 0d 0a 0d 0a 3c 68 33 3e 53 6f 6c 75 74 69 6f .....<h3>Solutio
8380: 6e 3c 2f 68 33 3e 0d 0a 54 68 65 72 65 20 61 72 n</h3>..There ar
8390: 65 20 74 77 6f 20 73 63 65 6e 61 72 69 6f 73 20 e two scenarios
83a0: 68 6f 77 20 74 6f 20 69 6d 70 6c 65 6d 65 6e 74 how to implement
83b0: 20 73 75 63 68 20 61 20 66 65 61 74 75 72 65 3a such a feature:
83c0: 0d 0a 20 20 20 2a 20 20 46 6f 73 73 69 6c 20 70 .. * Fossil p
83d0: 69 70 65 73 20 74 68 65 20 73 6f 75 72 63 65 20 ipes the source
83e0: 63 6f 64 65 20 74 68 72 6f 75 67 68 20 61 20 66 code through a f
83f0: 69 6c 74 65 72 20 62 65 66 6f 72 65 20 73 65 6e ilter before sen
8400: 64 69 6e 67 20 69 74 20 74 6f 20 74 68 65 20 62 ding it to the b
8410: 72 6f 77 73 65 72 2e 20 54 68 65 20 66 69 6c 74 rowser. The filt
8420: 65 72 20 63 6f 75 6c 64 20 62 65 20 64 65 66 69 er could be defi
8430: 6e 65 64 20 61 73 20 61 20 63 6f 6e 66 69 67 75 ned as a configu
8440: 72 61 74 69 6f 6e 20 6f 70 74 69 6f 6e 20 74 6f ration option to
8450: 20 46 6f 73 73 69 6c 2e 20 4f 6e 65 20 73 6f 6c Fossil. One sol
8460: 75 74 69 6f 6e 20 66 6f 72 20 74 68 69 73 20 6d ution for this m
8470: 69 67 68 74 20 62 65 20 74 68 65 20 3c 61 20 68 ight be the <a h
8480: 72 65 66 3d 22 68 74 74 70 3a 2f 2f 77 77 77 2e ref="http://www.
8490: 67 6e 75 2e 6f 72 67 2f 73 6f 66 74 77 61 72 65 gnu.org/software
84a0: 2f 73 72 63 2d 68 69 67 68 6c 69 74 65 22 3e 47 /src-highlite">G
84b0: 4e 55 20 53 6f 75 72 63 65 20 63 6f 64 65 20 48 NU Source code H
84c0: 69 67 68 6c 69 67 68 74 69 6e 67 3c 2f 61 3e 20 ighlighting</a>
84d0: 70 72 6f 67 72 61 6d 2e 0d 0a 20 20 20 2a 20 20 program... *
84e0: 55 73 65 20 61 20 4a 61 76 61 73 63 72 69 70 74 Use a Javascript
84f0: 20 6c 69 62 72 61 72 79 20 74 68 61 74 20 72 65 library that re
8500: 6e 64 65 72 73 20 74 68 65 20 63 6f 64 65 20 77 nders the code w
8510: 69 74 68 69 6e 20 79 6f 75 72 20 62 72 6f 77 73 ithin your brows
8520: 65 72 2e 20 4f 6e 65 20 73 6f 6c 75 74 69 6f 6e er. One solution
8530: 20 66 6f 72 20 74 68 69 73 20 6d 69 67 68 74 20 for this might
8540: 62 65 20 3c 61 20 68 72 65 66 3d 22 68 74 74 70 be <a href="http
8550: 3a 2f 2f 63 6f 64 65 2e 67 6f 6f 67 6c 65 2e 63 ://code.google.c
8560: 6f 6d 2f 70 2f 73 79 6e 74 61 78 68 69 67 68 6c om/p/syntaxhighl
8570: 69 67 68 74 65 72 22 3e 47 6f 6f 67 6c 65 20 53 ighter">Google S
8580: 79 6e 74 61 78 20 48 69 67 68 6c 69 67 68 74 65 yntax Highlighte
8590: 72 3c 2f 61 3e 0d 0a 0d 0a 49 20 65 73 74 69 6d r</a>....I estim
85a0: 61 74 65 20 74 68 61 74 20 74 68 65 20 3c 69 3e ate that the <i>
85b0: 70 69 70 65 3c 2f 69 3e 20 73 6f 6c 75 74 69 6f pipe</i> solutio
85c0: 6e 20 6e 65 65 64 73 20 73 6f 6d 65 20 6d 6f 72 n needs some mor
85d0: 65 20 77 6f 72 6b 2f 20 63 6f 64 65 20 63 68 61 e work/ code cha
85e0: 6e 67 65 73 2e 20 54 68 75 73 20 49 20 61 6d 20 nges. Thus I am
85f0: 73 6f 6c 65 6c 79 20 6c 6f 6f 6b 69 6e 67 20 61 solely looking a
8600: 74 20 74 68 65 20 4a 61 76 61 73 63 72 69 70 74 t the Javascript
8610: 20 73 6f 6c 75 74 69 6f 6e 2e 0d 0a 0d 0a 54 68 solution.....Th
8620: 65 20 53 79 6e 74 61 78 48 69 67 68 6c 69 67 68 e SyntaxHighligh
8630: 74 65 72 20 69 73 20 61 20 6c 69 62 72 61 72 79 ter is a library
8640: 20 6f 66 20 73 6f 6d 65 20 4a 61 76 61 73 63 72 of some Javascr
8650: 69 70 74 20 66 69 6c 65 73 2c 20 61 20 6c 69 74 ipt files, a lit
8660: 74 6c 65 20 46 6c 61 73 68 20 61 70 70 6c 69 63 tle Flash applic
8670: 61 74 69 6f 6e 20 61 6e 64 20 61 20 43 53 53 20 ation and a CSS
8680: 66 69 6c 65 2e 20 54 68 65 20 46 6c 61 73 68 20 file. The Flash
8690: 61 70 70 6c 69 63 61 74 69 6f 6e 20 69 73 20 66 application is f
86a0: 6f 72 20 63 6f 70 79 69 6e 67 20 74 6f 20 63 6c or copying to cl
86b0: 69 70 62 6f 61 72 64 2c 20 70 72 69 6e 74 20 61 ipboard, print a
86c0: 6e 64 20 76 69 65 77 20 73 6f 75 72 63 65 2e 20 nd view source.
86d0: 59 6f 75 20 68 61 76 65 20 74 68 65 20 6f 70 74 You have the opt
86e0: 69 6f 6e 20 74 6f 20 69 6e 63 6c 75 64 65 20 61 ion to include a
86f0: 6c 6c 20 74 68 65 20 66 69 6c 65 73 20 69 6e 74 ll the files int
8700: 6f 20 79 6f 75 72 20 72 65 70 6f 73 69 74 6f 72 o your repositor
8710: 79 20 6f 72 20 75 73 65 20 74 68 65 20 66 69 6c y or use the fil
8720: 65 73 20 68 6f 73 74 65 64 20 61 74 20 47 6f 6f es hosted at Goo
8730: 67 6c 65 2e 20 54 68 65 20 6c 61 74 74 65 72 20 gle. The latter
8740: 6d 61 79 20 6f 6e 6c 79 20 62 65 20 61 6e 20 6f may only be an o
8750: 70 74 69 6f 6e 20 69 66 20 79 6f 75 20 61 72 65 ption if you are
8760: 20 63 6f 6e 6e 65 63 74 65 64 20 74 6f 20 69 6e connected to in
8770: 74 65 72 6e 65 74 20 61 6c 6c 20 74 68 65 20 74 ternet all the t
8780: 69 6d 65 2e 0d 0a 0d 0a 46 6f 72 20 73 79 6e 74 ime.....For synt
8790: 61 78 20 68 69 67 68 6c 69 67 68 74 69 6e 67 20 ax highlighting
87a0: 74 6f 20 77 6f 72 6b 20 74 68 65 20 48 65 61 64 to work the Head
87b0: 65 72 20 61 6e 64 20 46 6f 6f 74 65 72 20 74 65 er and Footer te
87c0: 6d 70 6c 61 74 65 73 20 6e 65 65 64 20 74 6f 20 mplates need to
87d0: 62 65 20 6d 6f 64 69 66 69 65 64 20 61 6e 64 20 be modified and
87e0: 61 20 6c 69 74 74 6c 65 20 63 6f 64 65 20 63 68 a little code ch
87f0: 61 6e 67 65 20 68 61 73 20 74 6f 20 62 65 20 61 ange has to be a
8800: 70 70 6c 69 65 64 20 74 6f 20 74 68 65 20 46 6f pplied to the Fo
8810: 73 73 69 6c 20 73 6f 75 72 63 65 73 2e 0d 0a 54 ssil sources...T
8820: 68 65 20 65 78 61 6d 70 6c 65 73 20 62 65 6c 6f he examples belo
8830: 77 20 61 73 73 75 6d 65 20 79 6f 75 20 68 61 76 w assume you hav
8840: 65 20 61 64 64 65 64 20 74 68 65 20 73 79 6e 74 e added the synt
8850: 61 78 20 68 69 67 68 6c 69 67 68 74 69 6e 67 20 ax highlighting
8860: 6c 69 62 72 61 72 79 20 74 6f 20 79 6f 75 72 20 library to your
8870: 72 65 70 6f 73 69 74 6f 72 79 20 69 6e 74 6f 20 repository into
8880: 61 20 64 69 72 65 63 74 6f 72 79 20 77 77 77 2f a directory www/
8890: 73 63 72 69 70 74 73 2e 0d 0a 3c 70 3e 0d 0a 3c scripts...<p>..<
88a0: 62 3e 48 65 61 64 65 72 3c 2f 62 3e 0d 0a 3c 70 b>Header</b>..<p
88b0: 72 65 3e 0d 0a 26 6c 74 3b 68 74 6d 6c 26 67 74 re>..<html>
88c0: 3b 0d 0a 20 26 6c 74 3b 68 65 61 64 26 67 74 3b ;.. <head>
88d0: 0d 0a 20 26 6c 74 3b 74 69 74 6c 65 26 67 74 3b .. <title>
88e0: 24 26 6c 74 3b 70 72 6f 6a 65 63 74 5f 6e 61 6d $<project_nam
88f0: 65 26 67 74 3b 3a 20 24 26 6c 74 3b 74 69 74 6c e>: $<titl
8900: 65 26 67 74 3b 26 6c 74 3b 2f 74 69 74 6c 65 26 e></title&
8910: 67 74 3b 0d 0a 20 26 6c 74 3b 6c 69 6e 6b 20 72 gt;.. <link r
8920: 65 6c 3d 22 61 6c 74 65 72 6e 61 74 65 22 20 74 el="alternate" t
8930: 79 70 65 3d 22 61 70 70 6c 69 63 61 74 69 6f 6e ype="application
8940: 2f 72 73 73 2b 78 6d 6c 22 20 74 69 74 6c 65 3d /rss+xml" title=
8950: 22 52 53 53 20 46 65 65 64 22 0d 0a 20 20 20 20 "RSS Feed"..
8960: 20 20 20 68 72 65 66 3d 22 24 62 61 73 65 75 72 href="$baseur
8970: 6c 2f 74 69 6d 65 6c 69 6e 65 2e 72 73 73 22 26 l/timeline.rss"&
8980: 67 74 3b 0d 0a 20 26 6c 74 3b 6c 69 6e 6b 20 72 gt;.. <link r
8990: 65 6c 3d 22 73 74 79 6c 65 73 68 65 65 74 22 20 el="stylesheet"
89a0: 68 72 65 66 3d 22 24 62 61 73 65 75 72 6c 2f 73 href="$baseurl/s
89b0: 74 79 6c 65 2e 63 73 73 22 20 74 79 70 65 3d 22 tyle.css" type="
89c0: 74 65 78 74 2f 63 73 73 22 0d 0a 20 20 20 20 20 text/css"..
89d0: 20 20 6d 65 64 69 61 3d 22 73 63 72 65 65 6e 22 media="screen"
89e0: 26 67 74 3b 0d 0a 20 26 6c 74 3b 6c 69 6e 6b 20 >.. <link
89f0: 72 65 6c 3d 22 73 74 79 6c 65 73 68 65 65 74 22 rel="stylesheet"
8a00: 20 68 72 65 66 3d 22 24 62 61 73 65 75 72 6c 2f href="$baseurl/
8a10: 64 6f 63 2f 74 69 70 2f 77 77 77 2f 53 79 6e 74 doc/tip/www/Synt
8a20: 61 78 48 69 67 68 6c 69 67 68 74 65 72 2e 63 73 axHighlighter.cs
8a30: 73 22 20 74 79 70 65 3d 22 74 65 78 74 2f 63 73 s" type="text/cs
8a40: 73 22 0d 0a 20 20 20 20 20 20 20 6d 65 64 69 61 s".. media
8a50: 3d 22 73 63 72 65 65 6e 22 26 67 74 3b 0d 0a 20 ="screen">..
8a60: 26 6c 74 3b 2f 68 65 61 64 26 67 74 3b 0d 0a 0d </head>...
8a70: 0a 2e 20 2e 20 2e 0d 0a 3c 2f 70 72 65 3e 0d 0a .. . ...</pre>..
8a80: 3c 2f 70 3e 3c 70 3e 0d 0a 3c 62 3e 46 6f 6f 74 </p><p>..<b>Foot
8a90: 65 72 3c 2f 62 3e 0d 0a 3c 70 72 65 3e 0d 0a 26 er</b>..<pre>..&
8aa0: 6c 74 3b 2f 64 69 76 26 67 74 3b 0d 0a 26 6c 74 lt;/div>..<
8ab0: 3b 64 69 76 20 63 6c 61 73 73 3d 22 66 6f 6f 74 ;div class="foot
8ac0: 65 72 22 26 67 74 3b 0d 0a 46 6f 73 73 69 6c 20 er">..Fossil
8ad0: 76 65 72 73 69 6f 6e 20 24 6d 61 6e 69 66 65 73 version $manifes
8ae0: 74 5f 76 65 72 73 69 6f 6e 20 24 6d 61 6e 69 66 t_version $manif
8af0: 65 73 74 5f 64 61 74 65 0d 0a 26 6c 74 3b 2f 64 est_date..</d
8b00: 69 76 26 67 74 3b 0d 0a 26 6c 74 3b 73 63 72 69 iv>..<scri
8b10: 70 74 20 6c 61 6e 67 75 61 67 65 3d 22 6a 61 76 pt language="jav
8b20: 61 73 63 72 69 70 74 22 20 73 72 63 3d 22 24 62 ascript" src="$b
8b30: 61 73 65 75 72 6c 2f 64 6f 63 2f 74 69 70 2f 77 aseurl/doc/tip/w
8b40: 77 77 2f 73 63 72 69 70 74 73 2f 73 68 43 6f 72 ww/scripts/shCor
8b50: 65 2e 6a 73 22 26 67 74 3b 26 6c 74 3b 2f 73 63 e.js"></sc
8b60: 72 69 70 74 26 67 74 3b 0d 0a 26 6c 74 3b 73 63 ript>..<sc
8b70: 72 69 70 74 20 6c 61 6e 67 75 61 67 65 3d 22 6a ript language="j
8b80: 61 76 61 73 63 72 69 70 74 22 20 73 72 63 3d 22 avascript" src="
8b90: 24 62 61 73 65 75 72 6c 2f 64 6f 63 2f 74 69 70 $baseurl/doc/tip
8ba0: 2f 77 77 77 2f 73 63 72 69 70 74 73 2f 73 68 42 /www/scripts/shB
8bb0: 72 75 73 68 43 70 70 2e 6a 73 22 26 67 74 3b 26 rushCpp.js">&
8bc0: 6c 74 3b 2f 73 63 72 69 70 74 26 67 74 3b 0d 0a lt;/script>..
8bd0: 26 6c 74 3b 73 63 72 69 70 74 20 6c 61 6e 67 75 <script langu
8be0: 61 67 65 3d 22 6a 61 76 61 73 63 72 69 70 74 22 age="javascript"
8bf0: 26 67 74 3b 0d 0a 64 70 2e 53 79 6e 74 61 78 48 >..dp.SyntaxH
8c00: 69 67 68 6c 69 67 68 74 65 72 2e 43 6c 69 70 62 ighlighter.Clipb
8c10: 6f 61 72 64 53 77 66 20 3d 20 27 24 62 61 73 65 oardSwf = '$base
8c20: 75 72 6c 2f 64 6f 63 2f 74 69 70 2f 77 77 77 2f url/doc/tip/www/
8c30: 73 63 72 69 70 74 73 2f 63 6c 69 70 62 6f 61 72 scripts/clipboar
8c40: 64 2e 73 77 66 27 3b 0d 0a 64 70 2e 53 79 6e 74 d.swf';..dp.Synt
8c50: 61 78 48 69 67 68 6c 69 67 68 74 65 72 2e 48 69 axHighlighter.Hi
8c60: 67 68 6c 69 67 68 74 41 6c 6c 28 27 63 6f 64 65 ghlightAll('code
8c70: 27 29 3b 0d 0a 26 6c 74 3b 2f 73 63 72 69 70 74 ');..</script
8c80: 26 67 74 3b 0d 0a 26 6c 74 3b 2f 62 6f 64 79 26 >..</body&
8c90: 67 74 3b 26 6c 74 3b 2f 68 74 6d 6c 26 67 74 3b gt;</html>
8ca0: 0d 0a 3c 2f 70 72 65 3e 0d 0a 3c 2f 70 3e 3c 70 ..</pre>..</p><p
8cb0: 3e 0d 0a 3c 62 3e 46 6f 73 73 69 6c 2f 73 72 63 >..<b>Fossil/src
8cc0: 2f 69 6e 66 6f 2e 63 3c 2f 62 3e 20 66 75 6e 63 /info.c</b> func
8cd0: 74 69 6f 6e 20 61 72 74 69 66 61 63 74 5f 70 61 tion artifact_pa
8ce0: 67 65 0d 0a 3c 70 72 65 3e 0d 0a 69 66 28 20 7a ge..<pre>..if( z
8cf0: 4d 69 6d 65 3d 3d 30 20 29 7b 0d 0a 20 20 20 20 Mime==0 ){..
8d00: 40 20 26 6c 74 3b 70 72 65 20 6e 61 6d 65 3d 22 @ <pre name="
8d10: 63 6f 64 65 22 20 63 6c 61 73 73 3d 22 63 22 26 code" class="c"&
8d20: 67 74 3b 0d 0a 20 20 20 20 40 20 25 68 28 62 6c gt;.. @ %h(bl
8d30: 6f 62 5f 73 74 72 28 26 63 6f 6e 74 65 6e 74 29 ob_str(&content)
8d40: 29 0d 0a 20 20 20 20 40 20 26 6c 74 3b 2f 70 72 ).. @ </pr
8d50: 65 26 67 74 3b 0d 0a 3c 2f 70 72 65 3e 0d 0a 3c e>..</pre>..<
8d60: 2f 70 3e 0d 0a 3c 68 33 3e 44 69 73 63 75 73 73 /p>..<h3>Discuss
8d70: 69 6f 6e 3c 2f 68 33 3e 0d 0a 54 68 65 20 4a 61 ion</h3>..The Ja
8d80: 76 61 73 63 72 69 70 74 20 73 6f 6c 75 74 69 6f vascript solutio
8d90: 6e 20 72 65 71 75 69 72 65 73 20 61 20 6d 69 6e n requires a min
8da0: 69 6d 75 6d 20 74 6f 20 62 65 20 66 75 6c 6c 79 imum to be fully
8db0: 20 73 75 70 70 6f 72 74 65 64 20 62 79 20 46 6f supported by Fo
8dc0: 73 73 69 6c 2e 20 4f 66 20 63 6f 75 72 73 65 20 ssil. Of course
8dd0: 6d 79 20 6c 69 74 74 65 20 63 68 61 6e 67 65 20 my litte change
8de0: 6f 6e 6c 79 20 61 70 70 6c 69 65 73 20 66 6f 72 only applies for
8df0: 20 43 2f 43 2b 2b 20 66 69 6c 65 73 2e 20 42 75 C/C++ files. Bu
8e00: 74 20 6f 6e 6c 79 20 6c 69 74 74 6c 65 20 6d 6f t only little mo
8e10: 72 65 20 77 6f 72 6b 20 6e 65 65 64 73 20 74 6f re work needs to
8e20: 20 62 65 20 64 6f 6e 65 20 74 6f 20 67 65 74 20 be done to get
8e30: 74 68 65 20 65 78 74 65 6e 73 69 6f 6e 20 6f 66 the extension of
8e40: 20 74 68 65 20 66 69 6c 65 20 61 20 67 75 65 73 the file a gues
8e50: 73 20 74 68 65 20 66 69 6c 65 20 74 79 70 65 2e s the file type.
8e60: 0d 0a 0d 0a 54 68 65 20 70 69 70 65 20 73 6f 6c ....The pipe sol
8e70: 75 74 69 6f 6e 20 77 6f 75 6c 64 20 61 6c 73 6f ution would also
8e80: 20 62 65 20 6e 69 63 65 20 62 75 74 20 77 6f 75 be nice but wou
8e90: 6c 64 20 70 72 6f 62 61 62 6c 79 20 6e 65 65 64 ld probably need
8ea0: 20 73 6f 6d 65 20 6d 6f 72 65 20 77 6f 72 6b 20 some more work
8eb0: 74 68 61 6e 20 74 68 69 73 20 6c 69 74 74 6c 65 than this little
8ec0: 20 70 61 74 63 68 2e 0d 0a 0d 0a 3c 68 33 3e 20 patch.....<h3>
8ed0: 3c 61 20 6e 61 6d 65 3d 22 77 69 6e 33 32 64 65 <a name="win32de
8ee0: 76 22 3e 48 6f 77 20 74 6f 20 70 72 65 70 61 72 v">How to prepar
8ef0: 65 20 79 6f 75 72 20 57 69 6e 64 6f 77 73 20 58 e your Windows X
8f00: 50 20 46 6f 73 73 69 6c 20 64 65 76 65 6c 6f 70 P Fossil develop
8f10: 6d 65 6e 74 20 45 6e 76 69 72 6f 6e 6d 65 6e 74 ment Environment
8f20: 3c 2f 68 33 3e 0d 0a 3c 68 34 3e 4d 69 6e 47 57 </h3>..<h4>MinGW
8f30: 2b 4e 53 49 53 2f 57 69 58 3c 2f 68 34 3e 0d 0a +NSIS/WiX</h4>..
8f40: 3c 68 35 3e 53 65 74 75 70 20 54 43 4c 3c 2f 68 <h5>Setup TCL</h
8f50: 35 3e 0d 0a 3c 68 35 3e 53 65 74 75 70 20 4d 69 5>..<h5>Setup Mi
8f60: 6e 47 57 3c 2f 68 35 3e 0d 0a 3c 68 35 3e 47 65 nGW</h5>..<h5>Ge
8f70: 74 74 69 6e 67 20 4e 53 49 53 20 57 69 6e 64 6f tting NSIS Windo
8f80: 77 73 20 70 61 63 6b 61 67 69 6e 67 20 74 6f 6f ws packaging too
8f90: 6c 20 3c 2f 68 35 3e 0d 0a 3c 68 35 3e 47 65 74 l </h5>..<h5>Get
8fa0: 74 69 6e 67 20 46 6f 73 73 69 6c 20 73 6f 75 72 ting Fossil sour
8fb0: 63 65 20 63 6f 64 65 3c 2f 68 35 3e 0d 0a 3c 68 ce code</h5>..<h
8fc0: 35 3e 42 75 69 6c 64 20 74 68 65 20 63 6f 64 65 5>Build the code
8fd0: 20 77 69 74 68 20 4d 61 6b 65 66 69 6c 65 2e 77 with Makefile.w
8fe0: 69 6e 33 32 20 3c 2f 68 35 3e 0d 0a 0d 0a 3c 68 in32 </h5>....<h
8ff0: 34 3e 56 69 73 75 61 6c 20 53 74 75 64 69 6f 20 4>Visual Studio
9000: 45 78 70 72 65 73 73 20 32 30 30 38 2b 57 69 58 Express 2008+WiX
9010: 3c 2f 68 34 3e 0d 0a 3c 68 35 3e 53 65 74 75 70 </h4>..<h5>Setup
9020: 20 54 43 4c 3c 2f 68 35 3e 0d 0a 3c 68 35 3e 53 TCL</h5>..<h5>S
9030: 65 74 75 70 20 56 53 32 30 30 38 3c 2f 68 35 3e etup VS2008</h5>
9040: 0d 0a 3c 68 35 3e 47 65 74 74 69 6e 67 20 57 69 ..<h5>Getting Wi
9050: 58 20 57 69 6e 64 6f 77 73 20 4d 53 49 20 74 6f X Windows MSI to
9060: 6f 6c 20 3c 2f 68 35 3e 0d 0a 3c 68 35 3e 47 65 ol </h5>..<h5>Ge
9070: 74 74 69 6e 67 20 46 6f 73 73 69 6c 20 73 6f 75 tting Fossil sou
9080: 72 63 65 20 63 6f 64 65 3c 2f 68 35 3e 0d 0a 3c rce code</h5>..<
9090: 68 35 3e 42 75 69 6c 64 20 74 68 65 20 63 6f 64 h5>Build the cod
90a0: 65 20 77 69 74 68 20 4d 61 6b 65 66 69 6c 65 2e e with Makefile.
90b0: 77 69 6e 33 32 3c 2f 68 35 3e 0d 0a 0d 0a 3c 61 win32</h5>....<a
90c0: 20 6e 61 6d 65 3d 22 4d 69 6e 67 57 22 3e 3c 68 name="MingW"><h
90d0: 32 3e 43 6f 6d 70 69 6c 69 6e 67 20 66 6f 72 20 2>Compiling for
90e0: 77 69 6e 64 6f 77 73 20 28 78 70 2c 20 76 69 73 windows (xp, vis
90f0: 74 61 2c 20 77 69 6e 32 6b 3f 2c 20 37 3f 29 3c ta, win2k?, 7?)<
9100: 2f 68 32 3e 3c 2f 61 3e 0d 0a 3c 73 6d 61 6c 6c /h2></a>..<small
9110: 3e 57 69 6e 64 6f 77 73 20 76 65 72 73 69 6f 6e >Windows version
9120: 73 20 77 69 74 68 20 61 20 3f 20 61 66 74 65 72 s with a ? after
9130: 20 74 68 65 20 76 65 72 73 69 6f 6e 20 68 61 76 the version hav
9140: 65 6e 27 74 20 62 65 65 6e 20 62 75 69 6c 64 20 en't been build
9150: 62 79 20 6d 65 20 61 6e 64 20 49 20 63 61 6e 6e by me and I cann
9160: 6f 74 20 73 61 79 20 69 66 20 69 74 20 77 6f 72 ot say if it wor
9170: 6b 73 20 6f 6e 20 74 68 6f 73 65 20 76 65 72 73 ks on those vers
9180: 69 6f 6e 73 2e 3c 2f 73 6d 61 6c 6c 3e 0d 0a 0d ions.</small>...
9190: 0a 49 6e 20 6f 72 64 65 72 20 74 6f 20 70 72 6f .In order to pro
91a0: 64 75 63 65 20 77 69 6e 64 6f 77 73 20 65 78 65 duce windows exe
91b0: 63 75 74 61 62 6c 65 2c 20 61 6e 64 20 6d 6f 72 cutable, and mor
91c0: 65 20 73 70 65 63 69 66 69 63 20 66 6f 73 73 69 e specific fossi
91d0: 6c 20 77 65 20 63 61 6e 20 66 6f 6c 6c 6f 77 2c l we can follow,
91e0: 20 61 74 20 6c 65 61 73 74 2c 20 32 20 73 74 72 at least, 2 str
91f0: 61 74 65 67 69 65 73 2e 0d 0a 20 20 2a 20 20 43 ategies... * C
9200: 6f 6d 70 69 6c 69 6e 67 20 75 6e 64 65 72 20 77 ompiling under w
9210: 69 6e 64 6f 77 73 20 77 69 74 68 20 4d 69 6e 67 indows with Ming
9220: 57 2e 0d 0a 20 20 2a 20 20 43 6f 6d 70 69 6c 69 W... * Compili
9230: 6e 67 20 75 6e 64 65 72 20 4c 69 6e 75 78 20 77 ng under Linux w
9240: 69 74 68 20 63 72 6f 73 73 63 6f 6d 70 69 6c 65 ith crosscompile
9250: 72 20 4d 69 6e 67 57 2e 0d 0a 0d 0a 0d 0a 3c 68 r MingW.......<h
9260: 33 3e 43 6f 6d 70 69 6c 69 6e 67 20 75 6e 64 65 3>Compiling unde
9270: 72 20 77 69 6e 64 6f 77 73 20 77 69 74 68 20 4d r windows with M
9280: 69 6e 67 77 3c 2f 68 33 3e 0d 0a 3c 68 34 3e 49 ingw</h3>..<h4>I
9290: 6e 73 74 61 6c 6c 69 6e 67 20 74 68 65 20 74 6f nstalling the to
92a0: 6f 6c 73 2e 3c 2f 68 34 3e 0d 0a 20 20 2a 20 20 ols.</h4>.. *
92b0: 64 6f 77 6e 6c 6f 61 64 20 5b 68 74 74 70 3a 2f download [http:/
92c0: 2f 73 6f 75 72 63 65 66 6f 72 67 65 2e 6e 65 74 /sourceforge.net
92d0: 2f 70 72 6f 6a 65 63 74 73 2f 6d 69 6e 67 77 2f /projects/mingw/
92e0: 66 69 6c 65 73 2f 7c 6d 69 6e 67 77 2d 78 78 2e files/|mingw-xx.
92f0: 65 78 65 5d 20 76 65 72 73 69 6f 6e 20 35 2e 31 exe] version 5.1
9300: 2e 36 20 6f 72 20 6c 61 74 65 72 2e 20 49 6e 73 .6 or later. Ins
9310: 74 61 6c 6c 20 69 74 2e 20 49 20 61 73 73 75 6d tall it. I assum
9320: 65 20 69 74 20 77 69 6c 6c 20 62 65 20 69 6e 73 e it will be ins
9330: 74 61 6c 6c 65 64 20 69 6e 20 3c 73 74 72 6f 6e talled in <stron
9340: 67 3e 63 3a 5c 4d 69 6e 67 57 3c 2f 73 74 72 6f g>c:\MingW</stro
9350: 6e 67 3e 0d 0a 20 20 2a 20 20 64 6f 77 6e 6c 6f ng>.. * downlo
9360: 61 64 20 5b 68 74 74 70 3a 2f 2f 73 6f 75 72 63 ad [http://sourc
9370: 65 66 6f 72 67 65 2e 6e 65 74 2f 70 72 6f 6a 65 eforge.net/proje
9380: 63 74 73 2f 6d 69 6e 67 77 2f 66 69 6c 65 73 2f cts/mingw/files/
9390: 7c 6d 73 79 73 2d 78 78 2e 65 78 65 5d 20 76 65 |msys-xx.exe] ve
93a0: 72 73 69 6f 6e 20 31 2e 30 2e 31 30 20 6f 72 20 rsion 1.0.10 or
93b0: 6c 61 74 65 72 2e 20 49 6e 73 74 61 6c 6c 20 69 later. Install i
93c0: 74 2e 20 49 20 61 73 73 75 6d 65 20 69 74 20 77 t. I assume it w
93d0: 69 6c 6c 20 62 65 20 69 6e 73 74 61 6c 6c 65 64 ill be installed
93e0: 20 69 6e 20 3c 73 74 72 6f 6e 67 3e 63 3a 5c 6d in <strong>c:\m
93f0: 73 79 73 3c 2f 73 74 72 6f 6e 67 3e 0d 0a 20 20 sys</strong>..
9400: 2a 20 20 64 6f 77 6e 6c 6f 61 64 20 5b 68 74 74 * download [htt
9410: 70 3a 2f 2f 67 6e 75 77 69 6e 33 32 2e 73 6f 75 p://gnuwin32.sou
9420: 72 63 65 66 6f 72 67 65 2e 6e 65 74 2f 70 61 63 rceforge.net/pac
9430: 6b 61 67 65 73 2f 7a 6c 69 62 2e 68 74 6d 7c 7a kages/zlib.htm|z
9440: 6c 69 62 5d 20 74 68 65 20 62 69 6e 61 72 79 20 lib] the binary
9450: 61 6e 64 20 64 65 76 65 6c 6f 70 65 72 20 66 69 and developer fi
9460: 6c 65 73 2e 20 45 78 74 72 61 63 74 20 74 6f 20 les. Extract to
9470: 3c 73 74 72 6f 6e 67 3e 63 3a 5c 4d 69 6e 67 57 <strong>c:\MingW
9480: 3c 2f 73 74 72 6f 6e 67 3e 0d 0a 20 20 2a 20 20 </strong>.. *
9490: 49 66 20 79 6f 75 20 77 61 6e 74 20 3c 73 74 72 If you want <str
94a0: 6f 6e 67 3e 68 74 74 70 73 3c 2f 73 74 72 6f 6e ong>https</stron
94b0: 67 3e 20 73 75 70 70 6f 72 74 20 64 6f 77 6e 6c g> support downl
94c0: 6f 61 64 20 5b 68 74 74 70 3a 2f 2f 67 6e 75 77 oad [http://gnuw
94d0: 69 6e 33 32 2e 73 6f 75 72 63 65 66 6f 72 67 65 in32.sourceforge
94e0: 2e 6e 65 74 2f 70 61 63 6b 61 67 65 73 2f 6f 70 .net/packages/op
94f0: 65 6e 73 73 6c 2e 68 74 6d 7c 6f 70 65 6e 73 73 enssl.htm|openss
9500: 6c 5d 20 74 68 65 20 62 69 6e 61 72 79 20 61 6e l] the binary an
9510: 64 20 64 65 76 65 6c 6f 70 65 72 20 66 69 6c 65 d developer file
9520: 73 2e 20 45 78 74 72 61 63 74 20 74 6f 20 3c 73 s. Extract to <s
9530: 74 72 6f 6e 67 3e 63 3a 5c 4d 69 6e 67 57 3c 2f trong>c:\MingW</
9540: 73 74 72 6f 6e 67 3e 0d 0a 20 20 2a 20 20 64 6f strong>.. * do
9550: 77 6e 6c 6f 61 64 20 5b 68 74 74 70 3a 2f 2f 77 wnload [http://w
9560: 77 77 2e 66 6f 73 73 69 6c 2d 73 63 6d 2e 6f 72 ww.fossil-scm.or
9570: 67 2f 64 6f 77 6e 6c 6f 61 64 2e 68 74 6d 6c 7c g/download.html|
9580: 66 6f 73 73 69 6c 5d 20 61 6e 64 20 63 6f 70 79 fossil] and copy
9590: 20 66 6f 73 73 69 6c 2e 65 78 65 20 74 6f 20 3c fossil.exe to <
95a0: 73 74 72 6f 6e 67 3e 63 3a 5c 4d 69 6e 67 57 5c strong>c:\MingW\
95b0: 62 69 6e 3c 2f 73 74 72 6f 6e 67 3e 0d 0a 0d 0a bin</strong>....
95c0: 3c 68 34 3e 47 65 74 74 69 6e 67 20 66 6f 73 73 <h4>Getting foss
95d0: 69 6c 20 73 6f 75 72 63 65 20 63 6f 64 65 3c 2f il source code</
95e0: 68 34 3e 0d 0a 20 20 2a 20 20 73 74 61 72 74 20 h4>.. * start
95f0: 6d 73 79 73 2e 20 54 68 69 73 20 77 69 6c 6c 20 msys. This will
9600: 73 74 61 72 74 20 61 20 62 61 73 68 20 73 68 65 start a bash she
9610: 6c 6c 2e 20 0d 0a 20 20 2a 20 20 6d 6b 64 69 72 ll. .. * mkdir
9620: 20 66 6f 73 73 69 6c 3b 20 63 64 20 66 6f 73 73 fossil; cd foss
9630: 69 6c 0d 0a 20 20 2a 20 20 63 6c 6f 6e 65 20 66 il.. * clone f
9640: 6f 73 73 69 6c 20 72 65 70 6f 73 69 74 6f 72 79 ossil repository
9650: 2e 20 65 2e 67 2e 20 66 6f 73 73 69 6c 20 63 6c . e.g. fossil cl
9660: 6f 6e 65 20 68 74 74 70 3a 2f 2f 77 77 77 2e 66 one http://www.f
9670: 6f 73 73 69 6c 2d 73 63 6d 2e 6f 72 67 2f 20 6d ossil-scm.org/ m
9680: 79 63 6c 6f 6e 65 2e 66 6f 73 73 69 6c 0d 0a 20 yclone.fossil..
9690: 20 2a 20 20 6d 6b 64 69 72 20 73 72 63 3b 20 63 * mkdir src; c
96a0: 64 20 73 72 63 0d 0a 20 20 2a 20 20 66 6f 73 73 d src.. * foss
96b0: 69 6c 20 20 6f 70 65 6e 20 2e 2e 2f 6d 79 63 6c il open ../mycl
96c0: 6f 6e 65 2e 66 6f 73 73 69 6c 0d 0a 0d 0a 3c 68 one.fossil....<h
96d0: 34 3e 43 6f 6d 70 69 6c 69 6e 67 20 66 6f 73 73 4>Compiling foss
96e0: 69 6c 20 73 6f 75 72 63 65 20 63 6f 64 65 3c 2f il source code</
96f0: 68 34 3e 0d 0a 20 20 2a 20 20 49 66 20 79 6f 75 h4>.. * If you
9700: 20 77 61 6e 74 20 3c 73 74 72 6f 6e 67 3e 68 74 want <strong>ht
9710: 74 70 73 3c 2f 73 74 72 6f 6e 67 3e 20 73 75 70 tps</strong> sup
9720: 70 6f 72 74 73 0d 0a 20 20 20 20 20 3c 75 6c 3e ports.. <ul>
9730: 3c 6c 69 3e 43 68 61 6e 67 65 20 4d 61 6b 65 66 <li>Change Makef
9740: 69 6c 65 2e 77 33 32 2e 20 43 68 61 6e 67 65 20 ile.w32. Change
9750: 74 68 65 20 6c 69 6e 65 20 22 4c 49 42 20 2b 3d the line "LIB +=
9760: 20 2d 6c 63 72 79 70 74 6f 20 2d 6c 73 73 6c 22 -lcrypto -lssl"
9770: 20 74 6f 20 22 4c 49 42 20 3d 20 2d 6c 73 73 6c to "LIB = -lssl
9780: 20 2d 6c 63 72 79 70 74 6f 20 2d 6c 67 64 69 33 -lcrypto -lgdi3
9790: 32 20 2d 6c 6d 69 6e 67 77 65 78 20 2d 6c 7a 20 2 -lmingwex -lz
97a0: 2d 6c 77 73 32 5f 33 32 22 2e 3c 2f 6c 69 3e 0d -lws2_32".</li>.
97b0: 0a 20 20 20 20 20 3c 6c 69 3e 6d 61 6b 65 20 2d . <li>make -
97c0: 66 20 4d 61 6b 65 66 69 6c 65 2e 77 33 32 20 46 f Makefile.w32 F
97d0: 4f 53 53 49 4c 5f 45 4e 41 42 4c 45 5f 53 53 4c OSSIL_ENABLE_SSL
97e0: 3d 31 3c 2f 6c 69 3e 20 3c 2f 75 6c 3e 0d 0a 20 =1</li> </ul>..
97f0: 20 2a 20 20 65 6c 73 65 20 64 6f 20 6d 61 6b 65 * else do make
9800: 20 2d 66 20 4d 61 6b 65 66 69 6c 65 2e 77 33 32 -f Makefile.w32
9810: 20 0d 0a 0d 0a 20 0d 0a 3c 68 33 3e 43 6f 6d 70 .... ..<h3>Comp
9820: 69 6c 69 6e 67 20 75 6e 64 65 72 20 6c 69 6e 75 iling under linu
9830: 78 20 66 6f 72 20 77 69 6e 64 6f 77 73 20 77 69 x for windows wi
9840: 74 68 20 4d 69 6e 67 77 3c 2f 68 33 3e 0d 0a 54 th Mingw</h3>..T
9850: 68 69 73 20 69 73 20 63 61 6c 6c 65 64 20 63 72 his is called cr
9860: 6f 73 73 20 63 6f 6d 70 69 6c 69 6e 67 2e 20 49 oss compiling. I
9870: 27 6d 20 75 73 69 6e 67 20 5b 68 74 74 70 3a 2f 'm using [http:/
9880: 2f 77 77 77 2e 61 72 63 68 6c 69 6e 75 78 2e 6f /www.archlinux.o
9890: 72 67 2f 7c 41 72 63 68 20 6c 69 6e 75 78 5d 20 rg/|Arch linux]
98a0: 64 69 73 74 72 69 62 75 74 69 6f 6e 20 77 68 69 distribution whi
98b0: 63 68 0d 0a 75 73 65 73 20 74 68 65 20 70 61 63 ch..uses the pac
98c0: 6b 61 67 65 20 6d 61 6e 61 67 65 72 20 70 61 63 kage manager pac
98d0: 6d 61 6e 20 74 6f 20 69 6e 73 74 61 6c 6c 20 70 man to install p
98e0: 61 63 6b 61 67 65 73 2e 20 49 66 20 79 6f 75 20 ackages. If you
98f0: 68 61 76 65 20 61 20 64 69 66 66 65 72 65 6e 20 have a differen
9900: 6c 69 6e 75 78 20 64 69 73 74 72 69 62 75 74 69 linux distributi
9910: 6f 6e 20 74 68 65 20 70 61 63 6b 61 67 65 73 20 on the packages
9920: 6d 69 67 68 74 20 62 65 20 63 61 6c 6c 65 64 20 might be called
9930: 64 69 66 66 65 72 65 6e 74 2e 20 49 20 61 73 73 different. I ass
9940: 75 6d 65 20 61 20 6c 6f 67 69 6e 20 6e 61 6d 65 ume a login name
9950: 20 6f 66 20 72 65 6e 65 7a 20 73 75 62 73 74 69 of renez substi
9960: 74 75 74 65 20 79 6f 75 72 73 20 77 65 72 65 20 tute yours were
9970: 61 70 72 6f 70 69 61 74 65 2e 0d 0a 0d 0a 3c 68 apropiate.....<h
9980: 34 3e 49 6e 73 74 61 6c 6c 69 6e 67 20 74 68 65 4>Installing the
9990: 20 74 6f 6f 6c 73 2e 3c 2f 68 34 3e 0d 0a 20 20 tools.</h4>..
99a0: 2a 20 20 49 6e 73 74 61 6c 6c 20 6d 69 6e 67 77 * Install mingw
99b0: 33 32 2d 67 63 63 73 2e 20 57 69 74 68 20 41 72 32-gccs. With Ar
99c0: 63 68 20 6c 69 6e 75 78 20 79 6f 75 20 64 6f 20 ch linux you do
99d0: 50 61 63 6d 61 6e 20 2d 53 20 6d 69 6e 67 77 33 Pacman -S mingw3
99e0: 32 2d 67 63 63 20 28 41 73 20 72 6f 6f 74 21 29 2-gcc (As root!)
99f0: 2e 20 54 68 69 73 20 77 69 6c 65 20 62 65 20 69 . This wile be i
9a00: 6e 73 74 61 6c 6c 65 64 20 69 6e 20 3c 73 74 72 nstalled in <str
9a10: 6f 6e 67 3e 2f 75 73 72 2f 69 34 38 36 2d 6d 69 ong>/usr/i486-mi
9a20: 6e 67 77 33 32 3c 2f 73 74 72 6f 6e 67 3e 0d 0a ngw32</strong>..
9a30: 20 20 2a 20 20 64 6f 77 6e 6c 6f 61 64 20 5b 68 * download [h
9a40: 74 74 70 3a 2f 2f 67 6e 75 77 69 6e 33 32 2e 73 ttp://gnuwin32.s
9a50: 6f 75 72 63 65 66 6f 72 67 65 2e 6e 65 74 2f 70 ourceforge.net/p
9a60: 61 63 6b 61 67 65 73 2f 7a 6c 69 62 2e 68 74 6d ackages/zlib.htm
9a70: 7c 7a 6c 69 62 5d 20 74 68 65 20 62 69 6e 61 72 |zlib] the binar
9a80: 79 20 61 6e 64 20 64 65 76 65 6c 6f 70 65 72 20 y and developer
9a90: 66 69 6c 65 73 2e 0d 0a 20 20 2a 20 20 49 66 20 files... * If
9aa0: 79 6f 75 20 77 61 6e 74 20 3c 73 74 72 6f 6e 67 you want <strong
9ab0: 3e 68 74 74 70 73 3c 2f 73 74 72 6f 6e 67 3e 20 >https</strong>
9ac0: 73 75 70 70 6f 72 74 20 64 6f 77 6e 6c 6f 61 64 support download
9ad0: 20 5b 68 74 74 70 3a 2f 2f 67 6e 75 77 69 6e 33 [http://gnuwin3
9ae0: 32 2e 73 6f 75 72 63 65 66 6f 72 67 65 2e 6e 65 2.sourceforge.ne
9af0: 74 2f 70 61 63 6b 61 67 65 73 2f 6f 70 65 6e 73 t/packages/opens
9b00: 73 6c 2e 68 74 6d 7c 6f 70 65 6e 73 73 6c 5d 20 sl.htm|openssl]
9b10: 74 68 65 20 62 69 6e 61 72 79 20 61 6e 64 20 64 the binary and d
9b20: 65 76 65 6c 6f 70 65 72 20 66 69 6c 65 73 2e 0d eveloper files..
9b30: 0a 20 20 2a 20 20 45 78 74 72 61 63 74 20 74 6f . * Extract to
9b40: 20 3c 73 74 72 6f 6e 67 3e 2f 75 73 72 2f 69 34 <strong>/usr/i4
9b50: 38 36 2d 6d 69 6e 67 77 33 32 3c 2f 73 74 72 6f 86-mingw32</stro
9b60: 6e 67 3e 20 62 79 3a 20 73 75 20 74 6f 20 72 6f ng> by: su to ro
9b70: 6f 74 0d 0a 20 20 2a 20 20 63 64 20 3c 73 74 72 ot.. * cd <str
9b80: 6f 6e 67 3e 2f 75 73 72 2f 69 34 38 36 2d 6d 69 ong>/usr/i486-mi
9b90: 6e 67 77 33 32 3c 2f 73 74 72 6f 6e 67 3e 0d 0a ngw32</strong>..
9ba0: 20 20 2a 20 20 75 6e 7a 69 70 20 20 7e 72 65 6e * unzip ~ren
9bb0: 65 7a 2f 44 6f 77 6e 6c 6f 61 64 73 2f 7a 6c 69 ez/Downloads/zli
9bc0: 62 2d 31 2e 32 2e 33 2d 62 69 6e 2e 7a 69 70 0d b-1.2.3-bin.zip.
9bd0: 0a 20 20 2a 20 20 75 6e 7a 69 70 20 20 7e 72 65 . * unzip ~re
9be0: 6e 65 7a 2f 44 6f 77 6e 6c 6f 61 64 73 2f 7a 6c nez/Downloads/zl
9bf0: 69 62 2d 31 2e 32 2e 33 2d 6c 69 62 2e 7a 69 70 ib-1.2.3-lib.zip
9c00: 0d 0a 20 20 2a 20 20 75 6e 7a 69 70 20 20 7e 72 .. * unzip ~r
9c10: 65 6e 65 7a 2f 44 6f 77 6e 6c 6f 61 64 73 2f 6f enez/Downloads/o
9c20: 70 65 6e 73 73 6c 2d 30 2e 39 2e 38 68 2d 31 2d penssl-0.9.8h-1-
9c30: 62 69 6e 2e 7a 69 70 0d 0a 20 20 2a 20 20 75 6e bin.zip.. * un
9c40: 7a 69 70 20 20 7e 72 65 6e 65 7a 2f 44 6f 77 6e zip ~renez/Down
9c50: 6c 6f 61 64 73 2f 6f 70 65 6e 73 73 6c 2d 30 2e loads/openssl-0.
9c60: 39 2e 38 68 2d 31 2d 6c 69 62 2e 7a 69 70 0d 0a 9.8h-1-lib.zip..
9c70: 20 20 2a 20 20 65 78 69 74 20 72 6f 6f 74 0d 0a * exit root..
9c80: 20 20 2a 20 20 64 6f 77 6e 6c 6f 61 64 20 5b 68 * download [h
9c90: 74 74 70 3a 2f 2f 77 77 77 2e 66 6f 73 73 69 6c ttp://www.fossil
9ca0: 2d 73 63 6d 2e 6f 72 67 2f 64 6f 77 6e 6c 6f 61 -scm.org/downloa
9cb0: 64 2e 68 74 6d 6c 7c 66 6f 73 73 69 6c 5d 20 66 d.html|fossil] f
9cc0: 6f 72 20 6c 69 6e 75 78 2c 20 61 6e 64 20 63 6f or linux, and co
9cd0: 70 79 20 66 6f 73 73 69 6c 20 74 6f 20 73 6f 6d py fossil to som
9ce0: 65 20 77 68 65 72 65 20 69 6e 20 79 6f 75 72 20 e where in your
9cf0: 50 41 54 48 20 64 69 72 65 63 74 6f 72 69 65 73 PATH directories
9d00: 20 6d 61 79 62 65 20 24 48 4f 4d 45 2f 62 69 6e maybe $HOME/bin
9d10: 2e 0d 0a 0d 0a 3c 68 34 3e 47 65 74 74 69 6e 67 .....<h4>Getting
9d20: 20 66 6f 73 73 69 6c 20 73 6f 75 72 63 65 20 63 fossil source c
9d30: 6f 64 65 3c 2f 68 34 3e 0d 0a 20 20 2a 20 20 63 ode</h4>.. * c
9d40: 64 20 3b 20 6d 6b 64 69 72 20 66 6f 73 73 69 6c d ; mkdir fossil
9d50: 3b 20 63 64 20 66 6f 73 73 69 6c 0d 0a 20 20 2a ; cd fossil.. *
9d60: 20 20 63 6c 6f 6e 65 20 66 6f 73 73 69 6c 20 72 clone fossil r
9d70: 65 70 6f 73 69 74 6f 72 79 2e 20 65 2e 67 2e 20 epository. e.g.
9d80: 66 6f 73 73 69 6c 20 63 6c 6f 6e 65 20 68 74 74 fossil clone htt
9d90: 70 3a 2f 2f 77 77 77 2e 66 6f 73 73 69 6c 2d 73 p://www.fossil-s
9da0: 63 6d 2e 6f 72 67 2f 20 6d 79 63 6c 6f 6e 65 2e cm.org/ myclone.
9db0: 66 6f 73 73 69 6c 0d 0a 20 20 2a 20 20 6d 6b 64 fossil.. * mkd
9dc0: 69 72 20 73 72 63 3b 20 63 64 20 73 72 63 0d 0a ir src; cd src..
9dd0: 20 20 2a 20 20 66 6f 73 73 69 6c 20 20 6f 70 65 * fossil ope
9de0: 6e 20 2e 2e 2f 6d 79 63 6c 6f 6e 65 2e 66 6f 73 n ../myclone.fos
9df0: 73 69 6c 0d 0a 0d 0a 3c 68 34 3e 43 6f 6d 70 69 sil....<h4>Compi
9e00: 6c 69 6e 67 20 66 6f 73 73 69 6c 20 73 6f 75 72 ling fossil sour
9e10: 63 65 20 63 6f 64 65 3c 2f 68 34 3e 0d 0a 20 20 ce code</h4>..
9e20: 2a 20 20 49 66 20 79 6f 75 20 77 61 6e 74 20 3c * If you want <
9e30: 73 74 72 6f 6e 67 3e 68 74 74 70 73 3c 2f 73 74 strong>https</st
9e40: 72 6f 6e 67 3e 20 73 75 70 70 6f 72 74 73 0d 0a rong> supports..
9e50: 20 20 20 20 20 3c 75 6c 3e 3c 6c 69 3e 43 68 61 <ul><li>Cha
9e60: 6e 67 65 20 4d 61 6b 65 66 69 6c 65 2e 77 33 32 nge Makefile.w32
9e70: 2e 20 43 68 61 6e 67 65 20 74 68 65 20 6c 69 6e . Change the lin
9e80: 65 20 22 4c 49 42 20 2b 3d 20 2d 6c 63 72 79 70 e "LIB += -lcryp
9e90: 74 6f 20 2d 6c 73 73 6c 22 20 74 6f 20 22 4c 49 to -lssl" to "LI
9ea0: 42 20 3d 20 2d 6c 73 73 6c 20 2d 6c 63 72 79 70 B = -lssl -lcryp
9eb0: 74 6f 20 2d 6c 67 64 69 33 32 20 2d 6c 6d 69 6e to -lgdi32 -lmin
9ec0: 67 77 65 78 20 2d 6c 7a 20 2d 6c 77 73 32 5f 33 gwex -lz -lws2_3
9ed0: 32 22 2e 3c 2f 6c 69 3e 0d 0a 20 20 20 20 20 3c 2".</li>.. <
9ee0: 6c 69 3e 6d 61 6b 65 20 2d 66 20 4d 61 6b 65 66 li>make -f Makef
9ef0: 69 6c 65 2e 77 33 32 20 54 43 43 3d 22 69 34 38 ile.w32 TCC="i48
9f00: 36 2d 6d 69 6e 67 77 33 32 2d 67 63 63 20 2d 4f 6-mingw32-gcc -O
9f10: 73 20 2d 57 61 6c 6c 20 20 2d 44 46 4f 53 53 49 s -Wall -DFOSSI
9f20: 4c 5f 49 31 38 4e 3d 30 20 20 2d 4c 2f 75 73 72 L_I18N=0 -L/usr
9f30: 2f 69 34 38 36 2d 6d 69 6e 67 77 33 32 2f 6c 69 /i486-mingw32/li
9f40: 62 20 2d 49 2f 75 73 72 2f 69 34 38 36 2d 6d 69 b -I/usr/i486-mi
9f50: 6e 67 77 33 32 2f 69 6e 63 6c 75 64 65 20 2d 44 ngw32/include -D
9f60: 46 4f 53 53 49 4c 5f 45 4e 41 42 4c 45 5f 53 53 FOSSIL_ENABLE_SS
9f70: 4c 3d 31 22 20 46 4f 53 53 49 4c 5f 45 4e 41 42 L=1" FOSSIL_ENAB
9f80: 4c 45 5f 53 53 4c 3d 31 3c 2f 6c 69 3e 20 3c 2f LE_SSL=1</li> </
9f90: 75 6c 3e 0d 0a 20 20 2a 20 20 20 65 6c 73 65 20 ul>.. * else
9fa0: 6d 61 6b 65 20 2d 66 20 4d 61 6b 65 66 69 6c 65 make -f Makefile
9fb0: 2e 77 33 32 20 54 43 43 3d 22 69 34 38 36 2d 6d .w32 TCC="i486-m
9fc0: 69 6e 67 77 33 32 2d 67 63 63 20 2d 4f 73 20 2d ingw32-gcc -Os -
9fd0: 57 61 6c 6c 20 20 2d 44 46 4f 53 53 49 4c 5f 49 Wall -DFOSSIL_I
9fe0: 31 38 4e 3d 30 20 20 2d 4c 2f 75 73 72 2f 69 34 18N=0 -L/usr/i4
9ff0: 38 36 2d 6d 69 6e 67 77 33 32 2f 6c 69 62 20 2d 86-mingw32/lib -
a000: 49 2f 75 73 72 2f 69 34 38 36 2d 6d 69 6e 67 77 I/usr/i486-mingw
a010: 33 32 2f 69 6e 63 6c 75 64 65 20 22 0d 0a 0d 0a 32/include "....
a020: 3c 68 34 3e 44 69 73 74 72 69 62 75 74 69 6f 6e <h4>Distribution
a030: 20 74 68 65 20 63 72 6f 73 73 20 63 6f 6d 70 69 the cross compi
a040: 6c 65 64 20 66 6f 73 73 69 6c 2e 65 78 65 3c 2f led fossil.exe</
a050: 68 34 3e 0d 0a 42 65 63 61 75 73 65 20 79 6f 75 h4>..Because you
a060: 20 68 61 76 65 20 6c 69 6e 6b 65 64 20 61 67 61 have linked aga
a070: 69 6e 73 74 20 7a 6c 69 62 20 61 6e 64 20 6d 61 inst zlib and ma
a080: 79 62 65 20 73 73 6c 20 79 6f 75 20 6e 65 65 64 ybe ssl you need
a090: 20 74 6f 20 69 6e 63 6c 75 64 65 20 66 72 6f 6d to include from
a0a0: 20 3c 73 74 72 6f 6e 67 3e 2f 75 73 72 2f 69 34 <strong>/usr/i4
a0b0: 38 36 2d 6d 69 6e 67 77 33 32 2f 62 69 6e 3c 2f 86-mingw32/bin</
a0c0: 73 74 72 6f 6e 67 3e 20 7a 6c 69 62 31 2e 64 6c strong> zlib1.dl
a0d0: 6c 20 61 6e 64 2c 20 6f 70 74 69 6f 6e 61 6c 2c l and, optional,
a0e0: 20 6c 69 62 73 73 6c 33 32 2e 64 6c 6c 20 28 61 libssl32.dll (a
a0f0: 6e 64 20 6d 61 79 62 65 20 61 6c 73 6f 20 6c 69 nd maybe also li
a100: 62 65 61 79 33 32 2e 64 6c 6c 29 0d 0a 0d 0a 3c beay32.dll)....<
a110: 68 34 3e 74 65 73 74 69 6e 67 20 74 68 65 20 63 h4>testing the c
a120: 72 6f 73 73 20 63 6f 6d 70 69 6c 65 64 20 66 6f ross compiled fo
a130: 73 73 69 6c 2e 65 78 65 3c 2f 68 34 3e 0d 0a 20 ssil.exe</h4>..
a140: 20 2a 20 20 63 6f 70 79 20 66 6f 73 73 69 6c 2e * copy fossil.
a150: 65 78 65 20 61 6e 64 20 74 68 65 20 64 6c 6c 27 exe and the dll'
a160: 73 20 74 6f 20 61 20 77 69 6e 64 6f 77 73 20 73 s to a windows s
a170: 79 73 74 65 6d 2e 20 46 6f 72 20 74 65 73 74 69 ystem. For testi
a180: 6e 67 20 70 75 72 70 6f 73 65 20 61 6c 6c 20 69 ng purpose all i
a190: 6e 20 6f 6e 65 20 64 69 72 65 63 74 6f 72 79 2e n one directory.
a1a0: 20 46 6f 72 20 70 72 6f 64 75 63 74 69 6f 6e 20 For production
a1b0: 75 73 65 20 61 20 64 69 72 65 63 74 6f 72 79 20 use a directory
a1c0: 69 6e 20 79 6f 75 72 20 50 41 54 48 0d 0a 20 20 in your PATH..
a1d0: 2a 20 20 66 6f 73 73 69 6c 20 63 6c 6f 6e 65 20 * fossil clone
a1e0: 68 74 74 70 3a 2f 2f 77 77 77 2e 66 6f 73 73 69 http://www.fossi
a1f0: 6c 2d 73 63 6d 2e 6f 72 67 2f 20 68 74 74 70 2e l-scm.org/ http.
a200: 66 6f 73 73 69 6c 0d 0a 20 20 2a 20 20 49 66 20 fossil.. * If
a210: 69 74 20 68 61 73 20 3c 73 74 72 6f 6e 67 3e 68 it has <strong>h
a220: 74 74 70 73 3c 2f 73 74 72 6f 6e 67 3e 20 73 75 ttps</strong> su
a230: 70 70 6f 72 74 20 74 68 65 6e 20 66 6f 73 73 69 pport then fossi
a240: 6c 20 63 6c 6f 6e 65 20 68 74 74 70 73 3a 2f 2f l clone https://
a250: 77 77 77 2e 66 6f 73 73 69 6c 2d 73 63 6d 2e 6f www.fossil-scm.o
a260: 72 67 2f 20 68 74 74 70 73 2e 66 6f 73 73 69 6c rg/ https.fossil
a270: 0d 0a 0d 0a 0d 0a 0d 0a 0d 0a 0d 0a 0d 0a 0d 0a ................
a280: 0d 0a 0d 0a 0d 0a 3c 61 20 6e 61 6d 65 3d 22 77 ......<a name="w
a290: 79 73 69 77 69 67 22 3e 3c 68 32 3e 4a 61 76 61 ysiwig"><h2>Java
a2a0: 73 63 72 69 70 74 20 48 54 4d 4c 20 57 59 53 49 script HTML WYSI
a2b0: 57 59 47 20 65 64 69 74 6f 72 20 63 6f 6e 74 72 WYG editor contr
a2c0: 6f 6c 3c 2f 68 32 3e 3c 2f 61 3e 0d 0a 3c 68 33 ol</h2></a>..<h3
a2d0: 3e 4d 6f 74 69 76 61 74 69 6f 6e 3c 2f 68 33 3e >Motivation</h3>
a2e0: 0d 0a 20 20 2a 20 20 59 6f 75 20 77 61 6e 74 20 .. * You want
a2f0: 74 6f 20 65 64 69 74 20 74 68 65 20 77 69 6b 69 to edit the wiki
a300: 20 70 61 67 65 73 20 77 69 74 68 20 61 20 6e 69 pages with a ni
a310: 63 65 20 65 64 69 74 6f 72 20 63 6f 6d 70 6f 6e ce editor compon
a320: 65 6e 74 2c 20 69 6e 73 74 65 61 64 20 6f 66 20 ent, instead of
a330: 75 73 69 6e 67 20 70 6c 61 69 6e 20 48 54 4d 4c using plain HTML
a340: 2e 0d 0a 0d 0a 3c 68 33 3e 50 72 6f 62 6c 65 6d .....<h3>Problem
a350: 3c 2f 68 33 3e 0d 0a 46 6f 73 73 69 6c 20 62 79 </h3>..Fossil by
a360: 20 69 74 73 65 6c 66 20 64 6f 65 73 6e 27 74 20 itself doesn't
a370: 73 75 70 70 6f 72 74 20 69 74 2e 0d 0a 0d 0a 3c support it.....<
a380: 68 33 3e 53 6f 6c 75 74 69 6f 6e 3c 2f 68 33 3e h3>Solution</h3>
a390: 0d 0a 54 68 65 72 65 20 61 72 65 20 70 75 72 65 ..There are pure
a3a0: 20 6a 61 76 61 73 63 72 69 70 74 20 65 64 69 74 javascript edit
a3b0: 6f 72 20 63 6f 6d 70 6f 6e 65 6e 74 73 20 74 68 or components th
a3c0: 61 74 20 63 61 6e 20 62 65 20 75 73 65 64 20 66 at can be used f
a3d0: 6f 72 20 74 68 69 73 20 74 61 73 6b 2e 0d 0a 54 or this task...T
a3e0: 68 65 20 73 6f 75 72 63 65 20 66 6f 72 20 74 68 he source for th
a3f0: 65 20 65 64 69 74 6f 72 20 63 6f 6d 70 6f 6e 65 e editor compone
a400: 6e 74 20 69 73 20 61 64 64 65 64 20 74 6f 20 74 nt is added to t
a410: 68 65 20 72 65 70 6f 73 69 74 6f 72 79 2e 20 54 he repository. T
a420: 68 65 20 68 74 6d 6c 20 68 65 61 64 65 72 20 6f he html header o
a430: 72 20 66 6f 6f 74 65 72 20 69 73 20 70 72 65 70 r footer is prep
a440: 61 72 65 64 20 74 6f 20 69 6e 63 6c 75 64 65 20 ared to include
a450: 61 20 6a 61 76 61 73 63 72 69 70 74 20 66 69 6c a javascript fil
a460: 65 20 61 6e 64 2f 6f 72 20 61 20 43 53 53 2e 0d e and/or a CSS..
a470: 0a 3c 62 72 3e 0d 0a 54 68 65 73 65 20 74 77 6f .<br>..These two
a480: 20 74 69 70 73 20 61 72 65 20 66 72 6f 6d 20 74 tips are from t
a490: 68 65 20 6d 61 69 6c 69 6e 67 20 6c 69 73 74 3a he mailing list:
a4a0: 0d 0a 52 65 6e 65 20 64 65 20 5a 77 61 72 74 20 ..Rene de Zwart
a4b0: 33 30 2e 20 4f 63 74 2e 20 32 30 30 39 0d 0a 0d 30. Oct. 2009...
a4c0: 0a 3c 61 20 6e 61 6d 65 3d 22 74 69 6e 79 6d 63 .<a name="tinymc
a4d0: 65 22 3e 3c 68 34 3e 54 69 6e 79 4d 43 45 3c 2f e"><h4>TinyMCE</
a4e0: 68 34 3e 3c 2f 61 3e 0d 0a 3c 70 3e 0d 0a 53 6f h4></a>..<p>..So
a4f0: 75 72 63 65 3a 20 3c 61 20 68 72 65 66 3d 22 68 urce: <a href="h
a500: 74 74 70 3a 2f 2f 74 69 6e 79 6d 63 65 2e 6d 6f ttp://tinymce.mo
a510: 78 69 65 63 6f 64 65 2e 63 6f 6d 2f 22 3e 20 54 xiecode.com/"> T
a520: 69 6e 79 4d 43 45 20 3c 2f 61 3e 0d 0a 3c 2f 70 inyMCE </a>..</p
a530: 3e 0d 0a 3c 68 35 3e 20 45 78 61 6d 70 6c 65 3c >..<h5> Example<
a540: 2f 68 35 3e 0d 0a 3c 70 72 65 20 63 6c 61 73 73 /h5>..<pre class
a550: 3d 22 76 65 72 62 61 74 69 6d 22 3e 0d 0a 20 20 ="verbatim">..
a560: 20 20 6d 6b 64 69 72 20 74 69 6e 79 0d 0a 20 20 mkdir tiny..
a570: 20 20 6d 6b 64 69 72 20 74 69 6e 79 2f 6a 61 76 mkdir tiny/jav
a580: 61 73 63 72 69 70 74 0d 0a 20 20 20 20 66 6f 73 ascript.. fos
a590: 73 69 6c 20 6e 65 77 20 74 69 6e 79 6d 63 65 2e sil new tinymce.
a5a0: 66 73 6c 0d 0a 20 20 20 20 66 6f 73 73 69 6c 20 fsl.. fossil
a5b0: 75 69 20 74 69 6e 79 6d 63 65 2e 66 73 6c 20 7b ui tinymce.fsl {
a5c0: 63 6f 6e 66 69 67 75 72 65 20 74 68 65 20 70 72 configure the pr
a5d0: 6f 6a 65 63 74 29 0d 0a 20 20 20 20 64 6f 77 6e oject).. down
a5e0: 6c 6f 61 64 20 74 69 6e 79 6d 63 65 0d 0a 20 20 load tinymce..
a5f0: 20 20 75 6e 7a 69 70 20 69 6e 20 74 69 6e 79 2f unzip in tiny/
a600: 6a 61 76 61 73 63 72 69 70 74 0d 0a 20 20 20 20 javascript..
a610: 63 64 20 74 69 6e 79 0d 0a 20 20 20 20 66 6f 73 cd tiny.. fos
a620: 73 69 6c 20 6f 70 65 6e 20 2e 2e 2f 74 69 6e 79 sil open ../tiny
a630: 6d 63 65 2e 66 73 6c 0d 0a 20 20 20 20 66 6f 73 mce.fsl.. fos
a640: 73 69 6c 20 61 64 64 20 6a 61 76 61 73 63 72 69 sil add javascri
a650: 70 74 0d 0a 20 20 20 20 66 6f 73 73 69 6c 20 63 pt.. fossil c
a660: 6f 6d 6d 69 74 20 2d 6d 20 22 61 64 64 65 64 20 ommit -m "added
a670: 74 69 6d 79 6d 63 65 20 74 6f 20 74 68 65 20 70 timymce to the p
a680: 72 6f 6a 65 63 74 22 0d 0a 20 20 20 20 66 6f 73 roject".. fos
a690: 73 69 6c 20 75 69 0d 0a 3c 2f 70 72 65 3e 0d 0a sil ui..</pre>..
a6a0: 53 65 6c 65 63 74 20 61 64 6d 69 6e 2f 68 65 61 Select admin/hea
a6b0: 64 65 72 73 20 61 64 64 20 61 66 74 65 72 20 74 ders add after t
a6c0: 68 65 20 26 6c 74 3b 2f 6c 69 6e 6b 26 67 74 3b he </link>
a6d0: 0d 0a 3c 70 72 65 20 63 6c 61 73 73 3d 22 76 65 ..<pre class="ve
a6e0: 72 62 61 74 69 6d 22 3e 0d 0a 20 26 6c 74 3b 74 rbatim">.. <t
a6f0: 68 31 26 67 74 3b 0d 0a 20 20 20 69 66 20 7b 20 h1>.. if {
a700: 22 74 6b 74 6e 65 77 22 20 65 71 20 24 63 75 72 "tktnew" eq $cur
a710: 72 65 6e 74 5f 70 61 67 65 20 0d 0a 20 20 20 09 rent_page .. .
a720: 7c 7c 20 22 74 6b 74 65 64 69 74 22 20 65 71 20 || "tktedit" eq
a730: 24 63 75 72 72 65 6e 74 5f 70 61 67 65 20 0d 0a $current_page ..
a740: 20 20 20 09 7c 7c 20 22 77 69 6b 69 65 64 69 74 .|| "wikiedit
a750: 22 20 65 71 20 24 63 75 72 72 65 6e 74 5f 70 61 " eq $current_pa
a760: 67 65 20 0d 0a 20 20 20 09 7c 7c 20 22 77 69 6b ge .. .|| "wik
a770: 69 61 70 70 65 6e 64 22 20 65 71 20 24 63 75 72 iappend" eq $cur
a780: 72 65 6e 74 5f 70 61 67 65 20 7d 20 7b 0d 0a 20 rent_page } {..
a790: 20 20 20 20 20 20 68 74 6d 6c 20 22 3c 73 63 72 html "<scr
a7a0: 69 70 74 20 74 79 70 65 3d 27 74 65 78 74 2f 6a ipt type='text/j
a7b0: 61 76 61 73 63 72 69 70 74 27 5c 6e 22 0d 0a 20 avascript'\n"..
a7c0: 20 20 20 20 20 20 68 74 6d 6c 20 22 73 72 63 3d html "src=
a7d0: 27 2f 64 6f 63 2f 74 69 70 2f 6a 61 76 61 73 63 '/doc/tip/javasc
a7e0: 72 69 70 74 2f 74 69 6e 79 6d 63 65 2f 6a 73 63 ript/tinymce/jsc
a7f0: 72 69 70 74 73 2f 74 69 6e 79 5f 6d 63 65 2f 74 ripts/tiny_mce/t
a800: 69 6e 79 5f 6d 63 65 2e 6a 73 27 3e 5c 6e 22 0d iny_mce.js'>\n".
a810: 0a 20 20 20 20 20 20 20 68 74 6d 6c 20 22 3c 2f . html "</
a820: 73 63 72 69 70 74 3e 5c 6e 22 0d 0a 20 20 20 20 script>\n"..
a830: 20 20 20 68 74 6d 6c 20 22 20 3c 73 63 72 69 70 html " <scrip
a840: 74 20 74 79 70 65 3d 27 74 65 78 74 2f 6a 61 76 t type='text/jav
a850: 61 73 63 72 69 70 74 27 3e 5c 6e 22 0d 0a 20 20 ascript'>\n"..
a860: 20 20 20 20 20 70 75 74 73 20 22 74 69 6e 79 4d puts "tinyM
a870: 43 45 2e 69 6e 69 74 28 7b 20 6d 6f 64 65 20 3a CE.init({ mode :
a880: 20 27 73 70 65 63 69 66 69 63 5f 74 65 78 74 61 'specific_texta
a890: 72 65 61 73 27 20 2c 20 65 64 69 74 6f 72 5f 73 reas' , editor_s
a8a0: 65 6c 65 63 74 6f 72 20 3a 20 27 77 69 6b 69 65 elector : 'wikie
a8b0: 64 69 74 27 2c 20 74 68 65 6d 65 3a 20 27 61 64 dit', theme: 'ad
a8c0: 76 61 6e 63 65 64 27 2c 77 69 64 74 68 20 3a 20 vanced',width :
a8d0: 27 39 30 25 27 20 7d 20 29 3b 22 0d 0a 20 20 20 '90%' } );"..
a8e0: 20 20 20 20 68 74 6d 6c 20 22 3c 2f 73 63 72 69 html "</scri
a8f0: 70 74 3e 5c 6e 22 0d 0a 20 20 20 7d 0d 0a 26 6c pt>\n".. }..&l
a900: 74 3b 2f 74 68 31 26 67 74 3b 0d 0a 3c 2f 70 72 t;/th1>..</pr
a910: 65 3e 0d 0a 61 6e 64 20 73 61 76 65 2e 0d 0a 3c e>..and save...<
a920: 61 20 6e 61 6d 65 3d 22 6d 61 72 6b 69 74 75 70 a name="markitup
a930: 22 3e 3c 68 33 3e 6d 61 72 6b 69 74 75 70 21 3c "><h3>markitup!<
a940: 2f 68 33 3e 3c 2f 61 3e 0d 0a 3c 70 3e 0d 0a 53 /h3></a>..<p>..S
a950: 6f 75 72 63 65 3a 20 3c 61 20 68 72 65 66 3d 22 ource: <a href="
a960: 68 74 74 70 3a 2f 2f 6d 61 72 6b 69 74 75 70 2e http://markitup.
a970: 6a 61 79 73 61 6c 76 61 74 2e 63 6f 6d 2f 68 6f jaysalvat.com/ho
a980: 6d 65 2f 22 3e 20 4d 61 72 6b 69 74 75 70 20 3c me/"> Markitup <
a990: 2f 61 3e 0d 0a 3c 2f 70 3e 0d 0a 3c 68 35 3e 20 /a>..</p>..<h5>
a9a0: 45 78 61 6d 70 6c 65 3c 2f 68 35 3e 0d 0a 3c 70 Example</h5>..<p
a9b0: 72 65 20 63 6c 61 73 73 3d 22 76 65 72 62 61 74 re class="verbat
a9c0: 69 6d 22 3e 0d 0a 20 20 20 20 6d 6b 64 69 72 20 im">.. mkdir
a9d0: 6d 61 72 6b 69 74 75 70 0d 0a 20 20 20 20 6d 6b markitup.. mk
a9e0: 64 69 72 20 6d 61 72 6b 69 74 75 70 2f 6a 61 76 dir markitup/jav
a9f0: 61 73 63 72 69 70 74 0d 0a 20 20 20 20 66 6f 73 ascript.. fos
aa00: 73 69 6c 20 6e 65 77 20 6d 61 72 6b 69 74 75 70 sil new markitup
aa10: 2e 66 73 6c 0d 0a 20 20 20 20 66 6f 73 73 69 6c .fsl.. fossil
aa20: 20 75 69 20 6d 61 72 6b 69 74 75 70 2e 66 73 6c ui markitup.fsl
aa30: 20 7b 63 6f 6e 66 69 67 75 72 65 20 74 68 65 20 {configure the
aa40: 70 72 6f 6a 65 63 74 29 0d 0a 20 20 20 20 64 6f project).. do
aa50: 77 6e 6c 6f 61 64 20 6d 61 72 6b 69 74 75 70 20 wnload markitup
aa60: 61 6e 64 20 6a 71 75 65 72 79 0d 0a 20 20 20 20 and jquery..
aa70: 75 6e 7a 69 70 20 69 6e 20 6d 61 72 6b 69 74 75 unzip in markitu
aa80: 70 2f 6a 61 76 61 73 63 72 69 70 74 2c 20 63 64 p/javascript, cd
aa90: 20 6c 61 74 65 73 74 2c 20 6d 76 20 2a 20 2e 2e latest, mv * ..
aaa0: 2c 20 72 6d 64 69 72 20 6c 61 74 65 73 74 0d 0a , rmdir latest..
aab0: 20 20 20 20 63 6f 70 79 20 6a 71 75 65 72 79 2d copy jquery-
aac0: 2e 2e 2e 2e 6a 73 20 74 6f 20 6a 61 76 61 73 63 ....js to javasc
aad0: 72 69 70 74 2f 6a 71 75 65 72 79 2e 6a 73 0d 0a ript/jquery.js..
aae0: 20 20 20 20 63 64 20 6d 61 72 6b 69 74 75 70 0d cd markitup.
aaf0: 0a 20 20 20 20 66 6f 73 73 69 6c 20 6f 70 65 6e . fossil open
ab00: 20 2e 2e 2f 6d 61 72 6b 69 74 75 70 2e 66 73 6c ../markitup.fsl
ab10: 0d 0a 20 20 20 20 66 6f 73 73 69 6c 20 61 64 64 .. fossil add
ab20: 20 6a 61 76 61 73 63 72 69 70 74 0d 0a 20 20 20 javascript..
ab30: 20 66 6f 73 73 69 6c 20 63 6f 6d 6d 69 74 20 2d fossil commit -
ab40: 6d 20 22 61 64 64 65 64 20 6d 61 72 6b 69 74 75 m "added markitu
ab50: 70 20 61 6e 20 6a 71 75 65 72 79 20 74 6f 20 74 p an jquery to t
ab60: 68 65 20 70 72 6f 6a 65 63 74 22 0d 0a 20 20 20 he project"..
ab70: 20 66 6f 73 73 69 6c 20 75 69 0d 0a 3c 2f 70 72 fossil ui..</pr
ab80: 65 3e 0d 0a 73 65 6c 65 63 74 20 61 64 6d 69 6e e>..select admin
ab90: 2f 68 65 61 64 65 72 73 20 61 64 64 20 61 66 74 /headers add aft
aba0: 65 72 20 74 68 65 20 3c 2f 6c 69 6e 6b 3e 20 70 er the </link> p
abb0: 75 74 0d 0a 3c 70 72 65 20 63 6c 61 73 73 3d 22 ut..<pre class="
abc0: 76 65 72 62 61 74 69 6d 22 3e 0d 0a 20 20 20 20 verbatim">..
abd0: 26 6c 74 3b 6c 69 6e 6b 20 72 65 6c 3d 22 73 74 <link rel="st
abe0: 79 6c 65 73 68 65 65 74 22 20 74 79 70 65 3d 22 ylesheet" type="
abf0: 74 65 78 74 2f 63 73 73 22 20 68 72 65 66 3d 22 text/css" href="
ac00: 2f 64 6f 63 2f 74 69 70 2f 6a 61 76 61 73 63 72 /doc/tip/javascr
ac10: 69 70 74 2f 6d 61 72 6b 69 74 75 70 2f 73 6b 69 ipt/markitup/ski
ac20: 6e 73 2f 6d 61 72 6b 69 74 75 70 2f 73 74 79 6c ns/markitup/styl
ac30: 65 2e 63 73 73 22 20 2f 26 67 74 3b 0d 0a 20 20 e.css" />..
ac40: 20 20 26 6c 74 3b 6c 69 6e 6b 20 72 65 6c 3d 22 <link rel="
ac50: 73 74 79 6c 65 73 68 65 65 74 22 20 74 79 70 65 stylesheet" type
ac60: 3d 22 74 65 78 74 2f 63 73 73 22 20 68 72 65 66 ="text/css" href
ac70: 3d 22 2f 64 6f 63 2f 74 69 70 2f 6a 61 76 61 73 ="/doc/tip/javas
ac80: 63 72 69 70 74 2f 6d 61 72 6b 69 74 75 70 2f 73 cript/markitup/s
ac90: 65 74 73 2f 64 65 66 61 75 6c 74 2f 73 74 79 6c ets/default/styl
aca0: 65 2e 63 73 73 22 20 2f 26 67 74 3b 0d 0a 20 20 e.css" />..
acb0: 20 20 26 6c 74 3b 73 63 72 69 70 74 20 74 79 70 <script typ
acc0: 65 3d 22 74 65 78 74 2f 6a 61 76 61 73 63 72 69 e="text/javascri
acd0: 70 74 22 20 73 72 63 3d 22 2f 64 6f 63 2f 74 69 pt" src="/doc/ti
ace0: 70 2f 6a 61 76 61 73 63 72 69 70 74 2f 6a 71 75 p/javascript/jqu
acf0: 65 72 79 2e 6a 73 22 26 67 74 3b 0d 0a 20 20 20 ery.js">..
ad00: 20 26 6c 74 3b 2f 73 63 72 69 70 74 26 67 74 3b </script>
ad10: 0d 0a 20 20 20 20 26 6c 74 3b 73 63 72 69 70 74 .. <script
ad20: 20 74 79 70 65 3d 22 74 65 78 74 2f 6a 61 76 61 type="text/java
ad30: 73 63 72 69 70 74 22 20 73 72 63 3d 22 2f 64 6f script" src="/do
ad40: 63 2f 74 69 70 2f 6a 61 76 61 73 63 72 69 70 74 c/tip/javascript
ad50: 2f 6d 61 72 6b 69 74 75 70 2f 6a 71 75 65 72 79 /markitup/jquery
ad60: 2e 6d 61 72 6b 69 74 75 70 2e 6a 73 22 26 67 74 .markitup.js">
ad70: 3b 0d 0a 20 20 20 20 26 6c 74 3b 2f 73 63 72 69 ;.. </scri
ad80: 70 74 26 67 74 3b 0d 0a 3c 2f 70 72 65 3e 0d 0a pt>..</pre>..
ad90: 0d 0a 61 6e 64 20 73 61 76 65 0d 0a 73 65 6c 65 ..and save..sele
ada0: 63 74 20 61 64 6d 69 6e 2f 66 6f 6f 74 65 72 20 ct admin/footer
adb0: 61 64 64 20 61 62 6f 76 65 20 74 68 65 20 66 69 add above the fi
adc0: 72 73 74 20 6c 69 6e 65 0d 0a 0d 0a 3c 70 72 65 rst line....<pre
add0: 20 63 6c 61 73 73 3d 22 76 65 72 62 61 74 69 6d class="verbatim
ade0: 22 3e 0d 0a 20 20 20 20 26 6c 74 3b 73 63 72 69 ">.. <scri
adf0: 70 74 20 74 79 70 65 3d 27 74 65 78 74 2f 6a 61 pt type='text/ja
ae00: 76 61 73 63 72 69 70 74 27 26 67 74 3b 0d 0a 20 vascript'>..
ae10: 20 20 20 20 20 76 61 72 20 6d 20 3d 20 64 6f 63 var m = doc
ae20: 75 6d 65 6e 74 2e 67 65 74 45 6c 65 6d 65 6e 74 ument.getElement
ae30: 73 42 79 54 61 67 4e 61 6d 65 28 27 74 65 78 74 sByTagName('text
ae40: 61 72 65 61 27 29 0d 0a 20 20 20 20 20 20 76 61 area').. va
ae50: 72 20 6c 20 3d 20 6d 2e 6c 65 6e 67 74 68 0d 0a r l = m.length..
ae60: 20 20 20 20 20 20 76 61 72 20 6e 0d 0a 20 20 20 var n..
ae70: 20 20 20 3c 6e 6f 77 69 6b 69 3e 76 61 72 20 6d <nowiki>var m
ae80: 79 53 65 74 74 69 6e 67 73 20 3d 20 7b 0d 0a 09 ySettings = {...
ae90: 6e 61 6d 65 53 70 61 63 65 3a 20 20 20 20 20 20 nameSpace:
aea0: 20 22 68 74 6d 6c 22 2c 20 2f 2f 20 55 73 65 66 "html", // Usef
aeb0: 75 6c 20 74 6f 20 70 72 65 76 65 6e 74 20 6d 75 ul to prevent mu
aec0: 6c 74 69 2d 69 6e 73 74 61 6e 63 65 73 20 43 53 lti-instances CS
aed0: 53 20 63 6f 6e 66 6c 69 63 74 0d 0a 09 6f 6e 53 S conflict...onS
aee0: 68 69 66 74 45 6e 74 65 72 3a 20 20 20 20 7b 6b hiftEnter: {k
aef0: 65 65 70 44 65 66 61 75 6c 74 3a 66 61 6c 73 65 eepDefault:false
af00: 2c 20 72 65 70 6c 61 63 65 57 69 74 68 3a 27 26 , replaceWith:'&
af10: 6c 74 3b 62 72 20 2f 26 67 74 3b 5c 6e 27 7d 2c lt;br />\n'},
af20: 0d 0a 09 6f 6e 43 74 72 6c 45 6e 74 65 72 3a 20 ...onCtrlEnter:
af30: 20 20 20 20 7b 6b 65 65 70 44 65 66 61 75 6c 74 {keepDefault
af40: 3a 66 61 6c 73 65 2c 20 6f 70 65 6e 57 69 74 68 :false, openWith
af50: 3a 27 5c 6e 26 6c 74 3b 70 26 67 74 3b 27 2c 20 :'\n<p>',
af60: 63 6c 6f 73 65 57 69 74 68 3a 27 26 6c 74 3b 2f closeWith:'</
af70: 70 26 67 74 3b 5c 6e 27 7d 2c 0d 0a 09 6f 6e 54 p>\n'},...onT
af80: 61 62 3a 20 20 20 20 20 20 20 20 20 20 20 7b 6b ab: {k
af90: 65 65 70 44 65 66 61 75 6c 74 3a 66 61 6c 73 65 eepDefault:false
afa0: 2c 20 6f 70 65 6e 57 69 74 68 3a 27 20 20 20 20 , openWith:'
afb0: 20 27 7d 2c 0d 0a 09 6d 61 72 6b 75 70 53 65 74 '},...markupSet
afc0: 3a 20 20 5b 0d 0a 09 20 20 20 20 7b 6e 61 6d 65 : [... {name
afd0: 3a 27 48 65 61 64 69 6e 67 20 31 27 2c 20 6b 65 :'Heading 1', ke
afe0: 79 3a 27 31 27 2c 20 6f 70 65 6e 57 69 74 68 3a y:'1', openWith:
aff0: 27 26 6c 74 3b 68 31 28 21 28 20 63 6c 61 73 73 '<h1(!( class
b000: 3d 22 5b 21 5b 43 6c 61 73 73 5d 21 5d 22 29 21 ="[![Class]!]")!
b010: 29 26 67 74 3b 27 2c 20 63 6c 6f 73 65 57 69 74 )>', closeWit
b020: 68 3a 27 26 6c 74 3b 2f 68 31 26 67 74 3b 27 2c h:'</h1>',
b030: 20 70 6c 61 63 65 48 6f 6c 64 65 72 3a 27 59 6f placeHolder:'Yo
b040: 75 72 20 74 69 74 6c 65 20 68 65 72 65 2e 2e 2e ur title here...
b050: 27 20 7d 2c 0d 0a 09 20 20 20 20 7b 6e 61 6d 65 ' },... {name
b060: 3a 27 48 65 61 64 69 6e 67 20 32 27 2c 20 6b 65 :'Heading 2', ke
b070: 79 3a 27 32 27 2c 20 6f 70 65 6e 57 69 74 68 3a y:'2', openWith:
b080: 27 26 6c 74 3b 68 32 28 21 28 20 63 6c 61 73 73 '<h2(!( class
b090: 3d 22 5b 21 5b 43 6c 61 73 73 5d 21 5d 22 29 21 ="[![Class]!]")!
b0a0: 29 26 67 74 3b 27 2c 20 63 6c 6f 73 65 57 69 74 )>', closeWit
b0b0: 68 3a 27 26 6c 74 3b 2f 68 32 26 67 74 3b 27 2c h:'</h2>',
b0c0: 20 70 6c 61 63 65 48 6f 6c 64 65 72 3a 27 59 6f placeHolder:'Yo
b0d0: 75 72 20 74 69 74 6c 65 20 68 65 72 65 2e 2e 2e ur title here...
b0e0: 27 20 7d 2c 0d 0a 09 20 20 20 20 7b 6e 61 6d 65 ' },... {name
b0f0: 3a 27 48 65 61 64 69 6e 67 20 33 27 2c 20 6b 65 :'Heading 3', ke
b100: 79 3a 27 33 27 2c 20 6f 70 65 6e 57 69 74 68 3a y:'3', openWith:
b110: 27 26 6c 74 3b 68 33 28 21 28 20 63 6c 61 73 73 '<h3(!( class
b120: 3d 22 5b 21 5b 43 6c 61 73 73 5d 21 5d 22 29 21 ="[![Class]!]")!
b130: 29 26 67 74 3b 27 2c 20 63 6c 6f 73 65 57 69 74 )>', closeWit
b140: 68 3a 27 26 6c 74 3b 2f 68 33 26 67 74 3b 27 2c h:'</h3>',
b150: 20 70 6c 61 63 65 48 6f 6c 64 65 72 3a 27 59 6f placeHolder:'Yo
b160: 75 72 20 74 69 74 6c 65 20 68 65 72 65 2e 2e 2e ur title here...
b170: 27 20 7d 2c 0d 0a 09 20 20 20 20 7b 6e 61 6d 65 ' },... {name
b180: 3a 27 48 65 61 64 69 6e 67 20 34 27 2c 20 6b 65 :'Heading 4', ke
b190: 79 3a 27 34 27 2c 20 6f 70 65 6e 57 69 74 68 3a y:'4', openWith:
b1a0: 27 26 6c 74 3b 68 34 28 21 28 20 63 6c 61 73 73 '<h4(!( class
b1b0: 3d 22 5b 21 5b 43 6c 61 73 73 5d 21 5d 22 29 21 ="[![Class]!]")!
b1c0: 29 26 67 74 3b 27 2c 20 63 6c 6f 73 65 57 69 74 )>', closeWit
b1d0: 68 3a 27 26 6c 74 3b 2f 68 34 26 67 74 3b 27 2c h:'</h4>',
b1e0: 20 70 6c 61 63 65 48 6f 6c 64 65 72 3a 27 59 6f placeHolder:'Yo
b1f0: 75 72 20 74 69 74 6c 65 20 68 65 72 65 2e 2e 2e ur title here...
b200: 27 20 7d 2c 0d 0a 09 20 20 20 20 7b 6e 61 6d 65 ' },... {name
b210: 3a 27 48 65 61 64 69 6e 67 20 35 27 2c 20 6b 65 :'Heading 5', ke
b220: 79 3a 27 35 27 2c 20 6f 70 65 6e 57 69 74 68 3a y:'5', openWith:
b230: 27 26 6c 74 3b 68 35 28 21 28 20 63 6c 61 73 73 '<h5(!( class
b240: 3d 22 5b 21 5b 43 6c 61 73 73 5d 21 5d 22 29 21 ="[![Class]!]")!
b250: 29 26 67 74 3b 27 2c 20 63 6c 6f 73 65 57 69 74 )>', closeWit
b260: 68 3a 27 26 6c 74 3b 2f 68 35 26 67 74 3b 27 2c h:'</h5>',
b270: 20 70 6c 61 63 65 48 6f 6c 64 65 72 3a 27 59 6f placeHolder:'Yo
b280: 75 72 20 74 69 74 6c 65 20 68 65 72 65 2e 2e 2e ur title here...
b290: 27 20 7d 2c 0d 0a 09 20 20 20 20 7b 6e 61 6d 65 ' },... {name
b2a0: 3a 27 48 65 61 64 69 6e 67 20 36 27 2c 20 6b 65 :'Heading 6', ke
b2b0: 79 3a 27 36 27 2c 20 6f 70 65 6e 57 69 74 68 3a y:'6', openWith:
b2c0: 27 26 6c 74 3b 68 36 28 21 28 20 63 6c 61 73 73 '<h6(!( class
b2d0: 3d 22 5b 21 5b 43 6c 61 73 73 5d 21 5d 22 29 21 ="[![Class]!]")!
b2e0: 29 26 67 74 3b 27 2c 20 63 6c 6f 73 65 57 69 74 )>', closeWit
b2f0: 68 3a 27 26 6c 74 3b 2f 68 36 26 67 74 3b 27 2c h:'</h6>',
b300: 20 70 6c 61 63 65 48 6f 6c 64 65 72 3a 27 59 6f placeHolder:'Yo
b310: 75 72 20 74 69 74 6c 65 20 68 65 72 65 2e 2e 2e ur title here...
b320: 27 20 7d 2c 0d 0a 09 20 20 20 20 7b 6e 61 6d 65 ' },... {name
b330: 3a 27 50 61 72 61 67 72 61 70 68 27 2c 20 6f 70 :'Paragraph', op
b340: 65 6e 57 69 74 68 3a 27 26 6c 74 3b 70 28 21 28 enWith:'<p(!(
b350: 20 63 6c 61 73 73 3d 22 5b 21 5b 43 6c 61 73 73 class="[![Class
b360: 5d 21 5d 22 29 21 29 26 67 74 3b 27 2c 20 63 6c ]!]")!)>', cl
b370: 6f 73 65 57 69 74 68 3a 27 26 6c 74 3b 2f 70 26 oseWith:'</p&
b380: 67 74 3b 27 20 20 7d 2c 0d 0a 09 20 20 20 20 7b gt;' },... {
b390: 73 65 70 61 72 61 74 6f 72 3a 27 2d 2d 2d 2d 2d separator:'-----
b3a0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 27 20 7d 2c 0d 0a ----------' },..
b3b0: 09 20 20 20 20 7b 6e 61 6d 65 3a 27 42 6f 6c 64 . {name:'Bold
b3c0: 27 2c 20 6b 65 79 3a 27 42 27 2c 20 6f 70 65 6e ', key:'B', open
b3d0: 57 69 74 68 3a 27 26 6c 74 3b 73 74 72 6f 6e 67 With:'<strong
b3e0: 26 67 74 3b 27 2c 20 63 6c 6f 73 65 57 69 74 68 >', closeWith
b3f0: 3a 27 26 6c 74 3b 2f 73 74 72 6f 6e 67 26 67 74 :'</strong>
b400: 3b 27 20 7d 2c 0d 0a 09 20 20 20 20 7b 6e 61 6d ;' },... {nam
b410: 65 3a 27 49 74 61 6c 69 63 27 2c 20 6b 65 79 3a e:'Italic', key:
b420: 27 49 27 2c 20 6f 70 65 6e 57 69 74 68 3a 27 26 'I', openWith:'&
b430: 6c 74 3b 65 6d 26 67 74 3b 27 2c 20 63 6c 6f 73 lt;em>', clos
b440: 65 57 69 74 68 3a 27 26 6c 74 3b 2f 65 6d 26 67 eWith:'</em&g
b450: 74 3b 27 20 20 7d 2c 0d 0a 09 20 20 20 20 7b 6e t;' },... {n
b460: 61 6d 65 3a 27 53 74 72 6f 6b 65 20 74 68 72 6f ame:'Stroke thro
b470: 75 67 68 27 2c 20 6b 65 79 3a 27 53 27 2c 20 6f ugh', key:'S', o
b480: 70 65 6e 57 69 74 68 3a 27 26 6c 74 3b 64 65 6c penWith:'<del
b490: 26 67 74 3b 27 2c 20 63 6c 6f 73 65 57 69 74 68 >', closeWith
b4a0: 3a 27 26 6c 74 3b 2f 64 65 6c 26 67 74 3b 27 20 :'</del>'
b4b0: 7d 2c 0d 0a 09 20 20 20 20 7b 73 65 70 61 72 61 },... {separa
b4c0: 74 6f 72 3a 27 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d tor:'-----------
b4d0: 2d 2d 2d 2d 27 20 7d 2c 0d 0a 09 20 20 20 20 7b ----' },... {
b4e0: 6e 61 6d 65 3a 27 55 6c 27 2c 20 6f 70 65 6e 57 name:'Ul', openW
b4f0: 69 74 68 3a 27 26 6c 74 3b 75 6c 26 67 74 3b 5c ith:'<ul>\
b500: 6e 27 2c 20 63 6c 6f 73 65 57 69 74 68 3a 27 26 n', closeWith:'&
b510: 6c 74 3b 2f 75 6c 26 67 74 3b 5c 6e 27 20 7d 2c lt;/ul>\n' },
b520: 0d 0a 09 20 20 20 20 7b 6e 61 6d 65 3a 27 4f 6c ... {name:'Ol
b530: 27 2c 20 6f 70 65 6e 57 69 74 68 3a 27 26 6c 74 ', openWith:'<
b540: 3b 6f 6c 26 67 74 3b 5c 6e 27 2c 20 63 6c 6f 73 ;ol>\n', clos
b550: 65 57 69 74 68 3a 27 26 6c 74 3b 2f 6f 6c 26 67 eWith:'</ol&g
b560: 74 3b 5c 6e 27 20 7d 2c 0d 0a 09 20 20 20 20 7b t;\n' },... {
b570: 6e 61 6d 65 3a 27 4c 69 27 2c 20 6f 70 65 6e 57 name:'Li', openW
b580: 69 74 68 3a 27 26 6c 74 3b 6c 69 26 67 74 3b 27 ith:'<li>'
b590: 2c 20 63 6c 6f 73 65 57 69 74 68 3a 27 26 6c 74 , closeWith:'<
b5a0: 3b 2f 6c 69 26 67 74 3b 27 20 7d 2c 0d 0a 09 20 ;/li>' },...
b5b0: 20 20 20 7b 73 65 70 61 72 61 74 6f 72 3a 27 2d {separator:'-
b5c0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 27 20 --------------'
b5d0: 7d 2c 0d 0a 09 20 20 20 20 7b 6e 61 6d 65 3a 27 },... {name:'
b5e0: 50 69 63 74 75 72 65 27 2c 20 6b 65 79 3a 27 50 Picture', key:'P
b5f0: 27 2c 20 72 65 70 6c 61 63 65 57 69 74 68 3a 27 ', replaceWith:'
b600: 26 6c 74 3b 69 6d 67 20 73 72 63 3d 22 5b 21 5b <img src="[![
b610: 53 6f 75 72 63 65 3a 21 3a 68 74 74 70 3a 2f 2f Source:!:http://
b620: 5d 21 5d 22 20 61 6c 74 3d 22 5b 21 5b 41 6c 74 ]!]" alt="[![Alt
b630: 65 72 6e 61 74 69 76 65 20 74 65 78 74 5d 21 5d ernative text]!]
b640: 22 20 2f 26 67 74 3b 27 20 7d 2c 0d 0a 09 20 20 " />' },...
b650: 20 20 7b 6e 61 6d 65 3a 27 4c 69 6e 6b 27 2c 20 {name:'Link',
b660: 6b 65 79 3a 27 4c 27 2c 20 6f 70 65 6e 57 69 74 key:'L', openWit
b670: 68 3a 27 26 6c 74 3b 61 20 68 72 65 66 3d 22 5b h:'<a href="[
b680: 21 5b 4c 69 6e 6b 3a 21 3a 68 74 74 70 3a 2f 2f ![Link:!:http://
b690: 5d 21 5d 22 28 21 28 20 74 69 74 6c 65 3d 22 5b ]!]"(!( title="[
b6a0: 21 5b 54 69 74 6c 65 5d 21 5d 22 29 21 29 26 67 ![Title]!]")!)&g
b6b0: 74 3b 27 2c 20 63 6c 6f 73 65 57 69 74 68 3a 27 t;', closeWith:'
b6c0: 26 6c 74 3b 2f 61 26 67 74 3b 27 2c 20 70 6c 61 </a>', pla
b6d0: 63 65 48 6f 6c 64 65 72 3a 27 59 6f 75 72 20 74 ceHolder:'Your t
b6e0: 65 78 74 20 74 6f 20 6c 69 6e 6b 2e 2e 2e 27 20 ext to link...'
b6f0: 7d 2c 0d 0a 09 20 20 20 20 7b 73 65 70 61 72 61 },... {separa
b700: 74 6f 72 3a 27 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d tor:'-----------
b710: 2d 2d 2d 2d 27 20 7d 2c 0d 0a 09 20 20 20 20 7b ----' },... {
b720: 6e 61 6d 65 3a 27 43 6c 65 61 6e 27 2c 20 72 65 name:'Clean', re
b730: 70 6c 61 63 65 57 69 74 68 3a 66 75 6e 63 74 69 placeWith:functi
b740: 6f 6e 28 68 29 20 7b 20 72 65 74 75 72 6e 20 68 on(h) { return h
b750: 2e 73 65 6c 65 63 74 69 6f 6e 2e 72 65 70 6c 61 .selection.repla
b760: 63 65 28 2f 26 6c 74 3b 28 2e 2a 3f 29 26 67 74 ce(/<(.*?)>
b770: 3b 2f 67 2c 20 22 22 29 20 7d 20 7d 2c 0d 0a 09 ;/g, "") } },...
b780: 20 20 20 20 7b 6e 61 6d 65 3a 27 50 72 65 76 69 {name:'Previ
b790: 65 77 27 2c 20 63 61 6c 6c 3a 27 70 72 65 76 69 ew', call:'previ
b7a0: 65 77 27 2c 20 63 6c 61 73 73 4e 61 6d 65 3a 27 ew', className:'
b7b0: 70 72 65 76 69 65 77 27 20 7d 0d 0a 09 5d 0d 0a preview' }...]..
b7c0: 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 66 }.. f
b7d0: 6f 72 28 76 61 72 20 69 3d 30 20 3b 69 20 3c 20 or(var i=0 ;i <
b7e0: 6c 3b 69 2b 2b 29 7b 0d 0a 09 6e 20 3d 20 6d 5b l;i++){...n = m[
b7f0: 69 5d 2e 6e 61 6d 65 0d 0a 09 69 66 28 20 27 63 i].name...if( 'c
b800: 6f 6d 6d 65 6e 74 27 20 3d 3d 20 6e 20 7c 7c 20 omment' == n ||
b810: 27 63 6d 61 70 70 6e 64 27 20 3d 3d 20 6e 20 7c 'cmappnd' == n |
b820: 7c 20 22 77 22 20 20 3d 3d 20 6e 29 7b 0d 0a 09 | "w" == n){...
b830: 20 20 20 20 6d 5b 69 5d 2e 69 64 20 3d 20 6e 3c m[i].id = n<
b840: 2f 6e 6f 77 69 6b 69 3e 0d 0a 09 20 20 20 20 24 /nowiki>... $
b850: 28 64 6f 63 75 6d 65 6e 74 29 2e 72 65 61 64 79 (document).ready
b860: 28 66 75 6e 63 74 69 6f 6e 28 29 20 7b 0d 0a 09 (function() {...
b870: 20 20 20 20 20 20 24 28 22 23 22 20 2b 20 6e 29 $("#" + n)
b880: 2e 6d 61 72 6b 49 74 55 70 28 6d 79 53 65 74 74 .markItUp(mySett
b890: 69 6e 67 73 29 3b 0d 0a 09 20 20 20 20 7d 29 3b ings);... });
b8a0: 0d 0a 09 7d 0d 0a 20 20 20 20 20 20 7d 0d 0a 20 ...}.. }..
b8b0: 20 20 20 26 6c 74 3b 2f 73 63 72 69 70 74 26 67 </script&g
b8c0: 74 3b 0d 0a 20 3c 2f 70 72 65 3e 0d 0a 0d 0a 3c t;.. </pre>....<
b8d0: 68 32 3e 3c 61 20 6e 61 6d 65 3d 22 74 69 63 6b h2><a name="tick
b8e0: 65 74 2d 63 68 65 63 6b 69 6e 2d 6c 69 6e 6b 73 et-checkin-links
b8f0: 22 3e 4c 69 6e 6b 69 6e 67 20 54 69 63 6b 65 74 ">Linking Ticket
b900: 73 20 74 6f 20 43 68 65 63 6b 69 6e 27 73 3c 2f s to Checkin's</
b910: 61 3e 3c 2f 68 32 3e 0d 0a 0d 0a 49 74 27 73 20 a></h2>....It's
b920: 65 61 73 79 20 74 6f 20 6c 69 6e 6b 20 61 20 63 easy to link a c
b930: 68 65 63 6b 69 6e 20 74 6f 20 61 20 74 69 63 6b heckin to a tick
b940: 65 74 2e 2e 2e 20 73 69 6d 70 6c 79 20 69 6e 63 et... simply inc
b950: 6c 75 64 65 20 3c 6e 6f 77 69 6b 69 3e 5b 74 69 lude <nowiki>[ti
b960: 63 6b 65 74 2d 75 75 69 64 5d 3c 2f 6e 6f 77 69 cket-uuid]</nowi
b970: 6b 69 3e 20 69 6e 20 79 6f 75 72 20 63 6f 6d 6d ki> in your comm
b980: 69 74 20 63 6f 6d 6d 65 6e 74 2e 20 4e 6f 77 2c it comment. Now,
b990: 20 77 68 65 6e 20 79 6f 75 20 64 6f 20 74 68 61 when you do tha
b9a0: 74 2c 20 79 6f 75 20 61 6c 73 6f 20 68 61 76 65 t, you also have
b9b0: 20 74 68 65 20 61 62 69 6c 69 74 79 20 74 6f 20 the ability to
b9c0: 6c 69 6e 6b 20 61 20 74 69 63 6b 65 74 20 74 6f link a ticket to
b9d0: 20 74 68 65 20 61 73 73 6f 63 69 61 74 65 64 20 the associated
b9e0: 63 68 65 63 6b 69 6e 28 73 29 2e 0d 0a 0d 0a 54 checkin(s).....T
b9f0: 68 69 73 20 69 73 20 6a 75 73 74 20 6f 6e 65 20 his is just one
ba00: 77 61 79 20 6f 66 20 64 6f 69 6e 67 20 74 68 69 way of doing thi
ba10: 73 2c 20 61 6e 64 20 77 68 61 74 20 49 20 64 65 s, and what I de
ba20: 63 69 64 65 64 20 74 6f 20 64 6f 2e 20 59 6f 75 cided to do. You
ba30: 20 63 61 6e 20 6f 66 20 63 6f 75 72 73 65 20 61 can of course a
ba40: 6c 74 65 72 20 69 74 20 66 6f 72 20 79 6f 75 72 lter it for your
ba50: 20 6f 77 6e 20 73 74 79 6c 65 2f 6c 61 79 6f 75 own style/layou
ba60: 74 2e 0d 0a 0d 0a 46 69 72 73 74 3a 20 41 64 64 t.....First: Add
ba70: 20 61 20 22 53 68 6f 72 74 20 55 55 49 44 22 20 a "Short UUID"
ba80: 74 6f 20 79 6f 75 72 20 56 69 65 77 20 54 69 63 to your View Tic
ba90: 6b 65 74 20 70 61 67 65 2e 20 59 6f 75 20 63 61 ket page. You ca
baa0: 6e 20 64 6f 20 74 68 69 73 20 62 79 3a 20 0d 0a n do this by: ..
bab0: 0d 0a 3c 76 65 72 62 61 74 69 6d 3e 0d 0a 3c 74 ..<verbatim>..<t
bac0: 68 31 3e 0d 0a 73 65 74 20 73 68 6f 72 74 55 75 h1>..set shortUu
bad0: 69 64 20 5b 73 74 72 69 6e 67 20 72 61 6e 67 65 id [string range
bae0: 20 24 74 6b 74 5f 75 75 69 64 20 30 20 39 5d 0d $tkt_uuid 0 9].
baf0: 0a 3c 2f 74 68 31 3e 0d 0a 3c 2f 76 65 72 62 61 .</th1>..</verba
bb00: 74 69 6d 3e 0d 0a 0d 0a 54 68 65 6e 2c 20 64 69 tim>....Then, di
bb10: 73 70 6c 61 79 20 74 68 61 74 20 74 6f 20 74 68 splay that to th
bb20: 65 20 75 73 65 72 20 73 6f 6d 65 77 68 65 72 65 e user somewhere
bb30: 3a 20 0d 0a 0d 0a 3c 76 65 72 62 61 74 69 6d 3e : ....<verbatim>
bb40: 0d 0a 55 75 69 64 3a 20 24 3c 73 68 6f 72 74 55 ..Uuid: $<shortU
bb50: 75 69 64 3e 0d 0a 3c 2f 76 65 72 62 61 74 69 6d uid>..</verbatim
bb60: 3e 0d 0a 0d 0a 41 6c 6c 20 74 68 61 74 20 64 6f >....All that do
bb70: 65 73 20 69 73 20 6d 61 6b 65 20 69 74 20 65 61 es is make it ea
bb80: 73 79 20 66 6f 72 20 74 68 65 20 64 65 76 65 6c sy for the devel
bb90: 6f 70 65 72 20 74 6f 20 63 6f 70 79 2f 70 61 73 oper to copy/pas
bba0: 74 65 20 61 20 73 65 6e 73 69 62 6c 65 20 55 55 te a sensible UU
bbb0: 49 44 20 69 6e 74 6f 20 74 68 65 69 72 20 63 6f ID into their co
bbc0: 6d 6d 69 74 20 6c 6f 67 2e 20 0d 0a 0d 0a 4e 6f mmit log. ....No
bbd0: 77 2c 20 63 6f 6e 74 69 6e 75 69 6e 67 2c 20 6f w, continuing, o
bbe0: 6e 20 74 68 65 20 73 61 6d 65 20 56 69 65 77 20 n the same View
bbf0: 50 61 67 65 20 61 64 64 20 61 20 6c 69 6e 6b 20 Page add a link
bc00: 74 6f 20 76 69 65 77 20 61 73 73 6f 63 69 61 74 to view associat
bc10: 65 64 20 74 69 63 6b 65 74 73 3a 20 0d 0a 0d 0a ed tickets: ....
bc20: 3c 76 65 72 62 61 74 69 6d 3e 0d 0a 3c 61 20 68 <verbatim>..<a h
bc30: 72 65 66 3d 22 2f 74 69 6d 65 6c 69 6e 65 3f 79 ref="/timeline?y
bc40: 3d 63 69 26 73 3d 24 3c 73 68 6f 72 74 55 75 69 =ci&s=$<shortUui
bc50: 64 3e 22 3e 61 73 73 6f 63 69 61 74 65 64 20 74 d>">associated t
bc60: 69 63 6b 65 74 73 3c 2f 61 3e 0d 0a 3c 2f 76 65 ickets</a>..</ve
bc70: 72 62 61 74 69 6d 3e 0d 0a 0d 0a 57 68 61 74 20 rbatim>....What
bc80: 74 68 69 73 20 64 6f 65 73 20 69 73 20 73 65 61 this does is sea
bc90: 72 63 68 65 73 20 61 6c 6c 20 63 68 65 63 6b 69 rches all checki
bca0: 6e 27 73 20 66 6f 72 20 74 68 65 20 74 69 63 6b n's for the tick
bcb0: 65 74 73 20 75 75 69 64 2c 20 74 68 75 73 2c 20 ets uuid, thus,
bcc0: 79 6f 75 20 63 61 6e 20 6e 6f 77 20 73 65 65 20 you can now see
bcd0: 61 6c 6c 20 63 68 65 63 6b 69 6e 27 73 20 74 68 all checkin's th
bce0: 61 74 20 61 72 65 20 6c 69 6e 6b 65 64 20 77 69 at are linked wi
bcf0: 74 68 20 74 68 65 20 67 69 76 65 6e 20 74 69 63 th the given tic
bd00: 6b 65 74 2e 0d 0a 0d 0a 3c 64 69 76 3e 0d 0a 20 ket.....<div>..
bd10: 20 3c 68 32 3e 3c 61 20 6e 61 6d 65 3d 22 74 68 <h2><a name="th
bd20: 31 2d 75 73 61 67 65 22 3e 46 6f 73 73 69 6c 20 1-usage">Fossil
bd30: 54 68 31 3c 2f 61 3e 3c 2f 68 32 3e 0d 0a 0d 0a Th1</a></h2>....
bd40: 20 20 3c 68 33 3e 50 75 72 70 6f 73 65 20 6f 66 <h3>Purpose of
bd50: 20 54 68 31 3c 2f 68 33 3e 0d 0a 0d 0a 20 20 3c Th1</h3>.... <
bd60: 70 3e 54 68 31 20 69 73 20 75 73 65 64 20 61 73 p>Th1 is used as
bd70: 20 61 20 3c 73 74 72 6f 6e 67 3e 74 65 6d 70 6c a <strong>templ
bd80: 61 74 65 20 73 79 73 74 65 6d 3c 2f 73 74 72 6f ate system</stro
bd90: 6e 67 3e 20 66 6f 72 0d 0a 20 20 67 65 6e 65 72 ng> for.. gener
bda0: 61 74 69 6e 67 20 48 54 4d 4c 20 68 65 61 64 65 ating HTML heade
bdb0: 72 20 61 6e 64 20 66 6f 6f 74 65 72 2e 20 49 74 r and footer. It
bdc0: 20 69 73 20 61 20 54 43 4c 20 6c 69 6b 65 0d 0a is a TCL like..
bdd0: 20 20 6c 61 6e 67 75 61 67 65 2e 20 49 66 20 79 language. If y
bde0: 6f 75 20 6b 6e 6f 77 20 54 43 4c 20 79 6f 75 20 ou know TCL you
bdf0: 6b 6e 6f 77 20 54 48 31 2e 3c 2f 70 3e 0d 0a 0d know TH1.</p>...
be00: 0a 20 20 3c 70 3e 49 74 20 69 73 20 69 6e 76 6f . <p>It is invo
be10: 6b 65 64 20 62 79 20 6f 70 65 6e 69 6e 67 20 61 ked by opening a
be20: 20 26 6c 74 3b 74 68 31 26 67 74 3b 20 74 61 67 <th1> tag
be30: 2e 20 54 68 65 20 66 69 72 73 74 20 74 69 6d 65 . The first time
be40: 20 69 74 0d 0a 20 20 73 74 61 72 74 73 20 61 6e it.. starts an
be50: 20 69 6e 74 65 72 70 72 65 74 65 72 2e 20 54 68 interpreter. Th
be60: 65 20 73 74 61 74 65 20 6f 66 20 74 68 69 73 20 e state of this
be70: 69 6e 74 65 72 70 72 65 74 65 72 20 69 73 20 76 interpreter is v
be80: 61 6c 69 64 0d 0a 20 20 64 75 72 69 6e 67 20 74 alid.. during t
be90: 68 65 20 70 61 67 65 20 67 65 6e 65 72 61 74 69 he page generati
bea0: 6f 6e 2e 3c 2f 70 3e 0d 0a 0d 0a 20 20 3c 70 3e on.</p>.... <p>
beb0: 46 6f 72 20 65 78 61 6d 70 6c 65 20 77 68 65 6e For example when
bec0: 20 79 6f 75 3c 2f 70 3e 0d 0a 0d 0a 20 20 3c 75 you</p>.... <u
bed0: 6c 20 63 6f 6d 70 61 63 74 3d 27 63 6f 6d 70 61 l compact='compa
bee0: 63 74 27 3e 0d 0a 20 20 20 20 3c 6c 69 3e 0d 0a ct'>.. <li>..
bef0: 20 20 20 20 20 20 64 6f 20 69 6e 20 74 68 65 20 do in the
bf00: 68 65 61 64 65 72 20 26 6c 74 3b 74 68 31 26 67 header <th1&g
bf10: 74 3b 20 73 65 74 20 76 65 72 73 69 6f 6e 20 62 t; set version b
bf20: 65 74 61 20 26 6c 74 3b 2f 74 68 31 26 67 74 3b eta </th1>
bf30: 0d 0a 20 20 20 20 3c 2f 6c 69 3e 0d 0a 20 20 20 .. </li>..
bf40: 20 3c 6c 69 3e 0d 0a 20 20 20 20 20 20 74 68 65 <li>.. the
bf50: 6e 20 69 6e 20 74 68 65 20 66 6f 6f 74 65 72 20 n in the footer
bf60: 26 6c 74 3b 74 68 31 26 67 74 3b 70 75 74 73 20 <th1>puts
bf70: 22 56 65 72 73 69 6f 6e 20 73 65 74 20 69 6e 20 "Version set in
bf80: 68 65 61 64 65 72 0d 0a 20 20 20 20 20 20 69 73 header.. is
bf90: 20 24 76 65 72 73 69 6f 6e 22 26 6c 74 3b 2f 74 $version"</t
bfa0: 68 31 26 67 74 3b 20 72 65 73 75 6c 74 73 20 69 h1> results i
bfb0: 6e 20 27 56 65 72 73 69 6f 6e 20 73 65 74 20 69 n 'Version set i
bfc0: 6e 20 68 65 61 64 65 72 20 69 73 0d 0a 20 20 20 n header is..
bfd0: 20 20 20 62 65 74 61 27 0d 0a 20 20 20 20 3c 2f beta'.. </
bfe0: 6c 69 3e 0d 0a 20 20 3c 2f 75 6c 3e 0d 0a 0d 0a li>.. </ul>....
bff0: 20 20 3c 70 3e 42 65 63 61 75 73 65 20 69 74 20 <p>Because it
c000: 69 73 20 75 73 65 64 20 61 73 20 61 20 74 65 6d is used as a tem
c010: 70 6c 61 74 65 20 73 79 73 74 65 6d 20 69 74 20 plate system it
c020: 65 78 70 6f 72 74 73 20 73 6f 6d 65 0d 0a 20 20 exports some..
c030: 64 65 74 61 69 6c 73 20 6f 66 20 66 6f 73 73 69 details of fossi
c040: 6c 20 74 68 72 6f 75 67 68 3c 2f 70 3e 0d 0a 0d l through</p>...
c050: 0a 20 20 3c 6f 6c 3e 0d 0a 20 20 20 20 3c 6c 69 . <ol>.. <li
c060: 3e 76 61 72 69 61 62 6c 65 73 3c 2f 6c 69 3e 0d >variables</li>.
c070: 0a 20 20 20 20 3c 6c 69 3e 66 75 6e 63 74 69 6f . <li>functio
c080: 6e 73 3c 2f 6c 69 3e 0d 0a 20 20 3c 2f 6f 6c 3e ns</li>.. </ol>
c090: 0d 0a 0d 0a 20 20 3c 70 3e 54 68 65 73 65 20 61 .... <p>These a
c0a0: 72 65 20 64 65 66 69 6e 65 64 20 69 6e 0d 0a 20 re defined in..
c0b0: 5b 35 39 30 65 30 37 33 37 34 36 31 32 31 62 65 [590e073746121be
c0c0: 66 65 36 35 35 36 35 65 65 36 64 37 33 30 30 37 fe65565ee6d73007
c0d0: 63 33 37 61 64 65 31 32 63 7c 73 72 63 2f 74 68 c37ade12c|src/th
c0e0: 5f 6d 61 69 6e 2e 63 5d 29 3c 2f 70 3e 0d 0a 0d _main.c])</p>...
c0f0: 0a 20 20 3c 68 33 3e 56 61 72 69 61 62 6c 65 73 . <h3>Variables
c100: 3c 2f 68 33 3e 0d 0a 0d 0a 20 20 3c 70 3e 54 68 </h3>.... <p>Th
c110: 65 73 65 20 76 61 72 69 61 62 6c 65 20 61 72 65 ese variable are
c120: 20 67 6c 6f 62 61 6c 20 61 6e 64 20 61 76 61 69 global and avai
c130: 6c 61 62 6c 65 20 6f 75 74 73 69 64 65 20 26 6c lable outside &l
c140: 74 3b 74 68 31 26 67 74 3b 0d 0a 20 20 74 61 67 t;th1>.. tag
c150: 73 2e 20 54 68 65 79 20 63 61 6e 20 62 65 20 72 s. They can be r
c160: 65 66 65 72 65 6e 63 65 64 20 65 69 74 68 65 72 eferenced either
c170: 20 61 73 3c 2f 70 3e 0d 0a 0d 0a 20 20 3c 75 6c as</p>.... <ul
c180: 20 63 6f 6d 70 61 63 74 3d 27 63 6f 6d 70 61 63 compact='compac
c190: 74 27 3e 0d 0a 20 20 20 20 3c 6c 69 3e 24 76 61 t'>.. <li>$va
c1a0: 72 2e 20 65 2e 67 2e 20 24 74 69 74 6c 65 2e 3c r. e.g. $title.<
c1b0: 2f 6c 69 3e 0d 0a 20 20 20 20 3c 6c 69 3e 24 26 /li>.. <li>$&
c1c0: 6c 74 3b 76 61 72 26 67 74 3b 20 65 2e 67 2e 20 lt;var> e.g.
c1d0: 24 26 6c 74 3b 74 69 74 6c 65 26 67 74 3b 3c 2f $<title></
c1e0: 6c 69 3e 0d 0a 20 20 3c 2f 75 6c 3e 0d 0a 0d 0a li>.. </ul>....
c1f0: 20 20 3c 70 3e 54 68 65 20 66 6f 6c 6c 6f 77 69 <p>The followi
c200: 6e 67 20 61 72 65 20 64 65 66 69 6e 65 64 3a 3c ng are defined:<
c210: 2f 70 3e 0d 0a 0d 0a 20 20 3c 75 6c 20 63 6f 6d /p>.... <ul com
c220: 70 61 63 74 3d 27 63 6f 6d 70 61 63 74 27 3e 0d pact='compact'>.
c230: 0a 20 20 20 20 3c 6c 69 3e 24 62 61 73 65 5f 75 . <li>$base_u
c240: 72 6c 2e 20 54 68 65 20 66 69 72 73 74 20 70 61 rl. The first pa
c250: 72 74 20 6f 66 20 74 68 65 20 75 72 6c 2e 20 46 rt of the url. F
c260: 6f 72 20 65 78 61 6d 70 6c 65 0d 0a 20 20 20 20 or example..
c270: 3c 73 74 72 6f 6e 67 3e 68 74 74 70 3a 2f 2f 6c <strong>http://l
c280: 6f 63 61 6c 68 6f 73 74 3a 38 30 38 30 3c 2f 73 ocalhost:8080</s
c290: 74 72 6f 6e 67 3e 3c 2f 6c 69 3e 0d 0a 20 20 20 trong></li>..
c2a0: 20 3c 6c 69 3e 24 63 75 72 72 65 6e 74 5f 70 61 <li>$current_pa
c2b0: 67 65 2e 20 54 68 65 20 70 61 67 65 20 72 65 71 ge. The page req
c2c0: 75 65 73 74 65 64 2e 20 46 6f 72 20 65 78 61 6d uested. For exam
c2d0: 70 6c 65 20 65 64 69 74 69 6e 67 20 61 0d 0a 20 ple editing a..
c2e0: 20 20 20 77 69 6b 69 70 61 67 65 20 69 73 20 64 wikipage is d
c2f0: 6f 6e 65 20 62 79 20 24 62 61 73 65 75 72 6c 2f one by $baseurl/
c300: 77 69 6b 69 65 64 69 74 20 24 63 75 72 72 65 6e wikiedit $curren
c310: 74 5f 70 61 67 65 20 69 73 0d 0a 20 20 20 20 3c t_page is.. <
c320: 73 74 72 6f 6e 67 3e 77 69 6b 69 65 64 69 74 3c strong>wikiedit<
c330: 2f 73 74 72 6f 6e 67 3e 3c 2f 6c 69 3e 0d 0a 20 /strong></li>..
c340: 20 20 20 3c 6c 69 3e 24 69 6e 64 65 78 5f 70 61 <li>$index_pa
c350: 67 65 3c 73 74 72 6f 6e 67 3e 2e 3c 2f 73 74 72 ge<strong>.</str
c360: 6f 6e 67 3e 20 4d 6f 73 74 6c 79 20 74 68 65 20 ong> Mostly the
c370: 76 61 6c 75 65 20 69 73 0d 0a 20 20 20 20 3c 73 value is.. <s
c380: 74 72 6f 6e 67 3e 2f 68 6f 6d 65 3c 2f 73 74 72 trong>/home</str
c390: 6f 6e 67 3e 20 73 65 74 61 62 6c 65 20 69 6e 20 ong> setable in
c3a0: 41 64 6d 69 6e 2f 43 6f 6e 66 69 67 75 72 61 74 Admin/Configurat
c3b0: 69 6f 6e 3c 2f 6c 69 3e 0d 0a 20 20 20 20 3c 6c ion</li>.. <l
c3c0: 69 3e 24 74 69 74 6c 65 2e 20 54 68 65 20 74 69 i>$title. The ti
c3d0: 74 6c 65 20 6f 66 20 74 68 65 20 24 63 75 72 72 tle of the $curr
c3e0: 65 6e 74 5f 70 61 67 65 3c 2f 6c 69 3e 0d 0a 20 ent_page</li>..
c3f0: 20 20 20 3c 6c 69 3e 24 6c 6f 67 69 6e 2e 20 54 <li>$login. T
c400: 68 65 20 6e 61 6d 65 20 6f 66 20 75 73 65 72 20 he name of user
c410: 69 66 20 61 20 6c 6f 67 69 6e 20 68 61 73 20 6f if a login has o
c420: 63 63 75 72 72 65 64 2e 20 69 66 20 79 6f 75 0d ccurred. if you.
c430: 0a 20 20 20 20 75 73 65 20 74 68 69 73 20 76 61 . use this va
c440: 72 69 61 62 6c 65 20 61 6c 77 61 79 73 20 63 68 riable always ch
c450: 65 63 6b 20 69 66 20 69 74 20 65 78 69 73 74 73 eck if it exists
c460: 20 76 69 61 0d 0a 20 20 20 20 3c 73 74 72 6f 6e via.. <stron
c470: 67 3e 3c 63 6f 64 65 3e 69 6e 66 6f 20 65 78 69 g><code>info exi
c480: 73 74 73 20 6c 6f 67 69 6e 3c 2f 63 6f 64 65 3e sts login</code>
c490: 3c 2f 73 74 72 6f 6e 67 3e 3c 2f 6c 69 3e 0d 0a </strong></li>..
c4a0: 20 20 20 20 3c 6c 69 3e 24 6d 61 6e 69 66 65 73 <li>$manifes
c4b0: 74 5f 76 65 72 73 69 6f 6e 2e 20 54 68 65 20 66 t_version. The f
c4c0: 6f 73 73 69 6c 20 76 65 72 73 69 6f 6e 3c 2f 6c ossil version</l
c4d0: 69 3e 0d 0a 20 20 20 20 3c 6c 69 3e 24 6d 61 6e i>.. <li>$man
c4e0: 69 66 65 73 74 5f 64 61 74 65 2e 20 54 68 65 20 ifest_date. The
c4f0: 64 61 74 65 20 74 68 61 74 20 66 6f 73 73 69 6c date that fossil
c500: 20 76 65 72 73 69 6f 6e 20 77 61 73 0d 0a 20 20 version was..
c510: 20 20 63 6f 6d 70 69 6c 65 64 3c 2f 6c 69 3e 0d compiled</li>.
c520: 0a 20 20 3c 2f 75 6c 3e 0d 0a 0d 0a 20 20 3c 68 . </ul>.... <h
c530: 33 3e 46 75 6e 63 74 69 6f 6e 73 3c 2f 68 33 3e 3>Functions</h3>
c540: 0d 0a 20 20 3c 70 3e 0d 0a 20 20 20 20 20 54 68 .. <p>.. Th
c550: 65 73 65 20 61 72 65 20 6f 6e 6c 79 20 61 76 61 ese are only ava
c560: 69 62 6c 65 20 62 65 74 77 65 65 6e 20 0d 0a 20 ible between ..
c570: 20 26 6c 74 3b 74 68 31 26 67 74 3b 20 61 6e 64 <th1> and
c580: 20 26 6c 74 3b 2f 74 68 31 26 67 74 3b 0d 0a 20 </th1>..
c590: 20 3c 2f 70 3e 0d 0a 20 20 3c 75 6c 20 63 6f 6d </p>.. <ul com
c5a0: 70 61 63 74 3d 27 63 6f 6d 70 61 63 74 27 3e 0d pact='compact'>.
c5b0: 0a 20 20 20 20 3c 6c 69 3e 63 6f 6d 62 6f 62 6f . <li>combobo
c5c0: 78 20 6e 61 6d 65 20 74 65 78 74 2d 6c 69 73 74 x name text-list
c5d0: 20 6e 75 6d 6c 69 6e 65 73 2e 20 47 65 6e 65 72 numlines. Gener
c5e0: 61 74 65 73 20 61 20 73 65 6c 65 63 74 20 62 6f ates a select bo
c5f0: 78 0d 0a 20 20 20 20 77 69 74 68 20 6e 61 6d 65 x.. with name
c600: 3d 22 6e 61 6d 65 22 20 61 6e 64 20 61 20 63 67 ="name" and a cg
c610: 69 2d 70 61 72 61 6d 65 74 65 72 20 6f 66 20 22 i-parameter of "
c620: 6e 61 6d 65 22 3c 2f 6c 69 3e 0d 0a 20 20 20 20 name"</li>..
c630: 3c 6c 69 3e 65 6e 61 62 6c 65 5f 6f 75 74 70 75 <li>enable_outpu
c640: 74 20 62 6f 6f 6c 65 61 6e 3c 2f 6c 69 3e 0d 0a t boolean</li>..
c650: 20 20 20 20 3c 6c 69 3e 6c 69 6e 65 63 6f 75 6e <li>linecoun
c660: 74 20 73 74 72 69 6e 67 20 6d 61 78 20 6d 69 6e t string max min
c670: 2e 20 43 6f 75 6e 74 73 20 74 68 65 20 6e 75 6d . Counts the num
c680: 65 72 20 6f 66 20 6e 65 77 6c 69 6e 65 73 20 69 er of newlines i
c690: 6e 0d 0a 20 20 20 20 73 74 72 69 6e 67 20 62 75 n.. string bu
c6a0: 74 20 6e 6f 74 20 6d 6f 72 65 20 74 68 65 6e 20 t not more then
c6b0: 6d 61 78 20 61 6e 64 20 6e 6f 74 20 6c 65 73 73 max and not less
c6c0: 20 74 68 65 6e 20 6d 69 6e 3c 2f 6c 69 3e 0d 0a then min</li>..
c6d0: 20 20 20 20 3c 6c 69 3e 68 61 73 63 61 70 20 73 <li>hascap s
c6e0: 74 72 69 6e 67 2e 20 72 65 74 75 72 6e 20 74 72 tring. return tr
c6f0: 75 65 20 69 66 20 75 73 65 72 20 68 61 73 20 61 ue if user has a
c700: 6c 6c 0d 0a 20 20 20 20 63 61 70 61 62 69 6c 69 ll.. capabili
c710: 74 69 65 73 20 69 6e 20 73 74 72 69 6e 67 3c 2f ties in string</
c720: 6c 69 3e 0d 0a 20 20 20 20 3c 6c 69 3e 68 74 6d li>.. <li>htm
c730: 6c 69 7a 65 20 73 74 72 69 6e 67 2e 20 65 78 63 lize string. exc
c740: 61 70 65 73 20 61 6c 6c 20 63 68 61 72 73 20 69 apes all chars i
c750: 6e 20 73 74 72 69 6e 67 20 77 68 69 63 68 20 68 n string which h
c760: 61 76 65 0d 0a 20 20 20 20 73 70 65 63 69 61 6c ave.. special
c770: 20 6d 65 61 6e 69 6e 67 20 69 6e 20 48 54 4d 4c meaning in HTML
c780: 3c 2f 6c 69 3e 0d 0a 20 20 20 20 3c 6c 69 3e 64 </li>.. <li>d
c790: 61 74 65 20 72 65 74 75 72 6e 73 20 74 68 65 20 ate returns the
c7a0: 73 71 6c 69 74 65 20 76 61 6c 75 65 20 6f 66 20 sqlite value of
c7b0: 64 61 74 65 74 69 6d 65 28 27 6e 6f 77 27 29 3c datetime('now')<
c7c0: 2f 6c 69 3e 0d 0a 20 20 20 20 3c 6c 69 3e 68 74 /li>.. <li>ht
c7d0: 6d 6c 20 73 74 72 69 6e 67 20 6f 75 74 70 75 74 ml string output
c7e0: 20 68 74 6d 6c 3c 2f 6c 69 3e 0d 0a 20 20 20 20 html</li>..
c7f0: 3c 6c 69 3e 70 75 74 73 20 73 74 72 69 6e 67 20 <li>puts string
c800: 70 72 69 6e 74 73 20 74 68 65 20 73 74 72 69 6e prints the strin
c810: 67 3c 2f 6c 69 3e 0d 0a 20 20 20 20 3c 6c 69 3e g</li>.. <li>
c820: 77 69 6b 69 20 73 74 72 69 6e 67 2e 20 54 68 65 wiki string. The
c830: 20 73 74 72 69 6e 67 20 69 73 20 69 6e 20 77 69 string is in wi
c840: 6b 69 20 66 6f 72 6d 61 74 2e 20 74 72 61 6e 73 ki format. trans
c850: 6c 61 74 65 20 69 74 20 74 6f 0d 0a 20 20 20 20 late it to..
c860: 48 54 4d 4c 3c 2f 6c 69 3e 0d 0a 20 20 3c 2f 75 HTML</li>.. </u
c870: 6c 3e 0d 0a 3c 6e 6f 77 69 6b 69 3e 0d 0a 20 20 l>..<nowiki>..
c880: 3c 68 33 3e 45 78 61 6d 70 6c 65 20 66 72 6f 6d <h3>Example from
c890: 20 61 64 6d 69 6e 2f 68 65 61 64 65 72 3c 2f 68 admin/header</h
c8a0: 33 3e 0d 0a 20 20 3c 70 72 65 3e 0d 0a 26 6c 74 3>.. <pre>..<
c8b0: 3b 68 74 6d 6c 26 67 74 3b 0d 0a 26 6c 74 3b 68 ;html>..<h
c8c0: 65 61 64 26 67 74 3b 0d 0a 26 6c 74 3b 74 69 74 ead>..<tit
c8d0: 6c 65 26 67 74 3b 3c 73 74 72 6f 6e 67 3e 24 26 le><strong>$&
c8e0: 6c 74 3b 70 72 6f 6a 65 63 74 5f 6e 61 6d 65 26 lt;project_name&
c8f0: 67 74 3b 3c 2f 73 74 72 6f 6e 67 3e 3a 20 3c 73 gt;</strong>: <s
c900: 74 72 6f 6e 67 3e 24 26 6c 74 3b 74 69 74 6c 65 trong>$<title
c910: 26 67 74 3b 3c 2f 73 74 72 6f 6e 67 3e 26 6c 74 ></strong><
c920: 3b 2f 74 69 74 6c 65 26 67 74 3b 0d 0a 26 6c 74 ;/title>..<
c930: 3b 6c 69 6e 6b 20 72 65 6c 3d 22 61 6c 74 65 72 ;link rel="alter
c940: 6e 61 74 65 22 20 74 79 70 65 3d 22 61 70 70 6c nate" type="appl
c950: 69 63 61 74 69 6f 6e 2f 72 73 73 2b 78 6d 6c 22 ication/rss+xml"
c960: 20 74 69 74 6c 65 3d 22 52 53 53 20 46 65 65 64 title="RSS Feed
c970: 22 0d 0a 20 20 20 20 20 20 68 72 65 66 3d 22 3c ".. href="<
c980: 73 74 72 6f 6e 67 3e 24 62 61 73 65 75 72 6c 3c strong>$baseurl<
c990: 2f 73 74 72 6f 6e 67 3e 2f 74 69 6d 65 6c 69 6e /strong>/timelin
c9a0: 65 2e 72 73 73 22 26 67 74 3b 0d 0a 26 6c 74 3b e.rss">..<
c9b0: 6c 69 6e 6b 20 72 65 6c 3d 22 73 74 79 6c 65 73 link rel="styles
c9c0: 68 65 65 74 22 20 68 72 65 66 3d 22 24 62 61 73 heet" href="$bas
c9d0: 65 75 72 6c 2f 73 74 79 6c 65 2e 63 73 73 22 20 eurl/style.css"
c9e0: 74 79 70 65 3d 22 74 65 78 74 2f 63 73 73 22 0d type="text/css".
c9f0: 0a 20 20 20 20 20 20 6d 65 64 69 61 3d 22 73 63 . media="sc
ca00: 72 65 65 6e 22 26 67 74 3b 0d 0a 26 6c 74 3b 2f reen">..</
ca10: 68 65 61 64 26 67 74 3b 0d 0a 26 6c 74 3b 62 6f head>..<bo
ca20: 64 79 26 67 74 3b 0d 0a 26 6c 74 3b 64 69 76 20 dy>..<div
ca30: 63 6c 61 73 73 3d 22 68 65 61 64 65 72 22 26 67 class="header"&g
ca40: 74 3b 0d 0a 20 20 26 6c 74 3b 64 69 76 20 63 6c t;.. <div cl
ca50: 61 73 73 3d 22 6c 6f 67 6f 22 26 67 74 3b 0d 0a ass="logo">..
ca60: 20 20 20 20 26 6c 74 3b 69 6d 67 20 73 72 63 3d <img src=
ca70: 22 3c 73 74 72 6f 6e 67 3e 24 62 61 73 65 75 72 "<strong>$baseur
ca80: 6c 3c 2f 73 74 72 6f 6e 67 3e 2f 6c 6f 67 6f 22 l</strong>/logo"
ca90: 20 61 6c 74 3d 22 6c 6f 67 6f 22 26 67 74 3b 0d alt="logo">.
caa0: 0a 20 20 20 20 26 6c 74 3b 62 72 26 67 74 3b 26 . <br>&
cab0: 6c 74 3b 6e 6f 62 72 26 67 74 3b 3c 73 74 72 6f lt;nobr><stro
cac0: 6e 67 3e 24 26 6c 74 3b 70 72 6f 6a 65 63 74 5f ng>$<project_
cad0: 6e 61 6d 65 26 67 74 3b 3c 2f 73 74 72 6f 6e 67 name></strong
cae0: 3e 26 6c 74 3b 2f 6e 6f 62 72 26 67 74 3b 0d 0a ></nobr>..
caf0: 20 20 26 6c 74 3b 2f 64 69 76 26 67 74 3b 0d 0a </div>..
cb00: 20 20 26 6c 74 3b 64 69 76 20 63 6c 61 73 73 3d <div class=
cb10: 22 74 69 74 6c 65 22 26 67 74 3b 3c 73 74 72 6f "title"><stro
cb20: 6e 67 3e 24 26 6c 74 3b 74 69 74 6c 65 26 67 74 ng>$<title>
cb30: 3b 3c 2f 73 74 72 6f 6e 67 3e 26 6c 74 3b 2f 64 ;</strong></d
cb40: 69 76 26 67 74 3b 0d 0a 20 20 26 6c 74 3b 64 69 iv>.. <di
cb50: 76 20 63 6c 61 73 73 3d 22 73 74 61 74 75 73 22 v class="status"
cb60: 26 67 74 3b 26 6c 74 3b 6e 6f 62 72 26 67 74 3b ><nobr>
cb70: 3c 73 74 72 6f 6e 67 3e 26 6c 74 3b 74 68 31 26 <strong><th1&
cb80: 67 74 3b 3c 2f 73 74 72 6f 6e 67 3e 0d 0a 20 20 gt;</strong>..
cb90: 20 20 20 69 66 20 7b 3c 73 74 72 6f 6e 67 3e 5b if {<strong>[
cba0: 69 6e 66 6f 20 65 78 69 73 74 73 20 6c 6f 67 69 info exists logi
cbb0: 6e 5d 3c 2f 73 74 72 6f 6e 67 3e 7d 20 7b 0d 0a n]</strong>} {..
cbc0: 20 20 20 20 20 20 20 70 75 74 73 20 22 4c 6f 67 puts "Log
cbd0: 67 65 64 20 69 6e 20 61 73 20 3c 73 74 72 6f 6e ged in as <stron
cbe0: 67 3e 24 6c 6f 67 69 6e 3c 2f 73 74 72 6f 6e 67 g>$login</strong
cbf0: 3e 22 0d 0a 20 20 20 20 20 7d 20 65 6c 73 65 20 >".. } else
cc00: 7b 0d 0a 20 20 20 20 20 20 20 70 75 74 73 20 22 {.. puts "
cc10: 4e 6f 74 20 6c 6f 67 67 65 64 20 69 6e 22 0d 0a Not logged in"..
cc20: 20 20 20 20 20 7d 0d 0a 20 20 26 6c 74 3b 2f 74 }.. </t
cc30: 68 31 26 67 74 3b 26 6c 74 3b 2f 6e 6f 62 72 26 h1></nobr&
cc40: 67 74 3b 26 6c 74 3b 2f 64 69 76 26 67 74 3b 0d gt;</div>.
cc50: 0a 26 6c 74 3b 2f 64 69 76 26 67 74 3b 0d 0a 26 .</div>..&
cc60: 6c 74 3b 64 69 76 20 63 6c 61 73 73 3d 22 6d 61 lt;div class="ma
cc70: 69 6e 6d 65 6e 75 22 26 67 74 3b 26 6c 74 3b 74 inmenu"><t
cc80: 68 31 26 67 74 3b 0d 0a 68 74 6d 6c 20 22 26 6c h1>..html "&l
cc90: 74 3b 61 20 68 72 65 66 3d 27 3c 73 74 72 6f 6e t;a href='<stron
cca0: 67 3e 24 62 61 73 65 75 72 6c 24 69 6e 64 65 78 g>$baseurl$index
ccb0: 5f 70 61 67 65 3c 2f 73 74 72 6f 6e 67 3e 27 26 _page</strong>'&
ccc0: 67 74 3b 48 6f 6d 65 26 6c 74 3b 2f 61 26 67 74 gt;Home</a>
ccd0: 3b 20 22 0d 0a 69 66 20 7b 3c 73 74 72 6f 6e 67 ; "..if {<strong
cce0: 3e 5b 68 61 73 63 61 70 20 68 5d 3c 2f 73 74 72 >[hascap h]</str
ccf0: 6f 6e 67 3e 5d 7d 20 7b 0d 0a 20 20 68 74 6d 6c ong>]} {.. html
cd00: 20 22 26 6c 74 3b 61 20 68 72 65 66 3d 27 24 62 "<a href='$b
cd10: 61 73 65 75 72 6c 2f 64 69 72 27 26 67 74 3b 46 aseurl/dir'>F
cd20: 69 6c 65 73 26 6c 74 3b 2f 61 26 67 74 3b 20 22 iles</a> "
cd30: 0d 0a 7d 0d 0a 3c 2f 70 72 65 3e 0d 0a 0d 0a 20 ..}..</pre>....
cd40: 20 3c 68 33 3e 43 61 76 65 61 74 73 3c 2f 68 33 <h3>Caveats</h3
cd50: 3e 0d 0a 0d 0a 20 20 3c 75 6c 20 63 6f 6d 70 61 >.... <ul compa
cd60: 63 74 3d 27 63 6f 6d 70 61 63 74 27 3e 0d 0a 20 ct='compact'>..
cd70: 20 20 20 3c 6c 69 3e 70 75 74 73 20 22 5b 68 65 <li>puts "[he
cd80: 6c 6c 6f 20 68 65 6c 6c 6f 5d 22 20 64 6f 65 73 llo hello]" does
cd90: 6e 27 74 20 77 6f 72 6b 20 62 65 63 61 75 73 65 n't work because
cda0: 20 5b 20 74 72 69 67 67 65 72 73 20 74 68 65 0d [ triggers the.
cdb0: 0a 20 20 20 20 69 6e 74 65 72 70 65 74 65 72 2c . interpeter,
cdc0: 20 75 73 65 20 70 75 74 73 20 22 26 61 6d 70 3b use puts "&
cdd0: 23 39 31 68 65 6c 6c 6f 20 68 65 6c 6c 6f 5d 27 #91hello hello]'
cde0: 3c 2f 6c 69 3e 0d 0a 20 20 3c 2f 75 6c 3e 0d 0a </li>.. </ul>..
cdf0: 3c 2f 6e 6f 77 69 6b 69 3e 0d 0a 3c 2f 64 69 76 </nowiki>..</div
ce00: 3e 0d 0a 0a 5a 20 34 61 61 61 39 36 32 37 33 66 >...Z 4aaa96273f
ce10: 65 64 36 62 32 65 64 63 37 30 30 36 63 35 66 33 ed6b2edc7006c5f3
ce20: 36 64 35 33 31 30 0a 6d5310.