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