2 $GLOBALS['phorkie']['cfg'] = array(
4 'gitdir' => __DIR__ . '/../repos/git/',
5 'workdir' => __DIR__ . '/../repos/work/',
6 'tpl' => __DIR__ . '/templates/',
11 'elasticsearch' => null,
12 'geshi' => 'MediaWiki/geshi/geshi/geshi.php',
13 'index' => 'new'//"new" or "list"
15 $GLOBALS['phorkie']['auth'] = array(
16 // 0 = public, no authentication, 1 = protect adds/edits/deletes,
17 // 2 = require authentication
19 'listedUsersOnly' => false,
20 'users' => array(), // Array of OpenIDs that may login
21 'anonymousName' => 'Anonymous', // Email for non-authenticated commits
22 'anonymousEmail' => 'anonymous@phorkie', // Email for non-authenticated commits
24 $GLOBALS['phorkie']['tools'] = array(
25 '\\phorkie\\Tool_Xmllint' => true,
26 '\\phorkie\\Tool_PHPlint' => true,
29 * Array of supported file types / languages.
30 * Key is the file extension
32 $GLOBALS['phorkie']['languages'] = array(
40 'mime' => 'text/diff',
45 'mime' => 'text/html',
50 'mime' => 'text/html',
55 'title' => 'JPEG image',
56 'mime' => 'image/jpeg',
65 'title' => 'Javascript',
66 'mime' => 'application/javascript',
67 'geshi' => 'javascript'
70 'title' => 'Javascript',
71 'mime' => 'application/javascript',
72 'geshi' => 'javascript',
76 'title' => 'Markdown',
77 'mime' => 'text/x-markdown',
78 'renderer' => '\\phorkie\\Renderer_Markdown'
82 'mime' => 'application/x-perl',
87 'mime' => 'text/x-php',
91 'title' => 'PNG image',
92 'mime' => 'image/png',
96 'title' => 'Ruby/Rails',
97 'mime' => 'text/x-ruby', /* Is this an acceptable mime type? */
101 'title' => 'reStructuredText',
102 'mime' => 'text/x-rst',
104 'renderer' => '\\phorkie\\Renderer_ReStructuredText',
107 'title' => 'Shell script (Bash)',
108 'mime' => 'text/x-shellscript',
113 'mime' => 'text/x-sql',
117 'title' => 'SVG image',
118 'mime' => 'image/svg+xml',
122 'title' => 'Text (plain)',
123 'mime' => 'text/plain',
127 'title' => 'TypoScript',
128 'mime' => 'text/x-typoscript',/* TODO: correct type */
129 'geshi' => 'typoscript'
133 'mime' => 'text/xml',