Hex Artifact Content
Not logged in

Artifact 262a103e19044ee64345c937b6617e43be768e54:

Wiki page [Cookbook] by anonymous on 2009-11-06 04:05:14.

0000: 44 20 32 30 30 39 2d 31 31 2d 30 36 54 30 34 3a  D 2009-11-06T04:
0010: 30 35 3a 31 34 0a 4c 20 43 6f 6f 6b 62 6f 6f 6b  05:14.L Cookbook
0020: 0a 50 20 39 62 65 62 36 31 34 33 30 39 66 66 37  .P 9beb614309ff7
0030: 38 61 34 38 35 35 61 33 64 65 34 38 63 37 39 63  8a4855a3de48c79c
0040: 34 62 62 30 31 32 33 66 36 66 61 0a 55 20 61 6e  4bb0123f6fa.U an
0050: 6f 6e 79 6d 6f 75 73 0a 57 20 34 32 38 37 36 0a  onymous.W 42876.
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 20 53 65 72 76 65 72 20 72 65 63 69  <li> Server reci
01f0: 70 65 73 3a 0d 0a 20 20 20 20 3c 75 6c 3e 0d 0a  pes:..    <ul>..
0200: 20 20 20 20 20 20 3c 6c 69 3e 20 20 3c 61 20 68        <li>  <a h
0210: 72 65 66 3d 22 23 43 47 49 22 3e 55 73 69 6e 67  ref="#CGI">Using
0220: 20 3c 63 69 74 65 3e 46 6f 73 73 69 6c 3c 2f 63   <cite>Fossil</c
0230: 69 74 65 3e 27 73 20 42 75 69 6c 74 2d 49 6e 20  ite>'s Built-In 
0240: 43 47 49 3c 2f 61 3e 0d 0a 20 20 20 20 3c 2f 75  CGI</a>..    </u
0250: 6c 3e 0d 0a 20 20 3c 6c 69 3e 20 3c 61 20 68 72  l>..  <li> <a hr
0260: 65 66 3d 22 23 65 6e 76 22 3e 55 73 69 6e 67 20  ef="#env">Using 
0270: 45 6e 76 69 72 6f 6e 6d 65 6e 74 20 76 61 72 69  Environment vari
0280: 61 62 6c 65 73 3c 2f 61 3e 0d 0a 20 20 3c 6c 69  ables</a>..  <li
0290: 3e 20 3c 61 20 68 72 65 66 3d 22 23 63 73 73 22  > <a href="#css"
02a0: 3e 45 78 61 6d 70 6c 65 20 43 53 53 3c 2f 61 3e  >Example CSS</a>
02b0: 0d 0a 20 20 3c 6c 69 3e 20 3c 61 20 68 72 65 66  ..  <li> <a href
02c0: 3d 22 23 73 6f 75 72 63 65 2d 68 69 6c 69 67 68  ="#source-hiligh
02d0: 74 22 3e 53 6f 75 72 63 65 20 68 69 67 68 6c 69  t">Source highli
02e0: 67 68 74 69 6e 67 3c 2f 61 3e 0d 0a 20 20 3c 6c  ghting</a>..  <l
02f0: 69 3e 20 3c 61 20 68 72 65 66 3d 22 23 77 69 6e  i> <a href="#win
0300: 33 32 64 65 76 22 3e 46 6f 73 73 69 6c 20 57 69  32dev">Fossil Wi
0310: 6e 33 32 20 44 65 76 65 6c 6f 70 6d 65 6e 74 20  n32 Development 
0320: 4d 61 63 68 69 6e 65 20 73 65 74 75 70 3c 2f 61  Machine setup</a
0330: 3e 0d 0a 20 20 3c 6c 69 3e 20 3c 61 20 68 72 65  >..  <li> <a hre
0340: 66 3d 22 23 77 79 73 69 77 69 67 22 3e 4a 61 76  f="#wysiwig">Jav
0350: 61 73 63 72 69 70 74 20 48 54 4d 4c 20 57 59 53  ascript HTML WYS
0360: 49 57 59 47 20 65 64 69 74 6f 72 20 63 6f 6e 74  IWYG editor cont
0370: 72 6f 6c 3c 2f 61 3e 0d 0a 20 20 20 20 3c 75 6c  rol</a>..    <ul
0380: 3e 0d 0a 20 20 20 20 20 20 3c 6c 69 3e 20 3c 61  >..      <li> <a
0390: 20 68 72 65 66 3d 22 23 74 69 6e 79 6d 63 65 22   href="#tinymce"
03a0: 3e 54 69 6e 79 4d 43 45 3c 2f 61 3e 0d 0a 20 20  >TinyMCE</a>..  
03b0: 20 20 20 20 3c 6c 69 3e 20 3c 61 20 68 72 65 66      <li> <a href
03c0: 3d 22 23 6d 61 72 6b 69 74 75 70 22 3e 6d 61 72  ="#markitup">mar
03d0: 6b 69 74 75 70 21 3c 2f 61 3e 0d 0a 20 20 20 20  kitup!</a>..    
03e0: 3c 2f 75 6c 3e 0d 0a 3c 2f 75 6c 3e 0d 0a 0d 0a  </ul>..</ul>....
03f0: 3c 68 32 3e 3c 61 20 6e 61 6d 65 3d 22 43 47 49  <h2><a name="CGI
0400: 22 3e 55 73 69 6e 67 20 3c 63 69 74 65 3e 46 6f  ">Using <cite>Fo
0410: 73 73 69 6c 3c 2f 63 69 74 65 3e 27 73 20 42 75  ssil</cite>'s Bu
0420: 69 6c 74 2d 49 6e 20 43 47 49 3c 2f 61 3e 3c 2f  ilt-In CGI</a></
0430: 68 32 3e 0d 0a 3c 68 33 3e 4d 6f 74 69 76 61 74  h2>..<h3>Motivat
0440: 69 6f 6e 3c 2f 68 33 3e 0d 0a 20 20 2a 20 20 59  ion</h3>..  *  Y
0450: 6f 75 20 77 61 6e 74 20 74 6f 20 73 68 61 72 65  ou want to share
0460: 20 61 20 72 65 70 6f 73 69 74 6f 72 79 20 74 68   a repository th
0470: 72 6f 75 67 68 20 79 6f 75 72 20 65 78 69 73 74  rough your exist
0480: 69 6e 67 20 77 65 62 20 69 6e 66 72 61 73 74 72  ing web infrastr
0490: 75 63 74 75 72 65 2e 0d 0a 20 20 2a 20 20 59 6f  ucture...  *  Yo
04a0: 75 20 77 61 6e 74 20 74 6f 20 73 68 61 72 65 20  u want to share 
04b0: 6d 6f 72 65 20 74 68 61 6e 20 6f 6e 65 20 72 65  more than one re
04c0: 70 6f 73 69 74 6f 72 79 20 61 74 20 74 68 65 20  pository at the 
04d0: 73 61 6d 65 20 74 69 6d 65 2e 0d 0a 0d 0a 3c 68  same time.....<h
04e0: 33 3e 50 72 6f 62 6c 65 6d 3c 2f 68 33 3e 0d 0a  3>Problem</h3>..
04f0: 55 6e 6c 69 6b 65 20 73 6f 6d 65 20 6f 74 68 65  Unlike some othe
0500: 72 20 64 69 73 74 72 69 62 75 74 65 64 20 53 43  r distributed SC
0510: 4d 73 2c 20 3c 63 69 74 65 3e 46 6f 73 73 69 6c  Ms, <cite>Fossil
0520: 3c 2f 63 69 74 65 3e 20 63 61 6e 20 6f 6e 6c 79  </cite> can only
0530: 20 63 6c 6f 6e 65 2c 20 70 75 73 68 2c 20 70 75   clone, push, pu
0540: 6c 6c 20 61 6e 64 20 61 6e 64 20 6f 74 68 65 72  ll and and other
0550: 77 69 73 65 20 69 6e 74 65 72 61 63 74 20 74 68  wise interact th
0560: 72 6f 75 67 68 20 72 65 70 6f 73 69 74 6f 72 69  rough repositori
0570: 65 73 20 6f 76 65 72 20 48 54 54 50 2e 20 20 54  es over HTTP.  T
0580: 68 69 73 20 63 61 6e 20 62 65 20 73 69 6d 70 6c  his can be simpl
0590: 79 20 61 6e 64 20 65 61 73 69 6c 79 20 6d 61 6e  y and easily man
05a0: 61 67 65 64 20 74 68 72 6f 75 67 68 20 75 73 65  aged through use
05b0: 20 6f 66 20 74 68 65 20 3c 63 6f 64 65 3e 66 6f   of the <code>fo
05c0: 73 73 69 6c 20 73 65 72 76 65 72 3c 2f 63 6f 64  ssil server</cod
05d0: 65 3e 20 61 6e 64 2f 6f 72 20 3c 63 6f 64 65 3e  e> and/or <code>
05e0: 66 6f 73 73 69 6c 20 75 69 3c 2f 63 6f 64 65 3e  fossil ui</code>
05f0: 20 63 6f 6d 6d 61 6e 64 73 2c 20 6f 66 20 63 6f   commands, of co
0600: 75 72 73 65 2c 20 62 75 74 20 74 68 69 73 20 69  urse, but this i
0610: 73 20 72 65 61 6c 6c 79 20 6f 6e 6c 79 20 61 64  s really only ad
0620: 65 71 75 61 74 65 20 66 6f 72 20 61 64 2d 68 6f  equate for ad-ho
0630: 63 20 72 65 70 6f 73 69 74 6f 72 79 20 73 68 61  c repository sha
0640: 72 69 6e 67 2e 20 20 43 6f 6e 73 69 64 65 72 2c  ring.  Consider,
0650: 20 66 6f 72 20 65 78 61 6d 70 6c 65 2c 20 73 68   for example, sh
0660: 61 72 69 6e 67 20 74 65 6e 20 72 65 70 6f 73 69  aring ten reposi
0670: 74 6f 72 69 65 73 2e 20 20 55 73 69 6e 67 20 74  tories.  Using t
0680: 68 65 20 62 75 69 6c 74 2d 69 6e 20 73 65 72 76  he built-in serv
0690: 65 72 20 77 6f 75 6c 64 20 72 65 71 75 69 72 65  er would require
06a0: 20 79 6f 75 20 74 6f 20 6f 70 65 6e 20 74 65 6e   you to open ten
06b0: 20 70 6f 72 74 73 20 69 6e 20 79 6f 75 72 20 66   ports in your f
06c0: 69 72 65 77 61 6c 6c 20 74 6f 20 70 65 72 6d 69  irewall to permi
06d0: 74 20 61 63 63 65 73 73 2e 20 20 41 6e 79 20 73  t access.  Any s
06e0: 65 72 69 6f 75 73 20 73 68 61 72 69 6e 67 20 77  erious sharing w
06f0: 69 6c 6c 20 72 65 71 75 69 72 65 20 73 6f 6d 65  ill require some
0700: 74 68 69 6e 67 20 6d 6f 72 65 20 72 6f 62 75 73  thing more robus
0710: 74 20 61 6e 64 20 70 65 72 6d 61 6e 65 6e 74 2c  t and permanent,
0720: 20 61 6e 64 20 73 6f 6c 75 74 69 6f 6e 73 20 66   and solutions f
0730: 6f 72 20 64 6f 69 6e 67 20 73 6f 20 61 72 65 20  or doing so are 
0740: 64 65 73 63 72 69 62 65 64 20 62 65 6c 6f 77 2e  described below.
0750: 0d 0a 0d 0a 3c 68 33 3e 53 6f 6c 75 74 69 6f 6e  ....<h3>Solution
0760: 3c 2f 68 33 3e 0d 0a 3c 63 69 74 65 3e 46 6f 73  </h3>..<cite>Fos
0770: 73 69 6c 3c 2f 63 69 74 65 3e 20 73 75 70 70 6f  sil</cite> suppo
0780: 72 74 73 20 74 68 72 65 65 20 64 69 66 66 65 72  rts three differ
0790: 65 6e 74 20 77 61 79 73 20 74 6f 20 73 68 61 72  ent ways to shar
07a0: 65 20 72 65 70 6f 73 69 74 6f 72 69 65 73 2e 20  e repositories. 
07b0: 20 46 6f 72 20 61 64 2d 68 6f 63 20 73 68 61 72   For ad-hoc shar
07c0: 69 6e 67 20 3c 63 6f 64 65 3e 66 6f 73 73 69 6c  ing <code>fossil
07d0: 20 73 65 72 76 65 72 2f 75 69 3c 2f 63 6f 64 65   server/ui</code
07e0: 3e 20 69 73 20 6d 6f 72 65 20 74 68 61 6e 20 61  > is more than a
07f0: 64 65 71 75 61 74 65 2e 20 20 46 6f 72 20 6d 6f  dequate.  For mo
0800: 72 65 20 72 6f 62 75 73 74 20 73 6f 6c 75 74 69  re robust soluti
0810: 6f 6e 73 2c 20 68 6f 77 65 76 65 72 2c 20 74 68  ons, however, th
0820: 65 20 75 73 65 20 6f 66 20 3c 63 69 74 65 3e 28  e use of <cite>(
0830: 78 29 69 6e 65 74 64 3c 2f 63 69 74 65 3e 20 6f  x)inetd</cite> o
0840: 72 20 43 47 49 20 73 75 70 70 6f 72 74 20 69 73  r CGI support is
0850: 20 69 6e 64 69 63 61 74 65 64 2e 0d 0a 0d 0a 53   indicated.....S
0860: 65 74 74 69 6e 67 20 75 70 20 66 6f 73 73 69 6c  etting up fossil
0870: 20 66 6f 72 20 43 47 49 20 73 75 70 70 6f 72 74   for CGI support
0880: 20 69 73 20 73 69 6d 70 6c 65 2e 20 20 28 53 65   is simple.  (Se
0890: 74 74 69 6e 67 20 75 70 20 79 6f 75 72 20 77 65  tting up your we
08a0: 62 20 73 65 72 76 65 72 20 66 6f 72 20 43 47 49  b server for CGI
08b0: 20 73 75 70 70 6f 72 74 20 6d 61 79 20 6f 72 20   support may or 
08c0: 6d 61 79 20 6e 6f 74 20 62 65 20 73 69 6d 70 6c  may not be simpl
08d0: 65 2c 20 62 75 74 20 69 74 20 69 73 20 6f 75 74  e, but it is out
08e0: 20 6f 66 20 73 63 6f 70 65 20 6f 66 20 74 68 69   of scope of thi
08f0: 73 20 72 65 63 69 70 65 2e 20 20 43 6f 6e 73 75  s recipe.  Consu
0900: 6c 74 20 79 6f 75 72 20 77 65 62 20 73 65 72 76  lt your web serv
0910: 65 72 2f 73 65 72 76 69 63 65 20 70 72 6f 76 69  er/service provi
0920: 64 65 72 27 73 20 64 6f 63 75 6d 65 6e 74 61 74  der's documentat
0930: 69 6f 6e 20 66 6f 72 20 74 68 69 73 2e 29 0d 0a  ion for this.)..
0940: 0d 0a 3c 68 34 3e 55 4e 49 58 3c 2f 68 34 3e 0d  ..<h4>UNIX</h4>.
0950: 0a 20 20 31 2e 20 20 46 69 6e 64 20 79 6f 75 72  .  1.  Find your
0960: 20 43 47 49 20 73 63 72 69 70 74 73 20 64 69 72   CGI scripts dir
0970: 65 63 74 6f 72 79 20 28 69 66 20 61 70 70 6c 69  ectory (if appli
0980: 63 61 62 6c 65 29 2e 20 20 54 68 69 73 20 69 73  cable).  This is
0990: 20 63 6f 6d 6d 6f 6e 6c 79 20 73 6f 6d 65 74 68   commonly someth
09a0: 69 6e 67 20 6c 69 6b 65 20 3c 62 61 73 65 3e 2f  ing like <base>/
09b0: 63 67 69 2d 62 69 6e 2f 2c 20 62 75 74 20 64 6f  cgi-bin/, but do
09c0: 65 73 20 6e 6f 74 20 68 61 76 65 20 74 6f 20 62  es not have to b
09d0: 65 2e 0d 0a 20 20 32 2e 20 20 49 6e 73 69 64 65  e...  2.  Inside
09e0: 20 74 68 61 74 20 64 69 72 65 63 74 6f 72 79 20   that directory 
09f0: 62 75 69 6c 64 20 61 20 73 63 72 69 70 74 20 66  build a script f
0a00: 69 6c 65 20 77 68 69 63 68 20 6c 6f 6f 6b 73 20  ile which looks 
0a10: 6c 69 6b 65 20 74 68 69 73 3a 3c 62 72 3e 3c 63  like this:<br><c
0a20: 6f 64 65 3e 3c 70 72 65 3e 20 20 23 21 20 2f 75  ode><pre>  #! /u
0a30: 73 72 2f 62 69 6e 2f 65 6e 76 20 66 6f 73 73 69  sr/bin/env fossi
0a40: 6c 3c 62 72 3e 20 20 72 65 70 6f 73 69 74 6f 72  l<br>  repositor
0a50: 79 3a 20 2f 66 75 6c 6c 2f 70 61 74 68 2f 74 6f  y: /full/path/to
0a60: 2f 72 65 70 6f 73 69 74 6f 72 79 2f 66 69 6c 65  /repository/file
0a70: 2e 66 73 6c 3c 2f 70 72 65 3e 3c 2f 63 6f 64 65  .fsl</pre></code
0a80: 3e 0d 0a 20 20 33 2e 20 20 45 6e 73 75 72 65 20  >..  3.  Ensure 
0a90: 74 68 61 74 20 74 68 65 20 73 63 72 69 70 74 20  that the script 
0aa0: 66 69 6c 65 20 73 6f 20 67 65 6e 65 72 61 74 65  file so generate
0ab0: 64 20 69 73 20 73 65 74 20 65 78 65 63 75 74 61  d is set executa
0ac0: 62 6c 65 20 66 6f 72 20 74 68 65 20 43 47 49 20  ble for the CGI 
0ad0: 75 73 65 72 20 61 63 63 6f 75 6e 74 2e 0d 0a 20  user account... 
0ae0: 20 34 2e 20 20 45 6e 73 75 72 65 20 74 68 61 74   4.  Ensure that
0af0: 20 65 76 65 72 79 20 64 69 72 65 63 74 6f 72 79   every directory
0b00: 20 69 6e 20 74 68 65 20 70 61 74 68 20 6c 65 61   in the path lea
0b10: 64 69 6e 67 20 74 6f 20 74 68 65 20 72 65 70 6f  ding to the repo
0b20: 73 69 74 6f 72 79 20 69 73 20 20 62 72 6f 77 73  sitory is  brows
0b30: 65 61 62 6c 65 20 28 63 68 6d 6f 64 20 2b 78 29  eable (chmod +x)
0b40: 20 74 6f 20 74 68 65 20 43 47 49 20 75 73 65 72   to the CGI user
0b50: 20 61 63 63 6f 75 6e 74 2e 0d 0a 20 20 35 2e 20   account...  5. 
0b60: 20 45 6e 73 75 72 65 20 74 68 61 74 20 74 68 65   Ensure that the
0b70: 20 72 65 70 6f 73 69 74 6f 72 79 20 66 69 6c 65   repository file
0b80: 20 69 73 20 72 65 61 64 61 62 6c 65 20 3c 65 6d   is readable <em
0b90: 3e 61 6e 64 3c 2f 65 6d 3e 20 77 72 69 74 61 62  >and</em> writab
0ba0: 6c 65 20 74 6f 20 74 68 65 20 43 47 49 20 75 73  le to the CGI us
0bb0: 65 72 20 61 63 63 6f 75 6e 74 2e 0d 0a 0d 0a 54  er account.....T
0bc0: 68 65 20 66 6f 6c 6c 6f 77 69 6e 67 20 3c 63 69  he following <ci
0bd0: 74 65 3e 62 61 73 68 3c 2f 63 69 74 65 3e 20 73  te>bash</cite> s
0be0: 63 72 69 70 74 20 63 61 6e 20 62 65 20 72 75 6e  cript can be run
0bf0: 20 66 72 6f 6d 20 77 69 74 68 69 6e 20 74 68 65   from within the
0c00: 20 64 69 72 65 63 74 6f 72 79 20 63 6f 6e 74 61   directory conta
0c10: 69 6e 69 6e 67 20 74 68 65 20 3c 63 69 74 65 3e  ining the <cite>
0c20: 46 6f 73 73 69 6c 3c 2f 63 69 74 65 3e 20 72 65  Fossil</cite> re
0c30: 70 6f 73 69 74 6f 72 69 65 73 20 74 6f 20 62 65  positories to be
0c40: 20 73 68 61 72 65 64 20 28 61 6e 64 2c 20 6f 66   shared (and, of
0c50: 20 63 6f 75 72 73 65 2c 20 61 6c 74 65 72 65 64   course, altered
0c60: 20 66 6f 72 20 79 6f 75 72 20 73 65 74 75 70 29   for your setup)
0c70: 20 74 6f 20 73 65 74 20 73 6f 6d 65 20 6f 66 20   to set some of 
0c80: 74 68 65 20 63 6f 6e 73 74 72 61 69 6e 74 73 20  the constraints 
0c90: 61 62 6f 76 65 20 75 70 20 61 75 74 6f 6d 61 74  above up automat
0ca0: 69 63 61 6c 6c 79 3a 0d 0a 0d 0a 3c 6e 6f 77 69  ically:....<nowi
0cb0: 6b 69 3e 3c 66 6f 6e 74 20 66 61 63 65 3d 22 6d  ki><font face="m
0cc0: 6f 6e 6f 73 70 61 63 65 22 3e 0d 0a 3c 66 6f 6e  onospace">..<fon
0cd0: 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61  t color="#a52a2a
0ce0: 22 3e 26 6e 62 73 70 3b 31 20 3c 2f 66 6f 6e 74  ">&nbsp;1 </font
0cf0: 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 30  ><font color="#0
0d00: 30 30 30 66 66 22 3e 23 21 20 2f 75 73 72 2f 62  000ff">#! /usr/b
0d10: 69 6e 2f 65 6e 76 20 62 61 73 68 3c 2f 66 6f 6e  in/env bash</fon
0d20: 74 3e 3c 62 72 3e 0d 0a 3c 66 6f 6e 74 20 63 6f  t><br>..<font co
0d30: 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 26 6e  lor="#a52a2a">&n
0d40: 62 73 70 3b 32 20 3c 2f 66 6f 6e 74 3e 3c 66 6f  bsp;2 </font><fo
0d50: 6e 74 20 63 6f 6c 6f 72 3d 22 23 30 30 38 62 38  nt color="#008b8
0d60: 62 22 3e 43 47 49 5f 52 4f 4f 54 3c 2f 66 6f 6e  b">CGI_ROOT</fon
0d70: 74 3e 3d 2f 75 73 72 2f 6c 69 62 2f 66 6f 73 73  t>=/usr/lib/foss
0d80: 69 6c 3c 62 72 3e 0d 0a 3c 66 6f 6e 74 20 63 6f  il<br>..<font co
0d90: 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 26 6e  lor="#a52a2a">&n
0da0: 62 73 70 3b 33 20 3c 2f 66 6f 6e 74 3e 3c 66 6f  bsp;3 </font><fo
0db0: 6e 74 20 63 6f 6c 6f 72 3d 22 23 30 30 38 62 38  nt color="#008b8
0dc0: 62 22 3e 52 45 50 4f 53 49 54 4f 52 59 5f 4f 57  b">REPOSITORY_OW
0dd0: 4e 45 52 3c 2f 66 6f 6e 74 3e 3d 6d 69 63 68 61  NER</font>=micha
0de0: 65 6c 3c 62 72 3e 0d 0a 3c 66 6f 6e 74 20 63 6f  el<br>..<font co
0df0: 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 26 6e  lor="#a52a2a">&n
0e00: 62 73 70 3b 34 20 3c 2f 66 6f 6e 74 3e 3c 66 6f  bsp;4 </font><fo
0e10: 6e 74 20 63 6f 6c 6f 72 3d 22 23 30 30 38 62 38  nt color="#008b8
0e20: 62 22 3e 43 47 49 5f 47 52 4f 55 50 3c 2f 66 6f  b">CGI_GROUP</fo
0e30: 6e 74 3e 3d 77 77 77 2d 64 61 74 61 3c 62 72 3e  nt>=www-data<br>
0e40: 0d 0a 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23  ..<font color="#
0e50: 61 35 32 61 32 61 22 3e 26 6e 62 73 70 3b 35 20  a52a2a">&nbsp;5 
0e60: 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c  </font><font col
0e70: 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 3c 62 3e  or="#a52a2a"><b>
0e80: 69 66 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 26 6e 62  if</b></font>&nb
0e90: 73 70 3b 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22  sp;<font color="
0ea0: 23 61 35 32 61 32 61 22 3e 3c 62 3e 5b 3c 2f 62  #a52a2a"><b>[</b
0eb0: 3e 3c 2f 66 6f 6e 74 3e 26 6e 62 73 70 3b 3c 66  ></font>&nbsp;<f
0ec0: 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 36 61 35 61  ont color="#6a5a
0ed0: 63 64 22 3e 60 77 68 6f 61 6d 69 60 3c 2f 66 6f  cd">`whoami`</fo
0ee0: 6e 74 3e 26 6e 62 73 70 3b 3c 66 6f 6e 74 20 63  nt>&nbsp;<font c
0ef0: 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 3c  olor="#a52a2a"><
0f00: 62 3e 3d 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 26 6e  b>=</b></font>&n
0f10: 62 73 70 3b 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d  bsp;<font color=
0f20: 22 23 66 66 30 30 66 66 22 3e 27 72 6f 6f 74 27  "#ff00ff">'root'
0f30: 3c 2f 66 6f 6e 74 3e 26 6e 62 73 70 3b 3c 66 6f  </font>&nbsp;<fo
0f40: 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32  nt color="#a52a2
0f50: 61 22 3e 3c 62 3e 5d 3c 2f 62 3e 3c 2f 66 6f 6e  a"><b>]</b></fon
0f60: 74 3e 3c 62 72 3e 0d 0a 3c 66 6f 6e 74 20 63 6f  t><br>..<font co
0f70: 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 26 6e  lor="#a52a2a">&n
0f80: 62 73 70 3b 36 20 3c 2f 66 6f 6e 74 3e 3c 66 6f  bsp;6 </font><fo
0f90: 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32  nt color="#a52a2
0fa0: 61 22 3e 3c 62 3e 74 68 65 6e 3c 2f 62 3e 3c 2f  a"><b>then</b></
0fb0: 66 6f 6e 74 3e 3c 62 72 3e 0d 0a 3c 66 6f 6e 74  font><br>..<font
0fc0: 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22   color="#a52a2a"
0fd0: 3e 26 6e 62 73 70 3b 37 20 3c 2f 66 6f 6e 74 3e  >&nbsp;7 </font>
0fe0: 26 6e 62 73 70 3b 26 6e 62 73 70 3b 3c 66 6f 6e  &nbsp;&nbsp;<fon
0ff0: 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61  t color="#a52a2a
1000: 22 3e 3c 62 3e 66 6f 72 3c 2f 62 3e 3c 2f 66 6f  "><b>for</b></fo
1010: 6e 74 3e 26 6e 62 73 70 3b 72 65 70 6f 73 69 74  nt>&nbsp;reposit
1020: 6f 72 79 20 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d  ory <font color=
1030: 22 23 61 35 32 61 32 61 22 3e 3c 62 3e 69 6e 3c  "#a52a2a"><b>in<
1040: 2f 62 3e 3c 2f 66 6f 6e 74 3e 26 6e 62 73 70 3b  /b></font>&nbsp;
1050: 2a 2e 66 73 6c 3c 62 72 3e 0d 0a 3c 66 6f 6e 74  *.fsl<br>..<font
1060: 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22   color="#a52a2a"
1070: 3e 26 6e 62 73 70 3b 38 20 3c 2f 66 6f 6e 74 3e  >&nbsp;8 </font>
1080: 26 6e 62 73 70 3b 26 6e 62 73 70 3b 3c 66 6f 6e  &nbsp;&nbsp;<fon
1090: 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61  t color="#a52a2a
10a0: 22 3e 3c 62 3e 64 6f 3c 2f 62 3e 3c 2f 66 6f 6e  "><b>do</b></fon
10b0: 74 3e 3c 62 72 3e 0d 0a 3c 66 6f 6e 74 20 63 6f  t><br>..<font co
10c0: 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 26 6e  lor="#a52a2a">&n
10d0: 62 73 70 3b 39 20 3c 2f 66 6f 6e 74 3e 26 6e 62  bsp;9 </font>&nb
10e0: 73 70 3b 26 6e 62 73 70 3b 26 6e 62 73 70 3b 26  sp;&nbsp;&nbsp;&
10f0: 6e 62 73 70 3b 3c 66 6f 6e 74 20 63 6f 6c 6f 72  nbsp;<font color
1100: 3d 22 23 30 30 38 62 38 62 22 3e 53 4f 55 52 43  ="#008b8b">SOURC
1110: 45 3c 2f 66 6f 6e 74 3e 3d 3c 66 6f 6e 74 20 63  E</font>=<font c
1120: 6f 6c 6f 72 3d 22 23 36 61 35 61 63 64 22 3e 60  olor="#6a5acd">`
1130: 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c  </font><font col
1140: 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 3c 62 3e  or="#a52a2a"><b>
1150: 70 77 64 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 3c 66  pwd</b></font><f
1160: 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 36 61 35 61  ont color="#6a5a
1170: 63 64 22 3e 60 3c 2f 66 6f 6e 74 3e 2f 3c 66 6f  cd">`</font>/<fo
1180: 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 30 32 30 66  nt color="#a020f
1190: 30 22 3e 24 72 65 70 6f 73 69 74 6f 72 79 3c 2f  0">$repository</
11a0: 66 6f 6e 74 3e 3c 62 72 3e 0d 0a 3c 66 6f 6e 74  font><br>..<font
11b0: 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22   color="#a52a2a"
11c0: 3e 31 30 20 3c 2f 66 6f 6e 74 3e 26 6e 62 73 70  >10 </font>&nbsp
11d0: 3b 26 6e 62 73 70 3b 26 6e 62 73 70 3b 26 6e 62  ;&nbsp;&nbsp;&nb
11e0: 73 70 3b 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22  sp;<font color="
11f0: 23 30 30 38 62 38 62 22 3e 44 45 53 54 49 4e 41  #008b8b">DESTINA
1200: 54 49 4f 4e 3c 2f 66 6f 6e 74 3e 3d 3c 66 6f 6e  TION</font>=<fon
1210: 74 20 63 6f 6c 6f 72 3d 22 23 61 30 32 30 66 30  t color="#a020f0
1220: 22 3e 24 43 47 49 5f 52 4f 4f 54 3c 2f 66 6f 6e  ">$CGI_ROOT</fon
1230: 74 3e 2f 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22  t>/<font color="
1240: 23 61 30 32 30 66 30 22 3e 24 7b 3c 2f 66 6f 6e  #a020f0">${</fon
1250: 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23  t><font color="#
1260: 61 30 32 30 66 30 22 3e 72 65 70 6f 73 69 74 6f  a020f0">reposito
1270: 72 79 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63  ry</font><font c
1280: 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 3c  olor="#a52a2a"><
1290: 62 3e 25 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 2e 66  b>%</b></font>.f
12a0: 73 6c 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23  sl<font color="#
12b0: 61 30 32 30 66 30 22 3e 7d 3c 2f 66 6f 6e 74 3e  a020f0">}</font>
12c0: 3c 62 72 3e 0d 0a 3c 66 6f 6e 74 20 63 6f 6c 6f  <br>..<font colo
12d0: 72 3d 22 23 61 35 32 61 32 61 22 3e 31 31 20 3c  r="#a52a2a">11 <
12e0: 2f 66 6f 6e 74 3e 26 6e 62 73 70 3b 26 6e 62 73  /font>&nbsp;&nbs
12f0: 70 3b 26 6e 62 73 70 3b 26 6e 62 73 70 3b 3c 66  p;&nbsp;&nbsp;<f
1300: 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61  ont color="#a52a
1310: 32 61 22 3e 3c 62 3e 65 63 68 6f 3c 2f 62 3e 3c  2a"><b>echo</b><
1320: 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f  /font><font colo
1330: 72 3d 22 23 66 66 30 30 66 66 22 3e 26 6e 62 73  r="#ff00ff">&nbs
1340: 70 3b 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63  p;</font><font c
1350: 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 3c  olor="#a52a2a"><
1360: 62 3e 26 71 75 6f 74 3b 3c 2f 62 3e 3c 2f 66 6f  b>&quot;</b></fo
1370: 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22  nt><font color="
1380: 23 66 66 30 30 66 66 22 3e 23 21 20 2f 75 73 72  #ff00ff">#! /usr
1390: 2f 62 69 6e 2f 65 6e 76 20 66 6f 73 73 69 6c 3c  /bin/env fossil<
13a0: 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f  /font><font colo
13b0: 72 3d 22 23 61 35 32 61 32 61 22 3e 3c 62 3e 26  r="#a52a2a"><b>&
13c0: 71 75 6f 74 3b 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e  quot;</b></font>
13d0: 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 66 66  <font color="#ff
13e0: 30 30 66 66 22 3e 26 6e 62 73 70 3b 3c 2f 66 6f  00ff">&nbsp;</fo
13f0: 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22  nt><font color="
1400: 23 61 35 32 61 32 61 22 3e 3c 62 3e 26 67 74 3b  #a52a2a"><b>&gt;
1410: 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 26 6e 62 73 70  </b></font>&nbsp
1420: 3b 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61  ;<font color="#a
1430: 30 32 30 66 30 22 3e 24 44 45 53 54 49 4e 41 54  020f0">$DESTINAT
1440: 49 4f 4e 3c 2f 66 6f 6e 74 3e 3c 62 72 3e 0d 0a  ION</font><br>..
1450: 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35  <font color="#a5
1460: 32 61 32 61 22 3e 31 32 20 3c 2f 66 6f 6e 74 3e  2a2a">12 </font>
1470: 26 6e 62 73 70 3b 26 6e 62 73 70 3b 26 6e 62 73  &nbsp;&nbsp;&nbs
1480: 70 3b 26 6e 62 73 70 3b 3c 66 6f 6e 74 20 63 6f  p;&nbsp;<font co
1490: 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 3c 62  lor="#a52a2a"><b
14a0: 3e 65 63 68 6f 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e  >echo</b></font>
14b0: 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 66 66  <font color="#ff
14c0: 30 30 66 66 22 3e 26 6e 62 73 70 3b 3c 2f 66 6f  00ff">&nbsp;</fo
14d0: 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22  nt><font color="
14e0: 23 61 35 32 61 32 61 22 3e 3c 62 3e 26 71 75 6f  #a52a2a"><b>&quo
14f0: 74 3b 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 3c 66 6f  t;</b></font><fo
1500: 6e 74 20 63 6f 6c 6f 72 3d 22 23 66 66 30 30 66  nt color="#ff00f
1510: 66 22 3e 72 65 70 6f 73 69 74 6f 72 79 3a 20 3c  f">repository: <
1520: 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f  /font><font colo
1530: 72 3d 22 23 61 30 32 30 66 30 22 3e 24 53 4f 55  r="#a020f0">$SOU
1540: 52 43 45 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20  RCE</font><font 
1550: 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e  color="#a52a2a">
1560: 3c 62 3e 26 71 75 6f 74 3b 3c 2f 62 3e 3c 2f 66  <b>&quot;</b></f
1570: 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d  ont><font color=
1580: 22 23 66 66 30 30 66 66 22 3e 26 6e 62 73 70 3b  "#ff00ff">&nbsp;
1590: 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c  </font><font col
15a0: 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 3c 62 3e  or="#a52a2a"><b>
15b0: 26 67 74 3b 26 67 74 3b 3c 2f 62 3e 3c 2f 66 6f  &gt;&gt;</b></fo
15c0: 6e 74 3e 26 6e 62 73 70 3b 3c 66 6f 6e 74 20 63  nt>&nbsp;<font c
15d0: 6f 6c 6f 72 3d 22 23 61 30 32 30 66 30 22 3e 24  olor="#a020f0">$
15e0: 44 45 53 54 49 4e 41 54 49 4f 4e 3c 2f 66 6f 6e  DESTINATION</fon
15f0: 74 3e 3c 62 72 3e 0d 0a 3c 66 6f 6e 74 20 63 6f  t><br>..<font co
1600: 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 31 33  lor="#a52a2a">13
1610: 20 3c 2f 66 6f 6e 74 3e 26 6e 62 73 70 3b 26 6e   </font>&nbsp;&n
1620: 62 73 70 3b 26 6e 62 73 70 3b 26 6e 62 73 70 3b  bsp;&nbsp;&nbsp;
1630: 63 68 6f 77 6e 20 3c 66 6f 6e 74 20 63 6f 6c 6f  chown <font colo
1640: 72 3d 22 23 61 30 32 30 66 30 22 3e 24 52 45 50  r="#a020f0">$REP
1650: 4f 53 49 54 4f 52 59 5f 4f 57 4e 45 52 3c 2f 66  OSITORY_OWNER</f
1660: 6f 6e 74 3e 3a 3c 66 6f 6e 74 20 63 6f 6c 6f 72  ont>:<font color
1670: 3d 22 23 61 30 32 30 66 30 22 3e 24 43 47 49 5f  ="#a020f0">$CGI_
1680: 47 52 4f 55 50 3c 2f 66 6f 6e 74 3e 26 6e 62 73  GROUP</font>&nbs
1690: 70 3b 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23  p;<font color="#
16a0: 61 30 32 30 66 30 22 3e 24 53 4f 55 52 43 45 3c  a020f0">$SOURCE<
16b0: 2f 66 6f 6e 74 3e 3c 62 72 3e 0d 0a 3c 66 6f 6e  /font><br>..<fon
16c0: 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61  t color="#a52a2a
16d0: 22 3e 31 34 20 3c 2f 66 6f 6e 74 3e 26 6e 62 73  ">14 </font>&nbs
16e0: 70 3b 26 6e 62 73 70 3b 26 6e 62 73 70 3b 26 6e  p;&nbsp;&nbsp;&n
16f0: 62 73 70 3b 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d  bsp;<font color=
1700: 22 23 61 35 32 61 32 61 22 3e 3c 62 3e 63 68 6d  "#a52a2a"><b>chm
1710: 6f 64 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 26 6e 62  od</b></font>&nb
1720: 73 70 3b 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22  sp;<font color="
1730: 23 66 66 30 30 66 66 22 3e 36 36 34 3c 2f 66 6f  #ff00ff">664</fo
1740: 6e 74 3e 26 6e 62 73 70 3b 3c 66 6f 6e 74 20 63  nt>&nbsp;<font c
1750: 6f 6c 6f 72 3d 22 23 61 30 32 30 66 30 22 3e 24  olor="#a020f0">$
1760: 53 4f 55 52 43 45 3c 2f 66 6f 6e 74 3e 3c 62 72  SOURCE</font><br
1770: 3e 0d 0a 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22  >..<font color="
1780: 23 61 35 32 61 32 61 22 3e 31 35 20 3c 2f 66 6f  #a52a2a">15 </fo
1790: 6e 74 3e 26 6e 62 73 70 3b 26 6e 62 73 70 3b 26  nt>&nbsp;&nbsp;&
17a0: 6e 62 73 70 3b 26 6e 62 73 70 3b 63 68 6f 77 6e  nbsp;&nbsp;chown
17b0: 20 72 6f 6f 74 3a 72 6f 6f 74 20 3c 66 6f 6e 74   root:root <font
17c0: 20 63 6f 6c 6f 72 3d 22 23 61 30 32 30 66 30 22   color="#a020f0"
17d0: 3e 24 44 45 53 54 49 4e 41 54 49 4f 4e 3c 2f 66  >$DESTINATION</f
17e0: 6f 6e 74 3e 3c 62 72 3e 0d 0a 3c 66 6f 6e 74 20  ont><br>..<font 
17f0: 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e  color="#a52a2a">
1800: 31 36 20 3c 2f 66 6f 6e 74 3e 26 6e 62 73 70 3b  16 </font>&nbsp;
1810: 26 6e 62 73 70 3b 26 6e 62 73 70 3b 26 6e 62 73  &nbsp;&nbsp;&nbs
1820: 70 3b 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23  p;<font color="#
1830: 61 35 32 61 32 61 22 3e 3c 62 3e 63 68 6d 6f 64  a52a2a"><b>chmod
1840: 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 26 6e 62 73 70  </b></font>&nbsp
1850: 3b 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 66  ;<font color="#f
1860: 66 30 30 66 66 22 3e 37 35 35 3c 2f 66 6f 6e 74  f00ff">755</font
1870: 3e 26 6e 62 73 70 3b 3c 66 6f 6e 74 20 63 6f 6c  >&nbsp;<font col
1880: 6f 72 3d 22 23 61 30 32 30 66 30 22 3e 24 44 45  or="#a020f0">$DE
1890: 53 54 49 4e 41 54 49 4f 4e 3c 2f 66 6f 6e 74 3e  STINATION</font>
18a0: 3c 62 72 3e 0d 0a 3c 66 6f 6e 74 20 63 6f 6c 6f  <br>..<font colo
18b0: 72 3d 22 23 61 35 32 61 32 61 22 3e 31 37 20 3c  r="#a52a2a">17 <
18c0: 2f 66 6f 6e 74 3e 26 6e 62 73 70 3b 26 6e 62 73  /font>&nbsp;&nbs
18d0: 70 3b 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23  p;<font color="#
18e0: 61 35 32 61 32 61 22 3e 3c 62 3e 64 6f 6e 65 3c  a52a2a"><b>done<
18f0: 2f 62 3e 3c 2f 66 6f 6e 74 3e 3c 62 72 3e 0d 0a  /b></font><br>..
1900: 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35  <font color="#a5
1910: 32 61 32 61 22 3e 31 38 20 3c 2f 66 6f 6e 74 3e  2a2a">18 </font>
1920: 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35  <font color="#a5
1930: 32 61 32 61 22 3e 3c 62 3e 65 6c 73 65 3c 2f 62  2a2a"><b>else</b
1940: 3e 3c 2f 66 6f 6e 74 3e 3c 62 72 3e 0d 0a 3c 66  ></font><br>..<f
1950: 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61  ont color="#a52a
1960: 32 61 22 3e 31 39 20 3c 2f 66 6f 6e 74 3e 26 6e  2a">19 </font>&n
1970: 62 73 70 3b 26 6e 62 73 70 3b 73 75 64 6f 20 3c  bsp;&nbsp;sudo <
1980: 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 30 32  font color="#a02
1990: 30 66 30 22 3e 24 30 3c 2f 66 6f 6e 74 3e 26 6e  0f0">$0</font>&n
19a0: 62 73 70 3b 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d  bsp;<font color=
19b0: 22 23 61 30 32 30 66 30 22 3e 24 2a 3c 2f 66 6f  "#a020f0">$*</fo
19c0: 6e 74 3e 3c 62 72 3e 0d 0a 3c 66 6f 6e 74 20 63  nt><br>..<font c
19d0: 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 32  olor="#a52a2a">2
19e0: 30 20 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63  0 </font><font c
19f0: 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 3c  olor="#a52a2a"><
1a00: 62 3e 66 69 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 3c  b>fi</b></font><
1a10: 62 72 3e 0d 0a 3c 2f 66 6f 6e 74 3e 3c 2f 6e 6f  br>..</font></no
1a20: 77 69 6b 69 3e 0d 0a 0d 0a 48 65 72 65 20 69 73  wiki>....Here is
1a30: 20 61 20 6c 69 74 74 6c 65 20 70 65 72 6c 20 73   a little perl s
1a40: 63 72 69 70 74 20 74 6f 20 70 75 74 20 69 6e 20  cript to put in 
1a50: 79 6f 75 72 20 63 67 69 2d 62 69 6e 20 74 6f 20  your cgi-bin to 
1a60: 6c 69 73 74 20 61 6c 6c 20 74 68 65 20 66 6f 73  list all the fos
1a70: 73 69 6c 73 20 79 6f 75 20 61 72 65 20 70 75 62  sils you are pub
1a80: 6c 69 73 68 69 6e 67 3a 0d 0a 0d 0a 3c 6e 6f 77  lishing:....<now
1a90: 69 6b 69 3e 0d 0a 3c 70 72 65 3e 0d 0a 3c 66 6f  iki>..<pre>..<fo
1aa0: 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32  nt color="#a52a2
1ab0: 61 22 3e 26 6e 62 73 70 3b 31 20 3c 2f 66 6f 6e  a">&nbsp;1 </fon
1ac0: 74 3e 20 23 21 2f 75 73 72 2f 62 69 6e 2f 70 65  t> #!/usr/bin/pe
1ad0: 72 6c 20 2d 77 0d 0a 3c 66 6f 6e 74 20 63 6f 6c  rl -w..<font col
1ae0: 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 26 6e 62  or="#a52a2a">&nb
1af0: 73 70 3b 32 20 3c 2f 66 6f 6e 74 3e 20 3c 66 6f  sp;2 </font> <fo
1b00: 6e 74 20 63 6f 6c 6f 72 3d 22 23 38 42 30 30 38  nt color="#8B008
1b10: 42 22 3e 3c 62 3e 6d 79 3c 2f 62 3e 3c 2f 66 6f  B"><b>my</b></fo
1b20: 6e 74 3e 20 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d  nt> <font color=
1b30: 22 23 30 30 36 38 38 42 22 3e 24 43 5c 0d 0a 47  "#00688B">$C\..G
1b40: 49 5f 42 49 4e 3c 2f 66 6f 6e 74 3e 20 3d 20 3c  I_BIN</font> = <
1b50: 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 43 44 35  font color="#CD5
1b60: 35 35 35 22 3e 26 23 33 39 3b 2f 4c 69 62 72 61  555">&#39;/Libra
1b70: 72 79 2f 57 65 62 53 65 72 76 65 72 2f 43 47 49  ry/WebServer/CGI
1b80: 2d 45 78 65 63 75 74 61 62 6c 65 73 26 23 33 39  -Executables&#39
1b90: 3b 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f  ;</font><font co
1ba0: 6c 6f 72 3d 5c 0d 0a 22 23 30 30 30 30 30 30 22  lor=\.."#000000"
1bb0: 3e 3b 3c 2f 66 6f 6e 74 3e 0d 0a 3c 66 6f 6e 74  >;</font>..<font
1bc0: 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22   color="#a52a2a"
1bd0: 3e 26 6e 62 73 70 3b 33 20 3c 2f 66 6f 6e 74 3e  >&nbsp;3 </font>
1be0: 20 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 38   <font color="#8
1bf0: 42 30 30 38 42 22 3e 3c 62 3e 6d 79 3c 2f 62 3e  B008B"><b>my</b>
1c00: 3c 2f 66 6f 6e 74 3e 20 3c 66 6f 6e 74 20 63 6f  </font> <font co
1c10: 6c 6f 72 3d 22 23 30 30 36 38 38 42 22 3e 40 66  lor="#00688B">@f
1c20: 5c 0d 0a 69 6c 65 73 3c 2f 66 6f 6e 74 3e 20 3d  \..iles</font> =
1c30: 20 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 43   <font color="#C
1c40: 44 35 35 35 35 22 3e 60 67 72 65 70 20 2d 6c 20  D5555">`grep -l 
1c50: 72 65 70 6f 73 69 74 6f 72 79 3a 20 20 24 43 47  repository:  $CG
1c60: 49 5f 42 49 4e 2f 2a 20 60 3c 2f 66 6f 6e 74 3e  I_BIN/* `</font>
1c70: 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 30 30  <font color="#00
1c80: 30 30 30 30 22 3e 3b 3c 5c 0d 0a 2f 66 6f 6e 74  0000">;<\../font
1c90: 3e 0d 0a 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22  >..<font color="
1ca0: 23 61 35 32 61 32 61 22 3e 26 6e 62 73 70 3b 34  #a52a2a">&nbsp;4
1cb0: 20 3c 2f 66 6f 6e 74 3e 20 3c 66 6f 6e 74 20 63   </font> <font c
1cc0: 6f 6c 6f 72 3d 22 23 38 42 30 30 38 42 22 3e 3c  olor="#8B008B"><
1cd0: 62 3e 70 72 69 6e 74 3c 2f 62 3e 3c 2f 66 6f 6e  b>print</b></fon
1ce0: 74 3e 20 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22  t> <font color="
1cf0: 23 43 44 35 35 35 35 22 5c 0d 0a 3e 3c 62 3e 26  #CD5555"\..><b>&
1d00: 6c 74 3b 26 6c 74 3b 45 4f 4d 3c 2f 62 3e 3c 2f  lt;&lt;EOM</b></
1d10: 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72  font><font color
1d20: 3d 22 23 30 30 30 30 30 30 22 3e 3b 3c 2f 66 6f  ="#000000">;</fo
1d30: 6e 74 3e 0d 0a 3c 66 6f 6e 74 20 63 6f 6c 6f 72  nt>..<font color
1d40: 3d 22 23 61 35 32 61 32 61 22 3e 26 6e 62 73 70  ="#a52a2a">&nbsp
1d50: 3b 35 20 3c 2f 66 6f 6e 74 3e 20 3c 66 6f 6e 74  ;5 </font> <font
1d60: 20 63 6f 6c 6f 72 3d 22 23 43 44 35 35 35 35 22   color="#CD5555"
1d70: 3e 3c 69 3e 43 6f 6e 74 65 6e 74 2d 54 79 70 65  ><i>Content-Type
1d80: 3a 20 74 65 78 74 2f 68 74 6d 6c 3c 2f 69 3e 3c  : text/html</i><
1d90: 2f 66 6f 6e 74 3e 0d 0a 3c 66 6f 6e 74 20 63 6f  /font>..<font co
1da0: 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 26 6e  lor="#a52a2a">&n
1db0: 62 73 70 3b 36 20 3c 2f 66 6f 6e 74 3e 0d 0a 3c  bsp;6 </font>..<
1dc0: 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32  font color="#a52
1dd0: 61 32 61 22 3e 26 6e 62 73 70 3b 37 20 3c 2f 66  a2a">&nbsp;7 </f
1de0: 6f 6e 74 3e 20 3c 66 6f 6e 74 20 63 6f 6c 6f 72  ont> <font color
1df0: 3d 22 23 43 44 35 35 35 35 22 3e 3c 69 3e 46 6f  ="#CD5555"><i>Fo
1e00: 73 73 69 6c 73 20 66 6f 72 20 74 68 69 73 20 73  ssils for this s
1e10: 65 72 76 65 72 3c 2f 69 3e 3c 2f 66 6f 6e 74 3e  erver</i></font>
1e20: 0d 0a 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23  ..<font color="#
1e30: 61 35 32 61 32 61 22 3e 26 6e 62 73 70 3b 38 20  a52a2a">&nbsp;8 
1e40: 3c 2f 66 6f 6e 74 3e 20 3c 66 6f 6e 74 20 63 6f  </font> <font co
1e50: 6c 6f 72 3d 22 23 43 44 35 35 35 35 22 3e 3c 69  lor="#CD5555"><i
1e60: 3e 26 6c 74 3b 75 6c 26 67 74 3b 3c 2f 69 3e 3c  >&lt;ul&gt;</i><
1e70: 2f 66 6f 6e 74 3e 0d 0a 3c 66 6f 6e 74 20 63 6f  /font>..<font co
1e80: 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 26 6e  lor="#a52a2a">&n
1e90: 62 73 70 3b 39 20 3c 2f 66 6f 6e 74 3e 20 3c 66  bsp;9 </font> <f
1ea0: 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 43 44 35 35  ont color="#CD55
1eb0: 35 35 22 3e 3c 62 3e 45 4f 4d 3c 2f 62 3e 3c 2f  55"><b>EOM</b></
1ec0: 66 6f 6e 74 3e 0d 0a 3c 66 6f 6e 74 20 63 6f 6c  font>..<font col
1ed0: 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 26 6e 62  or="#a52a2a">&nb
1ee0: 73 70 3b 31 20 3c 2f 66 6f 6e 74 3e 30 0d 0a 3c  sp;1 </font>0..<
1ef0: 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32  font color="#a52
1f00: 61 32 61 22 3e 26 6e 62 73 70 3b 31 20 3c 2f 66  a2a">&nbsp;1 </f
1f10: 6f 6e 74 3e 31 20 3c 66 6f 6e 74 20 63 6f 6c 6f  ont>1 <font colo
1f20: 72 3d 22 23 38 42 30 30 38 42 22 3e 3c 62 3e 66  r="#8B008B"><b>f
1f30: 6f 72 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 20 3c 66  or</b></font> <f
1f40: 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 30 30 30 30  ont color="#0000
1f50: 30 30 22 3e 5c 0d 0a 28 3c 2f 66 6f 6e 74 3e 3c  00">\..(</font><
1f60: 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 30 30 36  font color="#006
1f70: 38 38 42 22 3e 40 66 69 6c 65 73 3c 2f 66 6f 6e  88B">@files</fon
1f80: 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23  t><font color="#
1f90: 30 30 30 30 30 30 22 3e 29 3c 2f 66 6f 6e 74 3e  000000">)</font>
1fa0: 20 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 30   <font color="#0
1fb0: 30 30 30 30 30 22 3e 7b 3c 2f 66 6f 5c 0d 0a 6e  00000">{</fo\..n
1fc0: 74 3e 0d 0a 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d  t>..<font color=
1fd0: 22 23 61 35 32 61 32 61 22 3e 26 6e 62 73 70 3b  "#a52a2a">&nbsp;
1fe0: 31 20 3c 2f 66 6f 6e 74 3e 32 20 20 20 3c 66 6f  1 </font>2   <fo
1ff0: 6e 74 20 63 6f 6c 6f 72 3d 22 23 43 44 35 35 35  nt color="#CD555
2000: 35 22 3e 73 7b 2e 2a 2f 7d 7b 7d 3c 2f 66 6f 6e  5">s{.*/}{}</fon
2010: 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23  t><font color="#
2020: 30 30 30 30 30 30 22 3e 3b 5c 0d 0a 3c 2f 66 6f  000000">;\..</fo
2030: 6e 74 3e 0d 0a 3c 66 6f 6e 74 20 63 6f 6c 6f 72  nt>..<font color
2040: 3d 22 23 61 35 32 61 32 61 22 3e 26 6e 62 73 70  ="#a52a2a">&nbsp
2050: 3b 31 20 3c 2f 66 6f 6e 74 3e 33 20 20 20 3c 66  ;1 </font>3   <f
2060: 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 38 42 30 30  ont color="#8B00
2070: 38 42 22 3e 3c 62 3e 6e 65 78 74 3c 2f 62 3e 3c  8B"><b>next</b><
2080: 2f 66 6f 6e 74 3e 20 3c 66 6f 6e 74 20 63 6f 6c  /font> <font col
2090: 6f 72 3d 22 23 38 42 30 30 38 5c 0d 0a 42 22 3e  or="#8B008\..B">
20a0: 3c 62 3e 69 66 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e  <b>if</b></font>
20b0: 20 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 43   <font color="#C
20c0: 44 35 35 35 35 22 3e 2f 7e 24 2f 3c 2f 66 6f 6e  D5555">/~$/</fon
20d0: 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23  t><font color="#
20e0: 30 30 30 30 30 30 22 3e 3b 3c 2f 66 6f 6e 74 3e  000000">;</font>
20f0: 0d 0a 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23  ..<font color="#
2100: 61 35 32 61 32 61 22 3e 26 6e 62 73 70 3b 31 20  a52a2a">&nbsp;1 
2110: 3c 2f 66 6f 6e 74 3e 34 20 20 20 3c 66 6f 6e 74  </font>4   <font
2120: 20 63 6f 6c 6f 72 3d 22 23 38 42 30 30 38 42 22   color="#8B008B"
2130: 3e 3c 62 3e 70 72 69 6e 74 3c 2f 62 3e 3c 2f 66  ><b>print</b></f
2140: 6f 6e 74 3e 20 3c 66 6f 6e 74 20 63 6f 6c 6f 72  ont> <font color
2150: 3d 22 23 43 44 35 35 5c 0d 0a 35 35 22 3e 26 71  ="#CD55\..55">&q
2160: 75 6f 74 3b 26 6c 74 3b 6c 69 26 67 74 3b 26 6c  uot;&lt;li&gt;&l
2170: 74 3b 61 20 68 72 65 66 3d 26 23 33 39 3b 24 5f  t;a href=&#39;$_
2180: 26 23 33 39 3b 26 67 74 3b 24 5f 26 6c 74 3b 2f  &#39;&gt;$_&lt;/
2190: 61 26 67 74 3b 26 6c 74 3b 2f 6c 69 26 67 74 3b  a&gt;&lt;/li&gt;
21a0: 5c 6e 26 71 75 6f 74 3b 3c 2f 66 6f 6e 74 3e 3c  \n&quot;</font><
21b0: 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 30 30 5c  font color="#00\
21c0: 0d 0a 30 30 30 30 22 3e 3b 3c 2f 66 6f 6e 74 3e  ..0000">;</font>
21d0: 0d 0a 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23  ..<font color="#
21e0: 61 35 32 61 32 61 22 3e 26 6e 62 73 70 3b 31 20  a52a2a">&nbsp;1 
21f0: 3c 2f 66 6f 6e 74 3e 35 20 3c 66 6f 6e 74 20 63  </font>5 <font c
2200: 6f 6c 6f 72 3d 22 23 30 30 30 30 30 30 22 3e 7d  olor="#000000">}
2210: 3c 2f 66 6f 6e 74 3e 0d 0a 3c 66 6f 6e 74 20 63  </font>..<font c
2220: 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 26  olor="#a52a2a">&
2230: 6e 62 73 70 3b 31 20 3c 2f 66 6f 6e 74 3e 36 20  nbsp;1 </font>6 
2240: 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 38 42  <font color="#8B
2250: 30 30 38 42 22 3e 3c 62 3e 70 72 69 6e 74 3c 2f  008B"><b>print</
2260: 62 3e 3c 2f 66 6f 6e 74 3e 20 3c 66 6f 6e 74 20  b></font> <font 
2270: 63 6f 6c 6f 72 3d 22 23 43 44 35 35 35 35 5c 0d  color="#CD5555\.
2280: 0a 22 3e 26 71 75 6f 74 3b 26 6c 74 3b 2f 75 6c  .">&quot;&lt;/ul
2290: 26 67 74 3b 5c 6e 26 71 75 6f 74 3b 3c 2f 66 6f  &gt;\n&quot;</fo
22a0: 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22  nt><font color="
22b0: 23 30 30 30 30 30 30 22 3e 3b 3c 2f 66 6f 6e 74  #000000">;</font
22c0: 3e 0d 0a 3c 2f 70 72 65 3e 0d 0a 0d 0a 3c 70 72  >..</pre>....<pr
22d0: 65 3e 0d 0a 23 21 2f 75 73 72 2f 62 69 6e 2f 70  e>..#!/usr/bin/p
22e0: 65 72 6c 20 2d 77 0d 0a 6d 79 20 24 43 47 49 5f  erl -w..my $CGI_
22f0: 42 49 4e 20 3d 20 27 2f 4c 69 62 72 61 72 79 2f  BIN = '/Library/
2300: 57 65 62 53 65 72 76 65 72 2f 43 47 49 2d 45 78  WebServer/CGI-Ex
2310: 65 63 75 74 61 62 6c 65 73 27 3b 0d 0a 6d 79 20  ecutables';..my 
2320: 40 66 69 6c 65 73 20 3d 20 60 67 72 65 70 20 2d  @files = `grep -
2330: 6c 20 72 65 70 6f 73 69 74 6f 72 79 3a 20 20 24  l repository:  $
2340: 43 47 49 5f 42 49 4e 2f 2a 20 60 3b 0d 0a 70 72  CGI_BIN/* `;..pr
2350: 69 6e 74 20 26 6c 74 3b 26 6c 74 3b 45 4f 4d 3b  int &lt;&lt;EOM;
2360: 0d 0a 43 6f 6e 74 65 6e 74 2d 54 79 70 65 3a 20  ..Content-Type: 
2370: 74 65 78 74 2f 68 74 6d 6c 0d 0a 0d 0a 46 6f 73  text/html....Fos
2380: 73 69 6c 73 20 66 6f 72 20 74 68 69 73 20 73 65  sils for this se
2390: 72 76 65 72 0d 0a 26 6c 74 3b 75 6c 3e 0d 0a 45  rver..&lt;ul>..E
23a0: 4f 4d 0d 0a 0d 0a 66 6f 72 20 28 40 66 69 6c 65  OM....for (@file
23b0: 73 29 20 7b 0d 0a 20 20 73 7b 2e 2a 2f 7d 7b 7d  s) {..  s{.*/}{}
23c0: 3b 0d 0a 20 20 6e 65 78 74 20 69 66 20 2f 7e 24  ;..  next if /~$
23d0: 2f 3b 0d 0a 20 20 70 72 69 6e 74 20 22 26 6c 74  /;..  print "&lt
23e0: 3b 6c 69 3e 26 6c 74 3b 61 20 68 72 65 66 3d 27  ;li>&lt;a href='
23f0: 24 5f 27 3e 24 5f 26 6c 74 3b 2f 61 3e 26 6c 74  $_'>$_&lt;/a>&lt
2400: 3b 2f 6c 69 3e 5c 6e 22 3b 0d 0a 7d 0d 0a 70 72  ;/li>\n";..}..pr
2410: 69 6e 74 20 22 26 6c 74 3b 2f 75 6c 3e 5c 6e 22  int "&lt;/ul>\n"
2420: 3b 3c 2f 70 72 65 3e 0d 0a 3c 2f 6e 6f 77 69 6b  ;</pre>..</nowik
2430: 69 3e 0d 0a 0d 0a 54 68 65 20 66 6f 6c 6c 6f 77  i>....The follow
2440: 69 6e 67 20 3c 63 69 74 65 3e 61 70 61 63 68 65  ing <cite>apache
2450: 32 3c 2f 63 69 74 65 3e 20 63 6f 6e 66 69 67 75  2</cite> configu
2460: 72 61 74 69 6f 6e 20 63 61 6e 20 62 65 20 75 73  ration can be us
2470: 65 64 20 74 6f 20 72 75 6e 20 74 68 65 20 72 6f  ed to run the ro
2480: 6f 74 20 6f 66 20 61 20 77 65 62 20 73 69 74 65  ot of a web site
2490: 20 77 69 74 68 20 66 6f 73 73 69 6c 2c 20 62 75   with fossil, bu
24a0: 74 20 73 74 69 6c 6c 20 61 6c 6c 6f 77 20 6f 74  t still allow ot
24b0: 68 65 72 20 73 65 72 76 69 63 65 73 20 2f 20 64  her services / d
24c0: 6f 63 75 6d 65 6e 74 73 20 74 6f 20 62 65 20 72  ocuments to be r
24d0: 65 61 63 68 65 64 20 76 69 61 20 73 70 65 63 69  eached via speci
24e0: 66 69 63 20 55 52 4c 73 2e 20 52 65 70 6c 61 63  fic URLs. Replac
24f0: 65 20 22 63 6f 64 65 2e 61 75 74 6f 6e 6f 6d 6f  e "code.autonomo
2500: 2e 75 73 22 20 77 69 74 68 20 79 6f 75 72 20 73  .us" with your s
2510: 69 74 65 27 73 20 6e 61 6d 65 20 61 6e 64 20 22  ite's name and "
2520: 64 63 6c 61 72 6b 40 70 6f 62 6f 78 2e 63 6f 6d  dclark@pobox.com
2530: 22 20 77 69 74 68 20 79 6f 75 72 20 65 6d 61 69  " with your emai
2540: 6c 2e 0d 0a 0d 0a 3c 76 65 72 62 61 74 69 6d 3e  l.....<verbatim>
2550: 0d 0a 4e 61 6d 65 56 69 72 74 75 61 6c 48 6f 73  ..NameVirtualHos
2560: 74 20 2a 3a 38 30 0d 0a 3c 56 69 72 74 75 61 6c  t *:80..<Virtual
2570: 48 6f 73 74 20 2a 3a 38 30 3e 0d 0a 20 20 20 20  Host *:80>..    
2580: 53 65 72 76 65 72 4e 61 6d 65 20 63 6f 64 65 2e  ServerName code.
2590: 61 75 74 6f 6e 6f 6d 6f 2e 75 73 0d 0a 20 20 20  autonomo.us..   
25a0: 20 53 65 72 76 65 72 41 64 6d 69 6e 20 64 63 6c   ServerAdmin dcl
25b0: 61 72 6b 40 70 6f 62 6f 78 2e 63 6f 6d 0d 0a 20  ark@pobox.com.. 
25c0: 20 20 20 45 72 72 6f 72 4c 6f 67 20 2f 76 61 72     ErrorLog /var
25d0: 2f 6c 6f 67 2f 61 70 61 63 68 65 32 2f 63 6f 64  /log/apache2/cod
25e0: 65 2e 61 75 74 6f 6e 6f 6d 6f 2e 75 73 2d 65 72  e.autonomo.us-er
25f0: 72 6f 72 2e 6c 6f 67 0d 0a 20 20 20 20 4c 6f 67  ror.log..    Log
2600: 4c 65 76 65 6c 20 77 61 72 6e 0d 0a 20 20 20 20  Level warn..    
2610: 43 75 73 74 6f 6d 4c 6f 67 20 2f 76 61 72 2f 6c  CustomLog /var/l
2620: 6f 67 2f 61 70 61 63 68 65 32 2f 63 6f 64 65 2e  og/apache2/code.
2630: 61 75 74 6f 6e 6f 6d 6f 2e 75 73 2d 61 63 63 65  autonomo.us-acce
2640: 73 73 2e 6c 6f 67 20 63 6f 6d 62 69 6e 65 64 0d  ss.log combined.
2650: 0a 20 20 20 20 53 65 72 76 65 72 53 69 67 6e 61  .    ServerSigna
2660: 74 75 72 65 20 4f 6e 0d 0a 0d 0a 20 20 20 20 44  ture On....    D
2670: 6f 63 75 6d 65 6e 74 52 6f 6f 74 20 2f 76 61 72  ocumentRoot /var
2680: 2f 77 77 77 2f 0d 0a 0d 0a 20 20 20 20 53 63 72  /www/....    Scr
2690: 69 70 74 41 6c 69 61 73 20 2f 63 67 69 2d 62 69  iptAlias /cgi-bi
26a0: 6e 2f 20 2f 75 73 72 2f 6c 69 62 2f 63 67 69 2d  n/ /usr/lib/cgi-
26b0: 62 69 6e 2f 0d 0a 20 20 20 20 3c 44 69 72 65 63  bin/..    <Direc
26c0: 74 6f 72 79 20 22 2f 75 73 72 2f 6c 69 62 2f 63  tory "/usr/lib/c
26d0: 67 69 2d 62 69 6e 22 3e 0d 0a 20 20 20 20 20 20  gi-bin">..      
26e0: 20 20 41 6c 6c 6f 77 4f 76 65 72 72 69 64 65 20    AllowOverride 
26f0: 4e 6f 6e 65 0d 0a 20 20 20 20 20 20 20 20 4f 70  None..        Op
2700: 74 69 6f 6e 73 20 2b 45 78 65 63 43 47 49 20 2d  tions +ExecCGI -
2710: 4d 75 6c 74 69 56 69 65 77 73 20 2b 53 79 6d 4c  MultiViews +SymL
2720: 69 6e 6b 73 49 66 4f 77 6e 65 72 4d 61 74 63 68  inksIfOwnerMatch
2730: 0d 0a 20 20 20 20 20 20 20 20 4f 72 64 65 72 20  ..        Order 
2740: 61 6c 6c 6f 77 2c 64 65 6e 79 0d 0a 20 20 20 20  allow,deny..    
2750: 20 20 20 20 41 6c 6c 6f 77 20 66 72 6f 6d 20 61      Allow from a
2760: 6c 6c 0d 0a 20 20 20 20 3c 2f 44 69 72 65 63 74  ll..    </Direct
2770: 6f 72 79 3e 0d 0a 0d 0a 20 20 20 20 23 20 46 6f  ory>....    # Fo
2780: 73 73 69 6c 20 53 43 4d 20 61 74 20 72 6f 6f 74  ssil SCM at root
2790: 20 6f 66 20 77 65 62 20 73 69 74 65 20 28 68 74   of web site (ht
27a0: 74 70 3a 2f 2f 65 78 61 6d 70 6c 65 2e 63 6f 6d  tp://example.com
27b0: 29 20 63 6f 6e 66 69 67 75 72 61 74 69 6f 6e 2e  ) configuration.
27c0: 2e 2e 0d 0a 20 20 20 20 52 65 77 72 69 74 65 45  ....    RewriteE
27d0: 6e 67 69 6e 65 20 4f 6e 0d 0a 20 20 20 20 23 20  ngine On..    # 
27e0: 52 65 77 72 69 74 65 43 6f 6e 64 20 2d 20 4f 6e  RewriteCond - On
27f0: 65 20 66 6f 72 20 65 76 65 72 79 20 55 52 4c 20  e for every URL 
2800: 77 65 20 64 6f 6e 27 74 20 77 61 6e 74 20 46 6f  we don't want Fo
2810: 73 73 69 6c 20 53 43 4d 20 74 6f 20 73 65 72 76  ssil SCM to serv
2820: 65 2e 20 49 6e 20 74 68 65 0d 0a 20 20 20 20 23  e. In the..    #
2830: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 65                 e
2840: 78 61 6d 70 6c 65 2c 20 72 65 71 75 65 73 74 73  xample, requests
2850: 20 74 68 61 74 20 67 6f 20 74 6f 20 74 68 65 20   that go to the 
2860: 2f 76 61 72 2f 77 77 77 2f 74 6d 70 20 64 69 72  /var/www/tmp dir
2870: 65 63 74 6f 72 79 20 61 6e 64 20 0d 0a 20 20 20  ectory and ..   
2880: 20 23 20 20 20 20 20 20 20 20 20 20 20 20 20 20   #              
2890: 20 74 68 65 20 2f 75 73 72 2f 6c 69 62 2f 63 67   the /usr/lib/cg
28a0: 69 2d 62 69 6e 20 64 69 72 65 63 74 6f 74 79 20  i-bin directoty 
28b0: 61 72 65 20 69 67 6e 6f 72 65 64 20 62 79 20 46  are ignored by F
28c0: 6f 73 73 69 6c 20 53 43 4d 2e 0d 0a 20 20 20 20  ossil SCM...    
28d0: 52 65 77 72 69 74 65 43 6f 6e 64 20 25 7b 52 45  RewriteCond %{RE
28e0: 51 55 45 53 54 5f 55 52 49 7d 20 21 5e 2f 74 6d  QUEST_URI} !^/tm
28f0: 70 2f 2e 2a 24 0d 0a 20 20 20 20 52 65 77 72 69  p/.*$..    Rewri
2900: 74 65 43 6f 6e 64 20 25 7b 52 45 51 55 45 53 54  teCond %{REQUEST
2910: 5f 55 52 49 7d 20 21 5e 2f 63 67 69 2d 62 69 6e  _URI} !^/cgi-bin
2920: 2f 2e 2a 24 0d 0a 20 20 20 20 52 65 77 72 69 74  /.*$..    Rewrit
2930: 65 52 75 6c 65 20 5e 28 2e 2a 29 24 20 2f 75 73  eRule ^(.*)$ /us
2940: 72 2f 6c 69 62 2f 63 67 69 2d 62 69 6e 2f 63 6f  r/lib/cgi-bin/co
2950: 64 65 2e 61 75 74 6f 6e 6f 6d 6f 2e 75 73 2f 24  de.autonomo.us/$
2960: 31 20 5b 54 3d 61 70 70 6c 69 63 61 74 69 6f 6e  1 [T=application
2970: 2f 78 2d 68 74 74 70 64 2d 63 67 69 5d 0d 0a 3c  /x-httpd-cgi]..<
2980: 2f 56 69 72 74 75 61 6c 48 6f 73 74 3e 0d 0a 3c  /VirtualHost>..<
2990: 2f 76 65 72 62 61 74 69 6d 3e 0d 0a 0d 0a 2f 75  /verbatim>..../u
29a0: 73 72 2f 6c 69 62 2f 63 67 69 2d 62 69 6e 2f 63  sr/lib/cgi-bin/c
29b0: 6f 64 65 2e 61 75 74 6f 6e 6f 6d 6f 2e 75 73 20  ode.autonomo.us 
29c0: 69 73 20 6a 75 73 74 20 61 20 73 74 61 6e 64 61  is just a standa
29d0: 72 64 20 66 6f 73 73 69 6c 20 43 47 49 20 66 69  rd fossil CGI fi
29e0: 6c 65 3b 20 69 74 20 6c 6f 6f 6b 73 20 6c 69 6b  le; it looks lik
29f0: 65 20 74 68 69 73 3a 0d 0a 0d 0a 3c 76 65 72 62  e this:....<verb
2a00: 61 74 69 6d 3e 0d 0a 23 21 2f 75 73 72 2f 62 69  atim>..#!/usr/bi
2a10: 6e 2f 66 6f 73 73 69 6c 0d 0a 72 65 70 6f 73 69  n/fossil..reposi
2a20: 74 6f 72 79 3a 20 2f 73 72 76 2f 66 6f 73 73 69  tory: /srv/fossi
2a30: 6c 2d 73 63 6d 2f 63 6f 64 65 2e 61 75 74 6f 6e  l-scm/code.auton
2a40: 6f 6d 6f 2e 75 73 2e 66 6f 73 73 69 6c 2d 73 63  omo.us.fossil-sc
2a50: 6d 0d 0a 3c 2f 76 65 72 62 61 74 69 6d 3e 0d 0a  m..</verbatim>..
2a60: 0d 0a 3c 68 33 3e 41 6e 6f 74 68 65 72 20 73 6f  ..<h3>Another so
2a70: 6c 75 74 69 6f 6e 20 74 6f 20 3c 69 3e 61 75 74  lution to <i>aut
2a80: 6f 6d 61 74 69 63 61 6c 6c 79 3c 2f 69 3e 20 73  omatically</i> s
2a90: 65 72 76 65 20 6d 75 6c 74 69 70 6c 65 20 72 65  erve multiple re
2aa0: 70 6f 73 69 74 6f 72 69 65 73 3c 2f 68 33 3e 0d  positories</h3>.
2ab0: 0a 0d 0a 57 69 74 68 20 74 68 65 20 66 6f 6c 6c  ...With the foll
2ac0: 6f 77 69 6e 67 20 43 47 49 20 73 63 72 69 70 74  owing CGI script
2ad0: 20 28 49 20 68 61 76 65 20 6e 61 6d 65 64 20 69   (I have named i
2ae0: 74 20 3c 73 61 6d 70 3e 70 3c 2f 73 61 6d 70 3e  t <samp>p</samp>
2af0: 20 73 69 6d 70 6c 79 29 20 69 74 20 69 73 20 70   simply) it is p
2b00: 6f 73 73 69 62 6c 65 20 74 6f 20 64 65 66 69 6e  ossible to defin
2b10: 65 20 61 20 6c 6f 63 61 74 69 6f 6e 20 77 68 65  e a location whe
2b20: 72 65 20 61 6c 6c 20 74 68 65 20 79 6f 75 72 20  re all the your 
2b30: 72 65 70 6f 73 69 74 6f 72 69 65 73 20 73 68 6f  repositories sho
2b40: 75 6c 64 20 62 65 20 6c 6f 63 61 74 65 64 20 28  uld be located (
2b50: 69 6e 20 74 68 69 73 20 65 78 61 6d 70 6c 65 3a  in this example:
2b60: 20 3c 73 61 6d 70 3e 2f 68 6f 6d 65 2f 72 65 70   <samp>/home/rep
2b70: 6f 73 2f 66 6f 73 73 69 6c 3c 2f 73 61 6d 70 3e  os/fossil</samp>
2b80: 29 2e 20 41 6c 6c 20 74 68 65 20 72 65 70 6f 73  ). All the repos
2b90: 69 74 6f 72 69 65 73 20 61 72 65 20 6e 61 6d 65  itories are name
2ba0: 64 20 61 63 63 6f 72 64 69 6e 67 20 74 68 65 20  d according the 
2bb0: 73 63 68 65 6d 65 20 3c 73 61 6d 70 3e 3c 70 72  scheme <samp><pr
2bc0: 6f 6a 65 63 74 20 6e 61 6d 65 3e 2e 66 73 6c 3c  oject name>.fsl<
2bd0: 2f 73 61 6d 70 3e 20 66 6f 72 20 73 61 6b 65 20  /samp> for sake 
2be0: 6f 66 20 74 68 69 73 20 65 78 61 6d 70 6c 65 2e  of this example.
2bf0: 0d 0a 0d 0a 49 66 20 74 68 69 73 20 73 63 72 69  ....If this scri
2c00: 70 74 20 69 73 20 63 61 6c 6c 65 64 20 61 6c 6f  pt is called alo
2c10: 6e 65 20 28 6c 69 6b 65 20 65 2e 67 2e 3a 20 3c  ne (like e.g.: <
2c20: 73 61 6d 70 3e 68 74 74 70 3a 2f 2f 79 6f 75 72  samp>http://your
2c30: 2e 73 65 72 76 65 72 2e 68 65 72 65 2f 63 67 69  .server.here/cgi
2c40: 2d 62 69 6e 2f 70 3c 2f 73 61 6d 70 3e 29 2c 20  -bin/p</samp>), 
2c50: 69 74 20 77 69 6c 6c 20 6c 69 73 74 20 61 6c 6c  it will list all
2c60: 20 72 65 70 6f 73 69 74 6f 72 69 65 73 20 6c 6f   repositories lo
2c70: 63 61 74 65 64 20 75 6e 64 65 72 20 3c 73 61 6d  cated under <sam
2c80: 70 3e 24 52 45 50 4f 53 52 4f 4f 54 3c 2f 73 61  p>$REPOSROOT</sa
2c90: 6d 70 3e 2c 20 3c 62 3e 69 66 3c 2f 62 3e 20 74  mp>, <b>if</b> t
2ca0: 68 65 72 65 20 3c 62 3e 64 6f 65 73 20 6e 6f 74  here <b>does not
2cb0: 3c 2f 62 3e 20 65 78 69 73 74 20 61 20 63 6f 72  </b> exist a cor
2cc0: 72 65 73 70 6f 6e 64 69 6e 67 20 66 69 6c 65 20  responding file 
2cd0: 3c 73 61 6d 70 3e 2e 3c 70 72 6f 6a 65 63 74 20  <samp>.<project 
2ce0: 6e 61 6d 65 3e 3c 2f 73 61 6d 70 3e 20 28 74 68  name></samp> (th
2cf0: 61 74 20 6d 65 63 68 61 6e 69 73 6d 20 69 73 20  at mechanism is 
2d00: 75 73 65 64 20 74 6f 20 3c 69 3e 68 69 64 65 3c  used to <i>hide<
2d10: 2f 69 3e 20 73 6f 6d 65 20 72 65 70 6f 73 69 74  /i> some reposit
2d20: 6f 72 79 20 69 6e 20 74 68 65 20 6c 69 73 74 69  ory in the listi
2d30: 6e 67 29 2e 0d 0a 0d 0a 49 66 20 74 68 65 20 73  ng).....If the s
2d40: 63 72 69 70 74 20 69 73 20 63 61 6c 6c 65 64 20  cript is called 
2d50: 6c 69 6b 65 20 65 2e 67 2e 20 3c 73 61 6d 70 3e  like e.g. <samp>
2d60: 68 74 74 70 3a 2f 2f 79 6f 75 72 2e 73 65 72 76  http://your.serv
2d70: 65 72 2e 68 65 72 65 2f 63 67 69 2d 62 69 6e 2f  er.here/cgi-bin/
2d80: 70 2f 3c 70 72 6f 6a 65 63 74 20 6e 61 6d 65 3e  p/<project name>
2d90: 3c 2f 73 61 6d 70 3e 2c 20 74 68 65 6e 20 74 68  </samp>, then th
2da0: 65 20 63 6f 72 72 65 73 70 6f 6e 64 69 6e 67 20  e corresponding 
2db0: 72 65 70 6f 73 69 74 6f 72 79 20 77 69 6c 6c 20  repository will 
2dc0: 62 65 20 73 65 6c 65 63 74 65 64 20 74 6f 20 77  be selected to w
2dd0: 6f 72 6b 20 77 69 74 68 2e 0d 0a 0d 0a 54 68 65  ork with.....The
2de0: 20 6c 69 6e 65 73 20 35 20 2d 20 38 20 69 6e 20   lines 5 - 8 in 
2df0: 74 68 65 20 73 63 72 69 70 74 20 62 65 6c 6f 77  the script below
2e00: 20 61 6c 6c 6f 77 20 63 6f 6e 66 69 67 75 72 61   allow configura
2e10: 74 69 6f 6e 20 66 6f 72 20 79 6f 75 20 6e 65 65  tion for you nee
2e20: 64 73 2e 20 59 6f 75 20 68 61 76 65 20 74 6f 20  ds. You have to 
2e30: 63 68 6f 73 65 2c 20 77 68 61 74 20 66 6f 73 73  chose, what foss
2e40: 69 6c 20 62 69 6e 61 72 79 20 74 6f 20 75 73 65  il binary to use
2e50: 2c 20 77 68 61 74 20 65 78 74 65 6e 73 69 6f 6e  , what extension
2e60: 20 79 6f 75 72 20 72 65 70 6f 73 69 74 6f 72 79   your repository
2e70: 20 64 61 74 61 62 61 73 65 73 20 68 61 76 65 20   databases have 
2e80: 61 6e 64 20 77 68 65 72 65 20 61 6c 6c 20 79 6f  and where all yo
2e90: 75 72 20 64 61 74 61 62 61 73 65 73 20 61 72 65  ur databases are
2ea0: 20 6c 6f 63 61 74 65 64 2e 0d 0a 0d 0a 3c 6e 6f   located.....<no
2eb0: 77 69 6b 69 3e 0d 0a 3c 66 6f 6e 74 20 66 61 63  wiki>..<font fac
2ec0: 65 3d 22 6d 6f 6e 6f 73 70 61 63 65 22 3e 0d 0a  e="monospace">..
2ed0: 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35  <font color="#a5
2ee0: 32 61 32 61 22 3e 26 6e 62 73 70 3b 31 20 3c 2f  2a2a">&nbsp;1 </
2ef0: 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72  font><font color
2f00: 3d 22 23 30 30 30 30 66 66 22 3e 23 21 2f 62 69  ="#0000ff">#!/bi
2f10: 6e 2f 73 68 3c 2f 66 6f 6e 74 3e 3c 62 72 3e 0d  n/sh</font><br>.
2f20: 0a 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61  .<font color="#a
2f30: 35 32 61 32 61 22 3e 26 6e 62 73 70 3b 32 20 3c  52a2a">&nbsp;2 <
2f40: 2f 66 6f 6e 74 3e 3c 62 72 3e 0d 0a 3c 66 6f 6e  /font><br>..<fon
2f50: 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61  t color="#a52a2a
2f60: 22 3e 26 6e 62 73 70 3b 33 20 3c 2f 66 6f 6e 74  ">&nbsp;3 </font
2f70: 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 30  ><font color="#0
2f80: 30 30 30 66 66 22 3e 23 23 23 20 43 6f 6e 66 69  000ff">### Confi
2f90: 67 75 72 61 74 69 6f 6e 20 73 65 63 74 69 6f 6e  guration section
2fa0: 20 23 23 23 3c 2f 66 6f 6e 74 3e 3c 62 72 3e 0d   ###</font><br>.
2fb0: 0a 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61  .<font color="#a
2fc0: 35 32 61 32 61 22 3e 26 6e 62 73 70 3b 34 20 3c  52a2a">&nbsp;4 <
2fd0: 2f 66 6f 6e 74 3e 3c 62 72 3e 0d 0a 3c 66 6f 6e  /font><br>..<fon
2fe0: 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61  t color="#a52a2a
2ff0: 22 3e 26 6e 62 73 70 3b 35 20 3c 2f 66 6f 6e 74  ">&nbsp;5 </font
3000: 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 30  ><font color="#0
3010: 30 38 62 38 62 22 3e 54 49 54 4c 45 3c 2f 66 6f  08b8b">TITLE</fo
3020: 6e 74 3e 3d 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d  nt>=<font color=
3030: 22 23 61 35 32 61 32 61 22 3e 3c 62 3e 26 71 75  "#a52a2a"><b>&qu
3040: 6f 74 3b 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 3c 66  ot;</b></font><f
3050: 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 66 66 30 30  ont color="#ff00
3060: 66 66 22 3e 26 6c 74 3b 68 32 26 67 74 3b 46 6f  ff">&lt;h2&gt;Fo
3070: 73 73 69 6c 20 72 65 70 6f 73 69 74 6f 72 69 65  ssil repositorie
3080: 73 26 6c 74 3b 2f 68 32 26 67 74 3b 3c 2f 66 6f  s&lt;/h2&gt;</fo
3090: 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22  nt><font color="
30a0: 23 61 35 32 61 32 61 22 3e 3c 62 3e 26 71 75 6f  #a52a2a"><b>&quo
30b0: 74 3b 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 3c 62 72  t;</b></font><br
30c0: 3e 0d 0a 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22  >..<font color="
30d0: 23 61 35 32 61 32 61 22 3e 26 6e 62 73 70 3b 36  #a52a2a">&nbsp;6
30e0: 20 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f   </font><font co
30f0: 6c 6f 72 3d 22 23 30 30 38 62 38 62 22 3e 46 4f  lor="#008b8b">FO
3100: 53 53 49 4c 3c 2f 66 6f 6e 74 3e 3d 2f 75 73 72  SSIL</font>=/usr
3110: 2f 6c 6f 63 61 6c 2f 62 69 6e 2f 66 6f 73 73 69  /local/bin/fossi
3120: 6c 3c 62 72 3e 0d 0a 3c 66 6f 6e 74 20 63 6f 6c  l<br>..<font col
3130: 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 26 6e 62  or="#a52a2a">&nb
3140: 73 70 3b 37 20 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e  sp;7 </font><fon
3150: 74 20 63 6f 6c 6f 72 3d 22 23 30 30 38 62 38 62  t color="#008b8b
3160: 22 3e 52 45 50 4f 53 52 4f 4f 54 3c 2f 66 6f 6e  ">REPOSROOT</fon
3170: 74 3e 3d 2f 68 6f 6d 65 2f 72 65 70 6f 73 2f 66  t>=/home/repos/f
3180: 6f 73 73 69 6c 3c 62 72 3e 0d 0a 3c 66 6f 6e 74  ossil<br>..<font
3190: 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22   color="#a52a2a"
31a0: 3e 26 6e 62 73 70 3b 38 20 3c 2f 66 6f 6e 74 3e  >&nbsp;8 </font>
31b0: 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 30 30  <font color="#00
31c0: 38 62 38 62 22 3e 52 45 50 4f 53 45 58 54 3c 2f  8b8b">REPOSEXT</
31d0: 66 6f 6e 74 3e 3d 3c 66 6f 6e 74 20 63 6f 6c 6f  font>=<font colo
31e0: 72 3d 22 23 61 35 32 61 32 61 22 3e 3c 62 3e 26  r="#a52a2a"><b>&
31f0: 71 75 6f 74 3b 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e  quot;</b></font>
3200: 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 66 66  <font color="#ff
3210: 30 30 66 66 22 3e 2e 66 73 6c 3c 2f 66 6f 6e 74  00ff">.fsl</font
3220: 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61  ><font color="#a
3230: 35 32 61 32 61 22 3e 3c 62 3e 26 71 75 6f 74 3b  52a2a"><b>&quot;
3240: 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 3c 62 72 3e 0d  </b></font><br>.
3250: 0a 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61  .<font color="#a
3260: 35 32 61 32 61 22 3e 26 6e 62 73 70 3b 39 20 3c  52a2a">&nbsp;9 <
3270: 2f 66 6f 6e 74 3e 3c 62 72 3e 0d 0a 3c 66 6f 6e  /font><br>..<fon
3280: 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61  t color="#a52a2a
3290: 22 3e 31 30 20 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e  ">10 </font><fon
32a0: 74 20 63 6f 6c 6f 72 3d 22 23 30 30 30 30 66 66  t color="#0000ff
32b0: 22 3e 23 23 23 20 50 72 6f 63 65 73 73 69 6e 67  ">### Processing
32c0: 20 73 65 63 74 69 6f 6e 20 2d 2d 20 6e 6f 74 68   section -- noth
32d0: 69 6e 67 20 74 6f 20 63 6f 6e 66 69 67 75 72 65  ing to configure
32e0: 20 68 65 72 65 21 20 23 23 23 3c 2f 66 6f 6e 74   here! ###</font
32f0: 3e 3c 62 72 3e 0d 0a 3c 66 6f 6e 74 20 63 6f 6c  ><br>..<font col
3300: 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 31 31 20  or="#a52a2a">11 
3310: 3c 2f 66 6f 6e 74 3e 3c 62 72 3e 0d 0a 3c 66 6f  </font><br>..<fo
3320: 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32  nt color="#a52a2
3330: 61 22 3e 31 32 20 3c 2f 66 6f 6e 74 3e 3c 66 6f  a">12 </font><fo
3340: 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32  nt color="#a52a2
3350: 61 22 3e 3c 62 3e 73 65 74 3c 2f 62 3e 3c 2f 66  a"><b>set</b></f
3360: 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d  ont><font color=
3370: 22 23 30 30 38 62 38 62 22 3e 26 6e 62 73 70 3b  "#008b8b">&nbsp;
3380: 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c  </font><font col
3390: 6f 72 3d 22 23 36 61 35 61 63 64 22 3e 2d 66 3c  or="#6a5acd">-f<
33a0: 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f  /font><font colo
33b0: 72 3d 22 23 30 30 38 62 38 62 22 3e 26 6e 62 73  r="#008b8b">&nbs
33c0: 70 3b 26 6e 62 73 70 3b 26 6e 62 73 70 3b 26 6e  p;&nbsp;&nbsp;&n
33d0: 62 73 70 3b 3c 2f 66 6f 6e 74 3e 3b 20 3c 66 6f  bsp;</font>; <fo
33e0: 6e 74 20 63 6f 6c 6f 72 3d 22 23 30 30 30 30 66  nt color="#0000f
33f0: 66 22 3e 23 20 64 69 73 61 62 6c 65 20 66 69 6c  f"># disable fil
3400: 65 6e 61 6d 65 20 67 6c 6f 62 62 69 6e 67 3c 2f  ename globbing</
3410: 66 6f 6e 74 3e 3c 62 72 3e 0d 0a 3c 66 6f 6e 74  font><br>..<font
3420: 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22   color="#a52a2a"
3430: 3e 31 33 20 3c 2f 66 6f 6e 74 3e 3c 62 72 3e 0d  >13 </font><br>.
3440: 0a 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61  .<font color="#a
3450: 35 32 61 32 61 22 3e 31 34 20 3c 2f 66 6f 6e 74  52a2a">14 </font
3460: 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 30  ><font color="#0
3470: 30 30 30 66 66 22 3e 23 23 20 53 6f 6d 65 20 68  000ff">## Some h
3480: 65 6c 70 65 72 20 66 75 6e 63 74 69 6f 6e 73 3c  elper functions<
3490: 2f 66 6f 6e 74 3e 3c 62 72 3e 0d 0a 3c 66 6f 6e  /font><br>..<fon
34a0: 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61  t color="#a52a2a
34b0: 22 3e 31 35 20 3c 2f 66 6f 6e 74 3e 3c 62 72 3e  ">15 </font><br>
34c0: 0d 0a 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23  ..<font color="#
34d0: 61 35 32 61 32 61 22 3e 31 36 20 3c 2f 66 6f 6e  a52a2a">16 </fon
34e0: 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23  t><font color="#
34f0: 30 30 38 62 38 62 22 3e 48 65 61 64 65 72 54 65  008b8b">HeaderTe
3500: 78 74 20 28 29 20 7b 3c 2f 66 6f 6e 74 3e 3c 62  xt () {</font><b
3510: 72 3e 0d 0a 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d  r>..<font color=
3520: 22 23 61 35 32 61 32 61 22 3e 31 37 20 3c 2f 66  "#a52a2a">17 </f
3530: 6f 6e 74 3e 26 6e 62 73 70 3b 26 6e 62 73 70 3b  ont>&nbsp;&nbsp;
3540: 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35  <font color="#a5
3550: 32 61 32 61 22 3e 3c 62 3e 69 66 20 3c 2f 62 3e  2a2a"><b>if </b>
3560: 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c  </font><font col
3570: 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 3c 62 3e  or="#a52a2a"><b>
3580: 5b 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 26 6e 62 73  [</b></font>&nbs
3590: 70 3b 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23  p;<font color="#
35a0: 61 35 32 61 32 61 22 3e 3c 62 3e 2d 7a 3c 2f 62  a52a2a"><b>-z</b
35b0: 3e 3c 2f 66 6f 6e 74 3e 26 6e 62 73 70 3b 3c 66  ></font>&nbsp;<f
35c0: 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61  ont color="#a52a
35d0: 32 61 22 3e 3c 62 3e 26 71 75 6f 74 3b 3c 2f 62  2a"><b>&quot;</b
35e0: 3e 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f  ></font><font co
35f0: 6c 6f 72 3d 22 23 61 30 32 30 66 30 22 3e 24 68  lor="#a020f0">$h
3600: 65 61 64 65 72 57 72 69 74 74 65 6e 3c 2f 66 6f  eaderWritten</fo
3610: 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22  nt><font color="
3620: 23 61 35 32 61 32 61 22 3e 3c 62 3e 26 71 75 6f  #a52a2a"><b>&quo
3630: 74 3b 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 26 6e 62  t;</b></font>&nb
3640: 73 70 3b 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22  sp;<font color="
3650: 23 61 35 32 61 32 61 22 3e 3c 62 3e 5d 3c 2f 62  #a52a2a"><b>]</b
3660: 3e 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f  ></font><font co
3670: 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 3c 62  lor="#a52a2a"><b
3680: 3e 3b 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 26 6e 62  >;</b></font>&nb
3690: 73 70 3b 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22  sp;<font color="
36a0: 23 61 35 32 61 32 61 22 3e 3c 62 3e 74 68 65 6e  #a52a2a"><b>then
36b0: 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 3c 62 72 3e 0d  </b></font><br>.
36c0: 0a 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61  .<font color="#a
36d0: 35 32 61 32 61 22 3e 31 38 20 3c 2f 66 6f 6e 74  52a2a">18 </font
36e0: 3e 26 6e 62 73 70 3b 26 6e 62 73 70 3b 26 6e 62  >&nbsp;&nbsp;&nb
36f0: 73 70 3b 26 6e 62 73 70 3b 3c 66 6f 6e 74 20 63  sp;&nbsp;<font c
3700: 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 3c  olor="#a52a2a"><
3710: 62 3e 65 63 68 6f 3c 2f 62 3e 3c 2f 66 6f 6e 74  b>echo</b></font
3720: 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 66  ><font color="#f
3730: 66 30 30 66 66 22 3e 26 6e 62 73 70 3b 3c 2f 66  f00ff">&nbsp;</f
3740: 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d  ont><font color=
3750: 22 23 61 35 32 61 32 61 22 3e 3c 62 3e 26 71 75  "#a52a2a"><b>&qu
3760: 6f 74 3b 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 3c 66  ot;</b></font><f
3770: 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 66 66 30 30  ont color="#ff00
3780: 66 66 22 3e 43 6f 6e 74 65 6e 74 2d 74 79 70 65  ff">Content-type
3790: 3a 20 74 65 78 74 2f 70 6c 61 69 6e 3b 20 63 68  : text/plain; ch
37a0: 61 72 73 65 74 3d 69 73 6f 2d 38 38 35 39 2d 31  arset=iso-8859-1
37b0: 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c  </font><font col
37c0: 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 3c 62 3e  or="#a52a2a"><b>
37d0: 26 71 75 6f 74 3b 3c 2f 62 3e 3c 2f 66 6f 6e 74  &quot;</b></font
37e0: 3e 3c 62 72 3e 0d 0a 3c 66 6f 6e 74 20 63 6f 6c  ><br>..<font col
37f0: 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 31 39 20  or="#a52a2a">19 
3800: 3c 2f 66 6f 6e 74 3e 26 6e 62 73 70 3b 26 6e 62  </font>&nbsp;&nb
3810: 73 70 3b 26 6e 62 73 70 3b 26 6e 62 73 70 3b 3c  sp;&nbsp;&nbsp;<
3820: 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32  font color="#a52
3830: 61 32 61 22 3e 3c 62 3e 65 63 68 6f 3c 2f 62 3e  a2a"><b>echo</b>
3840: 3c 2f 66 6f 6e 74 3e 3c 62 72 3e 0d 0a 3c 66 6f  </font><br>..<fo
3850: 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32  nt color="#a52a2
3860: 61 22 3e 32 30 20 3c 2f 66 6f 6e 74 3e 26 6e 62  a">20 </font>&nb
3870: 73 70 3b 26 6e 62 73 70 3b 26 6e 62 73 70 3b 26  sp;&nbsp;&nbsp;&
3880: 6e 62 73 70 3b 3c 66 6f 6e 74 20 63 6f 6c 6f 72  nbsp;<font color
3890: 3d 22 23 30 30 38 62 38 62 22 3e 68 65 61 64 65  ="#008b8b">heade
38a0: 72 57 72 69 74 74 65 6e 3c 2f 66 6f 6e 74 3e 3d  rWritten</font>=
38b0: 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 66 66  <font color="#ff
38c0: 30 30 66 66 22 3e 31 3c 2f 66 6f 6e 74 3e 3c 62  00ff">1</font><b
38d0: 72 3e 0d 0a 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d  r>..<font color=
38e0: 22 23 61 35 32 61 32 61 22 3e 32 31 20 3c 2f 66  "#a52a2a">21 </f
38f0: 6f 6e 74 3e 26 6e 62 73 70 3b 26 6e 62 73 70 3b  ont>&nbsp;&nbsp;
3900: 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35  <font color="#a5
3910: 32 61 32 61 22 3e 3c 62 3e 66 69 3c 2f 62 3e 3c  2a2a"><b>fi</b><
3920: 2f 66 6f 6e 74 3e 3c 62 72 3e 0d 0a 3c 66 6f 6e  /font><br>..<fon
3930: 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61  t color="#a52a2a
3940: 22 3e 32 32 20 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e  ">22 </font><fon
3950: 74 20 63 6f 6c 6f 72 3d 22 23 30 30 38 62 38 62  t color="#008b8b
3960: 22 3e 7d 3c 2f 66 6f 6e 74 3e 3c 62 72 3e 0d 0a  ">}</font><br>..
3970: 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35  <font color="#a5
3980: 32 61 32 61 22 3e 32 33 20 3c 2f 66 6f 6e 74 3e  2a2a">23 </font>
3990: 3c 62 72 3e 0d 0a 3c 66 6f 6e 74 20 63 6f 6c 6f  <br>..<font colo
39a0: 72 3d 22 23 61 35 32 61 32 61 22 3e 32 34 20 3c  r="#a52a2a">24 <
39b0: 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f  /font><font colo
39c0: 72 3d 22 23 30 30 38 62 38 62 22 3e 48 65 61 64  r="#008b8b">Head
39d0: 65 72 48 54 4d 4c 20 28 29 20 7b 3c 2f 66 6f 6e  erHTML () {</fon
39e0: 74 3e 3c 62 72 3e 0d 0a 3c 66 6f 6e 74 20 63 6f  t><br>..<font co
39f0: 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 32 35  lor="#a52a2a">25
3a00: 20 3c 2f 66 6f 6e 74 3e 26 6e 62 73 70 3b 26 6e   </font>&nbsp;&n
3a10: 62 73 70 3b 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d  bsp;<font color=
3a20: 22 23 61 35 32 61 32 61 22 3e 3c 62 3e 69 66 20  "#a52a2a"><b>if 
3a30: 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74  </b></font><font
3a40: 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22   color="#a52a2a"
3a50: 3e 3c 62 3e 5b 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e  ><b>[</b></font>
3a60: 26 6e 62 73 70 3b 3c 66 6f 6e 74 20 63 6f 6c 6f  &nbsp;<font colo
3a70: 72 3d 22 23 61 35 32 61 32 61 22 3e 3c 62 3e 2d  r="#a52a2a"><b>-
3a80: 7a 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 26 6e 62 73  z</b></font>&nbs
3a90: 70 3b 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23  p;<font color="#
3aa0: 61 35 32 61 32 61 22 3e 3c 62 3e 26 71 75 6f 74  a52a2a"><b>&quot
3ab0: 3b 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e  ;</b></font><fon
3ac0: 74 20 63 6f 6c 6f 72 3d 22 23 61 30 32 30 66 30  t color="#a020f0
3ad0: 22 3e 24 68 65 61 64 65 72 57 72 69 74 74 65 6e  ">$headerWritten
3ae0: 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c  </font><font col
3af0: 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 3c 62 3e  or="#a52a2a"><b>
3b00: 26 71 75 6f 74 3b 3c 2f 62 3e 3c 2f 66 6f 6e 74  &quot;</b></font
3b10: 3e 26 6e 62 73 70 3b 3c 66 6f 6e 74 20 63 6f 6c  >&nbsp;<font col
3b20: 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 3c 62 3e  or="#a52a2a"><b>
3b30: 5d 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e  ]</b></font><fon
3b40: 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61  t color="#a52a2a
3b50: 22 3e 3c 62 3e 3b 3c 2f 62 3e 3c 2f 66 6f 6e 74  "><b>;</b></font
3b60: 3e 26 6e 62 73 70 3b 3c 66 6f 6e 74 20 63 6f 6c  >&nbsp;<font col
3b70: 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 3c 62 3e  or="#a52a2a"><b>
3b80: 74 68 65 6e 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 3c  then</b></font><
3b90: 62 72 3e 0d 0a 3c 66 6f 6e 74 20 63 6f 6c 6f 72  br>..<font color
3ba0: 3d 22 23 61 35 32 61 32 61 22 3e 32 36 20 3c 2f  ="#a52a2a">26 </
3bb0: 66 6f 6e 74 3e 26 6e 62 73 70 3b 26 6e 62 73 70  font>&nbsp;&nbsp
3bc0: 3b 26 6e 62 73 70 3b 26 6e 62 73 70 3b 3c 66 6f  ;&nbsp;&nbsp;<fo
3bd0: 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32  nt color="#a52a2
3be0: 61 22 3e 3c 62 3e 65 63 68 6f 3c 2f 62 3e 3c 2f  a"><b>echo</b></
3bf0: 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72  font><font color
3c00: 3d 22 23 66 66 30 30 66 66 22 3e 26 6e 62 73 70  ="#ff00ff">&nbsp
3c10: 3b 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f  ;</font><font co
3c20: 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 3c 62  lor="#a52a2a"><b
3c30: 3e 26 71 75 6f 74 3b 3c 2f 62 3e 3c 2f 66 6f 6e  >&quot;</b></fon
3c40: 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23  t><font color="#
3c50: 66 66 30 30 66 66 22 3e 43 6f 6e 74 65 6e 74 2d  ff00ff">Content-
3c60: 74 79 70 65 3a 20 74 65 78 74 2f 68 74 6d 6c 3b  type: text/html;
3c70: 20 63 68 61 72 73 65 74 3d 69 73 6f 2d 38 38 35   charset=iso-885
3c80: 39 2d 31 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20  9-1</font><font 
3c90: 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e  color="#a52a2a">
3ca0: 3c 62 3e 26 71 75 6f 74 3b 3c 2f 62 3e 3c 2f 66  <b>&quot;</b></f
3cb0: 6f 6e 74 3e 3c 62 72 3e 0d 0a 3c 66 6f 6e 74 20  ont><br>..<font 
3cc0: 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e  color="#a52a2a">
3cd0: 32 37 20 3c 2f 66 6f 6e 74 3e 26 6e 62 73 70 3b  27 </font>&nbsp;
3ce0: 26 6e 62 73 70 3b 26 6e 62 73 70 3b 26 6e 62 73  &nbsp;&nbsp;&nbs
3cf0: 70 3b 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23  p;<font color="#
3d00: 61 35 32 61 32 61 22 3e 3c 62 3e 65 63 68 6f 3c  a52a2a"><b>echo<
3d10: 2f 62 3e 3c 2f 66 6f 6e 74 3e 3c 62 72 3e 0d 0a  /b></font><br>..
3d20: 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35  <font color="#a5
3d30: 32 61 32 61 22 3e 32 38 20 3c 2f 66 6f 6e 74 3e  2a2a">28 </font>
3d40: 26 6e 62 73 70 3b 26 6e 62 73 70 3b 26 6e 62 73  &nbsp;&nbsp;&nbs
3d50: 70 3b 26 6e 62 73 70 3b 3c 66 6f 6e 74 20 63 6f  p;&nbsp;<font co
3d60: 6c 6f 72 3d 22 23 30 30 38 62 38 62 22 3e 68 65  lor="#008b8b">he
3d70: 61 64 65 72 57 72 69 74 74 65 6e 3c 2f 66 6f 6e  aderWritten</fon
3d80: 74 3e 3d 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22  t>=<font color="
3d90: 23 66 66 30 30 66 66 22 3e 31 3c 2f 66 6f 6e 74  #ff00ff">1</font
3da0: 3e 3c 62 72 3e 0d 0a 3c 66 6f 6e 74 20 63 6f 6c  ><br>..<font col
3db0: 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 32 39 20  or="#a52a2a">29 
3dc0: 3c 2f 66 6f 6e 74 3e 26 6e 62 73 70 3b 26 6e 62  </font>&nbsp;&nb
3dd0: 73 70 3b 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22  sp;<font color="
3de0: 23 61 35 32 61 32 61 22 3e 3c 62 3e 66 69 3c 2f  #a52a2a"><b>fi</
3df0: 62 3e 3c 2f 66 6f 6e 74 3e 3c 62 72 3e 0d 0a 3c  b></font><br>..<
3e00: 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32  font color="#a52
3e10: 61 32 61 22 3e 33 30 20 3c 2f 66 6f 6e 74 3e 3c  a2a">30 </font><
3e20: 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 30 30 38  font color="#008
3e30: 62 38 62 22 3e 7d 3c 2f 66 6f 6e 74 3e 3c 62 72  b8b">}</font><br
3e40: 3e 0d 0a 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22  >..<font color="
3e50: 23 61 35 32 61 32 61 22 3e 33 31 20 3c 2f 66 6f  #a52a2a">31 </fo
3e60: 6e 74 3e 3c 62 72 3e 0d 0a 3c 66 6f 6e 74 20 63  nt><br>..<font c
3e70: 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 33  olor="#a52a2a">3
3e80: 32 20 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63  2 </font><font c
3e90: 6f 6c 6f 72 3d 22 23 30 30 38 62 38 62 22 3e 45  olor="#008b8b">E
3ea0: 72 72 6f 72 20 28 29 20 7b 3c 2f 66 6f 6e 74 3e  rror () {</font>
3eb0: 3c 62 72 3e 0d 0a 3c 66 6f 6e 74 20 63 6f 6c 6f  <br>..<font colo
3ec0: 72 3d 22 23 61 35 32 61 32 61 22 3e 33 33 20 3c  r="#a52a2a">33 <
3ed0: 2f 66 6f 6e 74 3e 26 6e 62 73 70 3b 26 6e 62 73  /font>&nbsp;&nbs
3ee0: 70 3b 48 65 61 64 65 72 48 54 4d 4c 3c 62 72 3e  p;HeaderHTML<br>
3ef0: 0d 0a 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23  ..<font color="#
3f00: 61 35 32 61 32 61 22 3e 33 34 20 3c 2f 66 6f 6e  a52a2a">34 </fon
3f10: 74 3e 26 6e 62 73 70 3b 26 6e 62 73 70 3b 3c 66  t>&nbsp;&nbsp;<f
3f20: 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61  ont color="#a52a
3f30: 32 61 22 3e 3c 62 3e 65 63 68 6f 3c 2f 62 3e 3c  2a"><b>echo</b><
3f40: 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f  /font><font colo
3f50: 72 3d 22 23 66 66 30 30 66 66 22 3e 26 6e 62 73  r="#ff00ff">&nbs
3f60: 70 3b 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63  p;</font><font c
3f70: 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 3c  olor="#a52a2a"><
3f80: 62 3e 26 71 75 6f 74 3b 3c 2f 62 3e 3c 2f 66 6f  b>&quot;</b></fo
3f90: 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22  nt><font color="
3fa0: 23 66 66 30 30 66 66 22 3e 26 6c 74 3b 70 26 67  #ff00ff">&lt;p&g
3fb0: 74 3b 26 6c 74 3b 66 6f 6e 74 20 63 6f 6c 6f 72  t;&lt;font color
3fc0: 3d 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f  =</font><font co
3fd0: 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 3c 62  lor="#a52a2a"><b
3fe0: 3e 26 71 75 6f 74 3b 3c 2f 62 3e 3c 2f 66 6f 6e  >&quot;</b></fon
3ff0: 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23  t><font color="#
4000: 66 66 30 30 66 66 22 3e 72 65 64 3c 2f 66 6f 6e  ff00ff">red</fon
4010: 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23  t><font color="#
4020: 61 35 32 61 32 61 22 3e 3c 62 3e 26 71 75 6f 74  a52a2a"><b>&quot
4030: 3b 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e  ;</b></font><fon
4040: 74 20 63 6f 6c 6f 72 3d 22 23 66 66 30 30 66 66  t color="#ff00ff
4050: 22 3e 26 67 74 3b 45 52 52 4f 52 3a 20 3c 2f 66  ">&gt;ERROR: </f
4060: 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d  ont><font color=
4070: 22 23 61 30 32 30 66 30 22 3e 24 31 3c 2f 66 6f  "#a020f0">$1</fo
4080: 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22  nt><font color="
4090: 23 66 66 30 30 66 66 22 3e 26 6c 74 3b 2f 66 6f  #ff00ff">&lt;/fo
40a0: 6e 74 26 67 74 3b 26 6c 74 3b 2f 70 26 67 74 3b  nt&gt;&lt;/p&gt;
40b0: 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c  </font><font col
40c0: 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 3c 62 3e  or="#a52a2a"><b>
40d0: 26 71 75 6f 74 3b 3c 2f 62 3e 3c 2f 66 6f 6e 74  &quot;</b></font
40e0: 3e 3c 62 72 3e 0d 0a 3c 66 6f 6e 74 20 63 6f 6c  ><br>..<font col
40f0: 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 33 35 20  or="#a52a2a">35 
4100: 3c 2f 66 6f 6e 74 3e 26 6e 62 73 70 3b 26 6e 62  </font>&nbsp;&nb
4110: 73 70 3b 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22  sp;<font color="
4120: 23 61 35 32 61 32 61 22 3e 3c 62 3e 65 78 69 74  #a52a2a"><b>exit
4130: 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 26 6e 62 73 70  </b></font>&nbsp
4140: 3b 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 66  ;<font color="#f
4150: 66 30 30 66 66 22 3e 31 3c 2f 66 6f 6e 74 3e 3c  f00ff">1</font><
4160: 62 72 3e 0d 0a 3c 66 6f 6e 74 20 63 6f 6c 6f 72  br>..<font color
4170: 3d 22 23 61 35 32 61 32 61 22 3e 33 36 20 3c 2f  ="#a52a2a">36 </
4180: 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72  font><font color
4190: 3d 22 23 30 30 38 62 38 62 22 3e 7d 3c 2f 66 6f  ="#008b8b">}</fo
41a0: 6e 74 3e 3c 62 72 3e 0d 0a 3c 66 6f 6e 74 20 63  nt><br>..<font c
41b0: 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 33  olor="#a52a2a">3
41c0: 37 20 3c 2f 66 6f 6e 74 3e 3c 62 72 3e 0d 0a 3c  7 </font><br>..<
41d0: 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32  font color="#a52
41e0: 61 32 61 22 3e 33 38 20 3c 2f 66 6f 6e 74 3e 3c  a2a">38 </font><
41f0: 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 30 30 38  font color="#008
4200: 62 38 62 22 3e 50 20 28 29 20 7b 3c 2f 66 6f 6e  b8b">P () {</fon
4210: 74 3e 3c 62 72 3e 0d 0a 3c 66 6f 6e 74 20 63 6f  t><br>..<font co
4220: 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 33 39  lor="#a52a2a">39
4230: 20 3c 2f 66 6f 6e 74 3e 26 6e 62 73 70 3b 26 6e   </font>&nbsp;&n
4240: 62 73 70 3b 48 65 61 64 65 72 54 65 78 74 3c 62  bsp;HeaderText<b
4250: 72 3e 0d 0a 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d  r>..<font color=
4260: 22 23 61 35 32 61 32 61 22 3e 34 30 20 3c 2f 66  "#a52a2a">40 </f
4270: 6f 6e 74 3e 26 6e 62 73 70 3b 26 6e 62 73 70 3b  ont>&nbsp;&nbsp;
4280: 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35  <font color="#a5
4290: 32 61 32 61 22 3e 3c 62 3e 66 6f 72 20 3c 2f 62  2a2a"><b>for </b
42a0: 3e 3c 2f 66 6f 6e 74 3e 76 61 72 20 3c 66 6f 6e  ></font>var <fon
42b0: 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61  t color="#a52a2a
42c0: 22 3e 3c 62 3e 69 6e 3c 2f 62 3e 3c 2f 66 6f 6e  "><b>in</b></fon
42d0: 74 3e 26 6e 62 73 70 3b 3c 66 6f 6e 74 20 63 6f  t>&nbsp;<font co
42e0: 6c 6f 72 3d 22 23 61 30 32 30 66 30 22 3e 24 2a  lor="#a020f0">$*
42f0: 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c  </font><font col
4300: 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 3c 62 3e  or="#a52a2a"><b>
4310: 3b 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 26 6e 62 73  ;</b></font>&nbs
4320: 70 3b 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23  p;<font color="#
4330: 61 35 32 61 32 61 22 3e 3c 62 3e 64 6f 3c 2f 62  a52a2a"><b>do</b
4340: 3e 3c 2f 66 6f 6e 74 3e 3c 62 72 3e 0d 0a 3c 66  ></font><br>..<f
4350: 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61  ont color="#a52a
4360: 32 61 22 3e 34 31 20 3c 2f 66 6f 6e 74 3e 26 6e  2a">41 </font>&n
4370: 62 73 70 3b 26 6e 62 73 70 3b 26 6e 62 73 70 3b  bsp;&nbsp;&nbsp;
4380: 26 6e 62 73 70 3b 3c 66 6f 6e 74 20 63 6f 6c 6f  &nbsp;<font colo
4390: 72 3d 22 23 61 35 32 61 32 61 22 3e 3c 62 3e 65  r="#a52a2a"><b>e
43a0: 76 61 6c 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 26 6e  val</b></font>&n
43b0: 62 73 70 3b 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d  bsp;<font color=
43c0: 22 23 61 35 32 61 32 61 22 3e 3c 62 3e 65 63 68  "#a52a2a"><b>ech
43d0: 6f 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e  o</b></font><fon
43e0: 74 20 63 6f 6c 6f 72 3d 22 23 66 66 30 30 66 66  t color="#ff00ff
43f0: 22 3e 26 6e 62 73 70 3b 3c 2f 66 6f 6e 74 3e 3c  ">&nbsp;</font><
4400: 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 30 32  font color="#a02
4410: 30 66 30 22 3e 24 76 61 72 3c 2f 66 6f 6e 74 3e  0f0">$var</font>
4420: 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 66 66  <font color="#ff
4430: 30 30 66 66 22 3e 26 6e 62 73 70 3b 3d 20 3c 2f  00ff">&nbsp;= </
4440: 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72  font><font color
4450: 3d 22 23 61 35 32 61 32 61 22 3e 3c 62 3e 26 71  ="#a52a2a"><b>&q
4460: 75 6f 74 3b 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 3c  uot;</b></font><
4470: 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 36 61 35  font color="#6a5
4480: 61 63 64 22 3e 5c 24 3c 2f 66 6f 6e 74 3e 3c 66  acd">\$</font><f
4490: 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 30 32 30  ont color="#a020
44a0: 66 30 22 3e 24 76 61 72 3c 2f 66 6f 6e 74 3e 3c  f0">$var</font><
44b0: 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32  font color="#a52
44c0: 61 32 61 22 3e 3c 62 3e 26 71 75 6f 74 3b 3c 2f  a2a"><b>&quot;</
44d0: 62 3e 3c 2f 66 6f 6e 74 3e 3c 62 72 3e 0d 0a 3c  b></font><br>..<
44e0: 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32  font color="#a52
44f0: 61 32 61 22 3e 34 32 20 3c 2f 66 6f 6e 74 3e 26  a2a">42 </font>&
4500: 6e 62 73 70 3b 26 6e 62 73 70 3b 3c 66 6f 6e 74  nbsp;&nbsp;<font
4510: 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22   color="#a52a2a"
4520: 3e 3c 62 3e 64 6f 6e 65 3c 2f 62 3e 3c 2f 66 6f  ><b>done</b></fo
4530: 6e 74 3e 3c 62 72 3e 0d 0a 3c 66 6f 6e 74 20 63  nt><br>..<font c
4540: 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 34  olor="#a52a2a">4
4550: 33 20 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63  3 </font><font c
4560: 6f 6c 6f 72 3d 22 23 30 30 38 62 38 62 22 3e 7d  olor="#008b8b">}
4570: 3c 2f 66 6f 6e 74 3e 3c 62 72 3e 0d 0a 3c 66 6f  </font><br>..<fo
4580: 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32  nt color="#a52a2
4590: 61 22 3e 34 34 20 3c 2f 66 6f 6e 74 3e 3c 62 72  a">44 </font><br
45a0: 3e 0d 0a 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22  >..<font color="
45b0: 23 61 35 32 61 32 61 22 3e 34 35 20 3c 2f 66 6f  #a52a2a">45 </fo
45c0: 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22  nt><font color="
45d0: 23 30 30 30 30 66 66 22 3e 23 23 20 44 6f 20 74  #0000ff">## Do t
45e0: 68 65 20 72 65 61 6c 20 77 6f 72 6b 20 68 65 72  he real work her
45f0: 65 20 2e 2e 2e 3c 2f 66 6f 6e 74 3e 3c 62 72 3e  e ...</font><br>
4600: 0d 0a 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23  ..<font color="#
4610: 61 35 32 61 32 61 22 3e 34 36 20 3c 2f 66 6f 6e  a52a2a">46 </fon
4620: 74 3e 3c 62 72 3e 0d 0a 3c 66 6f 6e 74 20 63 6f  t><br>..<font co
4630: 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 34 37  lor="#a52a2a">47
4640: 20 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f   </font><font co
4650: 6c 6f 72 3d 22 23 30 30 38 62 38 62 22 3e 70 72  lor="#008b8b">pr
4660: 6f 6a 65 63 74 3c 2f 66 6f 6e 74 3e 3d 3c 66 6f  oject</font>=<fo
4670: 6e 74 20 63 6f 6c 6f 72 3d 22 23 36 61 35 61 63  nt color="#6a5ac
4680: 64 22 3e 60 65 63 68 6f 20 3c 2f 66 6f 6e 74 3e  d">`echo </font>
4690: 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 30  <font color="#a0
46a0: 32 30 66 30 22 3e 24 50 41 54 48 5f 49 4e 46 4f  20f0">$PATH_INFO
46b0: 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c  </font><font col
46c0: 6f 72 3d 22 23 36 61 35 61 63 64 22 3e 26 6e 62  or="#6a5acd">&nb
46d0: 73 70 3b 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20  sp;</font><font 
46e0: 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e  color="#a52a2a">
46f0: 3c 62 3e 7c 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 3c  <b>|</b></font><
4700: 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 36 61 35  font color="#6a5
4710: 61 63 64 22 3e 26 6e 62 73 70 3b 73 65 64 20 2d  acd">&nbsp;sed -
4720: 65 20 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63  e </font><font c
4730: 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 3c  olor="#a52a2a"><
4740: 62 3e 27 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 3c 66  b>'</b></font><f
4750: 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 66 66 30 30  ont color="#ff00
4760: 66 66 22 3e 73 21 2f 3c 2f 66 6f 6e 74 3e 3c 66  ff">s!/</font><f
4770: 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 36 61 35 61  ont color="#6a5a
4780: 63 64 22 3e 5c 28 3c 2f 66 6f 6e 74 3e 3c 66 6f  cd">\(</font><fo
4790: 6e 74 20 63 6f 6c 6f 72 3d 22 23 66 66 30 30 66  nt color="#ff00f
47a0: 66 22 3e 5b 5e 2f 5d 2a 3c 2f 66 6f 6e 74 3e 3c  f">[^/]*</font><
47b0: 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 36 61 35  font color="#6a5
47c0: 61 63 64 22 3e 5c 29 3c 2f 66 6f 6e 74 3e 3c 66  acd">\)</font><f
47d0: 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 66 66 30 30  ont color="#ff00
47e0: 66 66 22 3e 2e 2a 21 5c 31 21 3c 2f 66 6f 6e 74  ff">.*!\1!</font
47f0: 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61  ><font color="#a
4800: 35 32 61 32 61 22 3e 3c 62 3e 27 7c 3c 2f 62 3e  52a2a"><b>'|</b>
4810: 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c  </font><font col
4820: 6f 72 3d 22 23 36 61 35 61 63 64 22 3e 26 6e 62  or="#6a5acd">&nb
4830: 73 70 3b 74 72 20 3c 2f 66 6f 6e 74 3e 3c 66 6f  sp;tr </font><fo
4840: 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32  nt color="#a52a2
4850: 61 22 3e 3c 62 3e 26 71 75 6f 74 3b 3c 2f 62 3e  a"><b>&quot;</b>
4860: 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c  </font><font col
4870: 6f 72 3d 22 23 66 66 30 30 66 66 22 3e 5b 41 2d  or="#ff00ff">[A-
4880: 5a 5d 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63  Z]</font><font c
4890: 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 3c  olor="#a52a2a"><
48a0: 62 3e 26 71 75 6f 74 3b 3c 2f 62 3e 3c 2f 66 6f  b>&quot;</b></fo
48b0: 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22  nt><font color="
48c0: 23 36 61 35 61 63 64 22 3e 26 6e 62 73 70 3b 3c  #6a5acd">&nbsp;<
48d0: 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f  /font><font colo
48e0: 72 3d 22 23 61 35 32 61 32 61 22 3e 3c 62 3e 26  r="#a52a2a"><b>&
48f0: 71 75 6f 74 3b 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e  quot;</b></font>
4900: 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 66 66  <font color="#ff
4910: 30 30 66 66 22 3e 5b 61 2d 7a 5d 3c 2f 66 6f 6e  00ff">[a-z]</fon
4920: 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23  t><font color="#
4930: 61 35 32 61 32 61 22 3e 3c 62 3e 26 71 75 6f 74  a52a2a"><b>&quot
4940: 3b 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e  ;</b></font><fon
4950: 74 20 63 6f 6c 6f 72 3d 22 23 36 61 35 61 63 64  t color="#6a5acd
4960: 22 3e 60 3c 2f 66 6f 6e 74 3e 3c 62 72 3e 0d 0a  ">`</font><br>..
4970: 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35  <font color="#a5
4980: 32 61 32 61 22 3e 34 38 20 3c 2f 66 6f 6e 74 3e  2a2a">48 </font>
4990: 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 30 30  <font color="#00
49a0: 38 62 38 62 22 3e 72 65 70 6f 73 3c 2f 66 6f 6e  8b8b">repos</fon
49b0: 74 3e 3d 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22  t>=<font color="
49c0: 23 61 35 32 61 32 61 22 3e 3c 62 3e 26 71 75 6f  #a52a2a"><b>&quo
49d0: 74 3b 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 3c 66 6f  t;</b></font><fo
49e0: 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 30 32 30 66  nt color="#a020f
49f0: 30 22 3e 24 52 45 50 4f 53 52 4f 4f 54 3c 2f 66  0">$REPOSROOT</f
4a00: 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d  ont><font color=
4a10: 22 23 66 66 30 30 66 66 22 3e 2f 3c 2f 66 6f 6e  "#ff00ff">/</fon
4a20: 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23  t><font color="#
4a30: 61 30 32 30 66 30 22 3e 24 70 72 6f 6a 65 63 74  a020f0">$project
4a40: 24 52 45 50 4f 53 45 58 54 3c 2f 66 6f 6e 74 3e  $REPOSEXT</font>
4a50: 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35  <font color="#a5
4a60: 32 61 32 61 22 3e 3c 62 3e 26 71 75 6f 74 3b 3c  2a2a"><b>&quot;<
4a70: 2f 62 3e 3c 2f 66 6f 6e 74 3e 3c 62 72 3e 0d 0a  /b></font><br>..
4a80: 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35  <font color="#a5
4a90: 32 61 32 61 22 3e 34 39 20 3c 2f 66 6f 6e 74 3e  2a2a">49 </font>
4aa0: 3c 62 72 3e 0d 0a 3c 66 6f 6e 74 20 63 6f 6c 6f  <br>..<font colo
4ab0: 72 3d 22 23 61 35 32 61 32 61 22 3e 35 30 20 3c  r="#a52a2a">50 <
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 35 32 61 32 61 22 3e 3c 62 3e 69  r="#a52a2a"><b>i
4ae0: 66 20 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 3c 66 6f  f </b></font><fo
4af0: 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32  nt color="#a52a2
4b00: 61 22 3e 3c 62 3e 5b 3c 2f 62 3e 3c 2f 66 6f 6e  a"><b>[</b></fon
4b10: 74 3e 26 6e 62 73 70 3b 3c 66 6f 6e 74 20 63 6f  t>&nbsp;<font co
4b20: 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 3c 62  lor="#a52a2a"><b
4b30: 3e 2d 72 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 26 6e  >-r</b></font>&n
4b40: 62 73 70 3b 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d  bsp;<font color=
4b50: 22 23 61 35 32 61 32 61 22 3e 3c 62 3e 26 71 75  "#a52a2a"><b>&qu
4b60: 6f 74 3b 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 3c 66  ot;</b></font><f
4b70: 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 30 32 30  ont color="#a020
4b80: 66 30 22 3e 24 72 65 70 6f 73 3c 2f 66 6f 6e 74  f0">$repos</font
4b90: 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61  ><font color="#a
4ba0: 35 32 61 32 61 22 3e 3c 62 3e 26 71 75 6f 74 3b  52a2a"><b>&quot;
4bb0: 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 26 6e 62 73 70  </b></font>&nbsp
4bc0: 3b 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61  ;<font color="#a
4bd0: 35 32 61 32 61 22 3e 3c 62 3e 5d 3c 2f 62 3e 3c  52a2a"><b>]</b><
4be0: 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f  /font><font colo
4bf0: 72 3d 22 23 61 35 32 61 32 61 22 3e 3c 62 3e 3b  r="#a52a2a"><b>;
4c00: 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 26 6e 62 73 70  </b></font>&nbsp
4c10: 3b 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61  ;<font color="#a
4c20: 35 32 61 32 61 22 3e 3c 62 3e 74 68 65 6e 3c 2f  52a2a"><b>then</
4c30: 62 3e 3c 2f 66 6f 6e 74 3e 3c 62 72 3e 0d 0a 3c  b></font><br>..<
4c40: 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32  font color="#a52
4c50: 61 32 61 22 3e 35 31 20 3c 2f 66 6f 6e 74 3e 26  a2a">51 </font>&
4c60: 6e 62 73 70 3b 26 6e 62 73 70 3b 3c 66 6f 6e 74  nbsp;&nbsp;<font
4c70: 20 63 6f 6c 6f 72 3d 22 23 30 30 38 62 38 62 22   color="#008b8b"
4c80: 3e 50 41 54 48 5f 49 4e 46 4f 3c 2f 66 6f 6e 74  >PATH_INFO</font
4c90: 3e 3d 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23  >=<font color="#
4ca0: 36 61 35 61 63 64 22 3e 60 65 63 68 6f 20 3c 2f  6a5acd">`echo </
4cb0: 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72  font><font color
4cc0: 3d 22 23 61 30 32 30 66 30 22 3e 24 52 45 51 55  ="#a020f0">$REQU
4cd0: 45 53 54 5f 55 52 49 3c 2f 66 6f 6e 74 3e 3c 66  EST_URI</font><f
4ce0: 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 36 61 35 61  ont color="#6a5a
4cf0: 63 64 22 3e 26 6e 62 73 70 3b 3c 2f 66 6f 6e 74  cd">&nbsp;</font
4d00: 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61  ><font color="#a
4d10: 35 32 61 32 61 22 3e 3c 62 3e 7c 3c 2f 62 3e 3c  52a2a"><b>|</b><
4d20: 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f  /font><font colo
4d30: 72 3d 22 23 36 61 35 61 63 64 22 3e 26 6e 62 73  r="#6a5acd">&nbs
4d40: 70 3b 73 65 64 20 2d 65 20 3c 2f 66 6f 6e 74 3e  p;sed -e </font>
4d50: 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35  <font color="#a5
4d60: 32 61 32 61 22 3e 3c 62 3e 26 71 75 6f 74 3b 3c  2a2a"><b>&quot;<
4d70: 2f 62 3e 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20  /b></font><font 
4d80: 63 6f 6c 6f 72 3d 22 23 66 66 30 30 66 66 22 3e  color="#ff00ff">
4d90: 73 21 5e 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20  s!^</font><font 
4da0: 63 6f 6c 6f 72 3d 22 23 61 30 32 30 66 30 22 3e  color="#a020f0">
4db0: 24 53 43 52 49 50 54 5f 4e 41 4d 45 3c 2f 66 6f  $SCRIPT_NAME</fo
4dc0: 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22  nt><font color="
4dd0: 23 66 66 30 30 66 66 22 3e 2f 3c 2f 66 6f 6e 74  #ff00ff">/</font
4de0: 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61  ><font color="#a
4df0: 30 32 30 66 30 22 3e 24 70 72 6f 6a 65 63 74 3c  020f0">$project<
4e00: 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f  /font><font colo
4e10: 72 3d 22 23 36 61 35 61 63 64 22 3e 5c 5c 3c 2f  r="#6a5acd">\\</
4e20: 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72  font><font color
4e30: 3d 22 23 66 66 30 30 66 66 22 3e 28 5b 5e 3f 5d  ="#ff00ff">([^?]
4e40: 2a 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 5c 5c  lor="#6a5acd">\\
4e60: 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c  </font><font col
4e70: 6f 72 3d 22 23 66 66 30 30 66 66 22 3e 29 2e 2a  or="#ff00ff">).*
4e80: 21 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f  !</font><font co
4e90: 6c 6f 72 3d 22 23 36 61 35 61 63 64 22 3e 5c 5c  lor="#6a5acd">\\
4ea0: 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c  </font><font col
4eb0: 6f 72 3d 22 23 66 66 30 30 66 66 22 3e 31 21 3c  or="#ff00ff">1!<
4ec0: 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f  /font><font colo
4ed0: 72 3d 22 23 61 35 32 61 32 61 22 3e 3c 62 3e 26  r="#a52a2a"><b>&
4ee0: 71 75 6f 74 3b 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e  quot;</b></font>
4ef0: 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 36 61  <font color="#6a
4f00: 35 61 63 64 22 3e 60 3c 2f 66 6f 6e 74 3e 3c 62  5acd">`</font><b
4f10: 72 3e 0d 0a 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d  r>..<font color=
4f20: 22 23 61 35 32 61 32 61 22 3e 35 32 20 3c 2f 66  "#a52a2a">52 </f
4f30: 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d  ont><font color=
4f40: 22 23 61 35 32 61 32 61 22 3e 3c 62 3e 26 6e 62  "#a52a2a"><b>&nb
4f50: 73 70 3b 26 6e 62 73 70 3b 3a 3c 2f 62 3e 3c 2f  sp;&nbsp;:</b></
4f60: 66 6f 6e 74 3e 26 6e 62 73 70 3b 3c 66 6f 6e 74  font>&nbsp;<font
4f70: 20 63 6f 6c 6f 72 3d 22 23 61 30 32 30 66 30 22   color="#a020f0"
4f80: 3e 24 7b 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20  >${</font><font 
4f90: 63 6f 6c 6f 72 3d 22 23 61 30 32 30 66 30 22 3e  color="#a020f0">
4fa0: 50 41 54 48 5f 49 4e 46 4f 3c 2f 66 6f 6e 74 3e  PATH_INFO</font>
4fb0: 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35  <font color="#a5
4fc0: 32 61 32 61 22 3e 3c 62 3e 3a 3d 3c 2f 62 3e 3c  2a2a"><b>:=</b><
4fd0: 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f  /font><font colo
4fe0: 72 3d 22 23 66 66 30 30 66 66 22 3e 2f 3c 2f 66  r="#ff00ff">/</f
4ff0: 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d  ont><font color=
5000: 22 23 61 30 32 30 66 30 22 3e 7d 3c 2f 66 6f 6e  "#a020f0">}</fon
5010: 74 3e 3c 62 72 3e 0d 0a 3c 66 6f 6e 74 20 63 6f  t><br>..<font co
5020: 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 35 33  lor="#a52a2a">53
5030: 20 3c 2f 66 6f 6e 74 3e 26 6e 62 73 70 3b 26 6e   </font>&nbsp;&n
5040: 62 73 70 3b 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d  bsp;<font color=
5050: 22 23 30 30 38 62 38 62 22 3e 53 43 52 49 50 54  "#008b8b">SCRIPT
5060: 5f 4e 41 4d 45 3c 2f 66 6f 6e 74 3e 3d 3c 66 6f  _NAME</font>=<fo
5070: 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 30 32 30 66  nt color="#a020f
5080: 30 22 3e 24 53 43 52 49 50 54 5f 4e 41 4d 45 3c  0">$SCRIPT_NAME<
5090: 2f 66 6f 6e 74 3e 2f 3c 66 6f 6e 74 20 63 6f 6c  /font>/<font col
50a0: 6f 72 3d 22 23 61 30 32 30 66 30 22 3e 24 70 72  or="#a020f0">$pr
50b0: 6f 6a 65 63 74 3c 2f 66 6f 6e 74 3e 3c 62 72 3e  oject</font><br>
50c0: 0d 0a 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23  ..<font color="#
50d0: 61 35 32 61 32 61 22 3e 35 34 20 3c 2f 66 6f 6e  a52a2a">54 </fon
50e0: 74 3e 26 6e 62 73 70 3b 26 6e 62 73 70 3b 3c 66  t>&nbsp;&nbsp;<f
50f0: 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 30 30 38 62  ont color="#008b
5100: 38 62 22 3e 54 45 4d 50 46 49 4c 45 3c 2f 66 6f  8b">TEMPFILE</fo
5110: 6e 74 3e 3d 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d  nt>=<font color=
5120: 22 23 36 61 35 61 63 64 22 3e 60 6d 6b 74 65 6d  "#6a5acd">`mktem
5130: 70 20 2f 74 6d 70 2f 66 6f 73 73 69 6c 2d 3c 2f  p /tmp/fossil-</
5140: 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72  font><font color
5150: 3d 22 23 61 30 32 30 66 30 22 3e 24 70 72 6f 6a  ="#a020f0">$proj
5160: 65 63 74 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20  ect</font><font 
5170: 63 6f 6c 6f 72 3d 22 23 36 61 35 61 63 64 22 3e  color="#6a5acd">
5180: 2e 58 58 58 58 58 58 60 3c 2f 66 6f 6e 74 3e 26  .XXXXXX`</font>&
5190: 6e 62 73 70 3b 3c 66 6f 6e 74 20 63 6f 6c 6f 72  nbsp;<font color
51a0: 3d 22 23 61 35 32 61 32 61 22 3e 3c 62 3e 7c 7c  ="#a52a2a"><b>||
51b0: 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 26 6e 62 73 70  </b></font>&nbsp
51c0: 3b 45 72 72 6f 72 20 3c 66 6f 6e 74 20 63 6f 6c  ;Error <font col
51d0: 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 3c 62 3e  or="#a52a2a"><b>
51e0: 26 71 75 6f 74 3b 3c 2f 62 3e 3c 2f 66 6f 6e 74  &quot;</b></font
51f0: 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 66  ><font color="#f
5200: 66 30 30 66 66 22 3e 43 6f 75 6c 64 6e 27 74 20  f00ff">Couldn't 
5210: 63 72 65 61 74 65 20 74 65 6d 70 66 69 6c 65 3c  create tempfile<
5220: 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f  /font><font colo
5230: 72 3d 22 23 61 35 32 61 32 61 22 3e 3c 62 3e 26  r="#a52a2a"><b>&
5240: 71 75 6f 74 3b 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e  quot;</b></font>
5250: 3c 62 72 3e 0d 0a 3c 66 6f 6e 74 20 63 6f 6c 6f  <br>..<font colo
5260: 72 3d 22 23 61 35 32 61 32 61 22 3e 35 35 20 3c  r="#a52a2a">55 <
5270: 2f 66 6f 6e 74 3e 26 6e 62 73 70 3b 26 6e 62 73  /font>&nbsp;&nbs
5280: 70 3b 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23  p;<font color="#
5290: 61 35 32 61 32 61 22 3e 3c 62 3e 74 72 61 70 3c  a52a2a"><b>trap<
52a0: 2f 62 3e 3c 2f 66 6f 6e 74 3e 26 6e 62 73 70 3b  /b></font>&nbsp;
52b0: 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35  <font color="#a5
52c0: 32 61 32 61 22 3e 3c 62 3e 26 71 75 6f 74 3b 3c  2a2a"><b>&quot;<
52d0: 2f 62 3e 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20  /b></font><font 
52e0: 63 6f 6c 6f 72 3d 22 23 66 66 30 30 66 66 22 3e  color="#ff00ff">
52f0: 72 6d 20 2d 66 20 3c 2f 66 6f 6e 74 3e 3c 66 6f  rm -f </font><fo
5300: 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 30 32 30 66  nt color="#a020f
5310: 30 22 3e 24 54 45 4d 50 46 49 4c 45 3c 2f 66 6f  0">$TEMPFILE</fo
5320: 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22  nt><font color="
5330: 23 61 35 32 61 32 61 22 3e 3c 62 3e 26 71 75 6f  #a52a2a"><b>&quo
5340: 74 3b 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 26 6e 62  t;</b></font>&nb
5350: 73 70 3b 45 58 49 54 20 51 55 49 54 20 49 4e 54  sp;EXIT QUIT INT
5360: 20 54 45 52 4d 3c 62 72 3e 0d 0a 3c 66 6f 6e 74   TERM<br>..<font
5370: 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22   color="#a52a2a"
5380: 3e 35 36 20 3c 2f 66 6f 6e 74 3e 26 6e 62 73 70  >56 </font>&nbsp
5390: 3b 26 6e 62 73 70 3b 3c 66 6f 6e 74 20 63 6f 6c  ;&nbsp;<font col
53a0: 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 3c 62 3e  or="#a52a2a"><b>
53b0: 65 63 68 6f 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 3c  echo</b></font><
53c0: 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 66 66 30  font color="#ff0
53d0: 30 66 66 22 3e 26 6e 62 73 70 3b 72 65 70 6f 73  0ff">&nbsp;repos
53e0: 69 74 6f 72 79 3a 20 3c 2f 66 6f 6e 74 3e 3c 66  itory: </font><f
53f0: 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 30 32 30  ont color="#a020
5400: 66 30 22 3e 24 72 65 70 6f 73 3c 2f 66 6f 6e 74  f0">$repos</font
5410: 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 66  ><font color="#f
5420: 66 30 30 66 66 22 3e 26 6e 62 73 70 3b 3c 2f 66  f00ff">&nbsp;</f
5430: 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d  ont><font color=
5440: 22 23 61 35 32 61 32 61 22 3e 3c 62 3e 26 67 74  "#a52a2a"><b>&gt
5450: 3b 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 26 6e 62 73  ;</b></font>&nbs
5460: 70 3b 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23  p;<font color="#
5470: 61 30 32 30 66 30 22 3e 24 54 45 4d 50 46 49 4c  a020f0">$TEMPFIL
5480: 45 3c 2f 66 6f 6e 74 3e 3c 62 72 3e 0d 0a 3c 66  E</font><br>..<f
5490: 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61  ont color="#a52a
54a0: 32 61 22 3e 35 37 20 3c 2f 66 6f 6e 74 3e 26 6e  2a">57 </font>&n
54b0: 62 73 70 3b 26 6e 62 73 70 3b 3c 66 6f 6e 74 20  bsp;&nbsp;<font 
54c0: 63 6f 6c 6f 72 3d 22 23 61 30 32 30 66 30 22 3e  color="#a020f0">
54d0: 24 46 4f 53 53 49 4c 3c 2f 66 6f 6e 74 3e 26 6e  $FOSSIL</font>&n
54e0: 62 73 70 3b 63 67 69 20 3c 66 6f 6e 74 20 63 6f  bsp;cgi <font co
54f0: 6c 6f 72 3d 22 23 61 30 32 30 66 30 22 3e 24 54  lor="#a020f0">$T
5500: 45 4d 50 46 49 4c 45 3c 2f 66 6f 6e 74 3e 3c 62  EMPFILE</font><b
5510: 72 3e 0d 0a 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d  r>..<font color=
5520: 22 23 61 35 32 61 32 61 22 3e 35 38 20 3c 2f 66  "#a52a2a">58 </f
5530: 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d  ont><font color=
5540: 22 23 61 35 32 61 32 61 22 3e 3c 62 3e 65 6c 69  "#a52a2a"><b>eli
5550: 66 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 26 6e 62 73  f</b></font>&nbs
5560: 70 3b 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23  p;<font color="#
5570: 61 35 32 61 32 61 22 3e 3c 62 3e 5b 3c 2f 62 3e  a52a2a"><b>[</b>
5580: 3c 2f 66 6f 6e 74 3e 26 6e 62 73 70 3b 3c 66 6f  </font>&nbsp;<fo
5590: 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32  nt color="#a52a2
55a0: 61 22 3e 3c 62 3e 2d 7a 3c 2f 62 3e 3c 2f 66 6f  a"><b>-z</b></fo
55b0: 6e 74 3e 26 6e 62 73 70 3b 3c 66 6f 6e 74 20 63  nt>&nbsp;<font c
55c0: 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 3c  olor="#a52a2a"><
55d0: 62 3e 26 71 75 6f 74 3b 3c 2f 62 3e 3c 2f 66 6f  b>&quot;</b></fo
55e0: 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22  nt><font color="
55f0: 23 61 30 32 30 66 30 22 3e 24 70 72 6f 6a 65 63  #a020f0">$projec
5600: 74 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f  t</font><font co
5610: 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 3c 62  lor="#a52a2a"><b
5620: 3e 26 71 75 6f 74 3b 3c 2f 62 3e 3c 2f 66 6f 6e  >&quot;</b></fon
5630: 74 3e 26 6e 62 73 70 3b 3c 66 6f 6e 74 20 63 6f  t>&nbsp;<font co
5640: 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 3c 62  lor="#a52a2a"><b
5650: 3e 5d 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 3c 66 6f  >]</b></font><fo
5660: 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32  nt color="#a52a2
5670: 61 22 3e 3c 62 3e 3b 3c 2f 62 3e 3c 2f 66 6f 6e  a"><b>;</b></fon
5680: 74 3e 26 6e 62 73 70 3b 3c 66 6f 6e 74 20 63 6f  t>&nbsp;<font co
5690: 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 3c 62  lor="#a52a2a"><b
56a0: 3e 74 68 65 6e 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e  >then</b></font>
56b0: 3c 62 72 3e 0d 0a 3c 66 6f 6e 74 20 63 6f 6c 6f  <br>..<font colo
56c0: 72 3d 22 23 61 35 32 61 32 61 22 3e 35 39 20 3c  r="#a52a2a">59 <
56d0: 2f 66 6f 6e 74 3e 26 6e 62 73 70 3b 26 6e 62 73  /font>&nbsp;&nbs
56e0: 70 3b 48 65 61 64 65 72 48 54 4d 4c 3c 62 72 3e  p;HeaderHTML<br>
56f0: 0d 0a 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23  ..<font color="#
5700: 61 35 32 61 32 61 22 3e 36 30 20 3c 2f 66 6f 6e  a52a2a">60 </fon
5710: 74 3e 26 6e 62 73 70 3b 26 6e 62 73 70 3b 3c 66  t>&nbsp;&nbsp;<f
5720: 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61  ont color="#a52a
5730: 32 61 22 3e 3c 62 3e 65 63 68 6f 3c 2f 62 3e 3c  2a"><b>echo</b><
5740: 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f  /font><font colo
5750: 72 3d 22 23 66 66 30 30 66 66 22 3e 26 6e 62 73  r="#ff00ff">&nbs
5760: 70 3b 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63  p;</font><font c
5770: 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 3c  olor="#a52a2a"><
5780: 62 3e 26 71 75 6f 74 3b 3c 2f 62 3e 3c 2f 66 6f  b>&quot;</b></fo
5790: 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22  nt><font color="
57a0: 23 61 30 32 30 66 30 22 3e 24 54 49 54 4c 45 3c  #a020f0">$TITLE<
57b0: 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f  /font><font colo
57c0: 72 3d 22 23 61 35 32 61 32 61 22 3e 3c 62 3e 26  r="#a52a2a"><b>&
57d0: 71 75 6f 74 3b 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e  quot;</b></font>
57e0: 3c 62 72 3e 0d 0a 3c 66 6f 6e 74 20 63 6f 6c 6f  <br>..<font colo
57f0: 72 3d 22 23 61 35 32 61 32 61 22 3e 36 31 20 3c  r="#a52a2a">61 <
5800: 2f 66 6f 6e 74 3e 26 6e 62 73 70 3b 26 6e 62 73  /font>&nbsp;&nbs
5810: 70 3b 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23  p;<font color="#
5820: 61 35 32 61 32 61 22 3e 3c 62 3e 65 63 68 6f 3c  a52a2a"><b>echo<
5830: 2f 62 3e 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20  /b></font><font 
5840: 63 6f 6c 6f 72 3d 22 23 66 66 30 30 66 66 22 3e  color="#ff00ff">
5850: 26 6e 62 73 70 3b 3c 2f 66 6f 6e 74 3e 3c 66 6f  &nbsp;</font><fo
5860: 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32  nt color="#a52a2
5870: 61 22 3e 3c 62 3e 26 71 75 6f 74 3b 3c 2f 62 3e  a"><b>&quot;</b>
5880: 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c  </font><font col
5890: 6f 72 3d 22 23 66 66 30 30 66 66 22 3e 26 6c 74  or="#ff00ff">&lt
58a0: 3b 75 6c 26 67 74 3b 3c 2f 66 6f 6e 74 3e 3c 66  ;ul&gt;</font><f
58b0: 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61  ont color="#a52a
58c0: 32 61 22 3e 3c 62 3e 26 71 75 6f 74 3b 3c 2f 62  2a"><b>&quot;</b
58d0: 3e 3c 2f 66 6f 6e 74 3e 3c 62 72 3e 0d 0a 3c 66  ></font><br>..<f
58e0: 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61  ont color="#a52a
58f0: 32 61 22 3e 36 32 20 3c 2f 66 6f 6e 74 3e 26 6e  2a">62 </font>&n
5900: 62 73 70 3b 26 6e 62 73 70 3b 66 69 6e 64 20 3c  bsp;&nbsp;find <
5910: 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 30 32  font color="#a02
5920: 30 66 30 22 3e 24 52 45 50 4f 53 52 4f 4f 54 3c  0f0">$REPOSROOT<
5930: 2f 66 6f 6e 74 3e 26 6e 62 73 70 3b 2d 6e 61 6d  /font>&nbsp;-nam
5940: 65 20 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23  e <font color="#
5950: 61 35 32 61 32 61 22 3e 3c 62 3e 26 71 75 6f 74  a52a2a"><b>&quot
5960: 3b 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e  ;</b></font><fon
5970: 74 20 63 6f 6c 6f 72 3d 22 23 66 66 30 30 66 66  t color="#ff00ff
5980: 22 3e 2a 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20  ">*</font><font 
5990: 63 6f 6c 6f 72 3d 22 23 61 30 32 30 66 30 22 3e  color="#a020f0">
59a0: 24 52 45 50 4f 53 45 58 54 3c 2f 66 6f 6e 74 3e  $REPOSEXT</font>
59b0: 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35  <font color="#a5
59c0: 32 61 32 61 22 3e 3c 62 3e 26 71 75 6f 74 3b 3c  2a2a"><b>&quot;<
59d0: 2f 62 3e 3c 2f 66 6f 6e 74 3e 26 6e 62 73 70 3b  /b></font>&nbsp;
59e0: 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35  <font color="#a5
59f0: 32 61 32 61 22 3e 3c 62 3e 7c 3c 2f 62 3e 3c 2f  2a2a"><b>|</b></
5a00: 66 6f 6e 74 3e 26 6e 62 73 70 3b 5c 3c 62 72 3e  font>&nbsp;\<br>
5a10: 0d 0a 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23  ..<font color="#
5a20: 61 35 32 61 32 61 22 3e 36 33 20 3c 2f 66 6f 6e  a52a2a">63 </fon
5a30: 74 3e 26 6e 62 73 70 3b 26 6e 62 73 70 3b 77 68  t>&nbsp;&nbsp;wh
5a40: 69 6c 65 20 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d  ile <font color=
5a50: 22 23 61 35 32 61 32 61 22 3e 3c 62 3e 72 65 61  "#a52a2a"><b>rea
5a60: 64 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 26 6e 62 73  d</b></font>&nbs
5a70: 70 3b 72 65 70 6f 73 3c 66 6f 6e 74 20 63 6f 6c  p;repos<font col
5a80: 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 3c 62 3e  or="#a52a2a"><b>
5a90: 3b 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 26 6e 62 73  ;</b></font>&nbs
5aa0: 70 3b 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23  p;<font color="#
5ab0: 61 35 32 61 32 61 22 3e 3c 62 3e 64 6f 3c 2f 62  a52a2a"><b>do</b
5ac0: 3e 3c 2f 66 6f 6e 74 3e 3c 62 72 3e 0d 0a 3c 66  ></font><br>..<f
5ad0: 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61  ont color="#a52a
5ae0: 32 61 22 3e 36 34 20 3c 2f 66 6f 6e 74 3e 26 6e  2a">64 </font>&n
5af0: 62 73 70 3b 26 6e 62 73 70 3b 26 6e 62 73 70 3b  bsp;&nbsp;&nbsp;
5b00: 26 6e 62 73 70 3b 3c 66 6f 6e 74 20 63 6f 6c 6f  &nbsp;<font colo
5b10: 72 3d 22 23 30 30 38 62 38 62 22 3e 70 72 6f 6a  r="#008b8b">proj
5b20: 65 63 74 3c 2f 66 6f 6e 74 3e 3d 3c 66 6f 6e 74  ect</font>=<font
5b30: 20 63 6f 6c 6f 72 3d 22 23 36 61 35 61 63 64 22   color="#6a5acd"
5b40: 3e 60 62 61 73 65 6e 61 6d 65 20 3c 2f 66 6f 6e  >`basename </fon
5b50: 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23  t><font color="#
5b60: 61 30 32 30 66 30 22 3e 24 72 65 70 6f 73 3c 2f  a020f0">$repos</
5b70: 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72  font><font color
5b80: 3d 22 23 36 61 35 61 63 64 22 3e 26 6e 62 73 70  ="#6a5acd">&nbsp
5b90: 3b 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f  ;</font><font co
5ba0: 6c 6f 72 3d 22 23 61 30 32 30 66 30 22 3e 24 52  lor="#a020f0">$R
5bb0: 45 50 4f 53 45 58 54 3c 2f 66 6f 6e 74 3e 3c 66  EPOSEXT</font><f
5bc0: 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 36 61 35 61  ont color="#6a5a
5bd0: 63 64 22 3e 60 3c 2f 66 6f 6e 74 3e 3c 62 72 3e  cd">`</font><br>
5be0: 0d 0a 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23  ..<font color="#
5bf0: 61 35 32 61 32 61 22 3e 36 35 20 3c 2f 66 6f 6e  a52a2a">65 </fon
5c00: 74 3e 26 6e 62 73 70 3b 26 6e 62 73 70 3b 26 6e  t>&nbsp;&nbsp;&n
5c10: 62 73 70 3b 26 6e 62 73 70 3b 3c 66 6f 6e 74 20  bsp;&nbsp;<font 
5c20: 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e  color="#a52a2a">
5c30: 3c 62 3e 69 66 20 3c 2f 62 3e 3c 2f 66 6f 6e 74  <b>if </b></font
5c40: 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61  ><font color="#a
5c50: 35 32 61 32 61 22 3e 3c 62 3e 5b 3c 2f 62 3e 3c  52a2a"><b>[</b><
5c60: 2f 66 6f 6e 74 3e 26 6e 62 73 70 3b 3c 66 6f 6e  /font>&nbsp;<fon
5c70: 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61  t color="#a52a2a
5c80: 22 3e 3c 62 3e 2d 66 3c 2f 62 3e 3c 2f 66 6f 6e  "><b>-f</b></fon
5c90: 74 3e 26 6e 62 73 70 3b 3c 66 6f 6e 74 20 63 6f  t>&nbsp;<font co
5ca0: 6c 6f 72 3d 22 23 61 30 32 30 66 30 22 3e 24 72  lor="#a020f0">$r
5cb0: 65 70 6f 73 3c 2f 66 6f 6e 74 3e 26 6e 62 73 70  epos</font>&nbsp
5cc0: 3b 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61  ;<font color="#a
5cd0: 35 32 61 32 61 22 3e 3c 62 3e 2d 61 3c 2f 62 3e  52a2a"><b>-a</b>
5ce0: 3c 2f 66 6f 6e 74 3e 26 6e 62 73 70 3b 3c 66 6f  </font>&nbsp;<fo
5cf0: 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32  nt color="#a52a2
5d00: 61 22 3e 3c 62 3e 21 3c 2f 62 3e 3c 2f 66 6f 6e  a"><b>!</b></fon
5d10: 74 3e 26 6e 62 73 70 3b 3c 66 6f 6e 74 20 63 6f  t>&nbsp;<font co
5d20: 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 3c 62  lor="#a52a2a"><b
5d30: 3e 2d 65 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 26 6e  >-e</b></font>&n
5d40: 62 73 70 3b 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d  bsp;<font color=
5d50: 22 23 61 30 32 30 66 30 22 3e 24 52 45 50 4f 53  "#a020f0">$REPOS
5d60: 52 4f 4f 54 3c 2f 66 6f 6e 74 3e 2f 2e 3c 66 6f  ROOT</font>/.<fo
5d70: 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 30 32 30 66  nt color="#a020f
5d80: 30 22 3e 24 70 72 6f 6a 65 63 74 3c 2f 66 6f 6e  0">$project</fon
5d90: 74 3e 26 6e 62 73 70 3b 3c 66 6f 6e 74 20 63 6f  t>&nbsp;<font co
5da0: 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 3c 62  lor="#a52a2a"><b
5db0: 3e 5d 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 3c 66 6f  >]</b></font><fo
5dc0: 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32  nt color="#a52a2
5dd0: 61 22 3e 3c 62 3e 3b 3c 2f 62 3e 3c 2f 66 6f 6e  a"><b>;</b></fon
5de0: 74 3e 26 6e 62 73 70 3b 3c 66 6f 6e 74 20 63 6f  t>&nbsp;<font co
5df0: 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 3c 62  lor="#a52a2a"><b
5e00: 3e 74 68 65 6e 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e  >then</b></font>
5e10: 3c 62 72 3e 0d 0a 3c 66 6f 6e 74 20 63 6f 6c 6f  <br>..<font colo
5e20: 72 3d 22 23 61 35 32 61 32 61 22 3e 36 36 20 3c  r="#a52a2a">66 <
5e30: 2f 66 6f 6e 74 3e 26 6e 62 73 70 3b 26 6e 62 73  /font>&nbsp;&nbs
5e40: 70 3b 26 6e 62 73 70 3b 26 6e 62 73 70 3b 26 6e  p;&nbsp;&nbsp;&n
5e50: 62 73 70 3b 26 6e 62 73 70 3b 3c 66 6f 6e 74 20  bsp;&nbsp;<font 
5e60: 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e  color="#a52a2a">
5e70: 3c 62 3e 65 63 68 6f 3c 2f 62 3e 3c 2f 66 6f 6e  <b>echo</b></fon
5e80: 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23  t><font color="#
5e90: 66 66 30 30 66 66 22 3e 26 6e 62 73 70 3b 3c 2f  ff00ff">&nbsp;</
5ea0: 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72  font><font color
5eb0: 3d 22 23 61 35 32 61 32 61 22 3e 3c 62 3e 26 71  ="#a52a2a"><b>&q
5ec0: 75 6f 74 3b 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 3c  uot;</b></font><
5ed0: 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 66 66 30  font color="#ff0
5ee0: 30 66 66 22 3e 26 6c 74 3b 6c 69 26 67 74 3b 26  0ff">&lt;li&gt;&
5ef0: 6c 74 3b 61 20 68 72 65 66 3d 27 3c 2f 66 6f 6e  lt;a href='</fon
5f00: 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23  t><font color="#
5f10: 61 30 32 30 66 30 22 3e 24 7b 3c 2f 66 6f 6e 74  a020f0">${</font
5f20: 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61  ><font color="#a
5f30: 30 32 30 66 30 22 3e 52 45 51 55 45 53 54 5f 55  020f0">REQUEST_U
5f40: 52 49 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63  RI</font><font c
5f50: 6f 6c 6f 72 3d 22 23 61 30 32 30 66 30 22 3e 7d  olor="#a020f0">}
5f60: 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c  </font><font col
5f70: 6f 72 3d 22 23 66 66 30 30 66 66 22 3e 2f 3c 2f  or="#ff00ff">/</
5f80: 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72  font><font color
5f90: 3d 22 23 61 30 32 30 66 30 22 3e 24 70 72 6f 6a  ="#a020f0">$proj
5fa0: 65 63 74 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20  ect</font><font 
5fb0: 63 6f 6c 6f 72 3d 22 23 66 66 30 30 66 66 22 3e  color="#ff00ff">
5fc0: 27 26 67 74 3b 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e  '&gt;</font><fon
5fd0: 74 20 63 6f 6c 6f 72 3d 22 23 61 30 32 30 66 30  t color="#a020f0
5fe0: 22 3e 24 70 72 6f 6a 65 63 74 3c 2f 66 6f 6e 74  ">$project</font
5ff0: 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 66  ><font color="#f
6000: 66 30 30 66 66 22 3e 26 6c 74 3b 2f 61 26 67 74  f00ff">&lt;/a&gt
6010: 3b 26 6c 74 3b 2f 6c 69 26 67 74 3b 3c 2f 66 6f  ;&lt;/li&gt;</fo
6020: 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22  nt><font color="
6030: 23 61 35 32 61 32 61 22 3e 3c 62 3e 26 71 75 6f  #a52a2a"><b>&quo
6040: 74 3b 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 3c 62 72  t;</b></font><br
6050: 3e 0d 0a 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22  >..<font color="
6060: 23 61 35 32 61 32 61 22 3e 36 37 20 3c 2f 66 6f  #a52a2a">67 </fo
6070: 6e 74 3e 26 6e 62 73 70 3b 26 6e 62 73 70 3b 26  nt>&nbsp;&nbsp;&
6080: 6e 62 73 70 3b 26 6e 62 73 70 3b 3c 66 6f 6e 74  nbsp;&nbsp;<font
6090: 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22   color="#a52a2a"
60a0: 3e 3c 62 3e 66 69 3c 2f 62 3e 3c 2f 66 6f 6e 74  ><b>fi</b></font
60b0: 3e 3c 62 72 3e 0d 0a 3c 66 6f 6e 74 20 63 6f 6c  ><br>..<font col
60c0: 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 36 38 20  or="#a52a2a">68 
60d0: 3c 2f 66 6f 6e 74 3e 26 6e 62 73 70 3b 26 6e 62  </font>&nbsp;&nb
60e0: 73 70 3b 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22  sp;<font color="
60f0: 23 61 35 32 61 32 61 22 3e 3c 62 3e 64 6f 6e 65  #a52a2a"><b>done
6100: 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 3c 62 72 3e 0d  </b></font><br>.
6110: 0a 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23 61  .<font color="#a
6120: 35 32 61 32 61 22 3e 36 39 20 3c 2f 66 6f 6e 74  52a2a">69 </font
6130: 3e 26 6e 62 73 70 3b 26 6e 62 73 70 3b 3c 66 6f  >&nbsp;&nbsp;<fo
6140: 6e 74 20 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32  nt color="#a52a2
6150: 61 22 3e 3c 62 3e 65 63 68 6f 3c 2f 62 3e 3c 2f  a"><b>echo</b></
6160: 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72  font><font color
6170: 3d 22 23 66 66 30 30 66 66 22 3e 26 6e 62 73 70  ="#ff00ff">&nbsp
6180: 3b 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f  ;</font><font co
6190: 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 3c 62  lor="#a52a2a"><b
61a0: 3e 26 71 75 6f 74 3b 3c 2f 62 3e 3c 2f 66 6f 6e  >&quot;</b></fon
61b0: 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23  t><font color="#
61c0: 66 66 30 30 66 66 22 3e 26 6c 74 3b 2f 75 6c 26  ff00ff">&lt;/ul&
61d0: 67 74 3b 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20  gt;</font><font 
61e0: 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e  color="#a52a2a">
61f0: 3c 62 3e 26 71 75 6f 74 3b 3c 2f 62 3e 3c 2f 66  <b>&quot;</b></f
6200: 6f 6e 74 3e 3c 62 72 3e 0d 0a 3c 66 6f 6e 74 20  ont><br>..<font 
6210: 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e  color="#a52a2a">
6220: 37 30 20 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20  70 </font><font 
6230: 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e  color="#a52a2a">
6240: 3c 62 3e 65 6c 73 65 3c 2f 62 3e 3c 2f 66 6f 6e  <b>else</b></fon
6250: 74 3e 3c 62 72 3e 0d 0a 3c 66 6f 6e 74 20 63 6f  t><br>..<font co
6260: 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 37 31  lor="#a52a2a">71
6270: 20 3c 2f 66 6f 6e 74 3e 26 6e 62 73 70 3b 26 6e   </font>&nbsp;&n
6280: 62 73 70 3b 45 72 72 6f 72 20 3c 66 6f 6e 74 20  bsp;Error <font 
6290: 63 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e  color="#a52a2a">
62a0: 3c 62 3e 26 71 75 6f 74 3b 3c 2f 62 3e 3c 2f 66  <b>&quot;</b></f
62b0: 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d  ont><font color=
62c0: 22 23 66 66 30 30 66 66 22 3e 4e 6f 20 73 75 63  "#ff00ff">No suc
62d0: 68 20 70 72 6f 6a 65 63 74 3a 20 3c 2f 66 6f 6e  h project: </fon
62e0: 74 3e 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22 23  t><font color="#
62f0: 61 30 32 30 66 30 22 3e 24 70 72 6f 6a 65 63 74  a020f0">$project
6300: 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c  </font><font col
6310: 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 3c 62 3e  or="#a52a2a"><b>
6320: 26 71 75 6f 74 3b 3c 2f 62 3e 3c 2f 66 6f 6e 74  &quot;</b></font
6330: 3e 3c 62 72 3e 0d 0a 3c 66 6f 6e 74 20 63 6f 6c  ><br>..<font col
6340: 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 37 32 20  or="#a52a2a">72 
6350: 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63 6f 6c  </font><font col
6360: 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 3c 62 3e  or="#a52a2a"><b>
6370: 66 69 3c 2f 62 3e 3c 2f 66 6f 6e 74 3e 3c 62 72  fi</b></font><br
6380: 3e 0d 0a 3c 66 6f 6e 74 20 63 6f 6c 6f 72 3d 22  >..<font color="
6390: 23 61 35 32 61 32 61 22 3e 37 33 20 3c 2f 66 6f  #a52a2a">73 </fo
63a0: 6e 74 3e 3c 62 72 3e 0d 0a 3c 66 6f 6e 74 20 63  nt><br>..<font c
63b0: 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 37  olor="#a52a2a">7
63c0: 34 20 3c 2f 66 6f 6e 74 3e 3c 66 6f 6e 74 20 63  4 </font><font c
63d0: 6f 6c 6f 72 3d 22 23 61 35 32 61 32 61 22 3e 3c  olor="#a52a2a"><
63e0: 62 3e 65 78 69 74 3c 2f 62 3e 3c 2f 66 6f 6e 74  b>exit</b></font
63f0: 3e 26 6e 62 73 70 3b 3c 66 6f 6e 74 20 63 6f 6c  >&nbsp;<font col
6400: 6f 72 3d 22 23 66 66 30 30 66 66 22 3e 30 3c 2f  or="#ff00ff">0</
6410: 66 6f 6e 74 3e 3c 62 72 3e 0d 0a 3c 2f 66 6f 6e  font><br>..</fon
6420: 74 3e 0d 0a 3c 2f 6e 6f 77 69 6b 69 3e 0d 0a 0d  t>..</nowiki>...
6430: 0a 3c 68 34 3e 57 69 6e 64 6f 77 73 3c 2f 68 34  .<h4>Windows</h4
6440: 3e 0d 0a 3c 70 3e 57 68 69 6c 65 20 69 74 20 69  >..<p>While it i
6450: 73 20 66 61 72 20 66 72 6f 6d 20 61 20 70 65 72  s far from a per
6460: 66 65 63 74 20 73 65 74 20 6f 66 20 69 6e 73 74  fect set of inst
6470: 72 75 63 74 69 6f 6e 73 2e 2e 20 68 65 72 65 20  ructions.. here 
6480: 61 72 65 20 73 6f 6d 65 20 71 75 69 63 6b 20 6e  are some quick n
6490: 6f 74 65 73 20 74 68 61 74 20 73 68 6f 75 6c 64  otes that should
64a0: 20 68 65 6c 70 20 77 69 6e 64 6f 77 73 20 75 73   help windows us
64b0: 65 72 73 20 61 6c 6f 6e 67 20 74 68 65 20 77 61  ers along the wa
64c0: 79 2e 2e 2e 3c 2f 70 3e 0d 0a 3c 75 6c 3e 0d 0a  y...</p>..<ul>..
64d0: 3c 6c 69 3e 79 6f 75 20 6e 65 65 64 20 66 6f 73  <li>you need fos
64e0: 73 69 6c 2e 65 78 65 20 61 63 63 65 73 73 69 62  sil.exe accessib
64f0: 6c 65 20 62 79 20 79 6f 75 72 20 77 65 62 20 73  le by your web s
6500: 65 72 76 65 72 20 6f 72 20 6f 6e 20 79 6f 75 72  erver or on your
6510: 20 70 61 74 68 2e 2e 20 65 61 73 69 65 73 74 20   path.. easiest 
6520: 69 73 20 74 6f 20 6a 75 73 74 20 63 68 75 63 6b  is to just chuck
6530: 20 69 74 20 69 6e 20 5c 25 53 59 53 54 45 4d 5f   it in \%SYSTEM_
6540: 52 4f 4f 54 25 5c 20 28 75 73 75 61 6c 6c 79 20  ROOT%\ (usually 
6550: 63 3a 5c 77 69 6e 64 6f 77 73 5c 29 20 3c 2f 6c  c:\windows\) </l
6560: 69 3e 0d 0a 3c 6c 69 3e 61 73 73 75 6d 69 6e 67  i>..<li>assuming
6570: 20 79 6f 75 20 61 72 65 20 72 75 6e 6e 69 6e 67   you are running
6580: 20 61 70 61 63 68 65 2c 20 79 6f 75 20 6e 65 65   apache, you nee
6590: 64 20 74 6f 20 65 69 74 68 65 72 20 61 64 64 20  d to either add 
65a0: 74 68 65 20 45 78 65 63 43 47 49 20 74 6f 20 74  the ExecCGI to t
65b0: 68 65 20 6f 70 74 69 6f 6e 73 20 6f 6e 20 79 6f  he options on yo
65c0: 75 72 20 44 6f 63 75 6d 65 6e 74 52 6f 6f 74 2c  ur DocumentRoot,
65d0: 20 6f 72 20 6d 61 6b 65 20 73 75 72 65 20 74 68   or make sure th
65e0: 65 20 53 63 72 69 70 74 41 6c 69 61 73 20 64 69  e ScriptAlias di
65f0: 72 65 63 74 69 76 65 20 69 73 20 73 65 74 20 61  rective is set a
6600: 6e 64 20 70 75 74 20 79 6f 75 72 20 2e 63 67 69  nd put your .cgi
6610: 20 66 69 6c 65 73 20 69 6e 20 74 68 61 74 20 66   files in that f
6620: 6f 6c 64 65 72 2e 2e 3c 2f 6c 69 3e 0d 0a 3c 6c  older..</li>..<l
6630: 69 3e 74 68 65 20 63 6f 6e 74 65 6e 74 73 20 6f  i>the contents o
6640: 66 20 79 6f 75 72 20 63 67 69 20 66 69 6c 65 20  f your cgi file 
6650: 6e 65 65 64 73 20 74 6f 20 65 73 73 65 6e 74 69  needs to essenti
6660: 61 6c 6c 79 20 74 68 65 20 73 61 6d 65 20 61 73  ally the same as
6670: 20 61 62 6f 76 65 2e 2e 20 68 6f 77 65 76 65 72   above.. however
6680: 20 70 61 74 68 73 20 6e 65 65 64 73 20 74 6f 20   paths needs to 
6690: 62 65 20 77 69 6e 64 6f 77 73 20 66 72 69 65 6e  be windows frien
66a0: 64 6c 79 2e 2e 20 69 20 68 61 76 65 20 6d 61 64  dly.. i have mad
66b0: 65 20 73 75 72 65 20 74 68 61 74 20 61 6c 6c 20  e sure that all 
66c0: 66 6f 6c 64 65 72 73 20 6f 6e 20 6d 79 20 74 65  folders on my te
66d0: 73 74 20 62 6f 78 20 61 72 65 20 66 72 65 65 20  st box are free 
66e0: 6f 66 20 73 70 61 63 65 73 2c 20 61 6e 64 20 61  of spaces, and a
66f0: 73 20 73 75 63 68 20 74 68 69 73 20 66 69 6c 65  s such this file
6700: 20 77 6f 72 6b 73 20 66 6f 72 20 6d 65 20 28 6f   works for me (o
6710: 62 76 69 6f 75 73 6c 79 20 79 6f 75 72 20 70 61  bviously your pa
6720: 74 68 73 20 6d 61 79 20 64 69 66 66 65 72 29 0d  ths may differ).
6730: 0a 3c 70 72 65 3e 0d 0a 23 21 20 66 6f 73 73 69  .<pre>..#! fossi
6740: 6c 2e 65 78 65 0d 0a 72 65 70 6f 73 69 74 6f 72  l.exe..repositor
6750: 79 3a 20 63 3a 2f 77 61 6d 70 2f 77 77 77 2f 64  y: c:/wamp/www/d
6760: 65 76 2f 61 63 63 6f 75 6e 74 73 2e 66 6f 73 73  ev/accounts.foss
6770: 69 6c 0d 0a 3c 2f 70 72 65 3e 0d 0a 49 20 73 75  il..</pre>..I su
6780: 70 70 6f 73 65 20 79 6f 75 20 63 6f 75 6c 64 20  ppose you could 
6790: 70 75 74 20 66 6f 73 73 69 6c 2e 65 78 65 20 73  put fossil.exe s
67a0: 6f 6d 65 77 68 65 72 65 20 6d 6f 72 65 20 73 70  omewhere more sp
67b0: 65 63 69 66 69 63 20 61 6e 64 20 73 65 74 20 74  ecific and set t
67c0: 68 65 20 70 61 74 68 20 74 6f 20 69 74 20 61 73  he path to it as
67d0: 20 77 65 6c 6c 2c 20 62 75 74 20 73 69 6e 63 65   well, but since
67e0: 20 79 6f 75 20 61 72 65 20 70 72 6f 62 61 62 6c   you are probabl
67f0: 79 20 75 73 69 6e 67 20 74 68 65 20 73 61 6d 65  y using the same
6800: 20 65 78 65 63 75 74 61 62 6c 65 20 66 6f 72 20   executable for 
6810: 63 6d 64 6c 69 6e 65 20 61 6e 64 20 63 67 69 20  cmdline and cgi 
6820: 69 74 20 6b 69 6e 64 20 6f 66 20 6a 75 73 74 20  it kind of just 
6830: 6d 61 6b 65 73 20 73 65 6e 73 65 20 74 6f 20 70  makes sense to p
6840: 75 74 20 69 74 20 73 6f 6d 65 77 68 65 72 65 20  ut it somewhere 
6850: 6d 6f 72 65 20 61 63 63 65 73 73 69 62 6c 65 3c  more accessible<
6860: 2f 6c 69 3e 0d 0a 3c 6c 69 3e 41 73 20 77 69 74  /li>..<li>As wit
6870: 68 20 6d 6f 73 74 20 57 69 6e 64 6f 77 73 20 62  h most Windows b
6880: 61 73 65 64 20 77 65 62 20 69 6e 73 74 72 75 63  ased web instruc
6890: 74 69 6f 6e 73 2c 20 70 65 72 6d 69 73 73 69 6f  tions, permissio
68a0: 6e 20 61 72 65 20 6e 6f 74 20 61 73 20 69 6d 70  n are not as imp
68b0: 6f 72 74 61 6e 74 2c 20 68 6f 77 65 76 65 72 20  ortant, however 
68c0: 61 74 20 74 68 65 20 6c 65 61 73 74 2c 20 79 6f  at the least, yo
68d0: 75 20 6e 65 65 64 20 74 6f 20 6d 61 6b 65 20 73  u need to make s
68e0: 75 72 65 20 74 68 61 74 20 79 6f 75 72 20 72 65  ure that your re
68f0: 70 6f 73 69 74 6f 72 79 20 69 73 20 6e 6f 74 20  pository is not 
6900: 66 6c 61 67 67 65 64 20 72 65 61 64 2d 6f 6e 6c  flagged read-onl
6910: 79 2c 20 61 73 20 79 6f 75 20 77 69 6c 6c 20 65  y, as you will e
6920: 6e 63 6f 75 6e 74 65 72 20 64 61 74 61 62 61 73  ncounter databas
6930: 65 20 65 72 72 6f 72 73 20 69 66 20 69 74 20 69  e errors if it i
6940: 73 2e 3c 2f 6c 69 3e 0d 0a 3c 2f 75 6c 3e 0d 0a  s.</li>..</ul>..
6950: 0d 0a 3c 68 33 3e 44 69 73 63 75 73 73 69 6f 6e  ..<h3>Discussion
6960: 3c 2f 68 33 3e 0d 0a 55 73 69 6e 67 20 74 68 65  </h3>..Using the
6970: 20 43 47 49 20 73 65 72 76 65 72 20 69 73 20 74   CGI server is t
6980: 68 65 20 62 65 73 74 20 73 6f 6c 75 74 69 6f 6e  he best solution
6990: 20 63 6f 6d 62 69 6e 69 6e 67 20 61 6e 20 65 78   combining an ex
69a0: 69 73 74 69 6e 67 20 77 65 62 20 69 6e 66 72 61  isting web infra
69b0: 73 74 72 75 63 74 75 72 65 20 61 6e 64 20 74 68  structure and th
69c0: 65 20 73 68 61 72 69 6e 67 20 6f 66 20 6d 61 6e  e sharing of man
69d0: 79 20 3c 63 69 74 65 3e 46 6f 73 73 69 6c 3c 2f  y <cite>Fossil</
69e0: 63 69 74 65 3e 20 72 65 70 6f 73 69 74 6f 72 69  cite> repositori
69f0: 65 73 2e 20 20 55 6e 6c 69 6b 65 20 74 68 65 20  es.  Unlike the 
6a00: 61 64 2d 68 6f 63 20 73 6f 6c 75 74 69 6f 6e 20  ad-hoc solution 
6a10: 77 68 69 63 68 20 72 65 71 75 69 72 65 73 2c 20  which requires, 
6a20: 69 6e 20 65 66 66 65 63 74 2c 20 61 20 73 65 70  in effect, a sep
6a30: 61 72 61 74 65 20 70 6f 72 74 20 66 6f 72 20 65  arate port for e
6a40: 61 63 68 20 73 69 6d 75 6c 74 61 6e 65 6f 75 73  ach simultaneous
6a50: 6c 79 2d 73 68 61 72 65 64 20 72 65 70 6f 73 69  ly-shared reposi
6a60: 74 6f 72 79 2c 20 61 6e 64 20 77 68 69 63 68 20  tory, and which 
6a70: 72 65 71 75 69 72 65 73 20 73 65 76 65 72 61 6c  requires several
6a80: 20 69 6e 73 74 61 6e 63 65 73 20 6f 66 20 66 6f   instances of fo
6a90: 73 73 69 6c 20 72 75 6e 6e 69 6e 67 20 2d 2d 20  ssil running -- 
6aa0: 6f 6e 65 20 66 6f 72 20 65 61 63 68 20 73 68 61  one for each sha
6ab0: 72 65 64 20 72 65 70 6f 73 69 74 6f 72 79 20 2d  red repository -
6ac0: 2d 20 74 68 65 20 43 47 49 20 61 70 70 72 6f 61  - the CGI approa
6ad0: 63 68 20 75 73 65 73 20 55 52 4c 73 20 74 6f 20  ch uses URLs to 
6ae0: 64 69 73 74 69 6e 67 75 69 73 68 20 62 65 74 77  distinguish betw
6af0: 65 65 6e 20 72 65 70 6f 73 69 74 6f 72 69 65 73  een repositories
6b00: 20 61 6e 64 20 6f 6e 6c 79 20 28 62 72 69 65 66   and only (brief
6b10: 6c 79 29 20 72 75 6e 73 20 61 20 63 6f 70 79 20  ly) runs a copy 
6b20: 6f 66 20 66 6f 73 73 69 6c 20 77 68 65 6e 20 74  of fossil when t
6b30: 68 65 20 72 65 70 6f 73 69 74 6f 72 79 20 69 73  he repository is
6b40: 20 61 63 74 75 61 6c 6c 79 20 61 63 63 65 73 73   actually access
6b50: 65 64 2e 0d 0a 0d 0a 53 68 61 72 69 6e 67 20 72  ed.....Sharing r
6b60: 65 70 6f 73 69 74 6f 72 69 65 73 20 77 69 74 68  epositories with
6b70: 20 43 47 49 20 69 73 20 72 65 61 6c 6c 79 20 6f   CGI is really o
6b80: 6e 6c 79 20 77 6f 72 74 68 20 74 68 65 20 65 66  nly worth the ef
6b90: 66 6f 72 74 20 69 66 20 6d 6f 72 65 20 74 68 61  fort if more tha
6ba0: 6e 20 6f 6e 65 20 72 65 70 6f 73 69 74 6f 72 79  n one repository
6bb0: 20 69 73 20 62 65 69 6e 67 20 73 68 61 72 65 64   is being shared
6bc0: 2c 20 68 6f 77 65 76 65 72 2e 20 20 57 69 74 68  , however.  With
6bd0: 20 6f 6e 6c 79 20 6f 6e 65 20 62 65 69 6e 67 20   only one being 
6be0: 73 68 61 72 65 64 2c 20 3c 63 6f 64 65 3e 66 6f  shared, <code>fo
6bf0: 73 73 69 6c 20 73 65 72 76 65 72 3c 2f 63 6f 64  ssil server</cod
6c00: 65 3e 20 69 73 20 6c 69 6b 65 6c 79 20 6d 6f 72  e> is likely mor
6c10: 65 20 74 68 61 6e 20 61 64 65 71 75 61 74 65 20  e than adequate 
6c20: 6f 72 20 74 68 65 20 75 73 65 20 6f 66 20 28 78  or the use of (x
6c30: 29 69 6e 65 74 64 20 6d 61 79 20 62 65 20 69 6e  )inetd may be in
6c40: 64 69 63 61 74 65 64 2e 20 20 49 66 2c 20 68 6f  dicated.  If, ho
6c50: 77 65 76 65 72 2c 20 74 68 65 72 65 20 69 73 20  wever, there is 
6c60: 61 6c 72 65 61 64 79 20 61 6e 20 65 78 69 73 74  already an exist
6c70: 69 6e 67 20 77 65 62 20 69 6e 66 72 61 73 74 72  ing web infrastr
6c80: 75 63 74 75 72 65 20 69 6e 20 70 6c 61 63 65 2c  ucture in place,
6c90: 20 43 47 49 20 73 74 69 6c 6c 20 6d 61 79 20 62   CGI still may b
6ca0: 65 20 70 72 65 66 65 72 72 65 64 20 69 66 20 6f  e preferred if o
6cb0: 6e 6c 79 20 66 6f 72 20 63 6f 6e 73 69 73 74 65  nly for consiste
6cc0: 6e 63 79 20 61 6e 64 20 6d 61 69 6e 74 61 69 6e  ncy and maintain
6cd0: 61 62 69 6c 69 74 79 20 6f 66 20 74 68 65 20 73  ability of the s
6ce0: 79 73 74 65 6d 20 61 73 20 61 20 77 68 6f 6c 65  ystem as a whole
6cf0: 2e 0d 0a 0d 0a 3c 68 32 3e 3c 61 20 6e 61 6d 65  .....<h2><a name
6d00: 3d 22 65 6e 76 22 3e 55 73 69 6e 67 20 45 6e 76  ="env">Using Env
6d10: 69 72 6f 6e 6d 65 6e 74 20 76 61 72 69 61 62 6c  ironment variabl
6d20: 65 73 3c 2f 61 3e 3c 2f 68 32 3e 0d 0a 3c 68 33  es</a></h2>..<h3
6d30: 3e 4d 6f 74 69 76 61 74 69 6f 6e 3c 2f 68 33 3e  >Motivation</h3>
6d40: 0d 0a 20 20 2a 20 20 57 61 6e 74 20 74 6f 20 75  ..  *  Want to u
6d50: 73 65 20 61 20 64 69 66 66 65 72 65 6e 74 20 65  se a different e
6d60: 64 69 74 6f 72 20 66 6f 72 20 63 68 65 63 6b 69  ditor for checki
6d70: 6e 73 20 28 55 6e 69 78 2f 57 69 6e 64 6f 77 73  ns (Unix/Windows
6d80: 29 0d 0a 20 20 2a 20 20 55 73 65 20 61 20 70 72  )..  *  Use a pr
6d90: 6f 78 79 20 69 66 20 79 6f 75 20 61 72 65 20 62  oxy if you are b
6da0: 65 68 69 6e 64 20 61 20 66 69 72 65 77 61 6c 6c  ehind a firewall
6db0: 0d 0a 0d 0a 3c 68 33 3e 53 6f 6c 75 74 69 6f 6e  ....<h3>Solution
6dc0: 3c 2f 68 33 3e 0d 0a 45 6e 76 69 72 6f 6e 6d 65  </h3>..Environme
6dd0: 6e 74 20 76 61 72 69 61 62 6c 65 73 20 61 72 65  nt variables are
6de0: 20 75 73 65 64 20 74 6f 20 63 75 73 74 6f 6d 69   used to customi
6df0: 7a 65 20 73 6f 6d 65 20 70 72 6f 67 72 61 6d 6d  ze some programm
6e00: 65 20 62 65 68 61 76 69 6f 75 72 2e 20 4f 6e 20  e behaviour. On 
6e10: 4c 69 6e 75 78 2f 55 6e 69 78 20 74 68 65 79 20  Linux/Unix they 
6e20: 63 61 6e 20 62 65 20 73 65 74 20 69 6e 20 79 6f  can be set in yo
6e30: 75 20 7e 2f 2e 62 61 73 68 72 63 20 6f 72 20 65  u ~/.bashrc or e
6e40: 76 65 6e 20 6f 6e 20 63 6f 6d 6d 61 6e 64 20 6c  ven on command l
6e50: 69 6e 65 2e 20 4f 6e 20 57 69 6e 64 6f 77 73 20  ine. On Windows 
6e60: 74 68 65 79 20 63 61 6e 20 62 65 20 73 65 74 20  they can be set 
6e70: 69 6e 20 74 68 65 20 73 79 73 74 65 6d 20 73 65  in the system se
6e80: 74 74 69 6e 67 73 2e 0d 0a 0d 0a 3c 63 69 74 65  ttings.....<cite
6e90: 3e 46 6f 73 73 69 6c 3c 2f 63 69 74 65 3e 20 63  >Fossil</cite> c
6ea0: 68 65 63 6b 73 20 74 68 65 20 66 6f 6c 6c 6f 77  hecks the follow
6eb0: 69 6e 67 20 65 6e 76 69 72 6f 6e 6d 65 6e 74 20  ing environment 
6ec0: 76 61 72 69 61 62 6c 65 73 3a 0d 0a 20 20 2a 20  variables:..  * 
6ed0: 20 56 49 53 55 41 4c 2f 45 44 49 54 4f 52 0d 0a   VISUAL/EDITOR..
6ee0: 20 20 2a 20 20 68 74 74 70 5f 70 72 6f 78 79 0d    *  http_proxy.
6ef0: 0a 20 20 2a 20 20 54 4d 50 5f 44 49 52 0d 0a 20  .  *  TMP_DIR.. 
6f00: 20 2a 20 20 47 41 54 45 57 41 59 5f 49 4e 54 45   *  GATEWAY_INTE
6f10: 52 46 41 43 45 0d 0a 20 20 2a 20 20 53 51 4c 49  RFACE..  *  SQLI
6f20: 54 45 5f 46 4f 52 43 45 5f 50 52 4f 58 59 5f 4c  TE_FORCE_PROXY_L
6f30: 4f 43 4b 49 4e 47 0d 0a 20 20 2a 20 20 55 53 45  OCKING..  *  USE
6f40: 52 0d 0a 20 20 2a 20 20 55 53 45 52 4e 41 4d 45  R..  *  USERNAME
6f50: 0d 0a 0d 0a 3c 62 3e 56 49 53 55 41 4c 2f 45 44  ....<b>VISUAL/ED
6f60: 49 54 4f 52 3c 2f 62 3e 20 63 6f 6e 74 61 69 6e  ITOR</b> contain
6f70: 20 74 68 65 20 65 64 69 74 6f 72 20 6f 66 20 79   the editor of y
6f80: 6f 75 72 20 63 68 6f 69 63 65 20 74 68 61 74 20  our choice that 
6f90: 69 73 20 75 73 65 64 20 74 6f 20 77 72 69 74 65  is used to write
6fa0: 20 74 68 65 20 63 6f 6d 6d 69 74 20 66 69 6c 65   the commit file
6fb0: 2e 0d 0a 0d 0a 3c 62 3e 54 4d 50 5f 44 49 52 3c  .....<b>TMP_DIR<
6fc0: 2f 62 3e 20 73 70 65 63 69 66 69 65 73 20 74 68  /b> specifies th
6fd0: 65 20 64 69 72 65 63 74 6f 72 79 20 66 6f 72 20  e directory for 
6fe0: 74 65 6d 70 6f 72 61 72 79 20 66 69 6c 65 73 2e  temporary files.
6ff0: 0d 0a 0d 0a 3c 62 3e 47 41 54 45 57 41 59 5f 49  ....<b>GATEWAY_I
7000: 4e 54 45 52 46 41 43 45 3c 2f 62 3e 20 3f 3f 3f  NTERFACE</b> ???
7010: 0d 0a 0d 0a 3c 62 3e 53 51 4c 49 54 45 5f 46 4f  ....<b>SQLITE_FO
7020: 52 43 45 5f 50 52 4f 58 59 5f 4c 4f 43 4b 49 4e  RCE_PROXY_LOCKIN
7030: 47 3c 2f 62 3e 20 3f 3f 3f 0d 0a 0d 0a 3c 62 3e  G</b> ???....<b>
7040: 55 53 45 52 3c 2f 62 3e 0d 0a 0d 0a 3c 62 3e 55  USER</b>....<b>U
7050: 53 45 52 4e 41 4d 45 3c 2f 62 3e 0d 0a 0d 0a 0d  SERNAME</b>.....
7060: 0a 3c 68 32 3e 3c 61 20 6e 61 6d 65 3d 22 63 73  .<h2><a name="cs
7070: 73 22 3e 45 78 61 6d 70 6c 65 20 43 53 53 3c 2f  s">Example CSS</
7080: 61 3e 3c 2f 68 32 3e 0d 0a 3c 68 33 3e 4d 6f 74  a></h2>..<h3>Mot
7090: 69 76 61 74 69 6f 6e 3c 2f 68 33 3e 0d 0a 54 68  ivation</h3>..Th
70a0: 65 20 64 65 66 61 75 6c 74 20 55 49 20 6d 61 79  e default UI may
70b0: 20 6e 6f 74 20 62 65 20 73 74 79 6c 69 73 68 20   not be stylish 
70c0: 69 6e 20 65 76 65 72 79 6f 6e 65 73 20 65 79 65  in everyones eye
70d0: 73 2e 0d 0a 49 74 20 69 73 20 75 70 20 74 6f 20  s...It is up to 
70e0: 79 6f 75 20 74 6f 20 63 68 61 6e 67 65 20 69 74  you to change it
70f0: 2e 20 53 65 65 20 74 68 65 20 43 53 53 20 63 6f  . See the CSS co
7100: 64 65 20 62 65 6c 6f 77 20 66 72 6f 6d 20 74 68  de below from th
7110: 69 73 20 73 69 74 65 20 5b 68 74 74 70 3a 2f 2f  is site [http://
7120: 66 6f 73 73 69 6c 2e 77 61 6e 64 65 72 69 6e 67  fossil.wandering
7130: 68 6f 72 73 65 2e 6e 65 74 2f 69 6e 64 65 78 2e  horse.net/index.
7140: 63 67 69 2f 69 6e 64 65 78 7c 57 61 6e 64 65 72  cgi/index|Wander
7150: 69 6e 67 20 48 6f 72 73 65 5d 0d 0a 0d 0a 3c 6e  ing Horse]....<n
7160: 6f 77 69 6b 69 3e 0d 0a 3c 70 72 65 3e 0d 0a 2f  owiki>..<pre>../
7170: 2a 20 47 65 6e 65 72 61 6c 20 73 65 74 74 69 6e  * General settin
7180: 67 73 20 66 6f 72 20 74 68 65 20 65 6e 74 69 72  gs for the entir
7190: 65 20 70 61 67 65 20 2a 2f 0d 0a 62 6f 64 79 20  e page */..body 
71a0: 7b 0d 0a 20 20 6d 61 72 67 69 6e 3a 20 30 65 78  {..  margin: 0ex
71b0: 20 31 65 78 3b 0d 0a 20 20 70 61 64 64 69 6e 67   1ex;..  padding
71c0: 3a 20 30 70 78 3b 0d 0a 20 20 62 61 63 6b 67 72  : 0px;..  backgr
71d0: 6f 75 6e 64 2d 63 6f 6c 6f 72 3a 20 77 68 69 74  ound-color: whit
71e0: 65 3b 0d 0a 20 20 66 6f 6e 74 2d 66 61 6d 69 6c  e;..  font-famil
71f0: 79 3a 20 22 73 61 6e 73 20 73 65 72 69 66 22 3b  y: "sans serif";
7200: 0d 0a 7d 0d 0a 0d 0a 2f 2a 20 4d 61 6b 65 20 74  ..}..../* Make t
7210: 68 65 20 6c 69 6e 6b 73 20 69 6e 20 74 68 65 20  he links in the 
7220: 66 6f 6f 74 65 72 20 6c 65 73 73 20 75 67 6c 79  footer less ugly
7230: 2e 2e 2e 20 2a 2f 0d 0a 61 20 7b 20 63 6f 6c 6f  ... */..a { colo
7240: 72 3a 20 23 30 30 30 66 36 61 3b 20 7d 0d 0a 61  r: #000f6a; }..a
7250: 3a 6c 69 6e 6b 20 7b 20 63 6f 6c 6f 72 3a 20 23  :link { color: #
7260: 30 30 30 66 36 61 3b 20 7d 0d 0a 61 3a 76 69 73  000f6a; }..a:vis
7270: 69 74 65 64 20 7b 20 63 6f 6c 6f 72 3a 20 23 30  ited { color: #0
7280: 30 30 66 36 61 3b 20 7d 0d 0a 61 3a 68 6f 76 65  00f6a; }..a:hove
7290: 72 20 7b 20 62 61 63 6b 67 72 6f 75 6e 64 2d 63  r { background-c
72a0: 6f 6c 6f 72 3a 20 23 65 33 65 33 65 33 3b 20 7d  olor: #e3e3e3; }
72b0: 0d 0a 0d 0a 0d 0a 68 72 20 7b 0d 0a 20 20 68 65  ......hr {..  he
72c0: 69 67 68 74 3a 20 33 70 78 3b 0d 0a 20 20 62 6f  ight: 3px;..  bo
72d0: 72 64 65 72 2d 74 6f 70 3a 20 6e 6f 6e 65 3b 20  rder-top: none; 
72e0: 2f 2a 31 70 78 20 64 61 73 68 65 64 20 23 30 30  /*1px dashed #00
72f0: 35 3b 2a 2f 0d 0a 20 20 62 6f 72 64 65 72 2d 62  5;*/..  border-b
7300: 6f 74 74 6f 6d 3a 20 31 70 78 20 64 61 73 68 65  ottom: 1px dashe
7310: 64 20 23 30 30 35 3b 0d 0a 20 20 62 6f 72 64 65  d #005;..  borde
7320: 72 2d 6c 65 66 74 3a 20 6e 6f 6e 65 3b 0d 0a 20  r-left: none;.. 
7330: 20 62 6f 72 64 65 72 2d 72 69 67 68 74 3a 20 6e   border-right: n
7340: 6f 6e 65 3b 0d 0a 7d 0d 0a 2f 2a 20 54 68 65 20  one;..}../* The 
7350: 70 72 6f 6a 65 63 74 20 6c 6f 67 6f 20 69 6e 20  project logo in 
7360: 74 68 65 20 75 70 70 65 72 20 6c 65 66 74 2d 68  the upper left-h
7370: 61 6e 64 20 63 6f 72 6e 65 72 20 6f 66 20 65 61  and corner of ea
7380: 63 68 20 70 61 67 65 20 2a 2f 0d 0a 64 69 76 2e  ch page */..div.
7390: 6c 6f 67 6f 20 7b 0d 0a 20 20 64 69 73 70 6c 61  logo {..  displa
73a0: 79 3a 20 74 61 62 6c 65 2d 63 65 6c 6c 3b 0d 0a  y: table-cell;..
73b0: 20 20 74 65 78 74 2d 61 6c 69 67 6e 3a 20 63 65    text-align: ce
73c0: 6e 74 65 72 3b 0d 0a 20 20 76 65 72 74 69 63 61  nter;..  vertica
73d0: 6c 2d 61 6c 69 67 6e 3a 20 62 6f 74 74 6f 6d 3b  l-align: bottom;
73e0: 0d 0a 20 20 63 6f 6c 6f 72 3a 20 23 30 30 30 66  ..  color: #000f
73f0: 36 61 3b 0d 0a 7d 0d 0a 0d 0a 2f 2a 20 54 68 65  6a;..}..../* The
7400: 20 70 61 67 65 20 74 69 74 6c 65 20 63 65 6e 74   page title cent
7410: 65 72 65 64 20 61 74 20 74 68 65 20 74 6f 70 20  ered at the top 
7420: 6f 66 20 65 61 63 68 20 70 61 67 65 20 2a 2f 0d  of each page */.
7430: 0a 64 69 76 2e 74 69 74 6c 65 20 7b 0d 0a 20 20  .div.title {..  
7440: 64 69 73 70 6c 61 79 3a 20 74 61 62 6c 65 2d 63  display: table-c
7450: 65 6c 6c 3b 0d 0a 20 20 66 6f 6e 74 2d 73 69 7a  ell;..  font-siz
7460: 65 3a 20 32 65 6d 3b 0d 0a 20 20 66 6f 6e 74 2d  e: 2em;..  font-
7470: 77 65 69 67 68 74 3a 20 62 6f 6c 64 3b 0d 0a 20  weight: bold;.. 
7480: 20 74 65 78 74 2d 61 6c 69 67 6e 3a 20 63 65 6e   text-align: cen
7490: 74 65 72 3b 0d 0a 20 20 63 6f 6c 6f 72 3a 20 23  ter;..  color: #
74a0: 30 30 30 66 36 61 3b 0d 0a 20 20 76 65 72 74 69  000f6a;..  verti
74b0: 63 61 6c 2d 61 6c 69 67 6e 3a 20 62 6f 74 74 6f  cal-align: botto
74c0: 6d 3b 0d 0a 20 20 77 69 64 74 68 3a 20 31 30 30  m;..  width: 100
74d0: 25 3b 0d 0a 7d 0d 0a 0d 0a 2f 2a 20 54 68 65 20  %;..}..../* The 
74e0: 6c 6f 67 69 6e 20 73 74 61 74 75 73 20 6d 65 73  login status mes
74f0: 73 61 67 65 20 69 6e 20 74 68 65 20 74 6f 70 20  sage in the top 
7500: 72 69 67 68 74 2d 68 61 6e 64 20 63 6f 72 6e 65  right-hand corne
7510: 72 20 2a 2f 0d 0a 64 69 76 2e 73 74 61 74 75 73  r */..div.status
7520: 20 7b 0d 0a 20 20 64 69 73 70 6c 61 79 3a 20 74   {..  display: t
7530: 61 62 6c 65 2d 63 65 6c 6c 3b 0d 0a 20 20 74 65  able-cell;..  te
7540: 78 74 2d 61 6c 69 67 6e 3a 20 72 69 67 68 74 3b  xt-align: right;
7550: 0d 0a 20 20 76 65 72 74 69 63 61 6c 2d 61 6c 69  ..  vertical-ali
7560: 67 6e 3a 20 62 6f 74 74 6f 6d 3b 0d 0a 20 20 63  gn: bottom;..  c
7570: 6f 6c 6f 72 3a 20 23 30 30 30 66 36 61 3b 0d 0a  olor: #000f6a;..
7580: 20 20 66 6f 6e 74 2d 73 69 7a 65 3a 20 30 2e 38    font-size: 0.8
7590: 65 6d 3b 0d 0a 7d 0d 0a 0d 0a 2f 2a 20 54 68 65  em;..}..../* The
75a0: 20 68 65 61 64 65 72 20 61 63 72 6f 73 73 20 74   header across t
75b0: 68 65 20 74 6f 70 20 6f 66 20 74 68 65 20 70 61  he top of the pa
75c0: 67 65 20 2a 2f 0d 0a 64 69 76 2e 68 65 61 64 65  ge */..div.heade
75d0: 72 20 7b 0d 0a 20 20 64 69 73 70 6c 61 79 3a 20  r {..  display: 
75e0: 74 61 62 6c 65 3b 0d 0a 20 20 77 69 64 74 68 3a  table;..  width:
75f0: 20 31 30 30 25 3b 0d 0a 20 20 74 65 78 74 2d 61   100%;..  text-a
7600: 6c 69 67 6e 3a 20 63 65 6e 74 65 72 3b 0d 0a 7d  lign: center;..}
7610: 0d 0a 0d 0a 2f 2a 20 54 68 65 20 6d 61 69 6e 20  ..../* The main 
7620: 6d 65 6e 75 20 62 61 72 20 74 68 61 74 20 61 70  menu bar that ap
7630: 70 65 61 72 73 20 61 74 20 74 68 65 20 74 6f 70  pears at the top
7640: 20 6f 66 20 74 68 65 20 70 61 67 65 20 62 65 6e   of the page ben
7650: 65 61 74 68 0d 0a 2a 2a 20 74 68 65 20 68 65 61  eath..** the hea
7660: 64 65 72 20 2a 2f 0d 0a 64 69 76 2e 6d 61 69 6e  der */..div.main
7670: 6d 65 6e 75 20 7b 0d 0a 20 20 70 61 64 64 69 6e  menu {..  paddin
7680: 67 3a 20 32 70 78 20 35 70 78 20 32 70 78 20 35  g: 2px 5px 2px 5
7690: 70 78 3b 0d 0a 20 20 66 6f 6e 74 2d 73 69 7a 65  px;..  font-size
76a0: 3a 20 30 2e 39 65 6d 3b 0d 0a 20 20 74 65 78 74  : 0.9em;..  text
76b0: 2d 61 6c 69 67 6e 3a 20 63 65 6e 74 65 72 3b 0d  -align: center;.
76c0: 0a 20 20 6c 65 74 74 65 72 2d 73 70 61 63 69 6e  .  letter-spacin
76d0: 67 3a 20 31 70 78 3b 0d 0a 20 20 62 61 63 6b 67  g: 1px;..  backg
76e0: 72 6f 75 6e 64 2d 63 6f 6c 6f 72 3a 20 23 65 33  round-color: #e3
76f0: 65 33 65 33 3b 0d 0a 20 20 63 6f 6c 6f 72 3a 20  e3e3;..  color: 
7700: 23 30 30 30 66 36 61 3b 0d 0a 20 20 62 6f 72 64  #000f6a;..  bord
7710: 65 72 3a 20 31 70 78 20 69 6e 73 65 74 20 62 6c  er: 1px inset bl
7720: 61 63 6b 3b 0d 0a 7d 0d 0a 0d 0a 2f 2a 20 54 68  ack;..}..../* Th
7730: 65 20 73 75 62 6d 65 6e 75 20 62 61 72 20 74 68  e submenu bar th
7740: 61 74 20 2a 73 6f 6d 65 74 69 6d 65 73 2a 20 61  at *sometimes* a
7750: 70 70 65 61 72 73 20 62 65 6c 6f 77 20 74 68 65  ppears below the
7760: 20 6d 61 69 6e 20 6d 65 6e 75 20 2a 2f 0d 0a 64   main menu */..d
7770: 69 76 2e 73 75 62 6d 65 6e 75 20 7b 0d 0a 20 20  iv.submenu {..  
7780: 70 61 64 64 69 6e 67 3a 20 32 70 78 20 35 70 78  padding: 2px 5px
7790: 20 32 70 78 20 35 70 78 3b 0d 0a 20 20 66 6f 6e   2px 5px;..  fon
77a0: 74 2d 73 69 7a 65 3a 20 30 2e 39 65 6d 3b 0d 0a  t-size: 0.9em;..
77b0: 20 20 74 65 78 74 2d 61 6c 69 67 6e 3a 20 63 65    text-align: ce
77c0: 6e 74 65 72 3b 0d 0a 20 20 62 61 63 6b 67 72 6f  nter;..  backgro
77d0: 75 6e 64 2d 63 6f 6c 6f 72 3a 20 23 65 33 65 33  und-color: #e3e3
77e0: 65 33 3b 0d 0a 20 20 63 6f 6c 6f 72 3a 20 23 30  e3;..  color: #0
77f0: 30 30 66 36 61 3b 0d 0a 7d 0d 0a 64 69 76 2e 6d  00f6a;..}..div.m
7800: 61 69 6e 6d 65 6e 75 20 61 2c 20 64 69 76 2e 6d  ainmenu a, div.m
7810: 61 69 6e 6d 65 6e 75 20 61 3a 76 69 73 69 74 65  ainmenu a:visite
7820: 64 2c 20 64 69 76 2e 73 75 62 6d 65 6e 75 20 61  d, div.submenu a
7830: 2c 20 64 69 76 2e 73 75 62 6d 65 6e 75 20 61 3a  , div.submenu a:
7840: 76 69 73 69 74 65 64 20 7b 0d 0a 20 20 70 61 64  visited {..  pad
7850: 64 69 6e 67 3a 20 32 70 78 20 31 30 70 78 20 32  ding: 2px 10px 2
7860: 70 78 20 31 30 70 78 3b 0d 0a 20 20 63 6f 6c 6f  px 10px;..  colo
7870: 72 3a 20 23 30 30 30 66 36 61 3b 0d 0a 20 20 62  r: #000f6a;..  b
7880: 61 63 6b 67 72 6f 75 6e 64 2d 63 6f 6c 6f 72 3a  ackground-color:
7890: 20 23 65 33 65 33 65 33 3b 0d 0a 20 20 74 65 78   #e3e3e3;..  tex
78a0: 74 2d 64 65 63 6f 72 61 74 69 6f 6e 3a 20 6e 6f  t-decoration: no
78b0: 6e 65 3b 0d 0a 7d 0d 0a 64 69 76 2e 6d 61 69 6e  ne;..}..div.main
78c0: 6d 65 6e 75 20 61 3a 68 6f 76 65 72 2c 20 64 69  menu a:hover, di
78d0: 76 2e 73 75 62 6d 65 6e 75 20 61 3a 68 6f 76 65  v.submenu a:hove
78e0: 72 20 7b 0d 0a 20 20 63 6f 6c 6f 72 3a 20 23 65  r {..  color: #e
78f0: 33 65 33 65 33 3b 0d 0a 20 20 62 61 63 6b 67 72  3e3e3;..  backgr
7900: 6f 75 6e 64 2d 63 6f 6c 6f 72 3a 20 23 30 30 30  ound-color: #000
7910: 66 36 61 3b 0d 0a 7d 0d 0a 0d 0a 2f 2a 20 41 6c  f6a;..}..../* Al
7920: 6c 20 70 61 67 65 20 63 6f 6e 74 65 6e 74 20 66  l page content f
7930: 72 6f 6d 20 74 68 65 20 62 6f 74 74 6f 6d 20 6f  rom the bottom o
7940: 66 20 74 68 65 20 6d 65 6e 75 20 6f 72 20 73 75  f the menu or su
7950: 62 6d 65 6e 75 20 64 6f 77 6e 20 74 6f 0d 0a 2a  bmenu down to..*
7960: 2a 20 74 68 65 20 66 6f 6f 74 65 72 20 2a 2f 0d  * the footer */.
7970: 0a 64 69 76 2e 63 6f 6e 74 65 6e 74 20 7b 0d 0a  .div.content {..
7980: 20 20 70 61 64 64 69 6e 67 3a 20 30 65 78 20 31    padding: 0ex 1
7990: 65 78 20 30 65 78 20 32 65 78 3b 0d 0a 7d 0d 0a  ex 0ex 2ex;..}..
79a0: 0d 0a 2f 2a 20 53 6f 6d 65 20 70 61 67 65 73 20  ../* Some pages 
79b0: 68 61 76 65 20 73 65 63 74 69 6f 6e 20 64 69 76  have section div
79c0: 69 64 65 72 73 20 2a 2f 0d 0a 64 69 76 2e 73 65  iders */..div.se
79d0: 63 74 69 6f 6e 20 7b 0d 0a 20 20 6d 61 72 67 69  ction {..  margi
79e0: 6e 2d 62 6f 74 74 6f 6d 3a 20 30 70 78 3b 0d 0a  n-bottom: 0px;..
79f0: 20 20 6d 61 72 67 69 6e 2d 74 6f 70 3a 20 31 65    margin-top: 1e
7a00: 6d 3b 0d 0a 20 20 70 61 64 64 69 6e 67 3a 20 31  m;..  padding: 1
7a10: 70 78 20 31 70 78 20 31 70 78 20 31 70 78 3b 0d  px 1px 1px 1px;.
7a20: 0a 20 20 66 6f 6e 74 2d 73 69 7a 65 3a 20 31 2e  .  font-size: 1.
7a30: 32 65 6d 3b 0d 0a 20 20 66 6f 6e 74 2d 77 65 69  2em;..  font-wei
7a40: 67 68 74 3a 20 62 6f 6c 64 3b 0d 0a 20 20 62 61  ght: bold;..  ba
7a50: 63 6b 67 72 6f 75 6e 64 2d 63 6f 6c 6f 72 3a 20  ckground-color: 
7a60: 23 65 33 65 33 65 33 3b 0d 0a 20 20 63 6f 6c 6f  #e3e3e3;..  colo
7a70: 72 3a 20 23 30 30 30 66 36 61 3b 0d 0a 7d 0d 0a  r: #000f6a;..}..
7a80: 0d 0a 2f 2a 20 54 68 65 20 22 44 61 74 65 22 20  ../* The "Date" 
7a90: 74 68 61 74 20 6f 63 63 75 72 73 20 6f 6e 20 74  that occurs on t
7aa0: 68 65 20 6c 65 66 74 20 68 61 6e 64 20 73 69 64  he left hand sid
7ab0: 65 20 6f 66 20 74 69 6d 65 6c 69 6e 65 73 20 2a  e of timelines *
7ac0: 2f 0d 0a 64 69 76 2e 64 69 76 69 64 65 72 20 7b  /..div.divider {
7ad0: 0d 0a 20 20 62 61 63 6b 67 72 6f 75 6e 64 2d 63  ..  background-c
7ae0: 6f 6c 6f 72 3a 20 23 65 33 65 33 65 33 3b 0d 0a  olor: #e3e3e3;..
7af0: 20 20 63 6f 6c 6f 72 3a 20 23 30 30 30 66 36 61    color: #000f6a
7b00: 3b 0d 0a 20 20 62 6f 72 64 65 72 3a 20 31 70 78  ;..  border: 1px
7b10: 20 23 62 62 62 62 66 66 20 73 6f 6c 69 64 3b 0d   #bbbbff solid;.
7b20: 0a 20 20 66 6f 6e 74 2d 73 69 7a 65 3a 20 31 65  .  font-size: 1e
7b30: 6d 3b 20 66 6f 6e 74 2d 77 65 69 67 68 74 3a 20  m; font-weight: 
7b40: 6e 6f 72 6d 61 6c 3b 0d 0a 20 20 70 61 64 64 69  normal;..  paddi
7b50: 6e 67 3a 20 2e 32 35 65 6d 3b 0d 0a 20 20 6d 61  ng: .25em;..  ma
7b60: 72 67 69 6e 3a 20 2e 32 65 6d 20 30 20 2e 32 65  rgin: .2em 0 .2e
7b70: 6d 20 30 3b 0d 0a 20 20 66 6c 6f 61 74 3a 20 6c  m 0;..  float: l
7b80: 65 66 74 3b 0d 0a 20 20 63 6c 65 61 72 3a 20 6c  eft;..  clear: l
7b90: 65 66 74 3b 0d 0a 7d 0d 0a 0d 0a 2f 2a 20 54 68  eft;..}..../* Th
7ba0: 65 20 66 6f 6f 74 65 72 20 61 74 20 74 68 65 20  e footer at the 
7bb0: 76 65 72 79 20 62 6f 74 74 6f 6d 20 6f 66 20 74  very bottom of t
7bc0: 68 65 20 70 61 67 65 20 2a 2f 0d 0a 64 69 76 2e  he page */..div.
7bd0: 66 6f 6f 74 65 72 20 7b 0d 0a 20 20 66 6f 6e 74  footer {..  font
7be0: 2d 73 69 7a 65 3a 20 30 2e 38 65 6d 3b 0d 0a 20  -size: 0.8em;.. 
7bf0: 20 70 61 64 64 69 6e 67 3a 20 32 70 78 20 35 70   padding: 2px 5p
7c00: 78 20 32 70 78 20 35 70 78 3b 0d 0a 20 20 74 65  x 2px 5px;..  te
7c10: 78 74 2d 61 6c 69 67 6e 3a 20 63 65 6e 74 65 72  xt-align: center
7c20: 3b 0d 0a 20 20 6c 65 74 74 65 72 2d 73 70 61 63  ;..  letter-spac
7c30: 69 6e 67 3a 20 31 70 78 3b 0d 0a 20 20 62 61 63  ing: 1px;..  bac
7c40: 6b 67 72 6f 75 6e 64 2d 63 6f 6c 6f 72 3a 20 23  kground-color: #
7c50: 65 33 65 33 65 33 3b 0d 0a 20 20 63 6f 6c 6f 72  e3e3e3;..  color
7c60: 3a 20 23 30 30 30 66 36 61 3b 0d 0a 20 20 62 6f  : #000f6a;..  bo
7c70: 72 64 65 72 3a 20 31 70 78 20 69 6e 73 65 74 20  rder: 1px inset 
7c80: 62 6c 61 63 6b 3b 0d 0a 7d 0d 0a 0d 0a 2f 2a 20  black;..}..../* 
7c90: 4d 61 6b 65 20 74 68 65 20 6c 69 6e 6b 73 20 69  Make the links i
7ca0: 6e 20 74 68 65 20 66 6f 6f 74 65 72 20 6c 65 73  n the footer les
7cb0: 73 20 75 67 6c 79 2e 2e 2e 20 2a 2f 0d 0a 64 69  s ugly... */..di
7cc0: 76 2e 66 6f 6f 74 65 72 20 61 20 7b 20 63 6f 6c  v.footer a { col
7cd0: 6f 72 3a 20 23 30 30 30 66 36 61 3b 20 7d 0d 0a  or: #000f6a; }..
7ce0: 64 69 76 2e 66 6f 6f 74 65 72 20 61 3a 6c 69 6e  div.footer a:lin
7cf0: 6b 20 7b 20 63 6f 6c 6f 72 3a 20 23 30 30 30 66  k { color: #000f
7d00: 36 61 3b 20 7d 0d 0a 64 69 76 2e 66 6f 6f 74 65  6a; }..div.foote
7d10: 72 20 61 3a 76 69 73 69 74 65 64 20 7b 20 63 6f  r a:visited { co
7d20: 6c 6f 72 3a 20 23 30 30 30 66 36 61 3b 20 7d 0d  lor: #000f6a; }.
7d30: 0a 64 69 76 2e 66 6f 6f 74 65 72 20 61 3a 68 6f  .div.footer a:ho
7d40: 76 65 72 20 7b 20 62 61 63 6b 67 72 6f 75 6e 64  ver { background
7d50: 2d 63 6f 6c 6f 72 3a 20 23 30 30 30 66 36 61 3b  -color: #000f6a;
7d60: 20 63 6f 6c 6f 72 3a 20 23 65 33 65 33 65 33 3b   color: #e3e3e3;
7d70: 20 7d 0d 0a 0d 0a 2f 2a 20 76 65 72 62 61 74 69   }..../* verbati
7d80: 6d 20 62 6c 6f 63 6b 73 20 2a 2f 0d 0a 70 72 65  m blocks */..pre
7d90: 2e 76 65 72 62 61 74 69 6d 20 7b 0d 0a 20 20 20  .verbatim {..   
7da0: 62 61 63 6b 67 72 6f 75 6e 64 2d 63 6f 6c 6f 72  background-color
7db0: 3a 20 23 66 35 66 35 66 35 3b 0d 0a 20 20 20 70  : #f5f5f5;..   p
7dc0: 61 64 64 69 6e 67 3a 20 30 2e 35 65 6d 3b 0d 0a  adding: 0.5em;..
7dd0: 7d 0d 0a 0d 0a 2f 2a 20 54 68 65 20 6c 61 62 65  }..../* The labe
7de0: 6c 2f 76 61 6c 75 65 20 70 61 69 72 73 20 6f 6e  l/value pairs on
7df0: 20 28 66 6f 72 20 65 78 61 6d 70 6c 65 29 20 74   (for example) t
7e00: 68 65 20 76 69 6e 66 6f 20 70 61 67 65 20 2a 2f  he vinfo page */
7e10: 0d 0a 74 61 62 6c 65 2e 6c 61 62 65 6c 2d 76 61  ..table.label-va
7e20: 6c 75 65 20 74 68 20 7b 0d 0a 20 20 76 65 72 74  lue th {..  vert
7e30: 69 63 61 6c 2d 61 6c 69 67 6e 3a 20 74 6f 70 3b  ical-align: top;
7e40: 0d 0a 20 20 74 65 78 74 2d 61 6c 69 67 6e 3a 20  ..  text-align: 
7e50: 72 69 67 68 74 3b 0d 0a 20 20 70 61 64 64 69 6e  right;..  paddin
7e60: 67 3a 20 30 2e 32 65 78 20 32 65 78 3b 0d 0a 7d  g: 0.2ex 2ex;..}
7e70: 0d 0a 0d 0a 2f 2a 20 46 6f 72 20 6d 61 72 6b 69  ..../* For marki
7e80: 6e 67 20 69 6d 70 6f 72 74 61 6e 74 20 55 49 20  ng important UI 
7e90: 65 6c 65 6d 65 6e 74 73 20 77 68 69 63 68 20 73  elements which s
7ea0: 68 6f 75 6c 64 6e 27 74 20 62 65 0d 0a 20 20 20  houldn't be..   
7eb0: 6c 69 67 68 74 6c 79 20 64 69 73 6d 69 73 73 65  lightly dismisse
7ec0: 64 2e 20 49 20 6d 61 69 6e 6c 79 20 75 73 65 20  d. I mainly use 
7ed0: 69 74 20 74 6f 20 6d 61 72 6b 20 22 6e 6f 74 20  it to mark "not 
7ee0: 79 65 74 0d 0a 20 20 20 69 6d 70 6c 65 6d 65 6e  yet..   implemen
7ef0: 74 65 64 22 20 70 61 72 74 73 20 6f 66 20 61 20  ted" parts of a 
7f00: 70 61 67 65 2e 20 57 68 65 74 68 65 72 20 6f 72  page. Whether or
7f10: 20 6e 6f 74 20 74 6f 20 68 61 76 65 0d 0a 20 20   not to have..  
7f20: 20 61 20 27 62 6f 72 64 65 72 27 20 61 74 74 72   a 'border' attr
7f30: 69 62 75 74 65 20 73 65 74 20 69 73 20 61 72 67  ibute set is arg
7f40: 75 61 62 6c 65 2e 20 2a 2f 0d 0a 2e 61 63 68 74  uable. */...acht
7f50: 75 6e 67 20 7b 0d 0a 20 20 63 6f 6c 6f 72 3a 20  ung {..  color: 
7f60: 23 66 66 30 30 30 30 3b 0d 0a 20 20 62 61 63 6b  #ff0000;..  back
7f70: 67 72 6f 75 6e 64 3a 20 23 66 66 66 66 30 30 3b  ground: #ffff00;
7f80: 0d 0a 20 20 62 6f 72 64 65 72 3a 20 31 70 78 20  ..  border: 1px 
7f90: 73 6f 6c 69 64 20 23 66 66 30 30 30 30 3b 0d 0a  solid #ff0000;..
7fa0: 7d 0d 0a 0d 0a 74 61 62 6c 65 2e 66 6f 73 73 69  }....table.fossi
7fb0: 6c 5f 64 62 5f 67 65 6e 65 72 69 63 5f 71 75 65  l_db_generic_que
7fc0: 72 79 5f 76 69 65 77 20 7b 0d 0a 20 20 62 6f 72  ry_view {..  bor
7fd0: 64 65 72 2d 73 70 61 63 69 6e 67 3a 20 30 70 78  der-spacing: 0px
7fe0: 3b 0d 0a 20 20 62 6f 72 64 65 72 3a 20 31 70 78  ;..  border: 1px
7ff0: 20 73 6f 6c 69 64 20 62 6c 61 63 6b 3b 0d 0a 7d   solid black;..}
8000: 0d 0a 74 61 62 6c 65 2e 66 6f 73 73 69 6c 5f 64  ..table.fossil_d
8010: 62 5f 67 65 6e 65 72 69 63 5f 71 75 65 72 79 5f  b_generic_query_
8020: 76 69 65 77 20 74 64 20 7b 0d 0a 20 20 70 61 64  view td {..  pad
8030: 64 69 6e 67 3a 20 32 70 78 20 31 65 6d 20 32 70  ding: 2px 1em 2p
8040: 78 20 31 65 6d 3b 0d 0a 7d 0d 0a 74 61 62 6c 65  x 1em;..}..table
8050: 2e 66 6f 73 73 69 6c 5f 64 62 5f 67 65 6e 65 72  .fossil_db_gener
8060: 69 63 5f 71 75 65 72 79 5f 76 69 65 77 20 74 72  ic_query_view tr
8070: 20 7b 0d 0a 7d 0d 0a 74 61 62 6c 65 2e 66 6f 73   {..}..table.fos
8080: 73 69 6c 5f 64 62 5f 67 65 6e 65 72 69 63 5f 71  sil_db_generic_q
8090: 75 65 72 79 5f 76 69 65 77 20 74 72 2e 65 76 65  uery_view tr.eve
80a0: 6e 20 7b 0d 0a 20 20 62 61 63 6b 67 72 6f 75 6e  n {..  backgroun
80b0: 64 3a 20 23 66 66 66 66 66 66 3b 0d 0a 7d 0d 0a  d: #ffffff;..}..
80c0: 74 61 62 6c 65 2e 66 6f 73 73 69 6c 5f 64 62 5f  table.fossil_db_
80d0: 67 65 6e 65 72 69 63 5f 71 75 65 72 79 5f 76 69  generic_query_vi
80e0: 65 77 20 74 72 2e 6f 64 64 20 7b 0d 0a 20 20 62  ew tr.odd {..  b
80f0: 61 63 6b 67 72 6f 75 6e 64 3a 20 23 65 35 65 35  ackground: #e5e5
8100: 65 35 3b 0d 0a 7d 0d 0a 74 61 62 6c 65 2e 66 6f  e5;..}..table.fo
8110: 73 73 69 6c 5f 64 62 5f 67 65 6e 65 72 69 63 5f  ssil_db_generic_
8120: 71 75 65 72 79 5f 76 69 65 77 20 74 72 2e 68 65  query_view tr.he
8130: 61 64 65 72 20 7b 0d 0a 20 20 62 61 63 6b 67 72  ader {..  backgr
8140: 6f 75 6e 64 3a 20 23 35 35 38 31 39 35 3b 0d 0a  ound: #558195;..
8150: 20 20 66 6f 6e 74 2d 73 69 7a 65 3a 20 31 2e 35    font-size: 1.5
8160: 65 6d 3b 0d 0a 20 20 63 6f 6c 6f 72 3a 20 23 66  em;..  color: #f
8170: 66 66 66 66 66 3b 0d 0a 7d 0d 0a 3c 2f 70 72 65  fffff;..}..</pre
8180: 3e 0d 0a 3c 2f 6e 6f 77 69 6b 69 3e 0d 0a 3c 68  >..</nowiki>..<h
8190: 32 3e 3c 61 20 6e 61 6d 65 3d 22 73 6f 75 72 63  2><a name="sourc
81a0: 65 2d 68 69 6c 69 67 68 74 22 3e 53 6f 75 72 63  e-hilight">Sourc
81b0: 65 20 68 69 67 68 6c 69 67 68 74 69 6e 67 3c 2f  e highlighting</
81c0: 61 3e 3c 2f 68 32 3e 0d 0a 3c 68 33 3e 4d 6f 74  a></h2>..<h3>Mot
81d0: 69 76 61 74 69 6f 6e 3c 2f 68 33 3e 0d 0a 20 20  ivation</h3>..  
81e0: 2a 20 20 59 6f 75 20 77 61 6e 74 20 74 6f 20 68  *  You want to h
81f0: 61 76 65 20 73 6f 75 72 63 65 20 63 6f 64 65 20  ave source code 
8200: 68 69 67 68 6c 69 67 68 74 69 6e 67 20 66 6f 72  highlighting for
8210: 20 74 68 65 20 66 69 6c 65 73 20 69 6e 20 79 6f   the files in yo
8220: 75 72 20 72 65 70 6f 73 69 74 6f 72 79 0d 0a 0d  ur repository...
8230: 0a 3c 68 33 3e 50 72 6f 62 6c 65 6d 3c 2f 68 33  .<h3>Problem</h3
8240: 3e 0d 0a 54 68 65 20 6d 61 69 6e 20 70 75 72 70  >..The main purp
8250: 6f 73 65 20 6f 66 20 46 6f 73 73 69 6c 20 69 73  ose of Fossil is
8260: 20 74 6f 20 64 6f 20 76 65 72 73 69 6f 6e 69 6e   to do versionin
8270: 67 20 74 68 65 20 73 6f 75 72 63 65 20 63 6f 64  g the source cod
8280: 65 2e 20 41 6c 74 68 6f 75 67 68 20 69 74 20 70  e. Although it p
8290: 72 6f 76 69 64 65 73 20 61 20 73 74 61 6e 64 61  rovides a standa
82a0: 6c 6f 6e 65 20 73 65 72 76 65 72 20 61 6e 64 20  lone server and 
82b0: 6c 65 74 73 20 79 6f 75 20 6e 61 76 69 67 61 74  lets you navigat
82c0: 65 20 74 68 72 6f 75 67 68 20 74 68 65 20 72 65  e through the re
82d0: 70 6f 73 69 74 6f 72 79 20 66 69 6c 65 73 20 61  pository files a
82e0: 64 64 69 74 69 6f 6e 61 6c 20 66 65 61 74 75 72  dditional featur
82f0: 65 73 20 6c 69 6b 65 20 73 6f 75 72 63 65 20 63  es like source c
8300: 6f 64 65 20 68 69 67 68 6c 69 67 68 74 69 6e 67  ode highlighting
8310: 20 66 72 6f 6d 20 6d 79 20 70 65 72 73 70 65 63   from my perspec
8320: 74 69 76 65 20 28 49 20 61 6d 20 6e 6f 74 20 61  tive (I am not a
8330: 20 64 65 76 65 6c 6f 70 65 72 20 6f 66 20 46 6f   developer of Fo
8340: 73 73 69 6c 29 20 69 73 20 6f 75 74 20 6f 66 20  ssil) is out of 
8350: 73 63 6f 70 65 20 66 6f 72 20 61 6e 20 53 43 4d  scope for an SCM
8360: 2e 20 4a 75 73 74 20 6b 65 65 70 20 74 68 65 20  . Just keep the 
8370: 55 6e 69 78 20 70 72 69 6e 63 69 70 6c 65 3a 20  Unix principle: 
8380: 73 6d 61 6c 6c 20 6c 69 74 74 6c 65 20 70 72 6f  small little pro
8390: 67 72 61 6d 73 20 74 68 61 74 20 64 6f 20 74 68  grams that do th
83a0: 65 69 72 20 74 61 73 6b 20 61 6e 64 20 64 6f 20  eir task and do 
83b0: 69 74 20 77 65 6c 6c 2e 0d 0a 0d 0a 48 6f 77 65  it well.....Howe
83c0: 76 65 72 20 74 6f 20 68 61 76 65 20 61 20 73 6f  ver to have a so
83d0: 75 72 63 65 20 63 6f 64 65 20 68 69 67 68 6c 69  urce code highli
83e0: 67 68 74 69 6e 67 20 69 6e 20 74 68 65 20 70 72  ghting in the pr
83f0: 65 73 65 6e 74 65 64 20 77 65 62 20 70 61 67 65  esented web page
8400: 73 20 77 6f 75 6c 64 20 73 74 69 6c 6c 20 62 65  s would still be
8410: 20 64 65 73 69 72 61 62 6c 65 2e 0d 0a 0d 0a 3c   desirable.....<
8420: 68 33 3e 53 6f 6c 75 74 69 6f 6e 3c 2f 68 33 3e  h3>Solution</h3>
8430: 0d 0a 54 68 65 72 65 20 61 72 65 20 74 77 6f 20  ..There are two 
8440: 73 63 65 6e 61 72 69 6f 73 20 68 6f 77 20 74 6f  scenarios how to
8450: 20 69 6d 70 6c 65 6d 65 6e 74 20 73 75 63 68 20   implement such 
8460: 61 20 66 65 61 74 75 72 65 3a 0d 0a 20 20 20 2a  a feature:..   *
8470: 20 20 46 6f 73 73 69 6c 20 70 69 70 65 73 20 74    Fossil pipes t
8480: 68 65 20 73 6f 75 72 63 65 20 63 6f 64 65 20 74  he source code t
8490: 68 72 6f 75 67 68 20 61 20 66 69 6c 74 65 72 20  hrough a filter 
84a0: 62 65 66 6f 72 65 20 73 65 6e 64 69 6e 67 20 69  before sending i
84b0: 74 20 74 6f 20 74 68 65 20 62 72 6f 77 73 65 72  t to the browser
84c0: 2e 20 54 68 65 20 66 69 6c 74 65 72 20 63 6f 75  . The filter cou
84d0: 6c 64 20 62 65 20 64 65 66 69 6e 65 64 20 61 73  ld be defined as
84e0: 20 61 20 63 6f 6e 66 69 67 75 72 61 74 69 6f 6e   a configuration
84f0: 20 6f 70 74 69 6f 6e 20 74 6f 20 46 6f 73 73 69   option to Fossi
8500: 6c 2e 20 4f 6e 65 20 73 6f 6c 75 74 69 6f 6e 20  l. One solution 
8510: 66 6f 72 20 74 68 69 73 20 6d 69 67 68 74 20 62  for this might b
8520: 65 20 74 68 65 20 3c 61 20 68 72 65 66 3d 22 68  e the <a href="h
8530: 74 74 70 3a 2f 2f 77 77 77 2e 67 6e 75 2e 6f 72  ttp://www.gnu.or
8540: 67 2f 73 6f 66 74 77 61 72 65 2f 73 72 63 2d 68  g/software/src-h
8550: 69 67 68 6c 69 74 65 22 3e 47 4e 55 20 53 6f 75  ighlite">GNU Sou
8560: 72 63 65 20 63 6f 64 65 20 48 69 67 68 6c 69 67  rce code Highlig
8570: 68 74 69 6e 67 3c 2f 61 3e 20 70 72 6f 67 72 61  hting</a> progra
8580: 6d 2e 0d 0a 20 20 20 2a 20 20 55 73 65 20 61 20  m...   *  Use a 
8590: 4a 61 76 61 73 63 72 69 70 74 20 6c 69 62 72 61  Javascript libra
85a0: 72 79 20 74 68 61 74 20 72 65 6e 64 65 72 73 20  ry that renders 
85b0: 74 68 65 20 63 6f 64 65 20 77 69 74 68 69 6e 20  the code within 
85c0: 79 6f 75 72 20 62 72 6f 77 73 65 72 2e 20 4f 6e  your browser. On
85d0: 65 20 73 6f 6c 75 74 69 6f 6e 20 66 6f 72 20 74  e solution for t
85e0: 68 69 73 20 6d 69 67 68 74 20 62 65 20 3c 61 20  his might be <a 
85f0: 68 72 65 66 3d 22 68 74 74 70 3a 2f 2f 63 6f 64  href="http://cod
8600: 65 2e 67 6f 6f 67 6c 65 2e 63 6f 6d 2f 70 2f 73  e.google.com/p/s
8610: 79 6e 74 61 78 68 69 67 68 6c 69 67 68 74 65 72  yntaxhighlighter
8620: 22 3e 47 6f 6f 67 6c 65 20 53 79 6e 74 61 78 20  ">Google Syntax 
8630: 48 69 67 68 6c 69 67 68 74 65 72 3c 2f 61 3e 0d  Highlighter</a>.
8640: 0a 0d 0a 49 20 65 73 74 69 6d 61 74 65 20 74 68  ...I estimate th
8650: 61 74 20 74 68 65 20 3c 69 3e 70 69 70 65 3c 2f  at the <i>pipe</
8660: 69 3e 20 73 6f 6c 75 74 69 6f 6e 20 6e 65 65 64  i> solution need
8670: 73 20 73 6f 6d 65 20 6d 6f 72 65 20 77 6f 72 6b  s some more work
8680: 2f 20 63 6f 64 65 20 63 68 61 6e 67 65 73 2e 20  / code changes. 
8690: 54 68 75 73 20 49 20 61 6d 20 73 6f 6c 65 6c 79  Thus I am solely
86a0: 20 6c 6f 6f 6b 69 6e 67 20 61 74 20 74 68 65 20   looking at the 
86b0: 4a 61 76 61 73 63 72 69 70 74 20 73 6f 6c 75 74  Javascript solut
86c0: 69 6f 6e 2e 0d 0a 0d 0a 54 68 65 20 53 79 6e 74  ion.....The Synt
86d0: 61 78 48 69 67 68 6c 69 67 68 74 65 72 20 69 73  axHighlighter is
86e0: 20 61 20 6c 69 62 72 61 72 79 20 6f 66 20 73 6f   a library of so
86f0: 6d 65 20 4a 61 76 61 73 63 72 69 70 74 20 66 69  me Javascript fi
8700: 6c 65 73 2c 20 61 20 6c 69 74 74 6c 65 20 46 6c  les, a little Fl
8710: 61 73 68 20 61 70 70 6c 69 63 61 74 69 6f 6e 20  ash application 
8720: 61 6e 64 20 61 20 43 53 53 20 66 69 6c 65 2e 20  and a CSS file. 
8730: 54 68 65 20 46 6c 61 73 68 20 61 70 70 6c 69 63  The Flash applic
8740: 61 74 69 6f 6e 20 69 73 20 66 6f 72 20 63 6f 70  ation is for cop
8750: 79 69 6e 67 20 74 6f 20 63 6c 69 70 62 6f 61 72  ying to clipboar
8760: 64 2c 20 70 72 69 6e 74 20 61 6e 64 20 76 69 65  d, print and vie
8770: 77 20 73 6f 75 72 63 65 2e 20 59 6f 75 20 68 61  w source. You ha
8780: 76 65 20 74 68 65 20 6f 70 74 69 6f 6e 20 74 6f  ve the option to
8790: 20 69 6e 63 6c 75 64 65 20 61 6c 6c 20 74 68 65   include all the
87a0: 20 66 69 6c 65 73 20 69 6e 74 6f 20 79 6f 75 72   files into your
87b0: 20 72 65 70 6f 73 69 74 6f 72 79 20 6f 72 20 75   repository or u
87c0: 73 65 20 74 68 65 20 66 69 6c 65 73 20 68 6f 73  se the files hos
87d0: 74 65 64 20 61 74 20 47 6f 6f 67 6c 65 2e 20 54  ted at Google. T
87e0: 68 65 20 6c 61 74 74 65 72 20 6d 61 79 20 6f 6e  he latter may on
87f0: 6c 79 20 62 65 20 61 6e 20 6f 70 74 69 6f 6e 20  ly be an option 
8800: 69 66 20 79 6f 75 20 61 72 65 20 63 6f 6e 6e 65  if you are conne
8810: 63 74 65 64 20 74 6f 20 69 6e 74 65 72 6e 65 74  cted to internet
8820: 20 61 6c 6c 20 74 68 65 20 74 69 6d 65 2e 0d 0a   all the time...
8830: 0d 0a 46 6f 72 20 73 79 6e 74 61 78 20 68 69 67  ..For syntax hig
8840: 68 6c 69 67 68 74 69 6e 67 20 74 6f 20 77 6f 72  hlighting to wor
8850: 6b 20 74 68 65 20 48 65 61 64 65 72 20 61 6e 64  k the Header and
8860: 20 46 6f 6f 74 65 72 20 74 65 6d 70 6c 61 74 65   Footer template
8870: 73 20 6e 65 65 64 20 74 6f 20 62 65 20 6d 6f 64  s need to be mod
8880: 69 66 69 65 64 20 61 6e 64 20 61 20 6c 69 74 74  ified and a litt
8890: 6c 65 20 63 6f 64 65 20 63 68 61 6e 67 65 20 68  le code change h
88a0: 61 73 20 74 6f 20 62 65 20 61 70 70 6c 69 65 64  as to be applied
88b0: 20 74 6f 20 74 68 65 20 46 6f 73 73 69 6c 20 73   to the Fossil s
88c0: 6f 75 72 63 65 73 2e 0d 0a 54 68 65 20 65 78 61  ources...The exa
88d0: 6d 70 6c 65 73 20 62 65 6c 6f 77 20 61 73 73 75  mples below assu
88e0: 6d 65 20 79 6f 75 20 68 61 76 65 20 61 64 64 65  me you have adde
88f0: 64 20 74 68 65 20 73 79 6e 74 61 78 20 68 69 67  d the syntax hig
8900: 68 6c 69 67 68 74 69 6e 67 20 6c 69 62 72 61 72  hlighting librar
8910: 79 20 74 6f 20 79 6f 75 72 20 72 65 70 6f 73 69  y to your reposi
8920: 74 6f 72 79 20 69 6e 74 6f 20 61 20 64 69 72 65  tory into a dire
8930: 63 74 6f 72 79 20 77 77 77 2f 73 63 72 69 70 74  ctory www/script
8940: 73 2e 0d 0a 3c 70 3e 0d 0a 3c 62 3e 48 65 61 64  s...<p>..<b>Head
8950: 65 72 3c 2f 62 3e 0d 0a 3c 70 72 65 3e 0d 0a 26  er</b>..<pre>..&
8960: 6c 74 3b 68 74 6d 6c 26 67 74 3b 0d 0a 20 26 6c  lt;html&gt;.. &l
8970: 74 3b 68 65 61 64 26 67 74 3b 0d 0a 20 26 6c 74  t;head&gt;.. &lt
8980: 3b 74 69 74 6c 65 26 67 74 3b 24 26 6c 74 3b 70  ;title&gt;$&lt;p
8990: 72 6f 6a 65 63 74 5f 6e 61 6d 65 26 67 74 3b 3a  roject_name&gt;:
89a0: 20 24 26 6c 74 3b 74 69 74 6c 65 26 67 74 3b 26   $&lt;title&gt;&
89b0: 6c 74 3b 2f 74 69 74 6c 65 26 67 74 3b 0d 0a 20  lt;/title&gt;.. 
89c0: 26 6c 74 3b 6c 69 6e 6b 20 72 65 6c 3d 22 61 6c  &lt;link rel="al
89d0: 74 65 72 6e 61 74 65 22 20 74 79 70 65 3d 22 61  ternate" type="a
89e0: 70 70 6c 69 63 61 74 69 6f 6e 2f 72 73 73 2b 78  pplication/rss+x
89f0: 6d 6c 22 20 74 69 74 6c 65 3d 22 52 53 53 20 46  ml" title="RSS F
8a00: 65 65 64 22 0d 0a 20 20 20 20 20 20 20 68 72 65  eed"..       hre
8a10: 66 3d 22 24 62 61 73 65 75 72 6c 2f 74 69 6d 65  f="$baseurl/time
8a20: 6c 69 6e 65 2e 72 73 73 22 26 67 74 3b 0d 0a 20  line.rss"&gt;.. 
8a30: 26 6c 74 3b 6c 69 6e 6b 20 72 65 6c 3d 22 73 74  &lt;link rel="st
8a40: 79 6c 65 73 68 65 65 74 22 20 68 72 65 66 3d 22  ylesheet" href="
8a50: 24 62 61 73 65 75 72 6c 2f 73 74 79 6c 65 2e 63  $baseurl/style.c
8a60: 73 73 22 20 74 79 70 65 3d 22 74 65 78 74 2f 63  ss" type="text/c
8a70: 73 73 22 0d 0a 20 20 20 20 20 20 20 6d 65 64 69  ss"..       medi
8a80: 61 3d 22 73 63 72 65 65 6e 22 26 67 74 3b 0d 0a  a="screen"&gt;..
8a90: 20 26 6c 74 3b 6c 69 6e 6b 20 72 65 6c 3d 22 73   &lt;link rel="s
8aa0: 74 79 6c 65 73 68 65 65 74 22 20 68 72 65 66 3d  tylesheet" href=
8ab0: 22 24 62 61 73 65 75 72 6c 2f 64 6f 63 2f 74 69  "$baseurl/doc/ti
8ac0: 70 2f 77 77 77 2f 53 79 6e 74 61 78 48 69 67 68  p/www/SyntaxHigh
8ad0: 6c 69 67 68 74 65 72 2e 63 73 73 22 20 74 79 70  lighter.css" typ
8ae0: 65 3d 22 74 65 78 74 2f 63 73 73 22 0d 0a 20 20  e="text/css"..  
8af0: 20 20 20 20 20 6d 65 64 69 61 3d 22 73 63 72 65       media="scre
8b00: 65 6e 22 26 67 74 3b 0d 0a 20 26 6c 74 3b 2f 68  en"&gt;.. &lt;/h
8b10: 65 61 64 26 67 74 3b 0d 0a 0d 0a 2e 20 2e 20 2e  ead&gt;..... . .
8b20: 0d 0a 3c 2f 70 72 65 3e 0d 0a 3c 2f 70 3e 3c 70  ..</pre>..</p><p
8b30: 3e 0d 0a 3c 62 3e 46 6f 6f 74 65 72 3c 2f 62 3e  >..<b>Footer</b>
8b40: 0d 0a 3c 70 72 65 3e 0d 0a 26 6c 74 3b 2f 64 69  ..<pre>..&lt;/di
8b50: 76 26 67 74 3b 0d 0a 26 6c 74 3b 64 69 76 20 63  v&gt;..&lt;div c
8b60: 6c 61 73 73 3d 22 66 6f 6f 74 65 72 22 26 67 74  lass="footer"&gt
8b70: 3b 0d 0a 46 6f 73 73 69 6c 20 76 65 72 73 69 6f  ;..Fossil versio
8b80: 6e 20 24 6d 61 6e 69 66 65 73 74 5f 76 65 72 73  n $manifest_vers
8b90: 69 6f 6e 20 24 6d 61 6e 69 66 65 73 74 5f 64 61  ion $manifest_da
8ba0: 74 65 0d 0a 26 6c 74 3b 2f 64 69 76 26 67 74 3b  te..&lt;/div&gt;
8bb0: 0d 0a 26 6c 74 3b 73 63 72 69 70 74 20 6c 61 6e  ..&lt;script lan
8bc0: 67 75 61 67 65 3d 22 6a 61 76 61 73 63 72 69 70  guage="javascrip
8bd0: 74 22 20 73 72 63 3d 22 24 62 61 73 65 75 72 6c  t" src="$baseurl
8be0: 2f 64 6f 63 2f 74 69 70 2f 77 77 77 2f 73 63 72  /doc/tip/www/scr
8bf0: 69 70 74 73 2f 73 68 43 6f 72 65 2e 6a 73 22 26  ipts/shCore.js"&
8c00: 67 74 3b 26 6c 74 3b 2f 73 63 72 69 70 74 26 67  gt;&lt;/script&g
8c10: 74 3b 0d 0a 26 6c 74 3b 73 63 72 69 70 74 20 6c  t;..&lt;script l
8c20: 61 6e 67 75 61 67 65 3d 22 6a 61 76 61 73 63 72  anguage="javascr
8c30: 69 70 74 22 20 73 72 63 3d 22 24 62 61 73 65 75  ipt" src="$baseu
8c40: 72 6c 2f 64 6f 63 2f 74 69 70 2f 77 77 77 2f 73  rl/doc/tip/www/s
8c50: 63 72 69 70 74 73 2f 73 68 42 72 75 73 68 43 70  cripts/shBrushCp
8c60: 70 2e 6a 73 22 26 67 74 3b 26 6c 74 3b 2f 73 63  p.js"&gt;&lt;/sc
8c70: 72 69 70 74 26 67 74 3b 0d 0a 26 6c 74 3b 73 63  ript&gt;..&lt;sc
8c80: 72 69 70 74 20 6c 61 6e 67 75 61 67 65 3d 22 6a  ript language="j
8c90: 61 76 61 73 63 72 69 70 74 22 26 67 74 3b 0d 0a  avascript"&gt;..
8ca0: 64 70 2e 53 79 6e 74 61 78 48 69 67 68 6c 69 67  dp.SyntaxHighlig
8cb0: 68 74 65 72 2e 43 6c 69 70 62 6f 61 72 64 53 77  hter.ClipboardSw
8cc0: 66 20 3d 20 27 24 62 61 73 65 75 72 6c 2f 64 6f  f = '$baseurl/do
8cd0: 63 2f 74 69 70 2f 77 77 77 2f 73 63 72 69 70 74  c/tip/www/script
8ce0: 73 2f 63 6c 69 70 62 6f 61 72 64 2e 73 77 66 27  s/clipboard.swf'
8cf0: 3b 0d 0a 64 70 2e 53 79 6e 74 61 78 48 69 67 68  ;..dp.SyntaxHigh
8d00: 6c 69 67 68 74 65 72 2e 48 69 67 68 6c 69 67 68  lighter.Highligh
8d10: 74 41 6c 6c 28 27 63 6f 64 65 27 29 3b 0d 0a 26  tAll('code');..&
8d20: 6c 74 3b 2f 73 63 72 69 70 74 26 67 74 3b 0d 0a  lt;/script&gt;..
8d30: 26 6c 74 3b 2f 62 6f 64 79 26 67 74 3b 26 6c 74  &lt;/body&gt;&lt
8d40: 3b 2f 68 74 6d 6c 26 67 74 3b 0d 0a 3c 2f 70 72  ;/html&gt;..</pr
8d50: 65 3e 0d 0a 3c 2f 70 3e 3c 70 3e 0d 0a 3c 62 3e  e>..</p><p>..<b>
8d60: 46 6f 73 73 69 6c 2f 73 72 63 2f 69 6e 66 6f 2e  Fossil/src/info.
8d70: 63 3c 2f 62 3e 20 66 75 6e 63 74 69 6f 6e 20 61  c</b> function a
8d80: 72 74 69 66 61 63 74 5f 70 61 67 65 0d 0a 3c 70  rtifact_page..<p
8d90: 72 65 3e 0d 0a 69 66 28 20 7a 4d 69 6d 65 3d 3d  re>..if( zMime==
8da0: 30 20 29 7b 0d 0a 20 20 20 20 40 20 26 6c 74 3b  0 ){..    @ &lt;
8db0: 70 72 65 20 6e 61 6d 65 3d 22 63 6f 64 65 22 20  pre name="code" 
8dc0: 63 6c 61 73 73 3d 22 63 22 26 67 74 3b 0d 0a 20  class="c"&gt;.. 
8dd0: 20 20 20 40 20 25 68 28 62 6c 6f 62 5f 73 74 72     @ %h(blob_str
8de0: 28 26 63 6f 6e 74 65 6e 74 29 29 0d 0a 20 20 20  (&content))..   
8df0: 20 40 20 26 6c 74 3b 2f 70 72 65 26 67 74 3b 0d   @ &lt;/pre&gt;.
8e00: 0a 3c 2f 70 72 65 3e 0d 0a 3c 2f 70 3e 0d 0a 3c  .</pre>..</p>..<
8e10: 68 33 3e 44 69 73 63 75 73 73 69 6f 6e 3c 2f 68  h3>Discussion</h
8e20: 33 3e 0d 0a 54 68 65 20 4a 61 76 61 73 63 72 69  3>..The Javascri
8e30: 70 74 20 73 6f 6c 75 74 69 6f 6e 20 72 65 71 75  pt solution requ
8e40: 69 72 65 73 20 61 20 6d 69 6e 69 6d 75 6d 20 74  ires a minimum t
8e50: 6f 20 62 65 20 66 75 6c 6c 79 20 73 75 70 70 6f  o be fully suppo
8e60: 72 74 65 64 20 62 79 20 46 6f 73 73 69 6c 2e 20  rted by Fossil. 
8e70: 4f 66 20 63 6f 75 72 73 65 20 6d 79 20 6c 69 74  Of course my lit
8e80: 74 65 20 63 68 61 6e 67 65 20 6f 6e 6c 79 20 61  te change only a
8e90: 70 70 6c 69 65 73 20 66 6f 72 20 43 2f 43 2b 2b  pplies for C/C++
8ea0: 20 66 69 6c 65 73 2e 20 42 75 74 20 6f 6e 6c 79   files. But only
8eb0: 20 6c 69 74 74 6c 65 20 6d 6f 72 65 20 77 6f 72   little more wor
8ec0: 6b 20 6e 65 65 64 73 20 74 6f 20 62 65 20 64 6f  k needs to be do
8ed0: 6e 65 20 74 6f 20 67 65 74 20 74 68 65 20 65 78  ne to get the ex
8ee0: 74 65 6e 73 69 6f 6e 20 6f 66 20 74 68 65 20 66  tension of the f
8ef0: 69 6c 65 20 61 20 67 75 65 73 73 20 74 68 65 20  ile a guess the 
8f00: 66 69 6c 65 20 74 79 70 65 2e 0d 0a 0d 0a 54 68  file type.....Th
8f10: 65 20 70 69 70 65 20 73 6f 6c 75 74 69 6f 6e 20  e pipe solution 
8f20: 77 6f 75 6c 64 20 61 6c 73 6f 20 62 65 20 6e 69  would also be ni
8f30: 63 65 20 62 75 74 20 77 6f 75 6c 64 20 70 72 6f  ce but would pro
8f40: 62 61 62 6c 79 20 6e 65 65 64 20 73 6f 6d 65 20  bably need some 
8f50: 6d 6f 72 65 20 77 6f 72 6b 20 74 68 61 6e 20 74  more work than t
8f60: 68 69 73 20 6c 69 74 74 6c 65 20 70 61 74 63 68  his little patch
8f70: 2e 0d 0a 0d 0a 3c 68 33 3e 20 3c 61 20 6e 61 6d  .....<h3> <a nam
8f80: 65 3d 22 77 69 6e 33 32 64 65 76 22 3e 48 6f 77  e="win32dev">How
8f90: 20 74 6f 20 70 72 65 70 61 72 65 20 79 6f 75 72   to prepare your
8fa0: 20 57 69 6e 64 6f 77 73 20 58 50 20 46 6f 73 73   Windows XP Foss
8fb0: 69 6c 20 64 65 76 65 6c 6f 70 6d 65 6e 74 20 45  il development E
8fc0: 6e 76 69 72 6f 6e 6d 65 6e 74 3c 2f 68 33 3e 0d  nvironment</h3>.
8fd0: 0a 3c 68 34 3e 4d 69 6e 47 57 2b 4e 53 49 53 2f  .<h4>MinGW+NSIS/
8fe0: 57 69 58 3c 2f 68 34 3e 0d 0a 3c 68 35 3e 53 65  WiX</h4>..<h5>Se
8ff0: 74 75 70 20 54 43 4c 3c 2f 68 35 3e 0d 0a 3c 68  tup TCL</h5>..<h
9000: 35 3e 53 65 74 75 70 20 4d 69 6e 47 57 3c 2f 68  5>Setup MinGW</h
9010: 35 3e 0d 0a 3c 68 35 3e 47 65 74 74 69 6e 67 20  5>..<h5>Getting 
9020: 4e 53 49 53 20 57 69 6e 64 6f 77 73 20 70 61 63  NSIS Windows pac
9030: 6b 61 67 69 6e 67 20 74 6f 6f 6c 20 3c 2f 68 35  kaging tool </h5
9040: 3e 0d 0a 3c 68 35 3e 47 65 74 74 69 6e 67 20 46  >..<h5>Getting F
9050: 6f 73 73 69 6c 20 73 6f 75 72 63 65 20 63 6f 64  ossil source cod
9060: 65 3c 2f 68 35 3e 0d 0a 3c 68 35 3e 42 75 69 6c  e</h5>..<h5>Buil
9070: 64 20 74 68 65 20 63 6f 64 65 20 77 69 74 68 20  d the code with 
9080: 4d 61 6b 65 66 69 6c 65 2e 77 69 6e 33 32 20 3c  Makefile.win32 <
9090: 2f 68 35 3e 0d 0a 0d 0a 3c 68 34 3e 56 69 73 75  /h5>....<h4>Visu
90a0: 61 6c 20 53 74 75 64 69 6f 20 45 78 70 72 65 73  al Studio Expres
90b0: 73 20 32 30 30 38 2b 57 69 58 3c 2f 68 34 3e 0d  s 2008+WiX</h4>.
90c0: 0a 3c 68 35 3e 53 65 74 75 70 20 54 43 4c 3c 2f  .<h5>Setup TCL</
90d0: 68 35 3e 0d 0a 3c 68 35 3e 53 65 74 75 70 20 56  h5>..<h5>Setup V
90e0: 53 32 30 30 38 3c 2f 68 35 3e 0d 0a 3c 68 35 3e  S2008</h5>..<h5>
90f0: 47 65 74 74 69 6e 67 20 57 69 58 20 57 69 6e 64  Getting WiX Wind
9100: 6f 77 73 20 4d 53 49 20 74 6f 6f 6c 20 3c 2f 68  ows MSI tool </h
9110: 35 3e 0d 0a 3c 68 35 3e 47 65 74 74 69 6e 67 20  5>..<h5>Getting 
9120: 46 6f 73 73 69 6c 20 73 6f 75 72 63 65 20 63 6f  Fossil source co
9130: 64 65 3c 2f 68 35 3e 0d 0a 3c 68 35 3e 42 75 69  de</h5>..<h5>Bui
9140: 6c 64 20 74 68 65 20 63 6f 64 65 20 77 69 74 68  ld the code with
9150: 20 4d 61 6b 65 66 69 6c 65 2e 77 69 6e 33 32 3c   Makefile.win32<
9160: 2f 68 35 3e 0d 0a 0d 0a 3c 61 20 6e 61 6d 65 3d  /h5>....<a name=
9170: 22 77 79 73 69 77 69 67 22 3e 3c 68 32 3e 4a 61  "wysiwig"><h2>Ja
9180: 76 61 73 63 72 69 70 74 20 48 54 4d 4c 20 57 59  vascript HTML WY
9190: 53 49 57 59 47 20 65 64 69 74 6f 72 20 63 6f 6e  SIWYG editor con
91a0: 74 72 6f 6c 3c 2f 68 32 3e 3c 2f 61 3e 0d 0a 3c  trol</h2></a>..<
91b0: 68 33 3e 4d 6f 74 69 76 61 74 69 6f 6e 3c 2f 68  h3>Motivation</h
91c0: 33 3e 0d 0a 20 20 2a 20 20 59 6f 75 20 77 61 6e  3>..  *  You wan
91d0: 74 20 74 6f 20 65 64 69 74 20 74 68 65 20 77 69  t to edit the wi
91e0: 6b 69 20 70 61 67 65 73 20 77 69 74 68 20 61 20  ki pages with a 
91f0: 6e 69 63 65 20 65 64 69 74 6f 72 20 63 6f 6d 70  nice editor comp
9200: 6f 6e 65 6e 74 2c 20 69 6e 73 74 65 61 64 20 6f  onent, instead o
9210: 66 20 75 73 69 6e 67 20 70 6c 61 69 6e 20 48 54  f using plain HT
9220: 4d 4c 2e 0d 0a 0d 0a 3c 68 33 3e 50 72 6f 62 6c  ML.....<h3>Probl
9230: 65 6d 3c 2f 68 33 3e 0d 0a 46 6f 73 73 69 6c 20  em</h3>..Fossil 
9240: 62 79 20 69 74 73 65 6c 66 20 64 6f 65 73 6e 27  by itself doesn'
9250: 74 20 73 75 70 70 6f 72 74 20 69 74 2e 0d 0a 0d  t support it....
9260: 0a 3c 68 33 3e 53 6f 6c 75 74 69 6f 6e 3c 2f 68  .<h3>Solution</h
9270: 33 3e 0d 0a 54 68 65 72 65 20 61 72 65 20 70 75  3>..There are pu
9280: 72 65 20 6a 61 76 61 73 63 72 69 70 74 20 65 64  re javascript ed
9290: 69 74 6f 72 20 63 6f 6d 70 6f 6e 65 6e 74 73 20  itor components 
92a0: 74 68 61 74 20 63 61 6e 20 62 65 20 75 73 65 64  that can be used
92b0: 20 66 6f 72 20 74 68 69 73 20 74 61 73 6b 2e 0d   for this task..
92c0: 0a 54 68 65 20 73 6f 75 72 63 65 20 66 6f 72 20  .The source for 
92d0: 74 68 65 20 65 64 69 74 6f 72 20 63 6f 6d 70 6f  the editor compo
92e0: 6e 65 6e 74 20 69 73 20 61 64 64 65 64 20 74 6f  nent is added to
92f0: 20 74 68 65 20 72 65 70 6f 73 69 74 6f 72 79 2e   the repository.
9300: 20 54 68 65 20 68 74 6d 6c 20 68 65 61 64 65 72   The html header
9310: 20 6f 72 20 66 6f 6f 74 65 72 20 69 73 20 70 72   or footer is pr
9320: 65 70 61 72 65 64 20 74 6f 20 69 6e 63 6c 75 64  epared to includ
9330: 65 20 61 20 6a 61 76 61 73 63 72 69 70 74 20 66  e a javascript f
9340: 69 6c 65 20 61 6e 64 2f 6f 72 20 61 20 43 53 53  ile and/or a CSS
9350: 2e 0d 0a 3c 62 72 3e 0d 0a 54 68 65 73 65 20 74  ...<br>..These t
9360: 77 6f 20 74 69 70 73 20 61 72 65 20 66 72 6f 6d  wo tips are from
9370: 20 74 68 65 20 6d 61 69 6c 69 6e 67 20 6c 69 73   the mailing lis
9380: 74 3a 0d 0a 52 65 6e 65 20 64 65 20 5a 77 61 72  t:..Rene de Zwar
9390: 74 20 33 30 2e 20 4f 63 74 2e 20 32 30 30 39 0d  t 30. Oct. 2009.
93a0: 0a 0d 0a 3c 61 20 6e 61 6d 65 3d 22 74 69 6e 79  ...<a name="tiny
93b0: 6d 63 65 22 3e 3c 68 34 3e 54 69 6e 79 4d 43 45  mce"><h4>TinyMCE
93c0: 3c 2f 68 34 3e 3c 2f 61 3e 0d 0a 3c 70 3e 0d 0a  </h4></a>..<p>..
93d0: 53 6f 75 72 63 65 3a 20 3c 61 20 68 72 65 66 3d  Source: <a href=
93e0: 22 68 74 74 70 3a 2f 2f 74 69 6e 79 6d 63 65 2e  "http://tinymce.
93f0: 6d 6f 78 69 65 63 6f 64 65 2e 63 6f 6d 2f 22 3e  moxiecode.com/">
9400: 20 54 69 6e 79 4d 43 45 20 3c 2f 61 3e 0d 0a 3c   TinyMCE </a>..<
9410: 2f 70 3e 0d 0a 3c 68 35 3e 20 45 78 61 6d 70 6c  /p>..<h5> Exampl
9420: 65 3c 2f 68 35 3e 0d 0a 3c 70 72 65 20 63 6c 61  e</h5>..<pre cla
9430: 73 73 3d 22 76 65 72 62 61 74 69 6d 22 3e 0d 0a  ss="verbatim">..
9440: 20 20 20 20 6d 6b 64 69 72 20 74 69 6e 79 0d 0a      mkdir tiny..
9450: 20 20 20 20 6d 6b 64 69 72 20 74 69 6e 79 2f 6a      mkdir tiny/j
9460: 61 76 61 73 63 72 69 70 74 0d 0a 20 20 20 20 66  avascript..    f
9470: 6f 73 73 69 6c 20 6e 65 77 20 74 69 6e 79 6d 63  ossil new tinymc
9480: 65 2e 66 73 6c 0d 0a 20 20 20 20 66 6f 73 73 69  e.fsl..    fossi
9490: 6c 20 75 69 20 74 69 6e 79 6d 63 65 2e 66 73 6c  l ui tinymce.fsl
94a0: 20 7b 63 6f 6e 66 69 67 75 72 65 20 74 68 65 20   {configure the 
94b0: 70 72 6f 6a 65 63 74 29 0d 0a 20 20 20 20 64 6f  project)..    do
94c0: 77 6e 6c 6f 61 64 20 74 69 6e 79 6d 63 65 0d 0a  wnload tinymce..
94d0: 20 20 20 20 75 6e 7a 69 70 20 69 6e 20 74 69 6e      unzip in tin
94e0: 79 2f 6a 61 76 61 73 63 72 69 70 74 0d 0a 20 20  y/javascript..  
94f0: 20 20 63 64 20 74 69 6e 79 0d 0a 20 20 20 20 66    cd tiny..    f
9500: 6f 73 73 69 6c 20 6f 70 65 6e 20 2e 2e 2f 74 69  ossil open ../ti
9510: 6e 79 6d 63 65 2e 66 73 6c 0d 0a 20 20 20 20 66  nymce.fsl..    f
9520: 6f 73 73 69 6c 20 61 64 64 20 6a 61 76 61 73 63  ossil add javasc
9530: 72 69 70 74 0d 0a 20 20 20 20 66 6f 73 73 69 6c  ript..    fossil
9540: 20 63 6f 6d 6d 69 74 20 2d 6d 20 22 61 64 64 65   commit -m "adde
9550: 64 20 74 69 6d 79 6d 63 65 20 74 6f 20 74 68 65  d timymce to the
9560: 20 70 72 6f 6a 65 63 74 22 0d 0a 20 20 20 20 66   project"..    f
9570: 6f 73 73 69 6c 20 75 69 0d 0a 3c 2f 70 72 65 3e  ossil ui..</pre>
9580: 0d 0a 53 65 6c 65 63 74 20 61 64 6d 69 6e 2f 68  ..Select admin/h
9590: 65 61 64 65 72 73 20 61 64 64 20 61 66 74 65 72  eaders add after
95a0: 20 74 68 65 20 26 6c 74 3b 2f 6c 69 6e 6b 26 67   the &lt;/link&g
95b0: 74 3b 0d 0a 3c 70 72 65 20 63 6c 61 73 73 3d 22  t;..<pre class="
95c0: 76 65 72 62 61 74 69 6d 22 3e 0d 0a 20 20 20 26  verbatim">..   &
95d0: 6c 74 3b 73 63 72 69 70 74 20 74 79 70 65 3d 22  lt;script type="
95e0: 74 65 78 74 2f 6a 61 76 61 73 63 72 69 70 74 22  text/javascript"
95f0: 0d 0a 20 20 20 20 20 73 72 63 3d 22 2f 64 6f 63  ..     src="/doc
9600: 2f 74 69 70 2f 6a 61 76 61 73 63 72 69 70 74 2f  /tip/javascript/
9610: 74 69 6e 79 6d 63 65 2f 6a 73 63 72 69 70 74 73  tinymce/jscripts
9620: 2f 74 69 6e 79 5f 6d 63 65 2f 74 69 6e 79 5f 6d  /tiny_mce/tiny_m
9630: 63 65 2e 6a 73 22 26 67 74 3b 0d 0a 20 20 20 26  ce.js"&gt;..   &
9640: 6c 74 3b 2f 73 63 72 69 70 74 26 67 74 3b 0d 0a  lt;/script&gt;..
9650: 3c 2f 70 72 65 3e 0d 0a 61 6e 64 20 73 61 76 65  </pre>..and save
9660: 0d 0a 73 65 6c 65 63 74 20 61 64 6d 69 6e 2f 66  ..select admin/f
9670: 6f 6f 74 65 72 20 61 64 64 20 61 62 6f 76 65 20  ooter add above 
9680: 74 68 65 20 66 69 72 73 74 20 6c 69 6e 65 0d 0a  the first line..
9690: 3c 70 72 65 20 63 6c 61 73 73 3d 22 76 65 72 62  <pre class="verb
96a0: 61 74 69 6d 22 3e 0d 0a 20 26 6c 74 3b 73 63 72  atim">.. &lt;scr
96b0: 69 70 74 20 74 79 70 65 3d 27 74 65 78 74 2f 6a  ipt type='text/j
96c0: 61 76 61 73 63 72 69 70 74 27 26 67 74 3b 0d 0a  avascript'&gt;..
96d0: 20 20 76 61 72 20 6d 20 3d 20 64 6f 63 75 6d 65    var m = docume
96e0: 6e 74 2e 67 65 74 45 6c 65 6d 65 6e 74 73 42 79  nt.getElementsBy
96f0: 54 61 67 4e 61 6d 65 28 27 74 65 78 74 61 72 65  TagName('textare
9700: 61 27 29 0d 0a 20 20 76 61 72 20 6c 20 3d 20 6d  a')..  var l = m
9710: 2e 6c 65 6e 67 74 68 0d 0a 20 20 76 61 72 20 6e  .length..  var n
9720: 0d 0a 20 20 66 6f 72 28 76 61 72 20 69 3d 30 20  ..  for(var i=0 
9730: 3b 69 20 26 6c 74 3b 20 6c 3b 69 2b 2b 29 7b 0d  ;i &lt; l;i++){.
9740: 0a 20 20 20 20 3c 6e 6f 77 69 6b 69 3e 6e 20 3d  .    <nowiki>n =
9750: 20 6d 5b 69 5d 2e 6e 61 6d 65 3c 2f 6e 6f 77 69   m[i].name</nowi
9760: 6b 69 3e 0d 0a 20 20 20 20 69 66 28 20 27 63 6f  ki>..    if( 'co
9770: 6d 6d 65 6e 74 27 20 3d 3d 20 6e 20 7c 7c 20 27  mment' == n || '
9780: 63 6d 61 70 70 6e 64 27 20 3d 3d 20 6e 20 7c 7c  cmappnd' == n ||
9790: 20 22 77 22 20 20 3d 3d 20 6e 29 7b 0d 0a 20 20   "w"  == n){..  
97a0: 20 20 20 20 20 20 74 69 6e 79 4d 43 45 2e 69 6e        tinyMCE.in
97b0: 69 74 28 7b 20 6d 6f 64 65 20 3a 20 27 65 78 61  it({ mode : 'exa
97c0: 63 74 27 20 2c 20 65 6c 65 6d 65 6e 74 73 20 3a  ct' , elements :
97d0: 20 6e 2c 20 74 68 65 6d 65 3a 20 27 61 64 76 61   n, theme: 'adva
97e0: 6e 63 65 64 27 0d 0a 20 20 20 20 20 20 20 20 2c  nced'..        ,
97f0: 77 69 64 74 68 20 3a 20 27 39 30 25 27 20 7d 20  width : '90%' } 
9800: 29 3b 0d 0a 20 20 20 20 7d 0d 0a 20 20 7d 0d 0a  );..    }..  }..
9810: 20 26 6c 74 3b 2f 73 63 72 69 70 74 26 67 74 3b   &lt;/script&gt;
9820: 0d 0a 3c 2f 70 72 65 3e 0d 0a 0d 0a 0d 0a 3c 61  ..</pre>......<a
9830: 20 6e 61 6d 65 3d 22 6d 61 72 6b 69 74 75 70 22   name="markitup"
9840: 3e 3c 68 33 3e 6d 61 72 6b 69 74 75 70 21 3c 2f  ><h3>markitup!</
9850: 68 33 3e 3c 2f 61 3e 0d 0a 3c 70 3e 0d 0a 53 6f  h3></a>..<p>..So
9860: 75 72 63 65 3a 20 3c 61 20 68 72 65 66 3d 22 68  urce: <a href="h
9870: 74 74 70 3a 2f 2f 6d 61 72 6b 69 74 75 70 2e 6a  ttp://markitup.j
9880: 61 79 73 61 6c 76 61 74 2e 63 6f 6d 2f 68 6f 6d  aysalvat.com/hom
9890: 65 2f 22 3e 20 4d 61 72 6b 69 74 75 70 20 3c 2f  e/"> Markitup </
98a0: 61 3e 0d 0a 3c 2f 70 3e 0d 0a 3c 68 35 3e 20 45  a>..</p>..<h5> E
98b0: 78 61 6d 70 6c 65 3c 2f 68 35 3e 0d 0a 3c 70 72  xample</h5>..<pr
98c0: 65 20 63 6c 61 73 73 3d 22 76 65 72 62 61 74 69  e class="verbati
98d0: 6d 22 3e 0d 0a 20 20 20 20 6d 6b 64 69 72 20 6d  m">..    mkdir m
98e0: 61 72 6b 69 74 75 70 0d 0a 20 20 20 20 6d 6b 64  arkitup..    mkd
98f0: 69 72 20 6d 61 72 6b 69 74 75 70 2f 6a 61 76 61  ir markitup/java
9900: 73 63 72 69 70 74 0d 0a 20 20 20 20 66 6f 73 73  script..    foss
9910: 69 6c 20 6e 65 77 20 6d 61 72 6b 69 74 75 70 2e  il new markitup.
9920: 66 73 6c 0d 0a 20 20 20 20 66 6f 73 73 69 6c 20  fsl..    fossil 
9930: 75 69 20 6d 61 72 6b 69 74 75 70 2e 66 73 6c 20  ui markitup.fsl 
9940: 7b 63 6f 6e 66 69 67 75 72 65 20 74 68 65 20 70  {configure the p
9950: 72 6f 6a 65 63 74 29 0d 0a 20 20 20 20 64 6f 77  roject)..    dow
9960: 6e 6c 6f 61 64 20 6d 61 72 6b 69 74 75 70 20 61  nload markitup a
9970: 6e 64 20 6a 71 75 65 72 79 0d 0a 20 20 20 20 75  nd jquery..    u
9980: 6e 7a 69 70 20 69 6e 20 6d 61 72 6b 69 74 75 70  nzip in markitup
9990: 2f 6a 61 76 61 73 63 72 69 70 74 2c 20 63 64 20  /javascript, cd 
99a0: 6c 61 74 65 73 74 2c 20 6d 76 20 2a 20 2e 2e 2c  latest, mv * ..,
99b0: 20 72 6d 64 69 72 20 6c 61 74 65 73 74 0d 0a 20   rmdir latest.. 
99c0: 20 20 20 63 6f 70 79 20 6a 71 75 65 72 79 2d 2e     copy jquery-.
99d0: 2e 2e 2e 6a 73 20 74 6f 20 6a 61 76 61 73 63 72  ...js to javascr
99e0: 69 70 74 2f 6a 71 75 65 72 79 2e 6a 73 0d 0a 20  ipt/jquery.js.. 
99f0: 20 20 20 63 64 20 6d 61 72 6b 69 74 75 70 0d 0a     cd markitup..
9a00: 20 20 20 20 66 6f 73 73 69 6c 20 6f 70 65 6e 20      fossil open 
9a10: 2e 2e 2f 6d 61 72 6b 69 74 75 70 2e 66 73 6c 0d  ../markitup.fsl.
9a20: 0a 20 20 20 20 66 6f 73 73 69 6c 20 61 64 64 20  .    fossil add 
9a30: 6a 61 76 61 73 63 72 69 70 74 0d 0a 20 20 20 20  javascript..    
9a40: 66 6f 73 73 69 6c 20 63 6f 6d 6d 69 74 20 2d 6d  fossil commit -m
9a50: 20 22 61 64 64 65 64 20 6d 61 72 6b 69 74 75 70   "added markitup
9a60: 20 61 6e 20 6a 71 75 65 72 79 20 74 6f 20 74 68   an jquery to th
9a70: 65 20 70 72 6f 6a 65 63 74 22 0d 0a 20 20 20 20  e project"..    
9a80: 66 6f 73 73 69 6c 20 75 69 0d 0a 3c 2f 70 72 65  fossil ui..</pre
9a90: 3e 0d 0a 73 65 6c 65 63 74 20 61 64 6d 69 6e 2f  >..select admin/
9aa0: 68 65 61 64 65 72 73 20 61 64 64 20 61 66 74 65  headers add afte
9ab0: 72 20 74 68 65 20 3c 2f 6c 69 6e 6b 3e 20 70 75  r the </link> pu
9ac0: 74 0d 0a 3c 70 72 65 20 63 6c 61 73 73 3d 22 76  t..<pre class="v
9ad0: 65 72 62 61 74 69 6d 22 3e 0d 0a 20 20 20 20 26  erbatim">..    &
9ae0: 6c 74 3b 6c 69 6e 6b 20 72 65 6c 3d 22 73 74 79  lt;link rel="sty
9af0: 6c 65 73 68 65 65 74 22 20 74 79 70 65 3d 22 74  lesheet" type="t
9b00: 65 78 74 2f 63 73 73 22 20 68 72 65 66 3d 22 2f  ext/css" href="/
9b10: 64 6f 63 2f 74 69 70 2f 6a 61 76 61 73 63 72 69  doc/tip/javascri
9b20: 70 74 2f 6d 61 72 6b 69 74 75 70 2f 73 6b 69 6e  pt/markitup/skin
9b30: 73 2f 6d 61 72 6b 69 74 75 70 2f 73 74 79 6c 65  s/markitup/style
9b40: 2e 63 73 73 22 20 2f 26 67 74 3b 0d 0a 20 20 20  .css" /&gt;..   
9b50: 20 26 6c 74 3b 6c 69 6e 6b 20 72 65 6c 3d 22 73   &lt;link rel="s
9b60: 74 79 6c 65 73 68 65 65 74 22 20 74 79 70 65 3d  tylesheet" type=
9b70: 22 74 65 78 74 2f 63 73 73 22 20 68 72 65 66 3d  "text/css" href=
9b80: 22 2f 64 6f 63 2f 74 69 70 2f 6a 61 76 61 73 63  "/doc/tip/javasc
9b90: 72 69 70 74 2f 6d 61 72 6b 69 74 75 70 2f 73 65  ript/markitup/se
9ba0: 74 73 2f 64 65 66 61 75 6c 74 2f 73 74 79 6c 65  ts/default/style
9bb0: 2e 63 73 73 22 20 2f 26 67 74 3b 0d 0a 20 20 20  .css" /&gt;..   
9bc0: 20 26 6c 74 3b 73 63 72 69 70 74 20 74 79 70 65   &lt;script type
9bd0: 3d 22 74 65 78 74 2f 6a 61 76 61 73 63 72 69 70  ="text/javascrip
9be0: 74 22 20 73 72 63 3d 22 2f 64 6f 63 2f 74 69 70  t" src="/doc/tip
9bf0: 2f 6a 61 76 61 73 63 72 69 70 74 2f 6a 71 75 65  /javascript/jque
9c00: 72 79 2e 6a 73 22 26 67 74 3b 0d 0a 20 20 20 20  ry.js"&gt;..    
9c10: 26 6c 74 3b 2f 73 63 72 69 70 74 26 67 74 3b 0d  &lt;/script&gt;.
9c20: 0a 20 20 20 20 26 6c 74 3b 73 63 72 69 70 74 20  .    &lt;script 
9c30: 74 79 70 65 3d 22 74 65 78 74 2f 6a 61 76 61 73  type="text/javas
9c40: 63 72 69 70 74 22 20 73 72 63 3d 22 2f 64 6f 63  cript" src="/doc
9c50: 2f 74 69 70 2f 6a 61 76 61 73 63 72 69 70 74 2f  /tip/javascript/
9c60: 6d 61 72 6b 69 74 75 70 2f 6a 71 75 65 72 79 2e  markitup/jquery.
9c70: 6d 61 72 6b 69 74 75 70 2e 6a 73 22 26 67 74 3b  markitup.js"&gt;
9c80: 0d 0a 20 20 20 20 26 6c 74 3b 2f 73 63 72 69 70  ..    &lt;/scrip
9c90: 74 26 67 74 3b 0d 0a 3c 2f 70 72 65 3e 0d 0a 0d  t&gt;..</pre>...
9ca0: 0a 61 6e 64 20 73 61 76 65 0d 0a 73 65 6c 65 63  .and save..selec
9cb0: 74 20 61 64 6d 69 6e 2f 66 6f 6f 74 65 72 20 61  t admin/footer a
9cc0: 64 64 20 61 62 6f 76 65 20 74 68 65 20 66 69 72  dd above the fir
9cd0: 73 74 20 6c 69 6e 65 0d 0a 0d 0a 3c 70 72 65 20  st line....<pre 
9ce0: 63 6c 61 73 73 3d 22 76 65 72 62 61 74 69 6d 22  class="verbatim"
9cf0: 3e 0d 0a 20 20 20 20 26 6c 74 3b 73 63 72 69 70  >..    &lt;scrip
9d00: 74 20 74 79 70 65 3d 27 74 65 78 74 2f 6a 61 76  t type='text/jav
9d10: 61 73 63 72 69 70 74 27 26 67 74 3b 0d 0a 20 20  ascript'&gt;..  
9d20: 20 20 20 20 76 61 72 20 6d 20 3d 20 64 6f 63 75      var m = docu
9d30: 6d 65 6e 74 2e 67 65 74 45 6c 65 6d 65 6e 74 73  ment.getElements
9d40: 42 79 54 61 67 4e 61 6d 65 28 27 74 65 78 74 61  ByTagName('texta
9d50: 72 65 61 27 29 0d 0a 20 20 20 20 20 20 76 61 72  rea')..      var
9d60: 20 6c 20 3d 20 6d 2e 6c 65 6e 67 74 68 0d 0a 20   l = m.length.. 
9d70: 20 20 20 20 20 76 61 72 20 6e 0d 0a 20 20 20 20       var n..    
9d80: 20 20 3c 6e 6f 77 69 6b 69 3e 76 61 72 20 6d 79    <nowiki>var my
9d90: 53 65 74 74 69 6e 67 73 20 3d 20 7b 0d 0a 09 6e  Settings = {...n
9da0: 61 6d 65 53 70 61 63 65 3a 20 20 20 20 20 20 20  ameSpace:       
9db0: 22 68 74 6d 6c 22 2c 20 2f 2f 20 55 73 65 66 75  "html", // Usefu
9dc0: 6c 20 74 6f 20 70 72 65 76 65 6e 74 20 6d 75 6c  l to prevent mul
9dd0: 74 69 2d 69 6e 73 74 61 6e 63 65 73 20 43 53 53  ti-instances CSS
9de0: 20 63 6f 6e 66 6c 69 63 74 0d 0a 09 6f 6e 53 68   conflict...onSh
9df0: 69 66 74 45 6e 74 65 72 3a 20 20 20 20 7b 6b 65  iftEnter:    {ke
9e00: 65 70 44 65 66 61 75 6c 74 3a 66 61 6c 73 65 2c  epDefault:false,
9e10: 20 72 65 70 6c 61 63 65 57 69 74 68 3a 27 26 6c   replaceWith:'&l
9e20: 74 3b 62 72 20 2f 26 67 74 3b 5c 6e 27 7d 2c 0d  t;br /&gt;\n'},.
9e30: 0a 09 6f 6e 43 74 72 6c 45 6e 74 65 72 3a 20 20  ..onCtrlEnter:  
9e40: 20 20 20 7b 6b 65 65 70 44 65 66 61 75 6c 74 3a     {keepDefault:
9e50: 66 61 6c 73 65 2c 20 6f 70 65 6e 57 69 74 68 3a  false, openWith:
9e60: 27 5c 6e 26 6c 74 3b 70 26 67 74 3b 27 2c 20 63  '\n&lt;p&gt;', c
9e70: 6c 6f 73 65 57 69 74 68 3a 27 26 6c 74 3b 2f 70  loseWith:'&lt;/p
9e80: 26 67 74 3b 5c 6e 27 7d 2c 0d 0a 09 6f 6e 54 61  &gt;\n'},...onTa
9e90: 62 3a 20 20 20 20 20 20 20 20 20 20 20 7b 6b 65  b:           {ke
9ea0: 65 70 44 65 66 61 75 6c 74 3a 66 61 6c 73 65 2c  epDefault:false,
9eb0: 20 6f 70 65 6e 57 69 74 68 3a 27 20 20 20 20 20   openWith:'     
9ec0: 27 7d 2c 0d 0a 09 6d 61 72 6b 75 70 53 65 74 3a  '},...markupSet:
9ed0: 20 20 5b 0d 0a 09 20 20 20 20 7b 6e 61 6d 65 3a    [...    {name:
9ee0: 27 48 65 61 64 69 6e 67 20 31 27 2c 20 6b 65 79  'Heading 1', key
9ef0: 3a 27 31 27 2c 20 6f 70 65 6e 57 69 74 68 3a 27  :'1', openWith:'
9f00: 26 6c 74 3b 68 31 28 21 28 20 63 6c 61 73 73 3d  &lt;h1(!( class=
9f10: 22 5b 21 5b 43 6c 61 73 73 5d 21 5d 22 29 21 29  "[![Class]!]")!)
9f20: 26 67 74 3b 27 2c 20 63 6c 6f 73 65 57 69 74 68  &gt;', closeWith
9f30: 3a 27 26 6c 74 3b 2f 68 31 26 67 74 3b 27 2c 20  :'&lt;/h1&gt;', 
9f40: 70 6c 61 63 65 48 6f 6c 64 65 72 3a 27 59 6f 75  placeHolder:'You
9f50: 72 20 74 69 74 6c 65 20 68 65 72 65 2e 2e 2e 27  r title here...'
9f60: 20 7d 2c 0d 0a 09 20 20 20 20 7b 6e 61 6d 65 3a   },...    {name:
9f70: 27 48 65 61 64 69 6e 67 20 32 27 2c 20 6b 65 79  'Heading 2', key
9f80: 3a 27 32 27 2c 20 6f 70 65 6e 57 69 74 68 3a 27  :'2', openWith:'
9f90: 26 6c 74 3b 68 32 28 21 28 20 63 6c 61 73 73 3d  &lt;h2(!( class=
9fa0: 22 5b 21 5b 43 6c 61 73 73 5d 21 5d 22 29 21 29  "[![Class]!]")!)
9fb0: 26 67 74 3b 27 2c 20 63 6c 6f 73 65 57 69 74 68  &gt;', closeWith
9fc0: 3a 27 26 6c 74 3b 2f 68 32 26 67 74 3b 27 2c 20  :'&lt;/h2&gt;', 
9fd0: 70 6c 61 63 65 48 6f 6c 64 65 72 3a 27 59 6f 75  placeHolder:'You
9fe0: 72 20 74 69 74 6c 65 20 68 65 72 65 2e 2e 2e 27  r title here...'
9ff0: 20 7d 2c 0d 0a 09 20 20 20 20 7b 6e 61 6d 65 3a   },...    {name:
a000: 27 48 65 61 64 69 6e 67 20 33 27 2c 20 6b 65 79  'Heading 3', key
a010: 3a 27 33 27 2c 20 6f 70 65 6e 57 69 74 68 3a 27  :'3', openWith:'
a020: 26 6c 74 3b 68 33 28 21 28 20 63 6c 61 73 73 3d  &lt;h3(!( class=
a030: 22 5b 21 5b 43 6c 61 73 73 5d 21 5d 22 29 21 29  "[![Class]!]")!)
a040: 26 67 74 3b 27 2c 20 63 6c 6f 73 65 57 69 74 68  &gt;', closeWith
a050: 3a 27 26 6c 74 3b 2f 68 33 26 67 74 3b 27 2c 20  :'&lt;/h3&gt;', 
a060: 70 6c 61 63 65 48 6f 6c 64 65 72 3a 27 59 6f 75  placeHolder:'You
a070: 72 20 74 69 74 6c 65 20 68 65 72 65 2e 2e 2e 27  r title here...'
a080: 20 7d 2c 0d 0a 09 20 20 20 20 7b 6e 61 6d 65 3a   },...    {name:
a090: 27 48 65 61 64 69 6e 67 20 34 27 2c 20 6b 65 79  'Heading 4', key
a0a0: 3a 27 34 27 2c 20 6f 70 65 6e 57 69 74 68 3a 27  :'4', openWith:'
a0b0: 26 6c 74 3b 68 34 28 21 28 20 63 6c 61 73 73 3d  &lt;h4(!( class=
a0c0: 22 5b 21 5b 43 6c 61 73 73 5d 21 5d 22 29 21 29  "[![Class]!]")!)
a0d0: 26 67 74 3b 27 2c 20 63 6c 6f 73 65 57 69 74 68  &gt;', closeWith
a0e0: 3a 27 26 6c 74 3b 2f 68 34 26 67 74 3b 27 2c 20  :'&lt;/h4&gt;', 
a0f0: 70 6c 61 63 65 48 6f 6c 64 65 72 3a 27 59 6f 75  placeHolder:'You
a100: 72 20 74 69 74 6c 65 20 68 65 72 65 2e 2e 2e 27  r title here...'
a110: 20 7d 2c 0d 0a 09 20 20 20 20 7b 6e 61 6d 65 3a   },...    {name:
a120: 27 48 65 61 64 69 6e 67 20 35 27 2c 20 6b 65 79  'Heading 5', key
a130: 3a 27 35 27 2c 20 6f 70 65 6e 57 69 74 68 3a 27  :'5', openWith:'
a140: 26 6c 74 3b 68 35 28 21 28 20 63 6c 61 73 73 3d  &lt;h5(!( class=
a150: 22 5b 21 5b 43 6c 61 73 73 5d 21 5d 22 29 21 29  "[![Class]!]")!)
a160: 26 67 74 3b 27 2c 20 63 6c 6f 73 65 57 69 74 68  &gt;', closeWith
a170: 3a 27 26 6c 74 3b 2f 68 35 26 67 74 3b 27 2c 20  :'&lt;/h5&gt;', 
a180: 70 6c 61 63 65 48 6f 6c 64 65 72 3a 27 59 6f 75  placeHolder:'You
a190: 72 20 74 69 74 6c 65 20 68 65 72 65 2e 2e 2e 27  r title here...'
a1a0: 20 7d 2c 0d 0a 09 20 20 20 20 7b 6e 61 6d 65 3a   },...    {name:
a1b0: 27 48 65 61 64 69 6e 67 20 36 27 2c 20 6b 65 79  'Heading 6', key
a1c0: 3a 27 36 27 2c 20 6f 70 65 6e 57 69 74 68 3a 27  :'6', openWith:'
a1d0: 26 6c 74 3b 68 36 28 21 28 20 63 6c 61 73 73 3d  &lt;h6(!( class=
a1e0: 22 5b 21 5b 43 6c 61 73 73 5d 21 5d 22 29 21 29  "[![Class]!]")!)
a1f0: 26 67 74 3b 27 2c 20 63 6c 6f 73 65 57 69 74 68  &gt;', closeWith
a200: 3a 27 26 6c 74 3b 2f 68 36 26 67 74 3b 27 2c 20  :'&lt;/h6&gt;', 
a210: 70 6c 61 63 65 48 6f 6c 64 65 72 3a 27 59 6f 75  placeHolder:'You
a220: 72 20 74 69 74 6c 65 20 68 65 72 65 2e 2e 2e 27  r title here...'
a230: 20 7d 2c 0d 0a 09 20 20 20 20 7b 6e 61 6d 65 3a   },...    {name:
a240: 27 50 61 72 61 67 72 61 70 68 27 2c 20 6f 70 65  'Paragraph', ope
a250: 6e 57 69 74 68 3a 27 26 6c 74 3b 70 28 21 28 20  nWith:'&lt;p(!( 
a260: 63 6c 61 73 73 3d 22 5b 21 5b 43 6c 61 73 73 5d  class="[![Class]
a270: 21 5d 22 29 21 29 26 67 74 3b 27 2c 20 63 6c 6f  !]")!)&gt;', clo
a280: 73 65 57 69 74 68 3a 27 26 6c 74 3b 2f 70 26 67  seWith:'&lt;/p&g
a290: 74 3b 27 20 20 7d 2c 0d 0a 09 20 20 20 20 7b 73  t;'  },...    {s
a2a0: 65 70 61 72 61 74 6f 72 3a 27 2d 2d 2d 2d 2d 2d  eparator:'------
a2b0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 27 20 7d 2c 0d 0a 09  ---------' },...
a2c0: 20 20 20 20 7b 6e 61 6d 65 3a 27 42 6f 6c 64 27      {name:'Bold'
a2d0: 2c 20 6b 65 79 3a 27 42 27 2c 20 6f 70 65 6e 57  , key:'B', openW
a2e0: 69 74 68 3a 27 26 6c 74 3b 73 74 72 6f 6e 67 26  ith:'&lt;strong&
a2f0: 67 74 3b 27 2c 20 63 6c 6f 73 65 57 69 74 68 3a  gt;', closeWith:
a300: 27 26 6c 74 3b 2f 73 74 72 6f 6e 67 26 67 74 3b  '&lt;/strong&gt;
a310: 27 20 7d 2c 0d 0a 09 20 20 20 20 7b 6e 61 6d 65  ' },...    {name
a320: 3a 27 49 74 61 6c 69 63 27 2c 20 6b 65 79 3a 27  :'Italic', key:'
a330: 49 27 2c 20 6f 70 65 6e 57 69 74 68 3a 27 26 6c  I', openWith:'&l
a340: 74 3b 65 6d 26 67 74 3b 27 2c 20 63 6c 6f 73 65  t;em&gt;', close
a350: 57 69 74 68 3a 27 26 6c 74 3b 2f 65 6d 26 67 74  With:'&lt;/em&gt
a360: 3b 27 20 20 7d 2c 0d 0a 09 20 20 20 20 7b 6e 61  ;'  },...    {na
a370: 6d 65 3a 27 53 74 72 6f 6b 65 20 74 68 72 6f 75  me:'Stroke throu
a380: 67 68 27 2c 20 6b 65 79 3a 27 53 27 2c 20 6f 70  gh', key:'S', op
a390: 65 6e 57 69 74 68 3a 27 26 6c 74 3b 64 65 6c 26  enWith:'&lt;del&
a3a0: 67 74 3b 27 2c 20 63 6c 6f 73 65 57 69 74 68 3a  gt;', closeWith:
a3b0: 27 26 6c 74 3b 2f 64 65 6c 26 67 74 3b 27 20 7d  '&lt;/del&gt;' }
a3c0: 2c 0d 0a 09 20 20 20 20 7b 73 65 70 61 72 61 74  ,...    {separat
a3d0: 6f 72 3a 27 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  or:'------------
a3e0: 2d 2d 2d 27 20 7d 2c 0d 0a 09 20 20 20 20 7b 6e  ---' },...    {n
a3f0: 61 6d 65 3a 27 55 6c 27 2c 20 6f 70 65 6e 57 69  ame:'Ul', openWi
a400: 74 68 3a 27 26 6c 74 3b 75 6c 26 67 74 3b 5c 6e  th:'&lt;ul&gt;\n
a410: 27 2c 20 63 6c 6f 73 65 57 69 74 68 3a 27 26 6c  ', closeWith:'&l
a420: 74 3b 2f 75 6c 26 67 74 3b 5c 6e 27 20 7d 2c 0d  t;/ul&gt;\n' },.
a430: 0a 09 20 20 20 20 7b 6e 61 6d 65 3a 27 4f 6c 27  ..    {name:'Ol'
a440: 2c 20 6f 70 65 6e 57 69 74 68 3a 27 26 6c 74 3b  , openWith:'&lt;
a450: 6f 6c 26 67 74 3b 5c 6e 27 2c 20 63 6c 6f 73 65  ol&gt;\n', close
a460: 57 69 74 68 3a 27 26 6c 74 3b 2f 6f 6c 26 67 74  With:'&lt;/ol&gt
a470: 3b 5c 6e 27 20 7d 2c 0d 0a 09 20 20 20 20 7b 6e  ;\n' },...    {n
a480: 61 6d 65 3a 27 4c 69 27 2c 20 6f 70 65 6e 57 69  ame:'Li', openWi
a490: 74 68 3a 27 26 6c 74 3b 6c 69 26 67 74 3b 27 2c  th:'&lt;li&gt;',
a4a0: 20 63 6c 6f 73 65 57 69 74 68 3a 27 26 6c 74 3b   closeWith:'&lt;
a4b0: 2f 6c 69 26 67 74 3b 27 20 7d 2c 0d 0a 09 20 20  /li&gt;' },...  
a4c0: 20 20 7b 73 65 70 61 72 61 74 6f 72 3a 27 2d 2d    {separator:'--
a4d0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 27 20 7d  -------------' }
a4e0: 2c 0d 0a 09 20 20 20 20 7b 6e 61 6d 65 3a 27 50  ,...    {name:'P
a4f0: 69 63 74 75 72 65 27 2c 20 6b 65 79 3a 27 50 27  icture', key:'P'
a500: 2c 20 72 65 70 6c 61 63 65 57 69 74 68 3a 27 26  , replaceWith:'&
a510: 6c 74 3b 69 6d 67 20 73 72 63 3d 22 5b 21 5b 53  lt;img src="[![S
a520: 6f 75 72 63 65 3a 21 3a 68 74 74 70 3a 2f 2f 5d  ource:!:http://]
a530: 21 5d 22 20 61 6c 74 3d 22 5b 21 5b 41 6c 74 65  !]" alt="[![Alte
a540: 72 6e 61 74 69 76 65 20 74 65 78 74 5d 21 5d 22  rnative text]!]"
a550: 20 2f 26 67 74 3b 27 20 7d 2c 0d 0a 09 20 20 20   /&gt;' },...   
a560: 20 7b 6e 61 6d 65 3a 27 4c 69 6e 6b 27 2c 20 6b   {name:'Link', k
a570: 65 79 3a 27 4c 27 2c 20 6f 70 65 6e 57 69 74 68  ey:'L', openWith
a580: 3a 27 26 6c 74 3b 61 20 68 72 65 66 3d 22 5b 21  :'&lt;a href="[!
a590: 5b 4c 69 6e 6b 3a 21 3a 68 74 74 70 3a 2f 2f 5d  [Link:!:http://]
a5a0: 21 5d 22 28 21 28 20 74 69 74 6c 65 3d 22 5b 21  !]"(!( title="[!
a5b0: 5b 54 69 74 6c 65 5d 21 5d 22 29 21 29 26 67 74  [Title]!]")!)&gt
a5c0: 3b 27 2c 20 63 6c 6f 73 65 57 69 74 68 3a 27 26  ;', closeWith:'&
a5d0: 6c 74 3b 2f 61 26 67 74 3b 27 2c 20 70 6c 61 63  lt;/a&gt;', plac
a5e0: 65 48 6f 6c 64 65 72 3a 27 59 6f 75 72 20 74 65  eHolder:'Your te
a5f0: 78 74 20 74 6f 20 6c 69 6e 6b 2e 2e 2e 27 20 7d  xt to link...' }
a600: 2c 0d 0a 09 20 20 20 20 7b 73 65 70 61 72 61 74  ,...    {separat
a610: 6f 72 3a 27 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  or:'------------
a620: 2d 2d 2d 27 20 7d 2c 0d 0a 09 20 20 20 20 7b 6e  ---' },...    {n
a630: 61 6d 65 3a 27 43 6c 65 61 6e 27 2c 20 72 65 70  ame:'Clean', rep
a640: 6c 61 63 65 57 69 74 68 3a 66 75 6e 63 74 69 6f  laceWith:functio
a650: 6e 28 68 29 20 7b 20 72 65 74 75 72 6e 20 68 2e  n(h) { return h.
a660: 73 65 6c 65 63 74 69 6f 6e 2e 72 65 70 6c 61 63  selection.replac
a670: 65 28 2f 26 6c 74 3b 28 2e 2a 3f 29 26 67 74 3b  e(/&lt;(.*?)&gt;
a680: 2f 67 2c 20 22 22 29 20 7d 20 7d 2c 0d 0a 09 20  /g, "") } },... 
a690: 20 20 20 7b 6e 61 6d 65 3a 27 50 72 65 76 69 65     {name:'Previe
a6a0: 77 27 2c 20 63 61 6c 6c 3a 27 70 72 65 76 69 65  w', call:'previe
a6b0: 77 27 2c 20 63 6c 61 73 73 4e 61 6d 65 3a 27 70  w', className:'p
a6c0: 72 65 76 69 65 77 27 20 7d 0d 0a 09 5d 0d 0a 20  review' }...].. 
a6d0: 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 66 6f       }..      fo
a6e0: 72 28 76 61 72 20 69 3d 30 20 3b 69 20 3c 20 6c  r(var i=0 ;i < l
a6f0: 3b 69 2b 2b 29 7b 0d 0a 09 6e 20 3d 20 6d 5b 69  ;i++){...n = m[i
a700: 5d 2e 6e 61 6d 65 0d 0a 09 69 66 28 20 27 63 6f  ].name...if( 'co
a710: 6d 6d 65 6e 74 27 20 3d 3d 20 6e 20 7c 7c 20 27  mment' == n || '
a720: 63 6d 61 70 70 6e 64 27 20 3d 3d 20 6e 20 7c 7c  cmappnd' == n ||
a730: 20 22 77 22 20 20 3d 3d 20 6e 29 7b 0d 0a 09 20   "w"  == n){... 
a740: 20 20 20 6d 5b 69 5d 2e 69 64 20 3d 20 6e 3c 2f     m[i].id = n</
a750: 6e 6f 77 69 6b 69 3e 0d 0a 09 20 20 20 20 24 28  nowiki>...    $(
a760: 64 6f 63 75 6d 65 6e 74 29 2e 72 65 61 64 79 28  document).ready(
a770: 66 75 6e 63 74 69 6f 6e 28 29 20 7b 0d 0a 09 20  function() {... 
a780: 20 20 20 20 20 24 28 22 23 22 20 2b 20 6e 29 2e       $("#" + n).
a790: 6d 61 72 6b 49 74 55 70 28 6d 79 53 65 74 74 69  markItUp(mySetti
a7a0: 6e 67 73 29 3b 0d 0a 09 20 20 20 20 7d 29 3b 0d  ngs);...    });.
a7b0: 0a 09 7d 0d 0a 20 20 20 20 20 20 7d 0d 0a 20 20  ..}..      }..  
a7c0: 20 20 26 6c 74 3b 2f 73 63 72 69 70 74 26 67 74    &lt;/script&gt
a7d0: 3b 0d 0a 20 3c 2f 70 72 65 3e 0d 0a 0a 5a 20 38  ;.. </pre>...Z 8
a7e0: 63 34 63 36 32 32 62 35 35 63 63 62 66 61 66 39  c4c622b55ccbfaf9
a7f0: 30 66 34 66 62 32 61 62 66 65 34 66 62 63 32 0a  0f4fb2abfe4fbc2.