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"
18 /* array of urls that get called when
19 a paste is created, edited or deleted */
22 $GLOBALS['phorkie']['auth'] = array(
23 // 0 = public, no authentication, 1 = protect adds/edits/deletes,
24 // 2 = require authentication
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
31 $GLOBALS['phorkie']['tools'] = array(
32 '\\phorkie\\Tool_Xmllint' => true,
33 '\\phorkie\\Tool_PHPlint' => true,
36 * Array of supported file types / languages.
37 * Key is the file extension
39 $GLOBALS['phorkie']['languages'] = array(
47 'mime' => 'text/diff',
52 'mime' => 'text/html',
57 'mime' => 'text/html',
62 'title' => 'JPEG image',
63 'mime' => 'image/jpeg',
72 'title' => 'Javascript',
73 'mime' => 'application/javascript',
74 'geshi' => 'javascript'
77 'title' => 'Javascript',
78 'mime' => 'application/javascript',
79 'geshi' => 'javascript',
83 'title' => 'Markdown',
84 'mime' => 'text/x-markdown',
85 'renderer' => '\\phorkie\\Renderer_Markdown'
89 'mime' => 'application/x-perl',
94 'mime' => 'text/x-php',
98 'title' => 'PNG image',
99 'mime' => 'image/png',
103 'title' => 'Ruby/Rails',
104 'mime' => 'text/x-ruby', /* Is this an acceptable mime type? */
108 'title' => 'reStructuredText',
109 'mime' => 'text/x-rst',
111 'renderer' => '\\phorkie\\Renderer_ReStructuredText',
114 'title' => 'Shell script (Bash)',
115 'mime' => 'text/x-shellscript',
120 'mime' => 'text/x-sql',
124 'title' => 'SVG image',
125 'mime' => 'image/svg+xml',
129 'title' => 'Text (plain)',
130 'mime' => 'text/plain',
134 'title' => 'TypoScript',
135 'mime' => 'text/x-typoscript',/* TODO: correct type */
136 'geshi' => 'typoscript'
140 'mime' => 'application/wsdl+xml',
145 'mime' => 'text/xml',