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