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 'defaultListPage' => 'last',//a number or "last"
18 'notificator' => array(
19 /* send out pingback/webmentions when a remote paste is forked */
22 /* array of urls that get called when
23 a paste is created, edited or deleted */
27 $GLOBALS['phorkie']['auth'] = array(
28 // 0 = public, no authentication, 1 = protect adds/edits/deletes,
29 // 2 = require authentication
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
36 $GLOBALS['phorkie']['tools'] = array(
37 '\\phorkie\\Tool_Xmllint' => true,
38 '\\phorkie\\Tool_PHPlint' => true,
41 * Array of supported file types / languages.
42 * Key is the file extension
44 $GLOBALS['phorkie']['languages'] = array(
52 'mime' => 'text/diff',
57 'mime' => 'text/html',
62 'mime' => 'text/html',
67 'title' => 'JPEG image',
68 'mime' => 'image/jpeg',
77 'title' => 'Javascript',
78 'mime' => 'application/javascript',
79 'geshi' => 'javascript'
82 'title' => 'Javascript',
83 'mime' => 'application/javascript',
84 'geshi' => 'javascript',
88 'title' => 'Markdown',
89 'mime' => 'text/x-markdown',
90 'renderer' => '\\phorkie\\Renderer_Markdown'
94 'mime' => 'application/x-perl',
99 'mime' => 'text/x-php',
103 'title' => 'PNG image',
104 'mime' => 'image/png',
108 'title' => 'Ruby/Rails',
109 'mime' => 'text/x-ruby', /* Is this an acceptable mime type? */
113 'title' => 'reStructuredText',
114 'mime' => 'text/x-rst',
116 'renderer' => '\\phorkie\\Renderer_ReStructuredText',
119 'title' => 'Shell script (Bash)',
120 'mime' => 'text/x-shellscript',
125 'mime' => 'text/x-sql',
129 'title' => 'SVG image',
130 'mime' => 'image/svg+xml',
134 'title' => 'Text (plain)',
135 'mime' => 'text/plain',
139 'title' => 'TypoScript',
140 'mime' => 'text/x-typoscript',/* TODO: correct type */
141 'geshi' => 'typoscript'
145 'mime' => 'application/wsdl+xml',
150 'mime' => 'text/xml',
154 'title' => 'eXtensible Stylesheet Language',
155 'mime' => 'text/xml',
161 //needed for UTF-8 characters in file names
162 setlocale(LC_CTYPE, 'en_US.UTF_8');