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