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