jablonka.czprosek.czf

websvn

Subversion Repositories:
[/] [include/] [config.php] - Blame information for rev 1

 

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

Powered by WebSVN 2.2.1