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