6b3bdc4656dcc5891e6e7d8ab03c7cc2c6f3f3f4
[phpgitweb.git] / htdocs / config.example.php
1 <?php
2 /* config.example.php - phpgitweb
3  * Copyright (C) 2011-2012  Philipp Kreil (pk910)
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 3 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, see <http://www.gnu.org/licenses/>. 
17  */
18
19 /* Global configuration */
20
21
22 /* GIT configuration */
23 class GitConfig {
24     /* PHPGitWeb Title / Name */
25         const GITWEB_TITLE = "PHPGitWeb";
26         
27     /* path to git projects (<project>.git) */
28     const PROJECT_ROOT = "/srv/gitosis/repositories/";
29     
30     /* Point to projects.list file generated by gitosis. */
31     //const PROJECT_LIST = NULL;
32     const PROJECT_LIST = "/srv/gitosis/gitosis/projects.list";
33     
34     /* Only allow Projects from PROJECT_LIST being viewed */
35     const STRICT_EXPORT = true;
36     
37     /* Only allow Projects with this file within their PROJECT_ROOT being viewed */
38     //const EXPORT_FILE = "export-ok";
39     const EXPORT_FILE = NULL;
40         
41         /* Override Project Owner to this one */
42         const PROJECT_OWNER = NULL;
43         
44         /* Git Base URL (The URL where all the repositories can be cloned from.) */
45         //static public $GIT_BASE_URL = NULL;
46         static public $GIT_BASE_URL = array("git://git.example.net");
47         
48         /* Template name */
49         const TEMPLATE_NAME = NULL;
50         
51         /* Git executable */
52         const GIT_EXEC = NULL; /* autodetect */
53         
54         /* GIT Graphs */
55         const GITGRAPH_ENABLE = true;
56         const GITGRAPH_MAX_BRANCHES = 20;
57         const GITGRAPH_END_SIZE = 20;
58         const GITGRAPH_TILE_SIZE = 20;
59         const GITGRAPH_BASE64 = true;
60 }
61
62 ?>