3 * phorkie's default configuration.
5 * DO NOT EDIT THIS FILE but write your changes into data/config.php
7 $pharFile = \Phar::running();
9 $phorkieDir = __DIR__ . '/../';
10 $wwwDir = $phorkieDir . 'www/';
12 //remove phar:// from the path
13 $phorkieDir = dirname(substr($pharFile, 7)) . '/';
14 $wwwDir = $phorkieDir;
17 $GLOBALS['phorkie']['cfg'] = array(
20 'public' => '%BASEURL%' . 'repos/git/',
23 'cachedir' => $phorkieDir . 'cache/',
24 'gitdir' => $wwwDir . 'repos/git/',
25 'workdir' => $wwwDir . 'repos/work/',
26 'tpl' => __DIR__ . '/templates/',
30 'iconpng' => '',//phorkie browser icon (favicon)
34 'elasticsearch' => null,
35 'index' => 'new',//"new" or "list"
38 'defaultListPage' => 'last',//a number or "last"
39 'notificator' => array(
40 /* send out pingback/webmentions when a remote paste is forked */
43 /* array of urls that get called when
44 a paste is created, edited or deleted */
47 'geshi' => 'geshi.php',
49 $GLOBALS['phorkie']['auth'] = array(
50 // 0 = public, no authentication, 1 = protect adds/edits/deletes,
51 // 2 = require authentication
53 'listedUsersOnly' => false,
54 'users' => array(), // Array of OpenIDs that may login
55 'anonymousName' => 'Anonymous', // Email for non-authenticated commits
56 'anonymousEmail' => 'anonymous@phorkie', // Email for non-authenticated commits
58 $GLOBALS['phorkie']['tools'] = array(
59 '\\phorkie\\Tool_Xmllint' => true,
60 '\\phorkie\\Tool_PHPlint' => true,
63 * Array of supported file types / languages.
64 * Key is the file extension
66 $GLOBALS['phorkie']['languages'] = array(
68 'title' => 'Configuration',
80 'mime' => 'text/diff',
85 'mime' => 'text/html',
90 'mime' => 'text/html',
95 'title' => 'JPEG image',
96 'mime' => 'image/jpeg',
101 'mime' => 'text/ini',
105 'title' => 'Javascript',
106 'mime' => 'application/javascript',
107 'geshi' => 'javascript'
110 'title' => 'Javascript',
111 'mime' => 'application/javascript',
112 'geshi' => 'javascript',
116 'title' => 'Markdown',
117 'mime' => 'text/x-markdown',
118 'renderer' => '\\phorkie\\Renderer_Markdown'
122 'mime' => 'application/x-perl',
127 'mime' => 'text/x-php',
131 'title' => 'PNG image',
132 'mime' => 'image/png',
136 'title' => 'Ruby/Rails',
137 'mime' => 'text/x-ruby', /* Is this an acceptable mime type? */
141 'title' => 'reStructuredText',
142 'mime' => 'text/x-rst',
144 'renderer' => '\\phorkie\\Renderer_ReStructuredText',
147 'title' => 'Shell script (Bash)',
148 'mime' => 'text/x-shellscript',
153 'mime' => 'text/x-sql',
157 'title' => 'SVG image',
158 'mime' => 'image/svg+xml',
162 'title' => 'Text (plain)',
163 'mime' => 'text/plain',
165 'renderer' => '\\phorkie\\Renderer_Plaintext'
168 'title' => 'TypoScript',
169 'mime' => 'text/x-typoscript',/* TODO: correct type */
170 'geshi' => 'typoscript'
174 'mime' => 'application/wsdl+xml',
179 'mime' => 'text/xml',
183 'title' => 'eXtensible Stylesheet Language',
184 'mime' => 'text/xml',
190 //needed for UTF-8 characters in file names
191 setlocale(LC_CTYPE, 'en_US.UTF_8');