FIX: URL for access_denied image
[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     'css'           => 'http://twitter.github.com/bootstrap/assets/css/bootstrap.css',
8     'title'         => 'phorkie',
9     'topbar'        => '',
10     'setupcheck'    => true,
11     'elasticsearch' => null,
12     'geshi'         => 'MediaWiki/geshi/geshi/geshi.php',
13     'index'         => 'new'//"new" or "list"
14 );
15 $GLOBALS['phorkie']['auth'] = array(
16     'secure'         => 0,                   // 0 = public, no authentication, 1 = protect adds/edits/deletes, 2 = use authentication
17     'userlist'       => false,               // true = user must be explicitly defined, false = anyone allowed, but they must authenticate
18     'anonymousName'  => 'Anonymous',         // Email for non-authenticated commits
19     'anonymousEmail' => 'anonymous@phorkie'  // Email for non-authenticated commits
20 );
21 $GLOBALS['phorkie']['tools'] = array(
22     '\\phorkie\\Tool_Xmllint' => true,
23     '\\phorkie\\Tool_PHPlint' => true,
24 );
25 /**
26  * Array of supported file types / languages.
27  * Key is the file extension
28  */
29 $GLOBALS['phorkie']['languages'] = array(
30     'css' => array(
31         'title' => 'CSS',
32         'mime'  => 'text/css',
33         'geshi' => 'css'
34     ),
35     'diff' => array(
36         'title' => 'Diff',
37         'mime'  => 'text/diff',
38         'geshi' => 'diff'
39     ),
40     'htm' => array(
41         'title' => 'HTML',
42         'mime'  => 'text/html',
43         'geshi' => 'xml'
44     ),
45     'html' => array(
46         'title' => 'HTML',
47         'mime'  => 'text/html',
48         'geshi' => 'xml',
49         'show'  => false
50     ),
51     'jpg' => array(
52         'title' => 'JPEG image',
53         'mime'  => 'image/jpeg',
54         'show'  => false
55     ),
56     'ini' => array(
57         'title' => 'Ini',
58         'mime'  => 'text/ini',
59         'geshi' => 'ini'
60     ),
61     'js' => array(
62         'title' => 'Javascript',
63         'mime'  => 'application/javascript',
64         'geshi' => 'javascript'
65     ),
66     'pl' => array(
67         'title' => 'Perl',
68         'mime'  => 'application/x-perl',
69         'geshi' => 'pl'
70     ),
71     'php' => array(
72         'title' => 'PHP',
73         'mime'  => 'text/x-php',
74         'geshi' => 'php'
75     ),
76     'png' => array(
77         'title' => 'PNG image',
78         'mime'  => 'image/png',
79         'show'  => false
80     ),
81     'rb' => array(
82         'title' => 'Ruby/Rails',
83         'mime'  => 'text/x-ruby', /* Is this an acceptable mime type? */
84         'geshi' => 'rails'
85     ),
86     'rst' => array(
87         'title' => 'reStructuredText',
88         'mime'  => 'text/x-rst',
89         'geshi' => 'rst',
90         'renderer' => '\\phorkie\\Renderer_ReStructuredText',
91     ),
92     'sh' => array(
93         'title' => 'Shell script (Bash)',
94         'mime'  => 'text/x-shellscript',
95         'geshi' => 'bash'
96     ),
97     'sql' => array(
98         'title' => 'SQL',
99         'mime'  => 'text/x-sql',
100         'geshi' => 'sql'
101     ),
102     'svg' => array(
103         'title' => 'SVG image',
104         'mime'  => 'image/svg+xml',
105         'show'  => false
106     ),
107     'txt' => array(
108         'title' => 'Text (plain)',
109         'mime'  => 'text/plain',
110         'geshi' => 'txt'
111     ),
112     'ts' => array(
113         'title' => 'TypoScript',
114         'mime'  => 'text/x-typoscript',/* TODO: correct type */
115         'geshi' => 'typoscript'
116     ),
117     'xml' => array(
118         'title' => 'XML',
119         'mime'  => 'text/xml',
120         'geshi' => 'xml'
121     ),
122 );
123 ?>