56ddc43faa2dc7a4a0dd02b3114adad20f56b466
[phorkie.git] / data / config.default.php
1 <?php
2 $GLOBALS['phorkie']['cfg'] = array(
3     'debug'         => false,
4     'gitdir'        => __DIR__ . '/../repos/git/',
5     'workdir'       => __DIR__ . '/../repos/work/',
6     'tpl'           => __DIR__ . '/templates/',
7     'baseurl'       => '/',
8     'css'           => '',
9     'title'         => 'phorkie',
10     'topbar'        => '',
11     'setupcheck'    => true,
12     'elasticsearch' => null,
13     'geshi'         => 'MediaWiki/geshi/geshi/geshi.php',
14     'index'         => 'new'//"new" or "list"
15 );
16 $GLOBALS['phorkie']['auth'] = array(
17     // 0 = public, no authentication, 1 = protect adds/edits/deletes,
18     // 2 = require authentication
19     'securityLevel'   => 0,
20     'listedUsersOnly' => false,
21     'users'           => array(),             // Array of OpenIDs that may login
22     'anonymousName'   => 'Anonymous',         // Email for non-authenticated commits
23     'anonymousEmail'  => 'anonymous@phorkie', // Email for non-authenticated commits
24 );
25 $GLOBALS['phorkie']['tools'] = array(
26     '\\phorkie\\Tool_Xmllint' => true,
27     '\\phorkie\\Tool_PHPlint' => true,
28 );
29 /**
30  * Array of supported file types / languages.
31  * Key is the file extension
32  */
33 $GLOBALS['phorkie']['languages'] = array(
34     'css' => array(
35         'title' => 'CSS',
36         'mime'  => 'text/css',
37         'geshi' => 'css'
38     ),
39     'diff' => array(
40         'title' => 'Diff',
41         'mime'  => 'text/diff',
42         'geshi' => 'diff'
43     ),
44     'htm' => array(
45         'title' => 'HTML',
46         'mime'  => 'text/html',
47         'geshi' => 'xml'
48     ),
49     'html' => array(
50         'title' => 'HTML',
51         'mime'  => 'text/html',
52         'geshi' => 'xml',
53         'show'  => false
54     ),
55     'jpg' => array(
56         'title' => 'JPEG image',
57         'mime'  => 'image/jpeg',
58         'show'  => false
59     ),
60     'ini' => array(
61         'title' => 'Ini',
62         'mime'  => 'text/ini',
63         'geshi' => 'ini'
64     ),
65     'js' => array(
66         'title' => 'Javascript',
67         'mime'  => 'application/javascript',
68         'geshi' => 'javascript'
69     ),
70     'json' => array(
71         'title' => 'Javascript',
72         'mime'  => 'application/javascript',
73         'geshi' => 'javascript',
74         'show'  => false
75     ),
76     'md' => array(
77         'title' => 'Markdown',
78         'mime'  => 'text/x-markdown',
79         'renderer' => '\\phorkie\\Renderer_Markdown'
80     ),
81     'pl' => array(
82         'title' => 'Perl',
83         'mime'  => 'application/x-perl',
84         'geshi' => 'pl'
85     ),
86     'php' => array(
87         'title' => 'PHP',
88         'mime'  => 'text/x-php',
89         'geshi' => 'php'
90     ),
91     'png' => array(
92         'title' => 'PNG image',
93         'mime'  => 'image/png',
94         'show'  => false
95     ),
96     'rb' => array(
97         'title' => 'Ruby/Rails',
98         'mime'  => 'text/x-ruby', /* Is this an acceptable mime type? */
99         'geshi' => 'rails'
100     ),
101     'rst' => array(
102         'title' => 'reStructuredText',
103         'mime'  => 'text/x-rst',
104         'geshi' => 'rst',
105         'renderer' => '\\phorkie\\Renderer_ReStructuredText',
106     ),
107     'sh' => array(
108         'title' => 'Shell script (Bash)',
109         'mime'  => 'text/x-shellscript',
110         'geshi' => 'bash'
111     ),
112     'sql' => array(
113         'title' => 'SQL',
114         'mime'  => 'text/x-sql',
115         'geshi' => 'sql'
116     ),
117     'svg' => array(
118         'title' => 'SVG image',
119         'mime'  => 'image/svg+xml',
120         'show'  => false
121     ),
122     'txt' => array(
123         'title' => 'Text (plain)',
124         'mime'  => 'text/plain',
125         'geshi' => 'txt'
126     ),
127     'ts' => array(
128         'title' => 'TypoScript',
129         'mime'  => 'text/x-typoscript',/* TODO: correct type */
130         'geshi' => 'typoscript'
131     ),
132     'xml' => array(
133         'title' => 'XML',
134         'mime'  => 'text/xml',
135         'geshi' => 'xml'
136     ),
137 );
138 ?>