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