] by
anonymous
2010-03-31 18:01:08.
0000: 44 20 32 30 31 30 2d 30 33 2d 33 31 54 31 38 3a D 2010-03-31T18:
0010: 30 31 3a 30 38 0a 4c 20 43 6f 6f 6b 62 6f 6f 6b 01:08.L Cookbook
0020: 0a 50 20 33 33 33 32 36 64 34 33 61 37 32 64 30 .P 33326d43a72d0
0030: 37 33 32 32 62 33 38 65 36 36 61 64 30 34 36 35 7322b38e66ad0465
0040: 31 35 61 35 65 33 36 63 32 31 61 0a 55 20 61 6e 15a5e36c21a.U an
0050: 6f 6e 79 6d 6f 75 73 0a 57 20 35 32 36 34 37 0a onymous.W 52647.
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 69 6e 33 32 2e 20 43 68 61 6e 67 ile.win32. Chang
9750: 65 20 74 68 65 20 6c 69 6e 65 20 22 4c 49 42 20 e the line "LIB
9760: 2b 3d 20 2d 6c 63 72 79 70 74 6f 20 2d 6c 73 73 += -lcrypto -lss
9770: 6c 22 20 74 6f 20 22 4c 49 42 20 3d 20 2d 6c 73 l" to "LIB = -ls
9780: 73 6c 20 2d 6c 63 72 79 70 74 6f 20 2d 6c 67 64 sl -lcrypto -lgd
9790: 69 33 32 20 2d 6c 6d 69 6e 67 77 65 78 20 2d 6c i32 -lmingwex -l
97a0: 7a 20 2d 6c 77 73 32 5f 33 32 22 2e 3c 2f 6c 69 z -lws2_32".</li
97b0: 3e 0d 0a 20 20 20 20 20 3c 6c 69 3e 6d 61 6b 65 >.. <li>make
97c0: 20 2d 66 20 4d 61 6b 65 66 69 6c 65 2e 77 33 32 -f Makefile.w32
97d0: 20 46 4f 53 53 49 4c 5f 45 4e 41 42 4c 45 5f 53 FOSSIL_ENABLE_S
97e0: 53 4c 3d 31 3c 2f 6c 69 3e 20 3c 2f 75 6c 3e 0d SL=1</li> </ul>.
97f0: 0a 20 20 2a 20 20 65 6c 73 65 20 64 6f 20 6d 61 . * else do ma
9800: 6b 65 20 2d 66 20 4d 61 6b 65 66 69 6c 65 2e 77 ke -f Makefile.w
9810: 33 32 20 0d 0a 0d 0a 20 0d 0a 3c 68 33 3e 43 6f 32 .... ..<h3>Co
9820: 6d 70 69 6c 69 6e 67 20 75 6e 64 65 72 20 6c 69 mpiling under li
9830: 6e 75 78 20 66 6f 72 20 77 69 6e 64 6f 77 73 20 nux for windows
9840: 77 69 74 68 20 4d 69 6e 67 77 3c 2f 68 33 3e 0d with Mingw</h3>.
9850: 0a 54 68 69 73 20 69 73 20 63 61 6c 6c 65 64 20 .This is called
9860: 63 72 6f 73 73 20 63 6f 6d 70 69 6c 69 6e 67 2e cross compiling.
9870: 20 49 27 6d 20 75 73 69 6e 67 20 5b 68 74 74 70 I'm using [http
9880: 3a 2f 2f 77 77 77 2e 61 72 63 68 6c 69 6e 75 78 ://www.archlinux
9890: 2e 6f 72 67 2f 7c 41 72 63 68 20 6c 69 6e 75 78 .org/|Arch linux
98a0: 5d 20 64 69 73 74 72 69 62 75 74 69 6f 6e 20 77 ] distribution w
98b0: 68 69 63 68 0d 0a 75 73 65 73 20 74 68 65 20 70 hich..uses the p
98c0: 61 63 6b 61 67 65 20 6d 61 6e 61 67 65 72 20 70 ackage manager p
98d0: 61 63 6d 61 6e 20 74 6f 20 69 6e 73 74 61 6c 6c acman to install
98e0: 20 70 61 63 6b 61 67 65 73 2e 20 49 66 20 79 6f packages. If yo
98f0: 75 20 68 61 76 65 20 61 20 64 69 66 66 65 72 65 u have a differe
9900: 6e 20 6c 69 6e 75 78 20 64 69 73 74 72 69 62 75 n linux distribu
9910: 74 69 6f 6e 20 74 68 65 20 70 61 63 6b 61 67 65 tion the package
9920: 73 20 6d 69 67 68 74 20 62 65 20 63 61 6c 6c 65 s might be calle
9930: 64 20 64 69 66 66 65 72 65 6e 74 2e 20 49 20 61 d different. I a
9940: 73 73 75 6d 65 20 61 20 6c 6f 67 69 6e 20 6e 61 ssume a login na
9950: 6d 65 20 6f 66 20 72 65 6e 65 7a 20 73 75 62 73 me of renez subs
9960: 74 69 74 75 74 65 20 79 6f 75 72 73 20 77 65 72 titute yours wer
9970: 65 20 61 70 72 6f 70 69 61 74 65 2e 0d 0a 0d 0a e apropiate.....
9980: 3c 68 34 3e 49 6e 73 74 61 6c 6c 69 6e 67 20 74 <h4>Installing t
9990: 68 65 20 74 6f 6f 6c 73 2e 3c 2f 68 34 3e 0d 0a he tools.</h4>..
99a0: 20 20 2a 20 20 49 6e 73 74 61 6c 6c 20 6d 69 6e * Install min
99b0: 67 77 33 32 2d 67 63 63 73 2e 20 57 69 74 68 20 gw32-gccs. With
99c0: 41 72 63 68 20 6c 69 6e 75 78 20 79 6f 75 20 64 Arch linux you d
99d0: 6f 20 50 61 63 6d 61 6e 20 2d 53 20 6d 69 6e 67 o Pacman -S ming
99e0: 77 33 32 2d 67 63 63 20 28 41 73 20 72 6f 6f 74 w32-gcc (As root
99f0: 21 29 2e 20 54 68 69 73 20 77 69 6c 65 20 62 65 !). This wile be
9a00: 20 69 6e 73 74 61 6c 6c 65 64 20 69 6e 20 3c 73 installed in <s
9a10: 74 72 6f 6e 67 3e 2f 75 73 72 2f 69 34 38 36 2d trong>/usr/i486-
9a20: 6d 69 6e 67 77 33 32 3c 2f 73 74 72 6f 6e 67 3e mingw32</strong>
9a30: 0d 0a 20 20 2a 20 20 64 6f 77 6e 6c 6f 61 64 20 .. * download
9a40: 5b 68 74 74 70 3a 2f 2f 67 6e 75 77 69 6e 33 32 [http://gnuwin32
9a50: 2e 73 6f 75 72 63 65 66 6f 72 67 65 2e 6e 65 74 .sourceforge.net
9a60: 2f 70 61 63 6b 61 67 65 73 2f 7a 6c 69 62 2e 68 /packages/zlib.h
9a70: 74 6d 7c 7a 6c 69 62 5d 20 74 68 65 20 62 69 6e tm|zlib] the bin
9a80: 61 72 79 20 61 6e 64 20 64 65 76 65 6c 6f 70 65 ary and develope
9a90: 72 20 66 69 6c 65 73 2e 0d 0a 20 20 2a 20 20 49 r files... * I
9aa0: 66 20 79 6f 75 20 77 61 6e 74 20 3c 73 74 72 6f f you want <stro
9ab0: 6e 67 3e 68 74 74 70 73 3c 2f 73 74 72 6f 6e 67 ng>https</strong
9ac0: 3e 20 73 75 70 70 6f 72 74 20 64 6f 77 6e 6c 6f > support downlo
9ad0: 61 64 20 5b 68 74 74 70 3a 2f 2f 67 6e 75 77 69 ad [http://gnuwi
9ae0: 6e 33 32 2e 73 6f 75 72 63 65 66 6f 72 67 65 2e n32.sourceforge.
9af0: 6e 65 74 2f 70 61 63 6b 61 67 65 73 2f 6f 70 65 net/packages/ope
9b00: 6e 73 73 6c 2e 68 74 6d 7c 6f 70 65 6e 73 73 6c nssl.htm|openssl
9b10: 5d 20 74 68 65 20 62 69 6e 61 72 79 20 61 6e 64 ] the binary and
9b20: 20 64 65 76 65 6c 6f 70 65 72 20 66 69 6c 65 73 developer files
9b30: 2e 0d 0a 20 20 2a 20 20 45 78 74 72 61 63 74 20 ... * Extract
9b40: 74 6f 20 3c 73 74 72 6f 6e 67 3e 2f 75 73 72 2f to <strong>/usr/
9b50: 69 34 38 36 2d 6d 69 6e 67 77 33 32 3c 2f 73 74 i486-mingw32</st
9b60: 72 6f 6e 67 3e 20 62 79 3a 20 73 75 20 74 6f 20 rong> by: su to
9b70: 72 6f 6f 74 0d 0a 20 20 2a 20 20 63 64 20 3c 73 root.. * cd <s
9b80: 74 72 6f 6e 67 3e 2f 75 73 72 2f 69 34 38 36 2d trong>/usr/i486-
9b90: 6d 69 6e 67 77 33 32 3c 2f 73 74 72 6f 6e 67 3e mingw32</strong>
9ba0: 0d 0a 20 20 2a 20 20 75 6e 7a 69 70 20 20 7e 72 .. * unzip ~r
9bb0: 65 6e 65 7a 2f 44 6f 77 6e 6c 6f 61 64 73 2f 7a enez/Downloads/z
9bc0: 6c 69 62 2d 31 2e 32 2e 33 2d 62 69 6e 2e 7a 69 lib-1.2.3-bin.zi
9bd0: 70 0d 0a 20 20 2a 20 20 75 6e 7a 69 70 20 20 7e p.. * unzip ~
9be0: 72 65 6e 65 7a 2f 44 6f 77 6e 6c 6f 61 64 73 2f renez/Downloads/
9bf0: 7a 6c 69 62 2d 31 2e 32 2e 33 2d 6c 69 62 2e 7a zlib-1.2.3-lib.z
9c00: 69 70 0d 0a 20 20 2a 20 20 75 6e 7a 69 70 20 20 ip.. * unzip
9c10: 7e 72 65 6e 65 7a 2f 44 6f 77 6e 6c 6f 61 64 73 ~renez/Downloads
9c20: 2f 6f 70 65 6e 73 73 6c 2d 30 2e 39 2e 38 68 2d /openssl-0.9.8h-
9c30: 31 2d 62 69 6e 2e 7a 69 70 0d 0a 20 20 2a 20 20 1-bin.zip.. *
9c40: 75 6e 7a 69 70 20 20 7e 72 65 6e 65 7a 2f 44 6f unzip ~renez/Do
9c50: 77 6e 6c 6f 61 64 73 2f 6f 70 65 6e 73 73 6c 2d wnloads/openssl-
9c60: 30 2e 39 2e 38 68 2d 31 2d 6c 69 62 2e 7a 69 70 0.9.8h-1-lib.zip
9c70: 0d 0a 20 20 2a 20 20 65 78 69 74 20 72 6f 6f 74 .. * exit root
9c80: 0d 0a 20 20 2a 20 20 64 6f 77 6e 6c 6f 61 64 20 .. * download
9c90: 5b 68 74 74 70 3a 2f 2f 77 77 77 2e 66 6f 73 73 [http://www.foss
9ca0: 69 6c 2d 73 63 6d 2e 6f 72 67 2f 64 6f 77 6e 6c il-scm.org/downl
9cb0: 6f 61 64 2e 68 74 6d 6c 7c 66 6f 73 73 69 6c 5d oad.html|fossil]
9cc0: 20 66 6f 72 20 6c 69 6e 75 78 2c 20 61 6e 64 20 for linux, and
9cd0: 63 6f 70 79 20 66 6f 73 73 69 6c 20 74 6f 20 73 copy fossil to s
9ce0: 6f 6d 65 20 77 68 65 72 65 20 69 6e 20 79 6f 75 ome where in you
9cf0: 72 20 50 41 54 48 20 64 69 72 65 63 74 6f 72 69 r PATH directori
9d00: 65 73 20 6d 61 79 62 65 20 24 48 4f 4d 45 2f 62 es maybe $HOME/b
9d10: 69 6e 2e 0d 0a 0d 0a 3c 68 34 3e 47 65 74 74 69 in.....<h4>Getti
9d20: 6e 67 20 66 6f 73 73 69 6c 20 73 6f 75 72 63 65 ng fossil source
9d30: 20 63 6f 64 65 3c 2f 68 34 3e 0d 0a 20 20 2a 20 code</h4>.. *
9d40: 20 63 64 20 3b 20 6d 6b 64 69 72 20 66 6f 73 73 cd ; mkdir foss
9d50: 69 6c 3b 20 63 64 20 66 6f 73 73 69 6c 0d 0a 20 il; cd fossil..
9d60: 20 2a 20 20 63 6c 6f 6e 65 20 66 6f 73 73 69 6c * clone fossil
9d70: 20 72 65 70 6f 73 69 74 6f 72 79 2e 20 65 2e 67 repository. e.g
9d80: 2e 20 66 6f 73 73 69 6c 20 63 6c 6f 6e 65 20 68 . fossil clone h
9d90: 74 74 70 3a 2f 2f 77 77 77 2e 66 6f 73 73 69 6c ttp://www.fossil
9da0: 2d 73 63 6d 2e 6f 72 67 2f 20 6d 79 63 6c 6f 6e -scm.org/ myclon
9db0: 65 2e 66 6f 73 73 69 6c 0d 0a 20 20 2a 20 20 6d e.fossil.. * m
9dc0: 6b 64 69 72 20 73 72 63 3b 20 63 64 20 73 72 63 kdir src; cd src
9dd0: 0d 0a 20 20 2a 20 20 66 6f 73 73 69 6c 20 20 6f .. * fossil o
9de0: 70 65 6e 20 2e 2e 2f 6d 79 63 6c 6f 6e 65 2e 66 pen ../myclone.f
9df0: 6f 73 73 69 6c 0d 0a 0d 0a 3c 68 34 3e 43 6f 6d ossil....<h4>Com
9e00: 70 69 6c 69 6e 67 20 66 6f 73 73 69 6c 20 73 6f piling fossil so
9e10: 75 72 63 65 20 63 6f 64 65 3c 2f 68 34 3e 0d 0a urce code</h4>..
9e20: 20 20 2a 20 20 49 66 20 79 6f 75 20 77 61 6e 74 * If you want
9e30: 20 3c 73 74 72 6f 6e 67 3e 68 74 74 70 73 3c 2f <strong>https</
9e40: 73 74 72 6f 6e 67 3e 20 73 75 70 70 6f 72 74 73 strong> supports
9e50: 0d 0a 20 20 20 20 20 3c 75 6c 3e 3c 6c 69 3e 43 .. <ul><li>C
9e60: 68 61 6e 67 65 20 4d 61 6b 65 66 69 6c 65 2e 77 hange Makefile.w
9e70: 69 6e 33 32 2e 20 43 68 61 6e 67 65 20 74 68 65 in32. Change the
9e80: 20 6c 69 6e 65 20 22 4c 49 42 20 2b 3d 20 2d 6c line "LIB += -l
9e90: 63 72 79 70 74 6f 20 2d 6c 73 73 6c 22 20 74 6f crypto -lssl" to
9ea0: 20 22 4c 49 42 20 3d 20 2d 6c 73 73 6c 20 2d 6c "LIB = -lssl -l
9eb0: 63 72 79 70 74 6f 20 2d 6c 67 64 69 33 32 20 2d crypto -lgdi32 -
9ec0: 6c 6d 69 6e 67 77 65 78 20 2d 6c 7a 20 2d 6c 77 lmingwex -lz -lw
9ed0: 73 32 5f 33 32 22 2e 3c 2f 6c 69 3e 0d 0a 20 20 s2_32".</li>..
9ee0: 20 20 20 3c 6c 69 3e 6d 61 6b 65 20 2d 66 20 4d <li>make -f M
9ef0: 61 6b 65 66 69 6c 65 2e 77 33 32 20 54 43 43 3d akefile.w32 TCC=
9f00: 22 69 34 38 36 2d 6d 69 6e 67 77 33 32 2d 67 63 "i486-mingw32-gc
9f10: 63 20 2d 4f 73 20 2d 57 61 6c 6c 20 20 2d 44 46 c -Os -Wall -DF
9f20: 4f 53 53 49 4c 5f 49 31 38 4e 3d 30 20 20 2d 4c OSSIL_I18N=0 -L
9f30: 2f 75 73 72 2f 69 34 38 36 2d 6d 69 6e 67 77 33 /usr/i486-mingw3
9f40: 32 2f 6c 69 62 20 2d 49 2f 75 73 72 2f 69 34 38 2/lib -I/usr/i48
9f50: 36 2d 6d 69 6e 67 77 33 32 2f 69 6e 63 6c 75 64 6-mingw32/includ
9f60: 65 20 2d 44 46 4f 53 53 49 4c 5f 45 4e 41 42 4c e -DFOSSIL_ENABL
9f70: 45 5f 53 53 4c 3d 31 22 20 46 4f 53 53 49 4c 5f E_SSL=1" FOSSIL_
9f80: 45 4e 41 42 4c 45 5f 53 53 4c 3d 31 3c 2f 6c 69 ENABLE_SSL=1</li
9f90: 3e 20 3c 2f 75 6c 3e 0d 0a 20 20 2a 20 20 20 65 > </ul>.. * e
9fa0: 6c 73 65 20 6d 61 6b 65 20 2d 66 20 4d 61 6b 65 lse make -f Make
9fb0: 66 69 6c 65 2e 77 33 32 20 54 43 43 3d 22 69 34 file.w32 TCC="i4
9fc0: 38 36 2d 6d 69 6e 67 77 33 32 2d 67 63 63 20 2d 86-mingw32-gcc -
9fd0: 4f 73 20 2d 57 61 6c 6c 20 20 2d 44 46 4f 53 53 Os -Wall -DFOSS
9fe0: 49 4c 5f 49 31 38 4e 3d 30 20 20 2d 4c 2f 75 73 IL_I18N=0 -L/us
9ff0: 72 2f 69 34 38 36 2d 6d 69 6e 67 77 33 32 2f 6c r/i486-mingw32/l
a000: 69 62 20 2d 49 2f 75 73 72 2f 69 34 38 36 2d 6d ib -I/usr/i486-m
a010: 69 6e 67 77 33 32 2f 69 6e 63 6c 75 64 65 20 22 ingw32/include "
a020: 0d 0a 0d 0a 3c 68 34 3e 44 69 73 74 72 69 62 75 ....<h4>Distribu
a030: 74 69 6f 6e 20 74 68 65 20 63 72 6f 73 73 20 63 tion the cross c
a040: 6f 6d 70 69 6c 65 64 20 66 6f 73 73 69 6c 2e 65 ompiled fossil.e
a050: 78 65 3c 2f 68 34 3e 0d 0a 42 65 63 61 75 73 65 xe</h4>..Because
a060: 20 79 6f 75 20 68 61 76 65 20 6c 69 6e 6b 65 64 you have linked
a070: 20 61 67 61 69 6e 73 74 20 7a 6c 69 62 20 61 6e against zlib an
a080: 64 20 6d 61 79 62 65 20 73 73 6c 20 79 6f 75 20 d maybe ssl you
a090: 6e 65 65 64 20 74 6f 20 69 6e 63 6c 75 64 65 20 need to include
a0a0: 66 72 6f 6d 20 3c 73 74 72 6f 6e 67 3e 2f 75 73 from <strong>/us
a0b0: 72 2f 69 34 38 36 2d 6d 69 6e 67 77 33 32 2f 62 r/i486-mingw32/b
a0c0: 69 6e 3c 2f 73 74 72 6f 6e 67 3e 20 7a 6c 69 62 in</strong> zlib
a0d0: 31 2e 64 6c 6c 20 61 6e 64 2c 20 6f 70 74 69 6f 1.dll and, optio
a0e0: 6e 61 6c 2c 20 6c 69 62 73 73 6c 33 32 2e 64 6c nal, libssl32.dl
a0f0: 6c 20 28 61 6e 64 20 6d 61 79 62 65 20 61 6c 73 l (and maybe als
a100: 6f 20 6c 69 62 65 61 79 33 32 2e 64 6c 6c 29 0d o libeay32.dll).
a110: 0a 0d 0a 3c 68 34 3e 74 65 73 74 69 6e 67 20 74 ...<h4>testing t
a120: 68 65 20 63 72 6f 73 73 20 63 6f 6d 70 69 6c 65 he cross compile
a130: 64 20 66 6f 73 73 69 6c 2e 65 78 65 3c 2f 68 34 d fossil.exe</h4
a140: 3e 0d 0a 20 20 2a 20 20 63 6f 70 79 20 66 6f 73 >.. * copy fos
a150: 73 69 6c 2e 65 78 65 20 61 6e 64 20 74 68 65 20 sil.exe and the
a160: 64 6c 6c 27 73 20 74 6f 20 61 20 77 69 6e 64 6f dll's to a windo
a170: 77 73 20 73 79 73 74 65 6d 2e 20 46 6f 72 20 74 ws system. For t
a180: 65 73 74 69 6e 67 20 70 75 72 70 6f 73 65 20 61 esting purpose a
a190: 6c 6c 20 69 6e 20 6f 6e 65 20 64 69 72 65 63 74 ll in one direct
a1a0: 6f 72 79 2e 20 46 6f 72 20 70 72 6f 64 75 63 74 ory. For product
a1b0: 69 6f 6e 20 75 73 65 20 61 20 64 69 72 65 63 74 ion use a direct
a1c0: 6f 72 79 20 69 6e 20 79 6f 75 72 20 50 41 54 48 ory in your PATH
a1d0: 0d 0a 20 20 2a 20 20 66 6f 73 73 69 6c 20 63 6c .. * fossil cl
a1e0: 6f 6e 65 20 68 74 74 70 3a 2f 2f 77 77 77 2e 66 one http://www.f
a1f0: 6f 73 73 69 6c 2d 73 63 6d 2e 6f 72 67 2f 20 68 ossil-scm.org/ h
a200: 74 74 70 2e 66 6f 73 73 69 6c 0d 0a 20 20 2a 20 ttp.fossil.. *
a210: 20 49 66 20 69 74 20 68 61 73 20 3c 73 74 72 6f If it has <stro
a220: 6e 67 3e 68 74 74 70 73 3c 2f 73 74 72 6f 6e 67 ng>https</strong
a230: 3e 20 73 75 70 70 6f 72 74 20 74 68 65 6e 20 66 > support then f
a240: 6f 73 73 69 6c 20 63 6c 6f 6e 65 20 68 74 74 70 ossil clone http
a250: 73 3a 2f 2f 77 77 77 2e 66 6f 73 73 69 6c 2d 73 s://www.fossil-s
a260: 63 6d 2e 6f 72 67 2f 20 68 74 74 70 73 2e 66 6f cm.org/ https.fo
a270: 73 73 69 6c 0d 0a 0d 0a 0d 0a 0d 0a 0d 0a 0d 0a ssil............
a280: 0d 0a 0d 0a 0d 0a 0d 0a 0d 0a 3c 61 20 6e 61 6d ..........<a nam
a290: 65 3d 22 77 79 73 69 77 69 67 22 3e 3c 68 32 3e e="wysiwig"><h2>
a2a0: 4a 61 76 61 73 63 72 69 70 74 20 48 54 4d 4c 20 Javascript HTML
a2b0: 57 59 53 49 57 59 47 20 65 64 69 74 6f 72 20 63 WYSIWYG editor c
a2c0: 6f 6e 74 72 6f 6c 3c 2f 68 32 3e 3c 2f 61 3e 0d ontrol</h2></a>.
a2d0: 0a 3c 68 33 3e 4d 6f 74 69 76 61 74 69 6f 6e 3c .<h3>Motivation<
a2e0: 2f 68 33 3e 0d 0a 20 20 2a 20 20 59 6f 75 20 77 /h3>.. * You w
a2f0: 61 6e 74 20 74 6f 20 65 64 69 74 20 74 68 65 20 ant to edit the
a300: 77 69 6b 69 20 70 61 67 65 73 20 77 69 74 68 20 wiki pages with
a310: 61 20 6e 69 63 65 20 65 64 69 74 6f 72 20 63 6f a nice editor co
a320: 6d 70 6f 6e 65 6e 74 2c 20 69 6e 73 74 65 61 64 mponent, instead
a330: 20 6f 66 20 75 73 69 6e 67 20 70 6c 61 69 6e 20 of using plain
a340: 48 54 4d 4c 2e 0d 0a 0d 0a 3c 68 33 3e 50 72 6f HTML.....<h3>Pro
a350: 62 6c 65 6d 3c 2f 68 33 3e 0d 0a 46 6f 73 73 69 blem</h3>..Fossi
a360: 6c 20 62 79 20 69 74 73 65 6c 66 20 64 6f 65 73 l by itself does
a370: 6e 27 74 20 73 75 70 70 6f 72 74 20 69 74 2e 0d n't support it..
a380: 0a 0d 0a 3c 68 33 3e 53 6f 6c 75 74 69 6f 6e 3c ...<h3>Solution<
a390: 2f 68 33 3e 0d 0a 54 68 65 72 65 20 61 72 65 20 /h3>..There are
a3a0: 70 75 72 65 20 6a 61 76 61 73 63 72 69 70 74 20 pure javascript
a3b0: 65 64 69 74 6f 72 20 63 6f 6d 70 6f 6e 65 6e 74 editor component
a3c0: 73 20 74 68 61 74 20 63 61 6e 20 62 65 20 75 73 s that can be us
a3d0: 65 64 20 66 6f 72 20 74 68 69 73 20 74 61 73 6b ed for this task
a3e0: 2e 0d 0a 54 68 65 20 73 6f 75 72 63 65 20 66 6f ...The source fo
a3f0: 72 20 74 68 65 20 65 64 69 74 6f 72 20 63 6f 6d r the editor com
a400: 70 6f 6e 65 6e 74 20 69 73 20 61 64 64 65 64 20 ponent is added
a410: 74 6f 20 74 68 65 20 72 65 70 6f 73 69 74 6f 72 to the repositor
a420: 79 2e 20 54 68 65 20 68 74 6d 6c 20 68 65 61 64 y. The html head
a430: 65 72 20 6f 72 20 66 6f 6f 74 65 72 20 69 73 20 er or footer is
a440: 70 72 65 70 61 72 65 64 20 74 6f 20 69 6e 63 6c prepared to incl
a450: 75 64 65 20 61 20 6a 61 76 61 73 63 72 69 70 74 ude a javascript
a460: 20 66 69 6c 65 20 61 6e 64 2f 6f 72 20 61 20 43 file and/or a C
a470: 53 53 2e 0d 0a 3c 62 72 3e 0d 0a 54 68 65 73 65 SS...<br>..These
a480: 20 74 77 6f 20 74 69 70 73 20 61 72 65 20 66 72 two tips are fr
a490: 6f 6d 20 74 68 65 20 6d 61 69 6c 69 6e 67 20 6c om the mailing l
a4a0: 69 73 74 3a 0d 0a 52 65 6e 65 20 64 65 20 5a 77 ist:..Rene de Zw
a4b0: 61 72 74 20 33 30 2e 20 4f 63 74 2e 20 32 30 30 art 30. Oct. 200
a4c0: 39 0d 0a 0d 0a 3c 61 20 6e 61 6d 65 3d 22 74 69 9....<a name="ti
a4d0: 6e 79 6d 63 65 22 3e 3c 68 34 3e 54 69 6e 79 4d nymce"><h4>TinyM
a4e0: 43 45 3c 2f 68 34 3e 3c 2f 61 3e 0d 0a 3c 70 3e CE</h4></a>..<p>
a4f0: 0d 0a 53 6f 75 72 63 65 3a 20 3c 61 20 68 72 65 ..Source: <a hre
a500: 66 3d 22 68 74 74 70 3a 2f 2f 74 69 6e 79 6d 63 f="http://tinymc
a510: 65 2e 6d 6f 78 69 65 63 6f 64 65 2e 63 6f 6d 2f e.moxiecode.com/
a520: 22 3e 20 54 69 6e 79 4d 43 45 20 3c 2f 61 3e 0d "> TinyMCE </a>.
a530: 0a 3c 2f 70 3e 0d 0a 3c 68 35 3e 20 45 78 61 6d .</p>..<h5> Exam
a540: 70 6c 65 3c 2f 68 35 3e 0d 0a 3c 70 72 65 20 63 ple</h5>..<pre c
a550: 6c 61 73 73 3d 22 76 65 72 62 61 74 69 6d 22 3e lass="verbatim">
a560: 0d 0a 20 20 20 20 6d 6b 64 69 72 20 74 69 6e 79 .. mkdir tiny
a570: 0d 0a 20 20 20 20 6d 6b 64 69 72 20 74 69 6e 79 .. mkdir tiny
a580: 2f 6a 61 76 61 73 63 72 69 70 74 0d 0a 20 20 20 /javascript..
a590: 20 66 6f 73 73 69 6c 20 6e 65 77 20 74 69 6e 79 fossil new tiny
a5a0: 6d 63 65 2e 66 73 6c 0d 0a 20 20 20 20 66 6f 73 mce.fsl.. fos
a5b0: 73 69 6c 20 75 69 20 74 69 6e 79 6d 63 65 2e 66 sil ui tinymce.f
a5c0: 73 6c 20 7b 63 6f 6e 66 69 67 75 72 65 20 74 68 sl {configure th
a5d0: 65 20 70 72 6f 6a 65 63 74 29 0d 0a 20 20 20 20 e project)..
a5e0: 64 6f 77 6e 6c 6f 61 64 20 74 69 6e 79 6d 63 65 download tinymce
a5f0: 0d 0a 20 20 20 20 75 6e 7a 69 70 20 69 6e 20 74 .. unzip in t
a600: 69 6e 79 2f 6a 61 76 61 73 63 72 69 70 74 0d 0a iny/javascript..
a610: 20 20 20 20 63 64 20 74 69 6e 79 0d 0a 20 20 20 cd tiny..
a620: 20 66 6f 73 73 69 6c 20 6f 70 65 6e 20 2e 2e 2f fossil open ../
a630: 74 69 6e 79 6d 63 65 2e 66 73 6c 0d 0a 20 20 20 tinymce.fsl..
a640: 20 66 6f 73 73 69 6c 20 61 64 64 20 6a 61 76 61 fossil add java
a650: 73 63 72 69 70 74 0d 0a 20 20 20 20 66 6f 73 73 script.. foss
a660: 69 6c 20 63 6f 6d 6d 69 74 20 2d 6d 20 22 61 64 il commit -m "ad
a670: 64 65 64 20 74 69 6d 79 6d 63 65 20 74 6f 20 74 ded timymce to t
a680: 68 65 20 70 72 6f 6a 65 63 74 22 0d 0a 20 20 20 he project"..
a690: 20 66 6f 73 73 69 6c 20 75 69 0d 0a 3c 2f 70 72 fossil ui..</pr
a6a0: 65 3e 0d 0a 53 65 6c 65 63 74 20 61 64 6d 69 6e e>..Select admin
a6b0: 2f 68 65 61 64 65 72 73 20 61 64 64 20 61 66 74 /headers add aft
a6c0: 65 72 20 74 68 65 20 26 6c 74 3b 2f 6c 69 6e 6b er the </link
a6d0: 26 67 74 3b 0d 0a 3c 70 72 65 20 63 6c 61 73 73 >..<pre class
a6e0: 3d 22 76 65 72 62 61 74 69 6d 22 3e 0d 0a 20 26 ="verbatim">.. &
a6f0: 6c 74 3b 74 68 31 26 67 74 3b 0d 0a 20 20 20 69 lt;th1>.. i
a700: 66 20 7b 20 22 74 6b 74 6e 65 77 22 20 65 71 20 f { "tktnew" eq
a710: 24 63 75 72 72 65 6e 74 5f 70 61 67 65 20 0d 0a $current_page ..
a720: 20 20 20 09 7c 7c 20 22 74 6b 74 65 64 69 74 22 .|| "tktedit"
a730: 20 65 71 20 24 63 75 72 72 65 6e 74 5f 70 61 67 eq $current_pag
a740: 65 20 0d 0a 20 20 20 09 7c 7c 20 22 77 69 6b 69 e .. .|| "wiki
a750: 65 64 69 74 22 20 65 71 20 24 63 75 72 72 65 6e edit" eq $curren
a760: 74 5f 70 61 67 65 20 0d 0a 20 20 20 09 7c 7c 20 t_page .. .||
a770: 22 77 69 6b 69 61 70 70 65 6e 64 22 20 65 71 20 "wikiappend" eq
a780: 24 63 75 72 72 65 6e 74 5f 70 61 67 65 20 7d 20 $current_page }
a790: 7b 0d 0a 20 20 20 20 20 20 20 68 74 6d 6c 20 22 {.. html "
a7a0: 3c 73 63 72 69 70 74 20 74 79 70 65 3d 27 74 65 <script type='te
a7b0: 78 74 2f 6a 61 76 61 73 63 72 69 70 74 27 5c 6e xt/javascript'\n
a7c0: 22 0d 0a 20 20 20 20 20 20 20 68 74 6d 6c 20 22 ".. html "
a7d0: 73 72 63 3d 27 2f 64 6f 63 2f 74 69 70 2f 6a 61 src='/doc/tip/ja
a7e0: 76 61 73 63 72 69 70 74 2f 74 69 6e 79 6d 63 65 vascript/tinymce
a7f0: 2f 6a 73 63 72 69 70 74 73 2f 74 69 6e 79 5f 6d /jscripts/tiny_m
a800: 63 65 2f 74 69 6e 79 5f 6d 63 65 2e 6a 73 27 3e ce/tiny_mce.js'>
a810: 5c 6e 22 0d 0a 20 20 20 20 20 20 20 68 74 6d 6c \n".. html
a820: 20 22 3c 2f 73 63 72 69 70 74 3e 5c 6e 22 0d 0a "</script>\n"..
a830: 20 20 20 20 20 20 20 68 74 6d 6c 20 22 20 3c 73 html " <s
a840: 63 72 69 70 74 20 74 79 70 65 3d 27 74 65 78 74 cript type='text
a850: 2f 6a 61 76 61 73 63 72 69 70 74 27 3e 5c 6e 22 /javascript'>\n"
a860: 0d 0a 20 20 20 20 20 20 20 70 75 74 73 20 22 74 .. puts "t
a870: 69 6e 79 4d 43 45 2e 69 6e 69 74 28 7b 20 6d 6f inyMCE.init({ mo
a880: 64 65 20 3a 20 27 73 70 65 63 69 66 69 63 5f 74 de : 'specific_t
a890: 65 78 74 61 72 65 61 73 27 20 2c 20 65 64 69 74 extareas' , edit
a8a0: 6f 72 5f 73 65 6c 65 63 74 6f 72 20 3a 20 27 77 or_selector : 'w
a8b0: 69 6b 69 65 64 69 74 27 2c 20 74 68 65 6d 65 3a ikiedit', theme:
a8c0: 20 27 61 64 76 61 6e 63 65 64 27 2c 77 69 64 74 'advanced',widt
a8d0: 68 20 3a 20 27 39 30 25 27 20 7d 20 29 3b 22 0d h : '90%' } );".
a8e0: 0a 20 20 20 20 20 20 20 68 74 6d 6c 20 22 3c 2f . html "</
a8f0: 73 63 72 69 70 74 3e 5c 6e 22 0d 0a 20 20 20 7d script>\n".. }
a900: 0d 0a 26 6c 74 3b 2f 74 68 31 26 67 74 3b 0d 0a ..</th1>..
a910: 3c 2f 70 72 65 3e 0d 0a 61 6e 64 20 73 61 76 65 </pre>..and save
a920: 2e 0d 0a 3c 61 20 6e 61 6d 65 3d 22 6d 61 72 6b ...<a name="mark
a930: 69 74 75 70 22 3e 3c 68 33 3e 6d 61 72 6b 69 74 itup"><h3>markit
a940: 75 70 21 3c 2f 68 33 3e 3c 2f 61 3e 0d 0a 3c 70 up!</h3></a>..<p
a950: 3e 0d 0a 53 6f 75 72 63 65 3a 20 3c 61 20 68 72 >..Source: <a hr
a960: 65 66 3d 22 68 74 74 70 3a 2f 2f 6d 61 72 6b 69 ef="http://marki
a970: 74 75 70 2e 6a 61 79 73 61 6c 76 61 74 2e 63 6f tup.jaysalvat.co
a980: 6d 2f 68 6f 6d 65 2f 22 3e 20 4d 61 72 6b 69 74 m/home/"> Markit
a990: 75 70 20 3c 2f 61 3e 0d 0a 3c 2f 70 3e 0d 0a 3c up </a>..</p>..<
a9a0: 68 35 3e 20 45 78 61 6d 70 6c 65 3c 2f 68 35 3e h5> Example</h5>
a9b0: 0d 0a 3c 70 72 65 20 63 6c 61 73 73 3d 22 76 65 ..<pre class="ve
a9c0: 72 62 61 74 69 6d 22 3e 0d 0a 20 20 20 20 6d 6b rbatim">.. mk
a9d0: 64 69 72 20 6d 61 72 6b 69 74 75 70 0d 0a 20 20 dir markitup..
a9e0: 20 20 6d 6b 64 69 72 20 6d 61 72 6b 69 74 75 70 mkdir markitup
a9f0: 2f 6a 61 76 61 73 63 72 69 70 74 0d 0a 20 20 20 /javascript..
aa00: 20 66 6f 73 73 69 6c 20 6e 65 77 20 6d 61 72 6b fossil new mark
aa10: 69 74 75 70 2e 66 73 6c 0d 0a 20 20 20 20 66 6f itup.fsl.. fo
aa20: 73 73 69 6c 20 75 69 20 6d 61 72 6b 69 74 75 70 ssil ui markitup
aa30: 2e 66 73 6c 20 7b 63 6f 6e 66 69 67 75 72 65 20 .fsl {configure
aa40: 74 68 65 20 70 72 6f 6a 65 63 74 29 0d 0a 20 20 the project)..
aa50: 20 20 64 6f 77 6e 6c 6f 61 64 20 6d 61 72 6b 69 download marki
aa60: 74 75 70 20 61 6e 64 20 6a 71 75 65 72 79 0d 0a tup and jquery..
aa70: 20 20 20 20 75 6e 7a 69 70 20 69 6e 20 6d 61 72 unzip in mar
aa80: 6b 69 74 75 70 2f 6a 61 76 61 73 63 72 69 70 74 kitup/javascript
aa90: 2c 20 63 64 20 6c 61 74 65 73 74 2c 20 6d 76 20 , cd latest, mv
aaa0: 2a 20 2e 2e 2c 20 72 6d 64 69 72 20 6c 61 74 65 * .., rmdir late
aab0: 73 74 0d 0a 20 20 20 20 63 6f 70 79 20 6a 71 75 st.. copy jqu
aac0: 65 72 79 2d 2e 2e 2e 2e 6a 73 20 74 6f 20 6a 61 ery-....js to ja
aad0: 76 61 73 63 72 69 70 74 2f 6a 71 75 65 72 79 2e vascript/jquery.
aae0: 6a 73 0d 0a 20 20 20 20 63 64 20 6d 61 72 6b 69 js.. cd marki
aaf0: 74 75 70 0d 0a 20 20 20 20 66 6f 73 73 69 6c 20 tup.. fossil
ab00: 6f 70 65 6e 20 2e 2e 2f 6d 61 72 6b 69 74 75 70 open ../markitup
ab10: 2e 66 73 6c 0d 0a 20 20 20 20 66 6f 73 73 69 6c .fsl.. fossil
ab20: 20 61 64 64 20 6a 61 76 61 73 63 72 69 70 74 0d add javascript.
ab30: 0a 20 20 20 20 66 6f 73 73 69 6c 20 63 6f 6d 6d . fossil comm
ab40: 69 74 20 2d 6d 20 22 61 64 64 65 64 20 6d 61 72 it -m "added mar
ab50: 6b 69 74 75 70 20 61 6e 20 6a 71 75 65 72 79 20 kitup an jquery
ab60: 74 6f 20 74 68 65 20 70 72 6f 6a 65 63 74 22 0d to the project".
ab70: 0a 20 20 20 20 66 6f 73 73 69 6c 20 75 69 0d 0a . fossil ui..
ab80: 3c 2f 70 72 65 3e 0d 0a 73 65 6c 65 63 74 20 61 </pre>..select a
ab90: 64 6d 69 6e 2f 68 65 61 64 65 72 73 20 61 64 64 dmin/headers add
aba0: 20 61 66 74 65 72 20 74 68 65 20 3c 2f 6c 69 6e after the </lin
abb0: 6b 3e 20 70 75 74 0d 0a 3c 70 72 65 20 63 6c 61 k> put..<pre cla
abc0: 73 73 3d 22 76 65 72 62 61 74 69 6d 22 3e 0d 0a ss="verbatim">..
abd0: 20 20 20 20 26 6c 74 3b 6c 69 6e 6b 20 72 65 6c <link rel
abe0: 3d 22 73 74 79 6c 65 73 68 65 65 74 22 20 74 79 ="stylesheet" ty
abf0: 70 65 3d 22 74 65 78 74 2f 63 73 73 22 20 68 72 pe="text/css" hr
ac00: 65 66 3d 22 2f 64 6f 63 2f 74 69 70 2f 6a 61 76 ef="/doc/tip/jav
ac10: 61 73 63 72 69 70 74 2f 6d 61 72 6b 69 74 75 70 ascript/markitup
ac20: 2f 73 6b 69 6e 73 2f 6d 61 72 6b 69 74 75 70 2f /skins/markitup/
ac30: 73 74 79 6c 65 2e 63 73 73 22 20 2f 26 67 74 3b style.css" />
ac40: 0d 0a 20 20 20 20 26 6c 74 3b 6c 69 6e 6b 20 72 .. <link r
ac50: 65 6c 3d 22 73 74 79 6c 65 73 68 65 65 74 22 20 el="stylesheet"
ac60: 74 79 70 65 3d 22 74 65 78 74 2f 63 73 73 22 20 type="text/css"
ac70: 68 72 65 66 3d 22 2f 64 6f 63 2f 74 69 70 2f 6a href="/doc/tip/j
ac80: 61 76 61 73 63 72 69 70 74 2f 6d 61 72 6b 69 74 avascript/markit
ac90: 75 70 2f 73 65 74 73 2f 64 65 66 61 75 6c 74 2f up/sets/default/
aca0: 73 74 79 6c 65 2e 63 73 73 22 20 2f 26 67 74 3b style.css" />
acb0: 0d 0a 20 20 20 20 26 6c 74 3b 73 63 72 69 70 74 .. <script
acc0: 20 74 79 70 65 3d 22 74 65 78 74 2f 6a 61 76 61 type="text/java
acd0: 73 63 72 69 70 74 22 20 73 72 63 3d 22 2f 64 6f script" src="/do
ace0: 63 2f 74 69 70 2f 6a 61 76 61 73 63 72 69 70 74 c/tip/javascript
acf0: 2f 6a 71 75 65 72 79 2e 6a 73 22 26 67 74 3b 0d /jquery.js">.
ad00: 0a 20 20 20 20 26 6c 74 3b 2f 73 63 72 69 70 74 . </script
ad10: 26 67 74 3b 0d 0a 20 20 20 20 26 6c 74 3b 73 63 >.. <sc
ad20: 72 69 70 74 20 74 79 70 65 3d 22 74 65 78 74 2f ript type="text/
ad30: 6a 61 76 61 73 63 72 69 70 74 22 20 73 72 63 3d javascript" src=
ad40: 22 2f 64 6f 63 2f 74 69 70 2f 6a 61 76 61 73 63 "/doc/tip/javasc
ad50: 72 69 70 74 2f 6d 61 72 6b 69 74 75 70 2f 6a 71 ript/markitup/jq
ad60: 75 65 72 79 2e 6d 61 72 6b 69 74 75 70 2e 6a 73 uery.markitup.js
ad70: 22 26 67 74 3b 0d 0a 20 20 20 20 26 6c 74 3b 2f ">.. </
ad80: 73 63 72 69 70 74 26 67 74 3b 0d 0a 3c 2f 70 72 script>..</pr
ad90: 65 3e 0d 0a 0d 0a 61 6e 64 20 73 61 76 65 0d 0a e>....and save..
ada0: 73 65 6c 65 63 74 20 61 64 6d 69 6e 2f 66 6f 6f select admin/foo
adb0: 74 65 72 20 61 64 64 20 61 62 6f 76 65 20 74 68 ter add above th
adc0: 65 20 66 69 72 73 74 20 6c 69 6e 65 0d 0a 0d 0a e first line....
add0: 3c 70 72 65 20 63 6c 61 73 73 3d 22 76 65 72 62 <pre class="verb
ade0: 61 74 69 6d 22 3e 0d 0a 20 20 20 20 26 6c 74 3b atim">.. <
adf0: 73 63 72 69 70 74 20 74 79 70 65 3d 27 74 65 78 script type='tex
ae00: 74 2f 6a 61 76 61 73 63 72 69 70 74 27 26 67 74 t/javascript'>
ae10: 3b 0d 0a 20 20 20 20 20 20 76 61 72 20 6d 20 3d ;.. var m =
ae20: 20 64 6f 63 75 6d 65 6e 74 2e 67 65 74 45 6c 65 document.getEle
ae30: 6d 65 6e 74 73 42 79 54 61 67 4e 61 6d 65 28 27 mentsByTagName('
ae40: 74 65 78 74 61 72 65 61 27 29 0d 0a 20 20 20 20 textarea')..
ae50: 20 20 76 61 72 20 6c 20 3d 20 6d 2e 6c 65 6e 67 var l = m.leng
ae60: 74 68 0d 0a 20 20 20 20 20 20 76 61 72 20 6e 0d th.. var n.
ae70: 0a 20 20 20 20 20 20 3c 6e 6f 77 69 6b 69 3e 76 . <nowiki>v
ae80: 61 72 20 6d 79 53 65 74 74 69 6e 67 73 20 3d 20 ar mySettings =
ae90: 7b 0d 0a 09 6e 61 6d 65 53 70 61 63 65 3a 20 20 {...nameSpace:
aea0: 20 20 20 20 20 22 68 74 6d 6c 22 2c 20 2f 2f 20 "html", //
aeb0: 55 73 65 66 75 6c 20 74 6f 20 70 72 65 76 65 6e Useful to preven
aec0: 74 20 6d 75 6c 74 69 2d 69 6e 73 74 61 6e 63 65 t multi-instance
aed0: 73 20 43 53 53 20 63 6f 6e 66 6c 69 63 74 0d 0a s CSS conflict..
aee0: 09 6f 6e 53 68 69 66 74 45 6e 74 65 72 3a 20 20 .onShiftEnter:
aef0: 20 20 7b 6b 65 65 70 44 65 66 61 75 6c 74 3a 66 {keepDefault:f
af00: 61 6c 73 65 2c 20 72 65 70 6c 61 63 65 57 69 74 alse, replaceWit
af10: 68 3a 27 26 6c 74 3b 62 72 20 2f 26 67 74 3b 5c h:'<br />\
af20: 6e 27 7d 2c 0d 0a 09 6f 6e 43 74 72 6c 45 6e 74 n'},...onCtrlEnt
af30: 65 72 3a 20 20 20 20 20 7b 6b 65 65 70 44 65 66 er: {keepDef
af40: 61 75 6c 74 3a 66 61 6c 73 65 2c 20 6f 70 65 6e ault:false, open
af50: 57 69 74 68 3a 27 5c 6e 26 6c 74 3b 70 26 67 74 With:'\n<p>
af60: 3b 27 2c 20 63 6c 6f 73 65 57 69 74 68 3a 27 26 ;', closeWith:'&
af70: 6c 74 3b 2f 70 26 67 74 3b 5c 6e 27 7d 2c 0d 0a lt;/p>\n'},..
af80: 09 6f 6e 54 61 62 3a 20 20 20 20 20 20 20 20 20 .onTab:
af90: 20 20 7b 6b 65 65 70 44 65 66 61 75 6c 74 3a 66 {keepDefault:f
afa0: 61 6c 73 65 2c 20 6f 70 65 6e 57 69 74 68 3a 27 alse, openWith:'
afb0: 20 20 20 20 20 27 7d 2c 0d 0a 09 6d 61 72 6b 75 '},...marku
afc0: 70 53 65 74 3a 20 20 5b 0d 0a 09 20 20 20 20 7b pSet: [... {
afd0: 6e 61 6d 65 3a 27 48 65 61 64 69 6e 67 20 31 27 name:'Heading 1'
afe0: 2c 20 6b 65 79 3a 27 31 27 2c 20 6f 70 65 6e 57 , key:'1', openW
aff0: 69 74 68 3a 27 26 6c 74 3b 68 31 28 21 28 20 63 ith:'<h1(!( c
b000: 6c 61 73 73 3d 22 5b 21 5b 43 6c 61 73 73 5d 21 lass="[![Class]!
b010: 5d 22 29 21 29 26 67 74 3b 27 2c 20 63 6c 6f 73 ]")!)>', clos
b020: 65 57 69 74 68 3a 27 26 6c 74 3b 2f 68 31 26 67 eWith:'</h1&g
b030: 74 3b 27 2c 20 70 6c 61 63 65 48 6f 6c 64 65 72 t;', placeHolder
b040: 3a 27 59 6f 75 72 20 74 69 74 6c 65 20 68 65 72 :'Your title her
b050: 65 2e 2e 2e 27 20 7d 2c 0d 0a 09 20 20 20 20 7b e...' },... {
b060: 6e 61 6d 65 3a 27 48 65 61 64 69 6e 67 20 32 27 name:'Heading 2'
b070: 2c 20 6b 65 79 3a 27 32 27 2c 20 6f 70 65 6e 57 , key:'2', openW
b080: 69 74 68 3a 27 26 6c 74 3b 68 32 28 21 28 20 63 ith:'<h2(!( c
b090: 6c 61 73 73 3d 22 5b 21 5b 43 6c 61 73 73 5d 21 lass="[![Class]!
b0a0: 5d 22 29 21 29 26 67 74 3b 27 2c 20 63 6c 6f 73 ]")!)>', clos
b0b0: 65 57 69 74 68 3a 27 26 6c 74 3b 2f 68 32 26 67 eWith:'</h2&g
b0c0: 74 3b 27 2c 20 70 6c 61 63 65 48 6f 6c 64 65 72 t;', placeHolder
b0d0: 3a 27 59 6f 75 72 20 74 69 74 6c 65 20 68 65 72 :'Your title her
b0e0: 65 2e 2e 2e 27 20 7d 2c 0d 0a 09 20 20 20 20 7b e...' },... {
b0f0: 6e 61 6d 65 3a 27 48 65 61 64 69 6e 67 20 33 27 name:'Heading 3'
b100: 2c 20 6b 65 79 3a 27 33 27 2c 20 6f 70 65 6e 57 , key:'3', openW
b110: 69 74 68 3a 27 26 6c 74 3b 68 33 28 21 28 20 63 ith:'<h3(!( c
b120: 6c 61 73 73 3d 22 5b 21 5b 43 6c 61 73 73 5d 21 lass="[![Class]!
b130: 5d 22 29 21 29 26 67 74 3b 27 2c 20 63 6c 6f 73 ]")!)>', clos
b140: 65 57 69 74 68 3a 27 26 6c 74 3b 2f 68 33 26 67 eWith:'</h3&g
b150: 74 3b 27 2c 20 70 6c 61 63 65 48 6f 6c 64 65 72 t;', placeHolder
b160: 3a 27 59 6f 75 72 20 74 69 74 6c 65 20 68 65 72 :'Your title her
b170: 65 2e 2e 2e 27 20 7d 2c 0d 0a 09 20 20 20 20 7b e...' },... {
b180: 6e 61 6d 65 3a 27 48 65 61 64 69 6e 67 20 34 27 name:'Heading 4'
b190: 2c 20 6b 65 79 3a 27 34 27 2c 20 6f 70 65 6e 57 , key:'4', openW
b1a0: 69 74 68 3a 27 26 6c 74 3b 68 34 28 21 28 20 63 ith:'<h4(!( c
b1b0: 6c 61 73 73 3d 22 5b 21 5b 43 6c 61 73 73 5d 21 lass="[![Class]!
b1c0: 5d 22 29 21 29 26 67 74 3b 27 2c 20 63 6c 6f 73 ]")!)>', clos
b1d0: 65 57 69 74 68 3a 27 26 6c 74 3b 2f 68 34 26 67 eWith:'</h4&g
b1e0: 74 3b 27 2c 20 70 6c 61 63 65 48 6f 6c 64 65 72 t;', placeHolder
b1f0: 3a 27 59 6f 75 72 20 74 69 74 6c 65 20 68 65 72 :'Your title her
b200: 65 2e 2e 2e 27 20 7d 2c 0d 0a 09 20 20 20 20 7b e...' },... {
b210: 6e 61 6d 65 3a 27 48 65 61 64 69 6e 67 20 35 27 name:'Heading 5'
b220: 2c 20 6b 65 79 3a 27 35 27 2c 20 6f 70 65 6e 57 , key:'5', openW
b230: 69 74 68 3a 27 26 6c 74 3b 68 35 28 21 28 20 63 ith:'<h5(!( c
b240: 6c 61 73 73 3d 22 5b 21 5b 43 6c 61 73 73 5d 21 lass="[![Class]!
b250: 5d 22 29 21 29 26 67 74 3b 27 2c 20 63 6c 6f 73 ]")!)>', clos
b260: 65 57 69 74 68 3a 27 26 6c 74 3b 2f 68 35 26 67 eWith:'</h5&g
b270: 74 3b 27 2c 20 70 6c 61 63 65 48 6f 6c 64 65 72 t;', placeHolder
b280: 3a 27 59 6f 75 72 20 74 69 74 6c 65 20 68 65 72 :'Your title her
b290: 65 2e 2e 2e 27 20 7d 2c 0d 0a 09 20 20 20 20 7b e...' },... {
b2a0: 6e 61 6d 65 3a 27 48 65 61 64 69 6e 67 20 36 27 name:'Heading 6'
b2b0: 2c 20 6b 65 79 3a 27 36 27 2c 20 6f 70 65 6e 57 , key:'6', openW
b2c0: 69 74 68 3a 27 26 6c 74 3b 68 36 28 21 28 20 63 ith:'<h6(!( c
b2d0: 6c 61 73 73 3d 22 5b 21 5b 43 6c 61 73 73 5d 21 lass="[![Class]!
b2e0: 5d 22 29 21 29 26 67 74 3b 27 2c 20 63 6c 6f 73 ]")!)>', clos
b2f0: 65 57 69 74 68 3a 27 26 6c 74 3b 2f 68 36 26 67 eWith:'</h6&g
b300: 74 3b 27 2c 20 70 6c 61 63 65 48 6f 6c 64 65 72 t;', placeHolder
b310: 3a 27 59 6f 75 72 20 74 69 74 6c 65 20 68 65 72 :'Your title her
b320: 65 2e 2e 2e 27 20 7d 2c 0d 0a 09 20 20 20 20 7b e...' },... {
b330: 6e 61 6d 65 3a 27 50 61 72 61 67 72 61 70 68 27 name:'Paragraph'
b340: 2c 20 6f 70 65 6e 57 69 74 68 3a 27 26 6c 74 3b , openWith:'<
b350: 70 28 21 28 20 63 6c 61 73 73 3d 22 5b 21 5b 43 p(!( class="[![C
b360: 6c 61 73 73 5d 21 5d 22 29 21 29 26 67 74 3b 27 lass]!]")!)>'
b370: 2c 20 63 6c 6f 73 65 57 69 74 68 3a 27 26 6c 74 , closeWith:'<
b380: 3b 2f 70 26 67 74 3b 27 20 20 7d 2c 0d 0a 09 20 ;/p>' },...
b390: 20 20 20 7b 73 65 70 61 72 61 74 6f 72 3a 27 2d {separator:'-
b3a0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 27 20 --------------'
b3b0: 7d 2c 0d 0a 09 20 20 20 20 7b 6e 61 6d 65 3a 27 },... {name:'
b3c0: 42 6f 6c 64 27 2c 20 6b 65 79 3a 27 42 27 2c 20 Bold', key:'B',
b3d0: 6f 70 65 6e 57 69 74 68 3a 27 26 6c 74 3b 73 74 openWith:'<st
b3e0: 72 6f 6e 67 26 67 74 3b 27 2c 20 63 6c 6f 73 65 rong>', close
b3f0: 57 69 74 68 3a 27 26 6c 74 3b 2f 73 74 72 6f 6e With:'</stron
b400: 67 26 67 74 3b 27 20 7d 2c 0d 0a 09 20 20 20 20 g>' },...
b410: 7b 6e 61 6d 65 3a 27 49 74 61 6c 69 63 27 2c 20 {name:'Italic',
b420: 6b 65 79 3a 27 49 27 2c 20 6f 70 65 6e 57 69 74 key:'I', openWit
b430: 68 3a 27 26 6c 74 3b 65 6d 26 67 74 3b 27 2c 20 h:'<em>',
b440: 63 6c 6f 73 65 57 69 74 68 3a 27 26 6c 74 3b 2f closeWith:'</
b450: 65 6d 26 67 74 3b 27 20 20 7d 2c 0d 0a 09 20 20 em>' },...
b460: 20 20 7b 6e 61 6d 65 3a 27 53 74 72 6f 6b 65 20 {name:'Stroke
b470: 74 68 72 6f 75 67 68 27 2c 20 6b 65 79 3a 27 53 through', key:'S
b480: 27 2c 20 6f 70 65 6e 57 69 74 68 3a 27 26 6c 74 ', openWith:'<
b490: 3b 64 65 6c 26 67 74 3b 27 2c 20 63 6c 6f 73 65 ;del>', close
b4a0: 57 69 74 68 3a 27 26 6c 74 3b 2f 64 65 6c 26 67 With:'</del&g
b4b0: 74 3b 27 20 7d 2c 0d 0a 09 20 20 20 20 7b 73 65 t;' },... {se
b4c0: 70 61 72 61 74 6f 72 3a 27 2d 2d 2d 2d 2d 2d 2d parator:'-------
b4d0: 2d 2d 2d 2d 2d 2d 2d 2d 27 20 7d 2c 0d 0a 09 20 --------' },...
b4e0: 20 20 20 7b 6e 61 6d 65 3a 27 55 6c 27 2c 20 6f {name:'Ul', o
b4f0: 70 65 6e 57 69 74 68 3a 27 26 6c 74 3b 75 6c 26 penWith:'<ul&
b500: 67 74 3b 5c 6e 27 2c 20 63 6c 6f 73 65 57 69 74 gt;\n', closeWit
b510: 68 3a 27 26 6c 74 3b 2f 75 6c 26 67 74 3b 5c 6e h:'</ul>\n
b520: 27 20 7d 2c 0d 0a 09 20 20 20 20 7b 6e 61 6d 65 ' },... {name
b530: 3a 27 4f 6c 27 2c 20 6f 70 65 6e 57 69 74 68 3a :'Ol', openWith:
b540: 27 26 6c 74 3b 6f 6c 26 67 74 3b 5c 6e 27 2c 20 '<ol>\n',
b550: 63 6c 6f 73 65 57 69 74 68 3a 27 26 6c 74 3b 2f closeWith:'</
b560: 6f 6c 26 67 74 3b 5c 6e 27 20 7d 2c 0d 0a 09 20 ol>\n' },...
b570: 20 20 20 7b 6e 61 6d 65 3a 27 4c 69 27 2c 20 6f {name:'Li', o
b580: 70 65 6e 57 69 74 68 3a 27 26 6c 74 3b 6c 69 26 penWith:'<li&
b590: 67 74 3b 27 2c 20 63 6c 6f 73 65 57 69 74 68 3a gt;', closeWith:
b5a0: 27 26 6c 74 3b 2f 6c 69 26 67 74 3b 27 20 7d 2c '</li>' },
b5b0: 0d 0a 09 20 20 20 20 7b 73 65 70 61 72 61 74 6f ... {separato
b5c0: 72 3a 27 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d r:'-------------
b5d0: 2d 2d 27 20 7d 2c 0d 0a 09 20 20 20 20 7b 6e 61 --' },... {na
b5e0: 6d 65 3a 27 50 69 63 74 75 72 65 27 2c 20 6b 65 me:'Picture', ke
b5f0: 79 3a 27 50 27 2c 20 72 65 70 6c 61 63 65 57 69 y:'P', replaceWi
b600: 74 68 3a 27 26 6c 74 3b 69 6d 67 20 73 72 63 3d th:'<img src=
b610: 22 5b 21 5b 53 6f 75 72 63 65 3a 21 3a 68 74 74 "[![Source:!:htt
b620: 70 3a 2f 2f 5d 21 5d 22 20 61 6c 74 3d 22 5b 21 p://]!]" alt="[!
b630: 5b 41 6c 74 65 72 6e 61 74 69 76 65 20 74 65 78 [Alternative tex
b640: 74 5d 21 5d 22 20 2f 26 67 74 3b 27 20 7d 2c 0d t]!]" />' },.
b650: 0a 09 20 20 20 20 7b 6e 61 6d 65 3a 27 4c 69 6e .. {name:'Lin
b660: 6b 27 2c 20 6b 65 79 3a 27 4c 27 2c 20 6f 70 65 k', key:'L', ope
b670: 6e 57 69 74 68 3a 27 26 6c 74 3b 61 20 68 72 65 nWith:'<a hre
b680: 66 3d 22 5b 21 5b 4c 69 6e 6b 3a 21 3a 68 74 74 f="[![Link:!:htt
b690: 70 3a 2f 2f 5d 21 5d 22 28 21 28 20 74 69 74 6c p://]!]"(!( titl
b6a0: 65 3d 22 5b 21 5b 54 69 74 6c 65 5d 21 5d 22 29 e="[![Title]!]")
b6b0: 21 29 26 67 74 3b 27 2c 20 63 6c 6f 73 65 57 69 !)>', closeWi
b6c0: 74 68 3a 27 26 6c 74 3b 2f 61 26 67 74 3b 27 2c th:'</a>',
b6d0: 20 70 6c 61 63 65 48 6f 6c 64 65 72 3a 27 59 6f placeHolder:'Yo
b6e0: 75 72 20 74 65 78 74 20 74 6f 20 6c 69 6e 6b 2e ur text to link.
b6f0: 2e 2e 27 20 7d 2c 0d 0a 09 20 20 20 20 7b 73 65 ..' },... {se
b700: 70 61 72 61 74 6f 72 3a 27 2d 2d 2d 2d 2d 2d 2d parator:'-------
b710: 2d 2d 2d 2d 2d 2d 2d 2d 27 20 7d 2c 0d 0a 09 20 --------' },...
b720: 20 20 20 7b 6e 61 6d 65 3a 27 43 6c 65 61 6e 27 {name:'Clean'
b730: 2c 20 72 65 70 6c 61 63 65 57 69 74 68 3a 66 75 , replaceWith:fu
b740: 6e 63 74 69 6f 6e 28 68 29 20 7b 20 72 65 74 75 nction(h) { retu
b750: 72 6e 20 68 2e 73 65 6c 65 63 74 69 6f 6e 2e 72 rn h.selection.r
b760: 65 70 6c 61 63 65 28 2f 26 6c 74 3b 28 2e 2a 3f eplace(/<(.*?
b770: 29 26 67 74 3b 2f 67 2c 20 22 22 29 20 7d 20 7d )>/g, "") } }
b780: 2c 0d 0a 09 20 20 20 20 7b 6e 61 6d 65 3a 27 50 ,... {name:'P
b790: 72 65 76 69 65 77 27 2c 20 63 61 6c 6c 3a 27 70 review', call:'p
b7a0: 72 65 76 69 65 77 27 2c 20 63 6c 61 73 73 4e 61 review', classNa
b7b0: 6d 65 3a 27 70 72 65 76 69 65 77 27 20 7d 0d 0a me:'preview' }..
b7c0: 09 5d 0d 0a 20 20 20 20 20 20 7d 0d 0a 20 20 20 .].. }..
b7d0: 20 20 20 66 6f 72 28 76 61 72 20 69 3d 30 20 3b for(var i=0 ;
b7e0: 69 20 3c 20 6c 3b 69 2b 2b 29 7b 0d 0a 09 6e 20 i < l;i++){...n
b7f0: 3d 20 6d 5b 69 5d 2e 6e 61 6d 65 0d 0a 09 69 66 = m[i].name...if
b800: 28 20 27 63 6f 6d 6d 65 6e 74 27 20 3d 3d 20 6e ( 'comment' == n
b810: 20 7c 7c 20 27 63 6d 61 70 70 6e 64 27 20 3d 3d || 'cmappnd' ==
b820: 20 6e 20 7c 7c 20 22 77 22 20 20 3d 3d 20 6e 29 n || "w" == n)
b830: 7b 0d 0a 09 20 20 20 20 6d 5b 69 5d 2e 69 64 20 {... m[i].id
b840: 3d 20 6e 3c 2f 6e 6f 77 69 6b 69 3e 0d 0a 09 20 = n</nowiki>...
b850: 20 20 20 24 28 64 6f 63 75 6d 65 6e 74 29 2e 72 $(document).r
b860: 65 61 64 79 28 66 75 6e 63 74 69 6f 6e 28 29 20 eady(function()
b870: 7b 0d 0a 09 20 20 20 20 20 20 24 28 22 23 22 20 {... $("#"
b880: 2b 20 6e 29 2e 6d 61 72 6b 49 74 55 70 28 6d 79 + n).markItUp(my
b890: 53 65 74 74 69 6e 67 73 29 3b 0d 0a 09 20 20 20 Settings);...
b8a0: 20 7d 29 3b 0d 0a 09 7d 0d 0a 20 20 20 20 20 20 });...}..
b8b0: 7d 0d 0a 20 20 20 20 26 6c 74 3b 2f 73 63 72 69 }.. </scri
b8c0: 70 74 26 67 74 3b 0d 0a 20 3c 2f 70 72 65 3e 0d pt>.. </pre>.
b8d0: 0a 0d 0a 3c 68 32 3e 3c 61 20 6e 61 6d 65 3d 22 ...<h2><a name="
b8e0: 74 69 63 6b 65 74 2d 63 68 65 63 6b 69 6e 2d 6c ticket-checkin-l
b8f0: 69 6e 6b 73 22 3e 4c 69 6e 6b 69 6e 67 20 54 69 inks">Linking Ti
b900: 63 6b 65 74 73 20 74 6f 20 43 68 65 63 6b 69 6e ckets to Checkin
b910: 27 73 3c 2f 61 3e 3c 2f 68 32 3e 0d 0a 0d 0a 49 's</a></h2>....I
b920: 74 27 73 20 65 61 73 79 20 74 6f 20 6c 69 6e 6b t's easy to link
b930: 20 61 20 63 68 65 63 6b 69 6e 20 74 6f 20 61 20 a checkin to a
b940: 74 69 63 6b 65 74 2e 2e 2e 20 73 69 6d 70 6c 79 ticket... simply
b950: 20 69 6e 63 6c 75 64 65 20 3c 6e 6f 77 69 6b 69 include <nowiki
b960: 3e 5b 74 69 63 6b 65 74 2d 75 75 69 64 5d 3c 2f >[ticket-uuid]</
b970: 6e 6f 77 69 6b 69 3e 20 69 6e 20 79 6f 75 72 20 nowiki> in your
b980: 63 6f 6d 6d 69 74 20 63 6f 6d 6d 65 6e 74 2e 20 commit comment.
b990: 4e 6f 77 2c 20 77 68 65 6e 20 79 6f 75 20 64 6f Now, when you do
b9a0: 20 74 68 61 74 2c 20 79 6f 75 20 61 6c 73 6f 20 that, you also
b9b0: 68 61 76 65 20 74 68 65 20 61 62 69 6c 69 74 79 have the ability
b9c0: 20 74 6f 20 6c 69 6e 6b 20 61 20 74 69 63 6b 65 to link a ticke
b9d0: 74 20 74 6f 20 74 68 65 20 61 73 73 6f 63 69 61 t to the associa
b9e0: 74 65 64 20 63 68 65 63 6b 69 6e 28 73 29 2e 0d ted checkin(s)..
b9f0: 0a 0d 0a 54 68 69 73 20 69 73 20 6a 75 73 74 20 ...This is just
ba00: 6f 6e 65 20 77 61 79 20 6f 66 20 64 6f 69 6e 67 one way of doing
ba10: 20 74 68 69 73 2c 20 61 6e 64 20 77 68 61 74 20 this, and what
ba20: 49 20 64 65 63 69 64 65 64 20 74 6f 20 64 6f 2e I decided to do.
ba30: 20 59 6f 75 20 63 61 6e 20 6f 66 20 63 6f 75 72 You can of cour
ba40: 73 65 20 61 6c 74 65 72 20 69 74 20 66 6f 72 20 se alter it for
ba50: 79 6f 75 72 20 6f 77 6e 20 73 74 79 6c 65 2f 6c your own style/l
ba60: 61 79 6f 75 74 2e 0d 0a 0d 0a 46 69 72 73 74 3a ayout.....First:
ba70: 20 41 64 64 20 61 20 22 53 68 6f 72 74 20 55 55 Add a "Short UU
ba80: 49 44 22 20 74 6f 20 79 6f 75 72 20 56 69 65 77 ID" to your View
ba90: 20 54 69 63 6b 65 74 20 70 61 67 65 2e 20 59 6f Ticket page. Yo
baa0: 75 20 63 61 6e 20 64 6f 20 74 68 69 73 20 62 79 u can do this by
bab0: 3a 20 0d 0a 0d 0a 3c 76 65 72 62 61 74 69 6d 3e : ....<verbatim>
bac0: 0d 0a 3c 74 68 31 3e 0d 0a 73 65 74 20 73 68 6f ..<th1>..set sho
bad0: 72 74 55 75 69 64 20 5b 73 74 72 69 6e 67 20 72 rtUuid [string r
bae0: 61 6e 67 65 20 24 74 6b 74 5f 75 75 69 64 20 30 ange $tkt_uuid 0
baf0: 20 39 5d 0d 0a 3c 2f 74 68 31 3e 0d 0a 3c 2f 76 9]..</th1>..</v
bb00: 65 72 62 61 74 69 6d 3e 0d 0a 0d 0a 54 68 65 6e erbatim>....Then
bb10: 2c 20 64 69 73 70 6c 61 79 20 74 68 61 74 20 74 , display that t
bb20: 6f 20 74 68 65 20 75 73 65 72 20 73 6f 6d 65 77 o the user somew
bb30: 68 65 72 65 3a 20 0d 0a 0d 0a 3c 76 65 72 62 61 here: ....<verba
bb40: 74 69 6d 3e 0d 0a 55 75 69 64 3a 20 24 3c 73 68 tim>..Uuid: $<sh
bb50: 6f 72 74 55 75 69 64 3e 0d 0a 3c 2f 76 65 72 62 ortUuid>..</verb
bb60: 61 74 69 6d 3e 0d 0a 0d 0a 41 6c 6c 20 74 68 61 atim>....All tha
bb70: 74 20 64 6f 65 73 20 69 73 20 6d 61 6b 65 20 69 t does is make i
bb80: 74 20 65 61 73 79 20 66 6f 72 20 74 68 65 20 64 t easy for the d
bb90: 65 76 65 6c 6f 70 65 72 20 74 6f 20 63 6f 70 79 eveloper to copy
bba0: 2f 70 61 73 74 65 20 61 20 73 65 6e 73 69 62 6c /paste a sensibl
bbb0: 65 20 55 55 49 44 20 69 6e 74 6f 20 74 68 65 69 e UUID into thei
bbc0: 72 20 63 6f 6d 6d 69 74 20 6c 6f 67 2e 20 0d 0a r commit log. ..
bbd0: 0d 0a 4e 6f 77 2c 20 63 6f 6e 74 69 6e 75 69 6e ..Now, continuin
bbe0: 67 2c 20 6f 6e 20 74 68 65 20 73 61 6d 65 20 56 g, on the same V
bbf0: 69 65 77 20 50 61 67 65 20 61 64 64 20 61 20 6c iew Page add a l
bc00: 69 6e 6b 20 74 6f 20 76 69 65 77 20 61 73 73 6f ink to view asso
bc10: 63 69 61 74 65 64 20 74 69 63 6b 65 74 73 3a 20 ciated tickets:
bc20: 0d 0a 0d 0a 3c 76 65 72 62 61 74 69 6d 3e 0d 0a ....<verbatim>..
bc30: 3c 61 20 68 72 65 66 3d 22 2f 74 69 6d 65 6c 69 <a href="/timeli
bc40: 6e 65 3f 79 3d 63 69 26 73 3d 24 3c 73 68 6f 72 ne?y=ci&s=$<shor
bc50: 74 55 75 69 64 3e 22 3e 61 73 73 6f 63 69 61 74 tUuid>">associat
bc60: 65 64 20 74 69 63 6b 65 74 73 3c 2f 61 3e 0d 0a ed tickets</a>..
bc70: 3c 2f 76 65 72 62 61 74 69 6d 3e 0d 0a 0d 0a 57 </verbatim>....W
bc80: 68 61 74 20 74 68 69 73 20 64 6f 65 73 20 69 73 hat this does is
bc90: 20 73 65 61 72 63 68 65 73 20 61 6c 6c 20 63 68 searches all ch
bca0: 65 63 6b 69 6e 27 73 20 66 6f 72 20 74 68 65 20 eckin's for the
bcb0: 74 69 63 6b 65 74 73 20 75 75 69 64 2c 20 74 68 tickets uuid, th
bcc0: 75 73 2c 20 79 6f 75 20 63 61 6e 20 6e 6f 77 20 us, you can now
bcd0: 73 65 65 20 61 6c 6c 20 63 68 65 63 6b 69 6e 27 see all checkin'
bce0: 73 20 74 68 61 74 20 61 72 65 20 6c 69 6e 6b 65 s that are linke
bcf0: 64 20 77 69 74 68 20 74 68 65 20 67 69 76 65 6e d with the given
bd00: 20 74 69 63 6b 65 74 2e 0d 0a 0d 0a 3c 64 69 76 ticket.....<div
bd10: 3e 0d 0a 20 20 3c 68 32 3e 3c 61 20 6e 61 6d 65 >.. <h2><a name
bd20: 3d 22 74 68 31 2d 75 73 61 67 65 22 3e 46 6f 73 ="th1-usage">Fos
bd30: 73 69 6c 20 54 68 31 3c 2f 61 3e 3c 2f 68 32 3e sil Th1</a></h2>
bd40: 0d 0a 0d 0a 20 20 3c 68 33 3e 50 75 72 70 6f 73 .... <h3>Purpos
bd50: 65 20 6f 66 20 54 68 31 3c 2f 68 33 3e 0d 0a 0d e of Th1</h3>...
bd60: 0a 20 20 3c 70 3e 54 68 31 20 69 73 20 75 73 65 . <p>Th1 is use
bd70: 64 20 61 73 20 61 20 3c 73 74 72 6f 6e 67 3e 74 d as a <strong>t
bd80: 65 6d 70 6c 61 74 65 20 73 79 73 74 65 6d 3c 2f emplate system</
bd90: 73 74 72 6f 6e 67 3e 20 66 6f 72 0d 0a 20 20 67 strong> for.. g
bda0: 65 6e 65 72 61 74 69 6e 67 20 48 54 4d 4c 20 68 enerating HTML h
bdb0: 65 61 64 65 72 20 61 6e 64 20 66 6f 6f 74 65 72 eader and footer
bdc0: 2e 20 49 74 20 69 73 20 61 20 54 43 4c 20 6c 69 . It is a TCL li
bdd0: 6b 65 0d 0a 20 20 6c 61 6e 67 75 61 67 65 2e 20 ke.. language.
bde0: 49 66 20 79 6f 75 20 6b 6e 6f 77 20 54 43 4c 20 If you know TCL
bdf0: 79 6f 75 20 6b 6e 6f 77 20 54 48 31 2e 3c 2f 70 you know TH1.</p
be00: 3e 0d 0a 0d 0a 20 20 3c 70 3e 49 74 20 69 73 20 >.... <p>It is
be10: 69 6e 76 6f 6b 65 64 20 62 79 20 6f 70 65 6e 69 invoked by openi
be20: 6e 67 20 61 20 26 6c 74 3b 74 68 31 26 67 74 3b ng a <th1>
be30: 20 74 61 67 2e 20 54 68 65 20 66 69 72 73 74 20 tag. The first
be40: 74 69 6d 65 20 69 74 0d 0a 20 20 73 74 61 72 74 time it.. start
be50: 73 20 61 6e 20 69 6e 74 65 72 70 72 65 74 65 72 s an interpreter
be60: 2e 20 54 68 65 20 73 74 61 74 65 20 6f 66 20 74 . The state of t
be70: 68 69 73 20 69 6e 74 65 72 70 72 65 74 65 72 20 his interpreter
be80: 69 73 20 76 61 6c 69 64 0d 0a 20 20 64 75 72 69 is valid.. duri
be90: 6e 67 20 74 68 65 20 70 61 67 65 20 67 65 6e 65 ng the page gene
bea0: 72 61 74 69 6f 6e 2e 3c 2f 70 3e 0d 0a 0d 0a 20 ration.</p>....
beb0: 20 3c 70 3e 46 6f 72 20 65 78 61 6d 70 6c 65 20 <p>For example
bec0: 77 68 65 6e 20 79 6f 75 3c 2f 70 3e 0d 0a 0d 0a when you</p>....
bed0: 20 20 3c 75 6c 20 63 6f 6d 70 61 63 74 3d 27 63 <ul compact='c
bee0: 6f 6d 70 61 63 74 27 3e 0d 0a 20 20 20 20 3c 6c ompact'>.. <l
bef0: 69 3e 0d 0a 20 20 20 20 20 20 64 6f 20 69 6e 20 i>.. do in
bf00: 74 68 65 20 68 65 61 64 65 72 20 26 6c 74 3b 74 the header <t
bf10: 68 31 26 67 74 3b 20 73 65 74 20 76 65 72 73 69 h1> set versi
bf20: 6f 6e 20 62 65 74 61 20 26 6c 74 3b 2f 74 68 31 on beta </th1
bf30: 26 67 74 3b 0d 0a 20 20 20 20 3c 2f 6c 69 3e 0d >.. </li>.
bf40: 0a 20 20 20 20 3c 6c 69 3e 0d 0a 20 20 20 20 20 . <li>..
bf50: 20 74 68 65 6e 20 69 6e 20 74 68 65 20 66 6f 6f then in the foo
bf60: 74 65 72 20 26 6c 74 3b 74 68 31 26 67 74 3b 70 ter <th1>p
bf70: 75 74 73 20 22 56 65 72 73 69 6f 6e 20 73 65 74 uts "Version set
bf80: 20 69 6e 20 68 65 61 64 65 72 0d 0a 20 20 20 20 in header..
bf90: 20 20 69 73 20 24 76 65 72 73 69 6f 6e 22 26 6c is $version"&l
bfa0: 74 3b 2f 74 68 31 26 67 74 3b 20 72 65 73 75 6c t;/th1> resul
bfb0: 74 73 20 69 6e 20 27 56 65 72 73 69 6f 6e 20 73 ts in 'Version s
bfc0: 65 74 20 69 6e 20 68 65 61 64 65 72 20 69 73 0d et in header is.
bfd0: 0a 20 20 20 20 20 20 62 65 74 61 27 0d 0a 20 20 . beta'..
bfe0: 20 20 3c 2f 6c 69 3e 0d 0a 20 20 3c 2f 75 6c 3e </li>.. </ul>
bff0: 0d 0a 0d 0a 20 20 3c 70 3e 42 65 63 61 75 73 65 .... <p>Because
c000: 20 69 74 20 69 73 20 75 73 65 64 20 61 73 20 61 it is used as a
c010: 20 74 65 6d 70 6c 61 74 65 20 73 79 73 74 65 6d template system
c020: 20 69 74 20 65 78 70 6f 72 74 73 20 73 6f 6d 65 it exports some
c030: 0d 0a 20 20 64 65 74 61 69 6c 73 20 6f 66 20 66 .. details of f
c040: 6f 73 73 69 6c 20 74 68 72 6f 75 67 68 3c 2f 70 ossil through</p
c050: 3e 0d 0a 0d 0a 20 20 3c 6f 6c 3e 0d 0a 20 20 20 >.... <ol>..
c060: 20 3c 6c 69 3e 76 61 72 69 61 62 6c 65 73 3c 2f <li>variables</
c070: 6c 69 3e 0d 0a 20 20 20 20 3c 6c 69 3e 66 75 6e li>.. <li>fun
c080: 63 74 69 6f 6e 73 3c 2f 6c 69 3e 0d 0a 20 20 3c ctions</li>.. <
c090: 2f 6f 6c 3e 0d 0a 0d 0a 20 20 3c 70 3e 54 68 65 /ol>.... <p>The
c0a0: 73 65 20 61 72 65 20 64 65 66 69 6e 65 64 20 69 se are defined i
c0b0: 6e 0d 0a 20 5b 35 39 30 65 30 37 33 37 34 36 31 n.. [590e0737461
c0c0: 32 31 62 65 66 65 36 35 35 36 35 65 65 36 64 37 21befe65565ee6d7
c0d0: 33 30 30 37 63 33 37 61 64 65 31 32 63 7c 73 72 3007c37ade12c|sr
c0e0: 63 2f 74 68 5f 6d 61 69 6e 2e 63 5d 29 3c 2f 70 c/th_main.c])</p
c0f0: 3e 0d 0a 0d 0a 20 20 3c 68 33 3e 56 61 72 69 61 >.... <h3>Varia
c100: 62 6c 65 73 3c 2f 68 33 3e 0d 0a 0d 0a 20 20 3c bles</h3>.... <
c110: 70 3e 54 68 65 73 65 20 76 61 72 69 61 62 6c 65 p>These variable
c120: 20 61 72 65 20 67 6c 6f 62 61 6c 20 61 6e 64 20 are global and
c130: 61 76 61 69 6c 61 62 6c 65 20 6f 75 74 73 69 64 available outsid
c140: 65 20 26 6c 74 3b 74 68 31 26 67 74 3b 0d 0a 20 e <th1>..
c150: 20 74 61 67 73 2e 20 54 68 65 79 20 63 61 6e 20 tags. They can
c160: 62 65 20 72 65 66 65 72 65 6e 63 65 64 20 65 69 be referenced ei
c170: 74 68 65 72 20 61 73 3c 2f 70 3e 0d 0a 0d 0a 20 ther as</p>....
c180: 20 3c 75 6c 20 63 6f 6d 70 61 63 74 3d 27 63 6f <ul compact='co
c190: 6d 70 61 63 74 27 3e 0d 0a 20 20 20 20 3c 6c 69 mpact'>.. <li
c1a0: 3e 24 76 61 72 2e 20 65 2e 67 2e 20 24 74 69 74 >$var. e.g. $tit
c1b0: 6c 65 2e 3c 2f 6c 69 3e 0d 0a 20 20 20 20 3c 6c le.</li>.. <l
c1c0: 69 3e 24 26 6c 74 3b 76 61 72 26 67 74 3b 20 65 i>$<var> e
c1d0: 2e 67 2e 20 24 26 6c 74 3b 74 69 74 6c 65 26 67 .g. $<title&g
c1e0: 74 3b 3c 2f 6c 69 3e 0d 0a 20 20 3c 2f 75 6c 3e t;</li>.. </ul>
c1f0: 0d 0a 0d 0a 20 20 3c 70 3e 54 68 65 20 66 6f 6c .... <p>The fol
c200: 6c 6f 77 69 6e 67 20 61 72 65 20 64 65 66 69 6e lowing are defin
c210: 65 64 3a 3c 2f 70 3e 0d 0a 0d 0a 20 20 3c 75 6c ed:</p>.... <ul
c220: 20 63 6f 6d 70 61 63 74 3d 27 63 6f 6d 70 61 63 compact='compac
c230: 74 27 3e 0d 0a 20 20 20 20 3c 6c 69 3e 24 62 61 t'>.. <li>$ba
c240: 73 65 5f 75 72 6c 2e 20 54 68 65 20 66 69 72 73 se_url. The firs
c250: 74 20 70 61 72 74 20 6f 66 20 74 68 65 20 75 72 t part of the ur
c260: 6c 2e 20 46 6f 72 20 65 78 61 6d 70 6c 65 0d 0a l. For example..
c270: 20 20 20 20 3c 73 74 72 6f 6e 67 3e 68 74 74 70 <strong>http
c280: 3a 2f 2f 6c 6f 63 61 6c 68 6f 73 74 3a 38 30 38 ://localhost:808
c290: 30 3c 2f 73 74 72 6f 6e 67 3e 3c 2f 6c 69 3e 0d 0</strong></li>.
c2a0: 0a 20 20 20 20 3c 6c 69 3e 24 63 75 72 72 65 6e . <li>$curren
c2b0: 74 5f 70 61 67 65 2e 20 54 68 65 20 70 61 67 65 t_page. The page
c2c0: 20 72 65 71 75 65 73 74 65 64 2e 20 46 6f 72 20 requested. For
c2d0: 65 78 61 6d 70 6c 65 20 65 64 69 74 69 6e 67 20 example editing
c2e0: 61 0d 0a 20 20 20 20 77 69 6b 69 70 61 67 65 20 a.. wikipage
c2f0: 69 73 20 64 6f 6e 65 20 62 79 20 24 62 61 73 65 is done by $base
c300: 75 72 6c 2f 77 69 6b 69 65 64 69 74 20 24 63 75 url/wikiedit $cu
c310: 72 72 65 6e 74 5f 70 61 67 65 20 69 73 0d 0a 20 rrent_page is..
c320: 20 20 20 3c 73 74 72 6f 6e 67 3e 77 69 6b 69 65 <strong>wikie
c330: 64 69 74 3c 2f 73 74 72 6f 6e 67 3e 3c 2f 6c 69 dit</strong></li
c340: 3e 0d 0a 20 20 20 20 3c 6c 69 3e 24 69 6e 64 65 >.. <li>$inde
c350: 78 5f 70 61 67 65 3c 73 74 72 6f 6e 67 3e 2e 3c x_page<strong>.<
c360: 2f 73 74 72 6f 6e 67 3e 20 4d 6f 73 74 6c 79 20 /strong> Mostly
c370: 74 68 65 20 76 61 6c 75 65 20 69 73 0d 0a 20 20 the value is..
c380: 20 20 3c 73 74 72 6f 6e 67 3e 2f 68 6f 6d 65 3c <strong>/home<
c390: 2f 73 74 72 6f 6e 67 3e 20 73 65 74 61 62 6c 65 /strong> setable
c3a0: 20 69 6e 20 41 64 6d 69 6e 2f 43 6f 6e 66 69 67 in Admin/Config
c3b0: 75 72 61 74 69 6f 6e 3c 2f 6c 69 3e 0d 0a 20 20 uration</li>..
c3c0: 20 20 3c 6c 69 3e 24 74 69 74 6c 65 2e 20 54 68 <li>$title. Th
c3d0: 65 20 74 69 74 6c 65 20 6f 66 20 74 68 65 20 24 e title of the $
c3e0: 63 75 72 72 65 6e 74 5f 70 61 67 65 3c 2f 6c 69 current_page</li
c3f0: 3e 0d 0a 20 20 20 20 3c 6c 69 3e 24 6c 6f 67 69 >.. <li>$logi
c400: 6e 2e 20 54 68 65 20 6e 61 6d 65 20 6f 66 20 75 n. The name of u
c410: 73 65 72 20 69 66 20 61 20 6c 6f 67 69 6e 20 68 ser if a login h
c420: 61 73 20 6f 63 63 75 72 72 65 64 2e 20 69 66 20 as occurred. if
c430: 79 6f 75 0d 0a 20 20 20 20 75 73 65 20 74 68 69 you.. use thi
c440: 73 20 76 61 72 69 61 62 6c 65 20 61 6c 77 61 79 s variable alway
c450: 73 20 63 68 65 63 6b 20 69 66 20 69 74 20 65 78 s check if it ex
c460: 69 73 74 73 20 76 69 61 0d 0a 20 20 20 20 3c 73 ists via.. <s
c470: 74 72 6f 6e 67 3e 3c 63 6f 64 65 3e 69 6e 66 6f trong><code>info
c480: 20 65 78 69 73 74 73 20 6c 6f 67 69 6e 3c 2f 63 exists login</c
c490: 6f 64 65 3e 3c 2f 73 74 72 6f 6e 67 3e 3c 2f 6c ode></strong></l
c4a0: 69 3e 0d 0a 20 20 20 20 3c 6c 69 3e 24 6d 61 6e i>.. <li>$man
c4b0: 69 66 65 73 74 5f 76 65 72 73 69 6f 6e 2e 20 54 ifest_version. T
c4c0: 68 65 20 66 6f 73 73 69 6c 20 76 65 72 73 69 6f he fossil versio
c4d0: 6e 3c 2f 6c 69 3e 0d 0a 20 20 20 20 3c 6c 69 3e n</li>.. <li>
c4e0: 24 6d 61 6e 69 66 65 73 74 5f 64 61 74 65 2e 20 $manifest_date.
c4f0: 54 68 65 20 64 61 74 65 20 74 68 61 74 20 66 6f The date that fo
c500: 73 73 69 6c 20 76 65 72 73 69 6f 6e 20 77 61 73 ssil version was
c510: 0d 0a 20 20 20 20 63 6f 6d 70 69 6c 65 64 3c 2f .. compiled</
c520: 6c 69 3e 0d 0a 20 20 3c 2f 75 6c 3e 0d 0a 0d 0a li>.. </ul>....
c530: 20 20 3c 68 33 3e 46 75 6e 63 74 69 6f 6e 73 3c <h3>Functions<
c540: 2f 68 33 3e 0d 0a 20 20 3c 70 3e 0d 0a 20 20 20 /h3>.. <p>..
c550: 20 20 54 68 65 73 65 20 61 72 65 20 6f 6e 6c 79 These are only
c560: 20 61 76 61 69 62 6c 65 20 62 65 74 77 65 65 6e avaible between
c570: 20 0d 0a 20 20 26 6c 74 3b 74 68 31 26 67 74 3b .. <th1>
c580: 20 61 6e 64 20 26 6c 74 3b 2f 74 68 31 26 67 74 and </th1>
c590: 3b 0d 0a 20 20 3c 2f 70 3e 0d 0a 20 20 3c 75 6c ;.. </p>.. <ul
c5a0: 20 63 6f 6d 70 61 63 74 3d 27 63 6f 6d 70 61 63 compact='compac
c5b0: 74 27 3e 0d 0a 20 20 20 20 3c 6c 69 3e 63 6f 6d t'>.. <li>com
c5c0: 62 6f 62 6f 78 20 6e 61 6d 65 20 74 65 78 74 2d bobox name text-
c5d0: 6c 69 73 74 20 6e 75 6d 6c 69 6e 65 73 2e 20 47 list numlines. G
c5e0: 65 6e 65 72 61 74 65 73 20 61 20 73 65 6c 65 63 enerates a selec
c5f0: 74 20 62 6f 78 0d 0a 20 20 20 20 77 69 74 68 20 t box.. with
c600: 6e 61 6d 65 3d 22 6e 61 6d 65 22 20 61 6e 64 20 name="name" and
c610: 61 20 63 67 69 2d 70 61 72 61 6d 65 74 65 72 20 a cgi-parameter
c620: 6f 66 20 22 6e 61 6d 65 22 3c 2f 6c 69 3e 0d 0a of "name"</li>..
c630: 20 20 20 20 3c 6c 69 3e 65 6e 61 62 6c 65 5f 6f <li>enable_o
c640: 75 74 70 75 74 20 62 6f 6f 6c 65 61 6e 3c 2f 6c utput boolean</l
c650: 69 3e 0d 0a 20 20 20 20 3c 6c 69 3e 6c 69 6e 65 i>.. <li>line
c660: 63 6f 75 6e 74 20 73 74 72 69 6e 67 20 6d 61 78 count string max
c670: 20 6d 69 6e 2e 20 43 6f 75 6e 74 73 20 74 68 65 min. Counts the
c680: 20 6e 75 6d 65 72 20 6f 66 20 6e 65 77 6c 69 6e numer of newlin
c690: 65 73 20 69 6e 0d 0a 20 20 20 20 73 74 72 69 6e es in.. strin
c6a0: 67 20 62 75 74 20 6e 6f 74 20 6d 6f 72 65 20 74 g but not more t
c6b0: 68 65 6e 20 6d 61 78 20 61 6e 64 20 6e 6f 74 20 hen max and not
c6c0: 6c 65 73 73 20 74 68 65 6e 20 6d 69 6e 3c 2f 6c less then min</l
c6d0: 69 3e 0d 0a 20 20 20 20 3c 6c 69 3e 68 61 73 63 i>.. <li>hasc
c6e0: 61 70 20 73 74 72 69 6e 67 2e 20 72 65 74 75 72 ap string. retur
c6f0: 6e 20 74 72 75 65 20 69 66 20 75 73 65 72 20 68 n true if user h
c700: 61 73 20 61 6c 6c 0d 0a 20 20 20 20 63 61 70 61 as all.. capa
c710: 62 69 6c 69 74 69 65 73 20 69 6e 20 73 74 72 69 bilities in stri
c720: 6e 67 3c 2f 6c 69 3e 0d 0a 20 20 20 20 3c 6c 69 ng</li>.. <li
c730: 3e 68 74 6d 6c 69 7a 65 20 73 74 72 69 6e 67 2e >htmlize string.
c740: 20 65 78 63 61 70 65 73 20 61 6c 6c 20 63 68 61 excapes all cha
c750: 72 73 20 69 6e 20 73 74 72 69 6e 67 20 77 68 69 rs in string whi
c760: 63 68 20 68 61 76 65 0d 0a 20 20 20 20 73 70 65 ch have.. spe
c770: 63 69 61 6c 20 6d 65 61 6e 69 6e 67 20 69 6e 20 cial meaning in
c780: 48 54 4d 4c 3c 2f 6c 69 3e 0d 0a 20 20 20 20 3c HTML</li>.. <
c790: 6c 69 3e 64 61 74 65 20 72 65 74 75 72 6e 73 20 li>date returns
c7a0: 74 68 65 20 73 71 6c 69 74 65 20 76 61 6c 75 65 the sqlite value
c7b0: 20 6f 66 20 64 61 74 65 74 69 6d 65 28 27 6e 6f of datetime('no
c7c0: 77 27 29 3c 2f 6c 69 3e 0d 0a 20 20 20 20 3c 6c w')</li>.. <l
c7d0: 69 3e 68 74 6d 6c 20 73 74 72 69 6e 67 20 6f 75 i>html string ou
c7e0: 74 70 75 74 20 68 74 6d 6c 3c 2f 6c 69 3e 0d 0a tput html</li>..
c7f0: 20 20 20 20 3c 6c 69 3e 70 75 74 73 20 73 74 72 <li>puts str
c800: 69 6e 67 20 70 72 69 6e 74 73 20 74 68 65 20 73 ing prints the s
c810: 74 72 69 6e 67 3c 2f 6c 69 3e 0d 0a 20 20 20 20 tring</li>..
c820: 3c 6c 69 3e 77 69 6b 69 20 73 74 72 69 6e 67 2e <li>wiki string.
c830: 20 54 68 65 20 73 74 72 69 6e 67 20 69 73 20 69 The string is i
c840: 6e 20 77 69 6b 69 20 66 6f 72 6d 61 74 2e 20 74 n wiki format. t
c850: 72 61 6e 73 6c 61 74 65 20 69 74 20 74 6f 0d 0a ranslate it to..
c860: 20 20 20 20 48 54 4d 4c 3c 2f 6c 69 3e 0d 0a 20 HTML</li>..
c870: 20 3c 2f 75 6c 3e 0d 0a 3c 6e 6f 77 69 6b 69 3e </ul>..<nowiki>
c880: 0d 0a 20 20 3c 68 33 3e 45 78 61 6d 70 6c 65 20 .. <h3>Example
c890: 66 72 6f 6d 20 61 64 6d 69 6e 2f 68 65 61 64 65 from admin/heade
c8a0: 72 3c 2f 68 33 3e 0d 0a 20 20 3c 70 72 65 3e 0d r</h3>.. <pre>.
c8b0: 0a 26 6c 74 3b 68 74 6d 6c 26 67 74 3b 0d 0a 26 .<html>..&
c8c0: 6c 74 3b 68 65 61 64 26 67 74 3b 0d 0a 26 6c 74 lt;head>..<
c8d0: 3b 74 69 74 6c 65 26 67 74 3b 3c 73 74 72 6f 6e ;title><stron
c8e0: 67 3e 24 26 6c 74 3b 70 72 6f 6a 65 63 74 5f 6e g>$<project_n
c8f0: 61 6d 65 26 67 74 3b 3c 2f 73 74 72 6f 6e 67 3e ame></strong>
c900: 3a 20 3c 73 74 72 6f 6e 67 3e 24 26 6c 74 3b 74 : <strong>$<t
c910: 69 74 6c 65 26 67 74 3b 3c 2f 73 74 72 6f 6e 67 itle></strong
c920: 3e 26 6c 74 3b 2f 74 69 74 6c 65 26 67 74 3b 0d ></title>.
c930: 0a 26 6c 74 3b 6c 69 6e 6b 20 72 65 6c 3d 22 61 .<link rel="a
c940: 6c 74 65 72 6e 61 74 65 22 20 74 79 70 65 3d 22 lternate" type="
c950: 61 70 70 6c 69 63 61 74 69 6f 6e 2f 72 73 73 2b application/rss+
c960: 78 6d 6c 22 20 74 69 74 6c 65 3d 22 52 53 53 20 xml" title="RSS
c970: 46 65 65 64 22 0d 0a 20 20 20 20 20 20 68 72 65 Feed".. hre
c980: 66 3d 22 3c 73 74 72 6f 6e 67 3e 24 62 61 73 65 f="<strong>$base
c990: 75 72 6c 3c 2f 73 74 72 6f 6e 67 3e 2f 74 69 6d url</strong>/tim
c9a0: 65 6c 69 6e 65 2e 72 73 73 22 26 67 74 3b 0d 0a eline.rss">..
c9b0: 26 6c 74 3b 6c 69 6e 6b 20 72 65 6c 3d 22 73 74 <link rel="st
c9c0: 79 6c 65 73 68 65 65 74 22 20 68 72 65 66 3d 22 ylesheet" href="
c9d0: 24 62 61 73 65 75 72 6c 2f 73 74 79 6c 65 2e 63 $baseurl/style.c
c9e0: 73 73 22 20 74 79 70 65 3d 22 74 65 78 74 2f 63 ss" type="text/c
c9f0: 73 73 22 0d 0a 20 20 20 20 20 20 6d 65 64 69 61 ss".. media
ca00: 3d 22 73 63 72 65 65 6e 22 26 67 74 3b 0d 0a 26 ="screen">..&
ca10: 6c 74 3b 2f 68 65 61 64 26 67 74 3b 0d 0a 26 6c lt;/head>..&l
ca20: 74 3b 62 6f 64 79 26 67 74 3b 0d 0a 26 6c 74 3b t;body>..<
ca30: 64 69 76 20 63 6c 61 73 73 3d 22 68 65 61 64 65 div class="heade
ca40: 72 22 26 67 74 3b 0d 0a 20 20 26 6c 74 3b 64 69 r">.. <di
ca50: 76 20 63 6c 61 73 73 3d 22 6c 6f 67 6f 22 26 67 v class="logo"&g
ca60: 74 3b 0d 0a 20 20 20 20 26 6c 74 3b 69 6d 67 20 t;.. <img
ca70: 73 72 63 3d 22 3c 73 74 72 6f 6e 67 3e 24 62 61 src="<strong>$ba
ca80: 73 65 75 72 6c 3c 2f 73 74 72 6f 6e 67 3e 2f 6c seurl</strong>/l
ca90: 6f 67 6f 22 20 61 6c 74 3d 22 6c 6f 67 6f 22 26 ogo" alt="logo"&
caa0: 67 74 3b 0d 0a 20 20 20 20 26 6c 74 3b 62 72 26 gt;.. <br&
cab0: 67 74 3b 26 6c 74 3b 6e 6f 62 72 26 67 74 3b 3c gt;<nobr><
cac0: 73 74 72 6f 6e 67 3e 24 26 6c 74 3b 70 72 6f 6a strong>$<proj
cad0: 65 63 74 5f 6e 61 6d 65 26 67 74 3b 3c 2f 73 74 ect_name></st
cae0: 72 6f 6e 67 3e 26 6c 74 3b 2f 6e 6f 62 72 26 67 rong></nobr&g
caf0: 74 3b 0d 0a 20 20 26 6c 74 3b 2f 64 69 76 26 67 t;.. </div&g
cb00: 74 3b 0d 0a 20 20 26 6c 74 3b 64 69 76 20 63 6c t;.. <div cl
cb10: 61 73 73 3d 22 74 69 74 6c 65 22 26 67 74 3b 3c ass="title"><
cb20: 73 74 72 6f 6e 67 3e 24 26 6c 74 3b 74 69 74 6c strong>$<titl
cb30: 65 26 67 74 3b 3c 2f 73 74 72 6f 6e 67 3e 26 6c e></strong>&l
cb40: 74 3b 2f 64 69 76 26 67 74 3b 0d 0a 20 20 26 6c t;/div>.. &l
cb50: 74 3b 64 69 76 20 63 6c 61 73 73 3d 22 73 74 61 t;div class="sta
cb60: 74 75 73 22 26 67 74 3b 26 6c 74 3b 6e 6f 62 72 tus"><nobr
cb70: 26 67 74 3b 3c 73 74 72 6f 6e 67 3e 26 6c 74 3b ><strong><
cb80: 74 68 31 26 67 74 3b 3c 2f 73 74 72 6f 6e 67 3e th1></strong>
cb90: 0d 0a 20 20 20 20 20 69 66 20 7b 3c 73 74 72 6f .. if {<stro
cba0: 6e 67 3e 5b 69 6e 66 6f 20 65 78 69 73 74 73 20 ng>[info exists
cbb0: 6c 6f 67 69 6e 5d 3c 2f 73 74 72 6f 6e 67 3e 7d login]</strong>}
cbc0: 20 7b 0d 0a 20 20 20 20 20 20 20 70 75 74 73 20 {.. puts
cbd0: 22 4c 6f 67 67 65 64 20 69 6e 20 61 73 20 3c 73 "Logged in as <s
cbe0: 74 72 6f 6e 67 3e 24 6c 6f 67 69 6e 3c 2f 73 74 trong>$login</st
cbf0: 72 6f 6e 67 3e 22 0d 0a 20 20 20 20 20 7d 20 65 rong>".. } e
cc00: 6c 73 65 20 7b 0d 0a 20 20 20 20 20 20 20 70 75 lse {.. pu
cc10: 74 73 20 22 4e 6f 74 20 6c 6f 67 67 65 64 20 69 ts "Not logged i
cc20: 6e 22 0d 0a 20 20 20 20 20 7d 0d 0a 20 20 26 6c n".. }.. &l
cc30: 74 3b 2f 74 68 31 26 67 74 3b 26 6c 74 3b 2f 6e t;/th1></n
cc40: 6f 62 72 26 67 74 3b 26 6c 74 3b 2f 64 69 76 26 obr></div&
cc50: 67 74 3b 0d 0a 26 6c 74 3b 2f 64 69 76 26 67 74 gt;..</div>
cc60: 3b 0d 0a 26 6c 74 3b 64 69 76 20 63 6c 61 73 73 ;..<div class
cc70: 3d 22 6d 61 69 6e 6d 65 6e 75 22 26 67 74 3b 26 ="mainmenu">&
cc80: 6c 74 3b 74 68 31 26 67 74 3b 0d 0a 68 74 6d 6c lt;th1>..html
cc90: 20 22 26 6c 74 3b 61 20 68 72 65 66 3d 27 3c 73 "<a href='<s
cca0: 74 72 6f 6e 67 3e 24 62 61 73 65 75 72 6c 24 69 trong>$baseurl$i
ccb0: 6e 64 65 78 5f 70 61 67 65 3c 2f 73 74 72 6f 6e ndex_page</stron
ccc0: 67 3e 27 26 67 74 3b 48 6f 6d 65 26 6c 74 3b 2f g>'>Home</
ccd0: 61 26 67 74 3b 20 22 0d 0a 69 66 20 7b 3c 73 74 a> "..if {<st
cce0: 72 6f 6e 67 3e 5b 68 61 73 63 61 70 20 68 5d 3c rong>[hascap h]<
ccf0: 2f 73 74 72 6f 6e 67 3e 5d 7d 20 7b 0d 0a 20 20 /strong>]} {..
cd00: 68 74 6d 6c 20 22 26 6c 74 3b 61 20 68 72 65 66 html "<a href
cd10: 3d 27 24 62 61 73 65 75 72 6c 2f 64 69 72 27 26 ='$baseurl/dir'&
cd20: 67 74 3b 46 69 6c 65 73 26 6c 74 3b 2f 61 26 67 gt;Files</a&g
cd30: 74 3b 20 22 0d 0a 7d 0d 0a 3c 2f 70 72 65 3e 0d t; "..}..</pre>.
cd40: 0a 0d 0a 20 20 3c 68 33 3e 43 61 76 65 61 74 73 ... <h3>Caveats
cd50: 3c 2f 68 33 3e 0d 0a 0d 0a 20 20 3c 75 6c 20 63 </h3>.... <ul c
cd60: 6f 6d 70 61 63 74 3d 27 63 6f 6d 70 61 63 74 27 ompact='compact'
cd70: 3e 0d 0a 20 20 20 20 3c 6c 69 3e 70 75 74 73 20 >.. <li>puts
cd80: 22 5b 68 65 6c 6c 6f 20 68 65 6c 6c 6f 5d 22 20 "[hello hello]"
cd90: 64 6f 65 73 6e 27 74 20 77 6f 72 6b 20 62 65 63 doesn't work bec
cda0: 61 75 73 65 20 5b 20 74 72 69 67 67 65 72 73 20 ause [ triggers
cdb0: 74 68 65 0d 0a 20 20 20 20 69 6e 74 65 72 70 65 the.. interpe
cdc0: 74 65 72 2c 20 75 73 65 20 70 75 74 73 20 22 26 ter, use puts "&
cdd0: 61 6d 70 3b 23 39 31 68 65 6c 6c 6f 20 68 65 6c amp;#91hello hel
cde0: 6c 6f 5d 27 3c 2f 6c 69 3e 0d 0a 20 20 3c 2f 75 lo]'</li>.. </u
cdf0: 6c 3e 0d 0a 3c 2f 6e 6f 77 69 6b 69 3e 0d 0a 3c l>..</nowiki>..<
ce00: 2f 64 69 76 3e 0d 0a 0a 5a 20 31 36 30 38 38 39 /div>...Z 160889
ce10: 62 34 66 37 65 62 62 65 64 36 38 30 36 66 39 33 b4f7ebbed6806f93
ce20: 62 38 39 33 63 32 34 66 37 32 0a b893c24f72.