$pharFile = \Phar::running();
if ($pharFile == '') {
$phorkieDir = __DIR__ . '/../';
+ $wwwDir = $phorkieDir . 'www/';
} else {
//remove phar:// from the path
$phorkieDir = dirname(substr($pharFile, 7)) . '/';
+ $wwwDir = $phorkieDir;
}
$GLOBALS['phorkie']['cfg'] = array(
'debug' => false,
- 'gitdir' => $phorkieDir . 'repos/git/',
- 'workdir' => $phorkieDir . 'repos/work/',
+ 'git' => array(
+ 'public' => '%BASEURL%' . 'repos/git/',
+ 'private' => null,
+ ),
+ 'cachedir' => $phorkieDir . 'cache/',
+ 'gitdir' => $wwwDir . 'repos/git/',
+ 'workdir' => $wwwDir . 'repos/work/',
'tpl' => __DIR__ . '/templates/',
'baseurl' => null,
'avatars' => true,
'topbar' => '',
'setupcheck' => true,
'elasticsearch' => null,
- 'geshi' => 'MediaWiki/geshi/geshi/geshi.php',
'index' => 'new',//"new" or "list"
'perPage' => 10,
'defaultListPage' => 'last',//a number or "last"
* Key is the file extension
*/
$GLOBALS['phorkie']['languages'] = array(
+ 'conf' => array(
+ 'title' => 'Configuration',
+ 'mime' => 'text/ini',
+ 'geshi' => 'ini',
+ 'show' => false
+ ),
'css' => array(
'title' => 'CSS',
'mime' => 'text/css',