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