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"
37 'defaultListPage' => 'last',//a number or "last"
38 'notificator' => array(
39 /* send out pingback/webmentions when a remote paste is forked */
42 /* array of urls that get called when
43 a paste is created, edited or deleted */
47 $GLOBALS['phorkie']['auth'] = array(
48 // 0 = public, no authentication, 1 = protect adds/edits/deletes,
49 // 2 = require authentication
51 'listedUsersOnly' => false,
52 'users' => array(), // Array of OpenIDs that may login
53 'anonymousName' => 'Anonymous', // Email for non-authenticated commits
54 'anonymousEmail' => 'anonymous@phorkie', // Email for non-authenticated commits
56 $GLOBALS['phorkie']['tools'] = array(
57 '\\phorkie\\Tool_Xmllint' => true,
58 '\\phorkie\\Tool_PHPlint' => true,
61 * Array of supported file types / languages.
62 * Key is the file extension
64 $GLOBALS['phorkie']['languages'] = array(
66 'title' => 'Configuration',
78 'mime' => 'text/diff',
83 'mime' => 'text/html',
88 'mime' => 'text/html',
93 'title' => 'JPEG image',
94 'mime' => 'image/jpeg',
103 'title' => 'Javascript',
104 'mime' => 'application/javascript',
105 'geshi' => 'javascript'
108 'title' => 'Javascript',
109 'mime' => 'application/javascript',
110 'geshi' => 'javascript',
114 'title' => 'Markdown',
115 'mime' => 'text/x-markdown',
116 'renderer' => '\\phorkie\\Renderer_Markdown'
120 'mime' => 'application/x-perl',
125 'mime' => 'text/x-php',
129 'title' => 'PNG image',
130 'mime' => 'image/png',
134 'title' => 'Ruby/Rails',
135 'mime' => 'text/x-ruby', /* Is this an acceptable mime type? */
139 'title' => 'reStructuredText',
140 'mime' => 'text/x-rst',
142 'renderer' => '\\phorkie\\Renderer_ReStructuredText',
145 'title' => 'Shell script (Bash)',
146 'mime' => 'text/x-shellscript',
151 'mime' => 'text/x-sql',
155 'title' => 'SVG image',
156 'mime' => 'image/svg+xml',
160 'title' => 'Text (plain)',
161 'mime' => 'text/plain',
165 'title' => 'TypoScript',
166 'mime' => 'text/x-typoscript',/* TODO: correct type */
167 'geshi' => 'typoscript'
171 'mime' => 'application/wsdl+xml',
176 'mime' => 'text/xml',
180 'title' => 'eXtensible Stylesheet Language',
181 'mime' => 'text/xml',
187 //needed for UTF-8 characters in file names
188 setlocale(LC_CTYPE, 'en_US.UTF_8');