2 $GLOBALS['phorkie']['cfg'] = array(
4 'gitdir' => __DIR__ . '/../repos/git/',
5 'workdir' => __DIR__ . '/../repos/work/',
6 'tpl' => __DIR__ . '/templates/',
10 'iconpng' => '',//phorkie browser icon (favicon)
14 'elasticsearch' => null,
15 'geshi' => 'MediaWiki/geshi/geshi/geshi.php',
16 'index' => 'new',//"new" or "list"
18 'defaultListPage' => 'last',//a number or "last"
19 'notificator' => array(
20 /* send out pingback/webmentions when a remote paste is forked */
23 /* array of urls that get called when
24 a paste is created, edited or deleted */
28 $GLOBALS['phorkie']['auth'] = array(
29 // 0 = public, no authentication, 1 = protect adds/edits/deletes,
30 // 2 = require authentication
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
37 $GLOBALS['phorkie']['tools'] = array(
38 '\\phorkie\\Tool_Xmllint' => true,
39 '\\phorkie\\Tool_PHPlint' => true,
42 * Array of supported file types / languages.
43 * Key is the file extension
45 $GLOBALS['phorkie']['languages'] = array(
53 'mime' => 'text/diff',
58 'mime' => 'text/html',
63 'mime' => 'text/html',
68 'title' => 'JPEG image',
69 'mime' => 'image/jpeg',
78 'title' => 'Javascript',
79 'mime' => 'application/javascript',
80 'geshi' => 'javascript'
83 'title' => 'Javascript',
84 'mime' => 'application/javascript',
85 'geshi' => 'javascript',
89 'title' => 'Markdown',
90 'mime' => 'text/x-markdown',
91 'renderer' => '\\phorkie\\Renderer_Markdown'
95 'mime' => 'application/x-perl',
100 'mime' => 'text/x-php',
104 'title' => 'PNG image',
105 'mime' => 'image/png',
109 'title' => 'Ruby/Rails',
110 'mime' => 'text/x-ruby', /* Is this an acceptable mime type? */
114 'title' => 'reStructuredText',
115 'mime' => 'text/x-rst',
117 'renderer' => '\\phorkie\\Renderer_ReStructuredText',
120 'title' => 'Shell script (Bash)',
121 'mime' => 'text/x-shellscript',
126 'mime' => 'text/x-sql',
130 'title' => 'SVG image',
131 'mime' => 'image/svg+xml',
135 'title' => 'Text (plain)',
136 'mime' => 'text/plain',
140 'title' => 'TypoScript',
141 'mime' => 'text/x-typoscript',/* TODO: correct type */
142 'geshi' => 'typoscript'
146 'mime' => 'application/wsdl+xml',
151 'mime' => 'text/xml',
155 'title' => 'eXtensible Stylesheet Language',
156 'mime' => 'text/xml',
162 //needed for UTF-8 characters in file names
163 setlocale(LC_CTYPE, 'en_US.UTF_8');