2 $GLOBALS['phorkie']['cfg'] = array(
4 'gitdir' => __DIR__ . '/../repos/git/',
5 'workdir' => __DIR__ . '/../repos/work/',
6 'tpl' => __DIR__ . '/templates/',
13 'elasticsearch' => null,
14 'geshi' => 'MediaWiki/geshi/geshi/geshi.php',
15 'index' => 'new',//"new" or "list"
17 'notificator' => array(
18 /* send out pingback/webmentions when a remote paste is forked */
21 /* array of urls that get called when
22 a paste is created, edited or deleted */
26 $GLOBALS['phorkie']['auth'] = array(
27 // 0 = public, no authentication, 1 = protect adds/edits/deletes,
28 // 2 = require authentication
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
35 $GLOBALS['phorkie']['tools'] = array(
36 '\\phorkie\\Tool_Xmllint' => true,
37 '\\phorkie\\Tool_PHPlint' => true,
40 * Array of supported file types / languages.
41 * Key is the file extension
43 $GLOBALS['phorkie']['languages'] = array(
51 'mime' => 'text/diff',
56 'mime' => 'text/html',
61 'mime' => 'text/html',
66 'title' => 'JPEG image',
67 'mime' => 'image/jpeg',
76 'title' => 'Javascript',
77 'mime' => 'application/javascript',
78 'geshi' => 'javascript'
81 'title' => 'Javascript',
82 'mime' => 'application/javascript',
83 'geshi' => 'javascript',
87 'title' => 'Markdown',
88 'mime' => 'text/x-markdown',
89 'renderer' => '\\phorkie\\Renderer_Markdown'
93 'mime' => 'application/x-perl',
98 'mime' => 'text/x-php',
102 'title' => 'PNG image',
103 'mime' => 'image/png',
107 'title' => 'Ruby/Rails',
108 'mime' => 'text/x-ruby', /* Is this an acceptable mime type? */
112 'title' => 'reStructuredText',
113 'mime' => 'text/x-rst',
115 'renderer' => '\\phorkie\\Renderer_ReStructuredText',
118 'title' => 'Shell script (Bash)',
119 'mime' => 'text/x-shellscript',
124 'mime' => 'text/x-sql',
128 'title' => 'SVG image',
129 'mime' => 'image/svg+xml',
133 'title' => 'Text (plain)',
134 'mime' => 'text/plain',
138 'title' => 'TypoScript',
139 'mime' => 'text/x-typoscript',/* TODO: correct type */
140 'geshi' => 'typoscript'
144 'mime' => 'application/wsdl+xml',
149 'mime' => 'text/xml',
153 'title' => 'eXtensible Stylesheet Language',
154 'mime' => 'text/xml',
160 //needed for UTF-8 characters in file names
161 setlocale(LC_CTYPE, 'en_US.UTF_8');