Rev 130 Rev 139
1 <?php 1 <?php
2 # vim:et:ts=3:sts=3:sw=3:fdm=marker: 2 # vim:et:ts=3:sts=3:sw=3:fdm=marker:
3   3  
4 // WebSVN - Subversion repository viewing via the web using PHP 4 // WebSVN - Subversion repository viewing via the web using PHP
5 // Copyright © 2004-2006 Tim Armes, Matt Sicker 5 // Copyright © 2004-2006 Tim Armes, Matt Sicker
6 // 6 //
7 // This program is free software; you can redistribute it and/or modify 7 // This program is free software; you can redistribute it and/or modify
8 // it under the terms of the GNU General Public License as published by 8 // it under the terms of the GNU General Public License as published by
9 // the Free Software Foundation; either version 2 of the License, or 9 // the Free Software Foundation; either version 2 of the License, or
10 // (at your option) any later version. 10 // (at your option) any later version.
11 // 11 //
12 // This program is distributed in the hope that it will be useful, 12 // This program is distributed in the hope that it will be useful,
13 // but WITHOUT ANY WARRANTY; without even the implied warranty of 13 // but WITHOUT ANY WARRANTY; without even the implied warranty of
14 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 // GNU General Public License for more details. 15 // GNU General Public License for more details.
16 // 16 //
17 // You should have received a copy of the GNU General Public License 17 // You should have received a copy of the GNU General Public License
18 // along with this program; if not, write to the Free Software 18 // along with this program; if not, write to the Free Software
19 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 19 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 // 20 //
21 // -- 21 // --
22 // 22 //
23 // config.inc 23 // config.inc
24 // 24 //
25 // Configuration parameters 25 // Configuration parameters
26   26  
27 // --- FOLLOW THE INSTRUCTIONS BELOW TO CONFIGURE YOUR SETUP --- 27 // --- FOLLOW THE INSTRUCTIONS BELOW TO CONFIGURE YOUR SETUP ---
28   28  
29 // {{{ PLATFORM CONFIGURATION --- 29 // {{{ PLATFORM CONFIGURATION ---
30   30  
31 // Uncomment the next line if your running a windows server 31 // Uncomment the next line if your running a windows server
32 // 32 //
33 // $config->setServerIsWindows(); 33 // $config->setServerIsWindows();
34   34  
35 // Configure these lines if your commands aren't on your path. 35 // Configure these lines if your commands aren't on your path.
36 // 36 //
37 // $config->setSVNCommandPath('Path/to/svn and svnlook/ e.g. c:\\program files\\subversion\\bin'); 37 // $config->setSVNCommandPath('Path/to/svn and svnlook/ e.g. c:\\program files\\subversion\\bin');
38 // $config->setDiffPath('Path/to/diff/command/'); 38 // $config->setDiffPath('Path/to/diff/command/');
39   39  
40 // For syntax colouring, if option enabled... 40 // For syntax colouring, if option enabled...
41 // $config->setEnscriptPath('Path/to/enscript/command/'); 41 // $config->setEnscriptPath('Path/to/enscript/command/');
42 // $config->setSedPath('Path/to/sed/command/'); 42 // $config->setSedPath('Path/to/sed/command/');
43   43  
44 // For delivered tarballs, if option enabled... 44 // For delivered tarballs, if option enabled...
45 // $config->setTarPath('Path/to/tar/command/'); 45 // $config->setTarPath('Path/to/tar/command/');
46   46  
47 // For delivered GZIP'd files and tarballs, if option enabled... 47 // For delivered GZIP'd files and tarballs, if option enabled...
48 // $config->setGZipPath('Path/to/gzip/command/'); 48 // $config->setGZipPath('Path/to/gzip/command/');
49   49  
50 // }}} 50 // }}}
51   51  
52 // {{{ REPOSITORY SETUP --- 52 // {{{ REPOSITORY SETUP ---
53   53  
54 // There are 2 methods for defining the repositiories available on the system. Either you list 54 // There are 2 methods for defining the repositiories available on the system. Either you list
55 // them by hand, in which case you can give each one the name of your choice, or you use the 55 // them by hand, in which case you can give each one the name of your choice, or you use the
56 // parent path function, in which case the name of the directory is used as the repository name. 56 // parent path function, in which case the name of the directory is used as the repository name.
57 // 57 //
58 // In all cases, you may optionally supply a group name to the repositories. This is useful in the 58 // In all cases, you may optionally supply a group name to the repositories. This is useful in the
59 // case that you need to separate your projects. Grouped Repositories are referred to using the 59 // case that you need to separate your projects. Grouped Repositories are referred to using the
60 // convention GroupName.RepositoryName 60 // convention GroupName.RepositoryName
61 // 61 //
62 // Performance is much better on local repositories (e.g. accessed by file:///). However, you 62 // Performance is much better on local repositories (e.g. accessed by file:///). However, you
63 // can also provide an interface onto a remote repository. In this case you should supply the 63 // can also provide an interface onto a remote repository. In this case you should supply the
64 // username and password needed to access it. 64 // username and password needed to access it.
65 // 65 //
66 // To configure the repositories by hand, copy the appropriate line below, uncomment it and 66 // To configure the repositories by hand, copy the appropriate line below, uncomment it and
67 // replace the name and URL of your repository. 67 // replace the name and URL of your repository.
68   68  
69 // Local repositories (without and with optional group): 69 // Local repositories (without and with optional group):
70 // 70 //
71 // $config->addRepository('NameToDisplay', 'URL to repository (e.g. file:///c:/svn/proj)'); 71 // $config->addRepository('NameToDisplay', 'URL to repository (e.g. file:///c:/svn/proj)');
72 // $config->addRepository('NameToDisplay', 'URL to repository (e.g. file:///c:/svn/proj)', 'group'); 72 // $config->addRepository('NameToDisplay', 'URL to repository (e.g. file:///c:/svn/proj)', 'group');
73   -  
74 $config->addRepository('MLAB', 'file:///home/MLAB'); 73 $config->addRepository('MLAB', 'file:///home/MLAB');
75   -  
-   74 $config->addRepository('TEST1', 'file:///home/MLAB');
-   75 $config->addRepository('TEST2', 'file:///home/MLAB');
76 // 76 //
77 // Remote repositories (without and with optional group): 77 // Remote repositories (without and with optional group):
78 // 78 //
79 // $config->addRepository('NameToDisplay', 'URL (e.g. http://path/to/rep)', NULL, 'username', 'password'); 79 // $config->addRepository('NameToDisplay', 'URL (e.g. http://path/to/rep)', NULL, 'username', 'password');
80 // $config->addRepository('NameToDisplay', 'URL (e.g. http://path/to/rep)', 'group', 'username', 'password'); 80 // $config->addRepository('NameToDisplay', 'URL (e.g. http://path/to/rep)', 'group', 'username', 'password');
81 // 81 //
82 // To use the parent path method, uncomment the newt line and and replace the path with your one. You 82 // To use the parent path method, uncomment the newt line and and replace the path with your one. You
83 // can call the function several times if you have several parent paths. Note that in this case the 83 // can call the function several times if you have several parent paths. Note that in this case the
84 // path is a filesystem path 84 // path is a filesystem path
85 // 85 //
86 // $config->parentPath('Path/to/parent (e.g. c:\\svn)'); 86 // $config->parentPath('Path/to/parent (e.g. c:\\svn)');
87   87  
88 //$config->parentPath('/home/'); -  
89 // }}} 88 // }}}
90   89  
91 // {{{ LOOK AND FEEL --- 90 // {{{ LOOK AND FEEL ---
92 // 91 //
93 // Uncomment ONLY the template file that you want. 92 // Uncomment ONLY the template file that you want.
94   93  
95 $config->setTemplatePath("$locwebsvnreal/templates/Standard/"); 94 // $config->setTemplatePath("$locwebsvnreal/templates/Standard/");
96 // $config->setTemplatePath("$locwebsvnreal/templates/BlueGrey/"); 95 // $config->setTemplatePath("$locwebsvnreal/templates/BlueGrey/");
97 // $config->setTemplatePath("$locwebsvnreal/templates/Zinn/"); 96 // $config->setTemplatePath("$locwebsvnreal/templates/Zinn/");
98   97  
99 // You may also specify a per repository template file by uncommenting and changing the following 98 // You may also specify a per repository template file by uncommenting and changing the following
100 // line as necessary. Use the convention "groupname.myrep" if your repository is in a group. 99 // line as necessary. Use the convention "groupname.myrep" if your repository is in a group.
101   100  
102 // $config->setTemplatePath('$locwebsvnreal/templates/Standard/', 'myrep'); // Access file for myrep 101 // $config->setTemplatePath('$locwebsvnreal/templates/Standard/', 'myrep'); // Access file for myrep
-   102 $config->setTemplatePath("$locwebsvnreal/templates/MLAB/", "MLAB");
-   103 $config->setTemplatePath("$locwebsvnreal/templates/BlueGrey/", "TEST1");
-   104 $config->setTemplatePath("$locwebsvnreal/templates/Standard/", "TEST2");
103   105  
104 // The index page containing the projects may either be displayed as a flat view (the default), 106 // The index page containing the projects may either be displayed as a flat view (the default),
105 // where grouped repositories are displayed as "GroupName.RepName" or as a tree view. 107 // where grouped repositories are displayed as "GroupName.RepName" or as a tree view.
106 // In the case of a tree view, you may choose whether the entire tree is open by default. 108 // In the case of a tree view, you may choose whether the entire tree is open by default.
107   109  
108 // $config->useTreeIndex(false); // Tree index, closed by default 110 // $config->useTreeIndex(false); // Tree index, closed by default
109 // $config->useTreeIndex(true); // Tree index, open by default 111 // $config->useTreeIndex(true); // Tree index, open by default
110   112  
111 // By default, WebSVN displays a tree view onto the current directory. You can however 113 // By default, WebSVN displays a tree view onto the current directory. You can however
112 // choose to display a flat view of the current directory only, which may make the display 114 // choose to display a flat view of the current directory only, which may make the display
113 // load faster. Uncomment this line if you want that. 115 // load faster. Uncomment this line if you want that.
114   116  
115 // $config->useFlatView(); 117 // $config->useFlatView();
116   118  
117 // }}} 119 // }}}
118   120  
119 // {{{ LANGUAGE SETUP --- 121 // {{{ LANGUAGE SETUP ---
120   122  
121 // WebSVN uses the iconv module to convert messages from your system's character set to the 123 // WebSVN uses the iconv module to convert messages from your system's character set to the
122 // UTF-8 output encoding. If you find that your log messages aren't displayed correctly then 124 // UTF-8 output encoding. If you find that your log messages aren't displayed correctly then
123 // you'll need to change the value here. 125 // you'll need to change the value here.
124 // 126 //
125 // You may also specify the character encoding of the repository contents if different from 127 // You may also specify the character encoding of the repository contents if different from
126 // the system encoding. This is typically the case for windows users, whereby the command 128 // the system encoding. This is typically the case for windows users, whereby the command
127 // line returns, for example, CP850 encoded strings, whereas the source files are encoded 129 // line returns, for example, CP850 encoded strings, whereas the source files are encoded
128 // as iso-8859-1 by Windows based text editors. When display text file, WebSVN will convert 130 // as iso-8859-1 by Windows based text editors. When display text file, WebSVN will convert
129 // them from the content encoding to the output encoding (UTF-8). 131 // them from the content encoding to the output encoding (UTF-8).
130 // 132 //
131 // WebSVN does its best to automate all this, so only use the following if it doesn't work 133 // WebSVN does its best to automate all this, so only use the following if it doesn't work
132 // "out of the box". Uncomment and change one of the examples below. 134 // "out of the box". Uncomment and change one of the examples below.
133 // 135 //
134 // $config->setInputEncoding('CP850'); // Encoding of result returned by svn command line, etc. 136 // $config->setInputEncoding('CP850'); // Encoding of result returned by svn command line, etc.
135 // $config->setContentEncoding('iso-8859-1'); // Content encoding of all your repositories // repositories 137 // $config->setContentEncoding('iso-8859-1'); // Content encoding of all your repositories // repositories
136   138  
137 // You may also specify a content encoding on a per repository basis. Uncomment and copy this 139 // You may also specify a content encoding on a per repository basis. Uncomment and copy this
138 // line as necessary. 140 // line as necessary.
139 // 141 //
140 // $config->setContentEncoding('iso-8859-1', 'MyEnc'); 142 // $config->setContentEncoding('iso-8859-1', 'MyEnc');
141   143  
142 // Note for Windows users: To enable iconv you'll need to enable the extension in your php.ini file 144 // Note for Windows users: To enable iconv you'll need to enable the extension in your php.ini file
143 // AND copy iconv.dll (not php_iconv.dll) to your Windows system folder. In most cases the correct 145 // AND copy iconv.dll (not php_iconv.dll) to your Windows system folder. In most cases the correct
144 // encoding is set when you call $config->setServerIsWindows();. 146 // encoding is set when you call $config->setServerIsWindows();.
145   147  
146 // Note for *nix users. You'll need to have iconv compiled into your binary. The default input and 148 // Note for *nix users. You'll need to have iconv compiled into your binary. The default input and
147 // output encodings are taken from your locale informations. Override these if they aren't correct. 149 // output encodings are taken from your locale informations. Override these if they aren't correct.
148   150  
149 // Uncomment the default language. If you want English then don't do anything here. 151 // Uncomment the default language. If you want English then don't do anything here.
150 // 152 //
151 // include('languages/german.inc'); -  
152 // include('languages/french.inc'); -  
153 // include('languages/spanish.inc'); -  
154 // include('languages/portuguese.inc'); -  
155 // include('languages/swedish.inc'); -  
156 // include('languages/slovenian.inc'); -  
157 // include('languages/dutch.inc'); -  
158 // include('languages/danish.inc'); -  
159 // include('languages/finnish.inc'); -  
160 // include('languages/turkish.inc'); -  
161 // include('languages/norwegian.inc'); -  
162 // include('languages/polish.inc'); -  
-   153  
163 // include('languages/japanese.inc'); -  
164 // include('languages/korean.inc'); -  
165 // include('languages/tchinese.inc'); -  
166 // include('languages/schinese.inc'); -  
167 // include 'languages/russian.inc'; -  
168 // include 'languages/japanese.inc'; -  
169 include 'languages/czech.inc'; 154 include 'languages/czech.inc';
-   155 // include 'languages/catalan.inc';
-   156 // include 'languages/danish.inc';
-   157 // include 'languages/dutch.inc';
-   158 // include 'languages/finnish.inc';
-   159 // include 'languages/french.inc';
-   160 // include 'languages/german.inc';
-   161 // include 'languages/japanese.inc';
-   162 // include 'languages/korean.inc';
-   163 // include 'languages/norwegian.inc';
-   164 // include 'languages/polish.inc';
-   165 // include 'languages/portuguese.inc';
-   166 // include 'languages/russian.inc';
-   167 // include 'languages/schinese.inc';
-   168 // include 'languages/slovenian.inc';
-   169 // include 'languages/spanish.inc';
-   170 // include 'languages/swedish.inc';
-   171 // include 'languages/tchinese.inc';
-   172 // include 'languages/turkish.inc';
170   173  
171 // }}} 174 // }}}
172   175  
173 // {{{ MULTIVIEWS --- 176 // {{{ MULTIVIEWS ---
174   177  
175 // Uncomment this line if you want to use MultiView to access the repository by, for example: 178 // Uncomment this line if you want to use MultiView to access the repository by, for example:
176 // 179 //
177 // http://servername/wsvn/repname/path/in/repository 180 // http://servername/wsvn/repname/path/in/repository
178 // 181 //
179 // Note: The websvn directory will need to have Multiviews turned on in Apache, and you'll need to configure 182 // Note: The websvn directory will need to have Multiviews turned on in Apache, and you'll need to configure
180 // wsvn.php 183 // wsvn.php
181   184  
182 // $config->useMultiViews(); 185 // $config->useMultiViews();
183   186  
184 // }}} 187 // }}}
185   188  
186 // {{{ ACCESS RIGHTS --- 189 // {{{ ACCESS RIGHTS ---
187   190  
188 // Uncomment this line if you want to use your Subversion access file to control access 191 // Uncomment this line if you want to use your Subversion access file to control access
189 // rights via WebSVN. For this to work, you'll need to set up the same Apache based authentication 192 // rights via WebSVN. For this to work, you'll need to set up the same Apache based authentication
190 // to the WebSVN (or wsvn) directory as you have for Subversion itself. More information can be 193 // to the WebSVN (or wsvn) directory as you have for Subversion itself. More information can be
191 // found in install.txt 194 // found in install.txt
192   195  
193 // $config->useAuthenticationFile('/path/to/accessfile'); // Global access file 196 // $config->useAuthenticationFile('/path/to/accessfile'); // Global access file
194   197  
195 // You may also specify a per repository access file by uncommenting and copying the following 198 // You may also specify a per repository access file by uncommenting and copying the following
196 // line as necessary. Use the convention 'groupname.myrep' if your repository is in a group. 199 // line as necessary. Use the convention 'groupname.myrep' if your repository is in a group.
197   200  
198 // $config->useAuthenticationFile('/path/to/accessfile', 'myrep'); // Access file for myrep 201 // $config->useAuthenticationFile('/path/to/accessfile', 'myrep'); // Access file for myrep
199   202  
200 // }}} 203 // }}}
201   204  
202 // {{{ FILE CONTENT --- 205 // {{{ FILE CONTENT ---
203 // 206 //
204 // You may wish certain file types to be GZIP'd and delieved to the user when clicked apon. 207 // You may wish certain file types to be GZIP'd and delieved to the user when clicked apon.
205 // This is useful for binary files and the like that don't display well in a browser window! 208 // This is useful for binary files and the like that don't display well in a browser window!
206 // Copy, uncomment and modify this line for each extension to which this rule should apply. 209 // Copy, uncomment and modify this line for each extension to which this rule should apply.
207 // (Don't forget the . before the extension. You don't need an index between the []'s). 210 // (Don't forget the . before the extension. You don't need an index between the []'s).
208 // If you'd rather that the files were delivered uncompressed with the associated MIME type, 211 // If you'd rather that the files were delivered uncompressed with the associated MIME type,
209 // then read below. 212 // then read below.
210 // 213 //
211 // $zipped[] = '.dll'; 214 // $zipped[] = '.dll';
212   215  
213 // Subversion controlled files have an svn:mime-type property that can 216 // Subversion controlled files have an svn:mime-type property that can
214 // be set on a file indicating its mime type. By default binary files 217 // be set on a file indicating its mime type. By default binary files
215 // are set to the generic appcliation/octet-stream, and other files 218 // are set to the generic appcliation/octet-stream, and other files
216 // don't have it set at all. WebSVN also has a built-in list of 219 // don't have it set at all. WebSVN also has a built-in list of
217 // associations from file extension to MIME content type. (You can 220 // associations from file extension to MIME content type. (You can
218 // view this list in setup.inc). 221 // view this list in setup.inc).
219 // 222 //
220 // Determining the content-type: By default, if the svn:mime-type 223 // Determining the content-type: By default, if the svn:mime-type
221 // property exists and is different from application/octet-stream, it 224 // property exists and is different from application/octet-stream, it
222 // is used. Otherwise, if the built-in list has a contentType entry 225 // is used. Otherwise, if the built-in list has a contentType entry
223 // for the extension of the file, that is used. Otherwise, if the 226 // for the extension of the file, that is used. Otherwise, if the
224 // svn:mime-type property exists has the generic binary value of 227 // svn:mime-type property exists has the generic binary value of
225 // application/octet-stream, the file will be served as a binary 228 // application/octet-stream, the file will be served as a binary
226 // file. Otherwise, the file will be brought up as ASCII text in the 229 // file. Otherwise, the file will be brought up as ASCII text in the
227 // browser window (although this text may optionally be colourised. 230 // browser window (although this text may optionally be colourised.
228 // See below). 231 // See below).
229 // 232 //
230 // Uncomment this if you want to ignore any svn:mime-type property on your 233 // Uncomment this if you want to ignore any svn:mime-type property on your
231 // files. 234 // files.
232 // 235 //
233 // $config->ignoreSvnMimeTypes(); 236 // $config->ignoreSvnMimeTypes();
234 // 237 //
235 // Uncomment this if you want skip WebSVN's custom mime-type handling 238 // Uncomment this if you want skip WebSVN's custom mime-type handling
236 // 239 //
237 // $config->ignoreWebSVNContentTypes(); 240 // $config->ignoreWebSVNContentTypes();
238 // 241 //
239 // Following the examples below, you can add new associations, modify 242 // Following the examples below, you can add new associations, modify
240 // the default ones or even delete them entirely (to show them in 243 // the default ones or even delete them entirely (to show them in
241 // ASCII via WebSVN). 244 // ASCII via WebSVN).
242   245  
243 // $contentType['.c'] = 'plain/text'; // Create a new association 246 // $contentType['.c'] = 'plain/text'; // Create a new association
244 // $contentType['.doc'] = 'plain/text'; // Modify an existing one 247 // $contentType['.doc'] = 'plain/text'; // Modify an existing one
245 // unset($contentType['.m'] // Remove a default association 248 // unset($contentType['.m'] // Remove a default association
246   249  
247 // }}} 250 // }}}
248   251  
249 // {{{ TARBALLS --- 252 // {{{ TARBALLS ---
250   253  
251 // You need tar and gzip installed on your system. Set the paths above if necessary 254 // You need tar and gzip installed on your system. Set the paths above if necessary
252 // 255 //
253 // Uncomment the line below to offer a tarball download option across all your 256 // Uncomment the line below to offer a tarball download option across all your
254 // repositories. 257 // repositories.
255 // 258 //
256 $config->allowDownload(); 259 $config->allowDownload();
257 // 260 //
258 // To change the global option for individual repositories, uncomment and replicate 261 // To change the global option for individual repositories, uncomment and replicate
259 // the required line below (replacing 'myrep' for the name of the repository to be changed). 262 // the required line below (replacing 'myrep' for the name of the repository to be changed).
260 // Use the convention 'groupname.myrep' if your repository is in a group. 263 // Use the convention 'groupname.myrep' if your repository is in a group.
261   264  
262 // $config->allowDownload('myrep'); // Specifically allow downloading for 'myrep' 265 // $config->allowDownload('myrep'); // Specifically allow downloading for 'myrep'
263 // $config->disallowDownload('myrep'); // Specifically disallow downloading for 'myrep' 266 // $config->disallowDownload('myrep'); // Specifically disallow downloading for 'myrep'
264   267  
265 // You can also choose the minimum directory level from which you'll allow downloading. 268 // You can also choose the minimum directory level from which you'll allow downloading.
266 // A value of zero will allow downloading from the root. 1 will allow downloding of directories 269 // A value of zero will allow downloading from the root. 1 will allow downloding of directories
267 // in the root, etc. 270 // in the root, etc.
268 // 271 //
269 // If your project is arranged with trunk, tags and branches at the root level, then a value of 2 272 // If your project is arranged with trunk, tags and branches at the root level, then a value of 2
270 // would allow the downloading of directories within branches/tags while disallowing the download 273 // would allow the downloading of directories within branches/tags while disallowing the download
271 // of the entire branches or tags directories. This would also stop downloading of the trunk, but 274 // of the entire branches or tags directories. This would also stop downloading of the trunk, but
272 // see after for path exceptions. 275 // see after for path exceptions.
273 // 276 //
274 // Change the line below to set the download level across all your repositories. 277 // Change the line below to set the download level across all your repositories.
275   278  
276 $config->setMinDownloadLevel(0); 279 $config->setMinDownloadLevel(0);
277   280  
278 // To change the level for individual repositories, uncomment and replicate 281 // To change the level for individual repositories, uncomment and replicate
279 // the required line below (replacing 'myrep' for the name of the repository to be changed). 282 // the required line below (replacing 'myrep' for the name of the repository to be changed).
280 // Use the convention 'groupname.myrep' if your repository is in a group. 283 // Use the convention 'groupname.myrep' if your repository is in a group.
281   284  
282 // $config->setMinDownloadLevel(2, 'myrep'); 285 // $config->setMinDownloadLevel(2, 'myrep');
283   286  
284 // Finally, you may add or remove certain directories (and their contents) either globally 287 // Finally, you may add or remove certain directories (and their contents) either globally
285 // or on a per repository basis. Uncomment and copy the following lines as necessary. Note 288 // or on a per repository basis. Uncomment and copy the following lines as necessary. Note
286 // that the these are searched in the order than you give them until a match is made (with the 289 // that the these are searched in the order than you give them until a match is made (with the
287 // exception that all the per repository exceptions are tested before the global ones). This means 290 // exception that all the per repository exceptions are tested before the global ones). This means
288 // that you must disallow /a/b/c/ before you allow /a/b/ otherwise the allowed match on /a/b/ will 291 // that you must disallow /a/b/c/ before you allow /a/b/ otherwise the allowed match on /a/b/ will
289 // stop any further searching, thereby allowing downloads on /a/b/c/. 292 // stop any further searching, thereby allowing downloads on /a/b/c/.
290   293  
291 // Global exceptions possibilties: 294 // Global exceptions possibilties:
292 // 295 //
293 // $config->addAllowedDownloadException('/path/to/allowed/directory/'); 296 // $config->addAllowedDownloadException('/path/to/allowed/directory/');
294 // $config->addDisAllowedDownloadException('/path/to/disallowed/directory/'); 297 // $config->addDisAllowedDownloadException('/path/to/disallowed/directory/');
295 // 298 //
296 // Per repository exception possibilties: 299 // Per repository exception possibilties:
297 // Use the convention 'groupname.myrep' if your repository is in a group. 300 // Use the convention 'groupname.myrep' if your repository is in a group.
298 // 301 //
299 // $config->addAllowedDownloadException('/path/to/allowed/directory/', 'myrep'); 302 // $config->addAllowedDownloadException('/path/to/allowed/directory/', 'myrep');
300 // $config->addDisAllowedDownloadException('/path/to/disallowed/directory/', 'myrep'); 303 // $config->addDisAllowedDownloadException('/path/to/disallowed/directory/', 'myrep');
301   304  
302 // }}} 305 // }}}
303   306  
304 // {{{ COLOURISATION --- 307 // {{{ COLOURISATION ---
305   308  
306 // Uncomment this line if you want to use Enscript to colourise your file listings 309 // Uncomment this line if you want to use Enscript to colourise your file listings
307 // 310 //
308 // You'll need Enscript version 1.6 or higher AND Sed installed to use this feature. 311 // You'll need Enscript version 1.6 or higher AND Sed installed to use this feature.
309 // Set the path above. 312 // Set the path above.
310 // 313 //
311 // $config->useEnscript(); 314 // $config->useEnscript();
312   315  
313 // Enscript need to be told what the contents of a file are so that it can be colourised 316 // Enscript need to be told what the contents of a file are so that it can be colourised
314 // correctly. WebSVN includes a predefined list of mappings from file extension to Enscript 317 // correctly. WebSVN includes a predefined list of mappings from file extension to Enscript
315 // file type (viewable in setup.inc). 318 // file type (viewable in setup.inc).
316 // 319 //
317 // Here you should add and other extensions not already listed or redefine the default ones. eg: 320 // Here you should add and other extensions not already listed or redefine the default ones. eg:
318 // 321 //
319 // $extEnscript['.pas'] = 'pascal'; 322 // $extEnscript['.pas'] = 'pascal';
320 // 323 //
321 // Note that extensions are case sensitive. 324 // Note that extensions are case sensitive.
322   325  
323 // }}} 326 // }}}
324   327  
325 // {{{ RSSFEED --- 328 // {{{ RSSFEED ---
326   329  
327 // Uncomment this line if you wish to hide the RSS feed links across all repositories 330 // Uncomment this line if you wish to hide the RSS feed links across all repositories
328 // 331 //
329 // $config->hideRSS(); 332 // $config->hideRSS();
330 // 333 //
331 // To change the global option for individual repositories, uncomment and replicate 334 // To change the global option for individual repositories, uncomment and replicate
332 // the required line below (replacing 'myrep' for the name of the repository to be changed). 335 // the required line below (replacing 'myrep' for the name of the repository to be changed).
333 // Use the convention 'groupname.myrep' if your repository is in a group. 336 // Use the convention 'groupname.myrep' if your repository is in a group.
334   337  
335 // $config->hideRSS('myrep'); // Specifically hide RSS links for 'myrep' 338 // $config->hideRSS('myrep'); // Specifically hide RSS links for 'myrep'
336 // $config->showRSS('myrep'); // Specifically show RSS links for 'myrep' 339 // $config->showRSS('myrep'); // Specifically show RSS links for 'myrep'
337   340  
338 // }}} 341 // }}}
339   342  
340 // {{{ BUGTRAQ --- 343 // {{{ BUGTRAQ ---
341   344  
342 // Uncomment this line if you wish to use bugtraq: properties to show links to your BugTracker 345 // Uncomment this line if you wish to use bugtraq: properties to show links to your BugTracker
343 // from the log messages. 346 // from the log messages.
344 // 347 //
345 // $config->useBugtraqProperties(); 348 // $config->useBugtraqProperties();
346 // 349 //
347 // To change the global option for individual repositories, uncomment and replicate 350 // To change the global option for individual repositories, uncomment and replicate
348 // the required line below (replacing 'myrep' for the name of the repository to be changed). 351 // the required line below (replacing 'myrep' for the name of the repository to be changed).
349 // Use the convention 'groupname.myrep' if your repository is in a group. 352 // Use the convention 'groupname.myrep' if your repository is in a group.
350   353  
351 // $config->useBugtraqProperties('myrep'); // Specifically use bugtraq properties for 'myrep' 354 // $config->useBugtraqProperties('myrep'); // Specifically use bugtraq properties for 'myrep'
352 // $config->ignoreBugtraqProperties('myrep'); // Specifically ignore bugtraq properties for 'myrep' 355 // $config->ignoreBugtraqProperties('myrep'); // Specifically ignore bugtraq properties for 'myrep'
353   356  
354 // }}} 357 // }}}
355   358  
356 // {{{ MISCELLANEOUS --- 359 // {{{ MISCELLANEOUS ---
357   360  
358 // Comment out this if you don't have the right to use it. Be warned that you may need it however! 361 // Comment out this if you don't have the right to use it. Be warned that you may need it however!
359 set_time_limit(0); 362 set_time_limit(0);
360   363  
361 // Comment this line to turn off caching of repo information. This will slow down your browsing. 364 // Comment this line to turn off caching of repo information. This will slow down your browsing.
362 $config->setCachingOn(); 365 $config->setCachingOn();
363   366  
364 // Number of spaces to expand tabs to in diff/listing view across all repositories 367 // Number of spaces to expand tabs to in diff/listing view across all repositories
365   368  
366 $config->expandTabsBy(8); 369 $config->expandTabsBy(8);
367   370  
368 // To change the global option for individual repositories, uncomment and replicate 371 // To change the global option for individual repositories, uncomment and replicate
369 // the required line below (replacing 'myrep' for the name of the repository to be changed). 372 // the required line below (replacing 'myrep' for the name of the repository to be changed).
370 // Use the convention 'groupname.myrep' if your repository is in a group. 373 // Use the convention 'groupname.myrep' if your repository is in a group.
371   374  
372 // $config->expandTabsBy(3, 'myrep'); // Expand Tabs by 3 for repository 'myrep' 375 // $config->expandTabsBy(3, 'myrep'); // Expand Tabs by 3 for repository 'myrep'
373   376  
374 // For installations without PHP5, a copy of PEAR's PHP Compat library is included. 377 // For installations without PHP5, a copy of PEAR's PHP Compat library is included.
375 // If you have your own version of Compat you wish to use, go ahead and specify here. 378 // If you have your own version of Compat you wish to use, go ahead and specify here.
376   379  
377 // $config->setPHPCompatPath('/usr/share/php/PHP/'); 380 // $config->setPHPCompatPath('/usr/share/php/PHP/');
378   381  
379 // }}} 382 // }}}
380 ?> 383 ?>