<?php
+/**
+ * phorkie's default configuration.
+ *
+ * DO NOT EDIT THIS FILE but write your changes into data/config.php
+ */
+$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' => __DIR__ . '/../repos/git/',
- 'workdir' => __DIR__ . '/../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' => '/',
+ 'baseurl' => null,
+ 'avatars' => true,
'css' => '',
- 'iconpng' => '',
+ 'iconpng' => '',//phorkie browser icon (favicon)
'title' => 'phorkie',
'topbar' => '',
'setupcheck' => true,
'elasticsearch' => null,
- 'geshi' => 'MediaWiki/geshi/geshi/geshi.php',
'index' => 'new',//"new" or "list"
'perPage' => 10,
+ 'randomIds' => false,
'defaultListPage' => 'last',//a number or "last"
'notificator' => array(
/* send out pingback/webmentions when a remote paste is forked */
a paste is created, edited or deleted */
)
),
+ 'geshi' => 'geshi.php',
);
$GLOBALS['phorkie']['auth'] = array(
// 0 = public, no authentication, 1 = protect adds/edits/deletes,
* 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',
'txt' => array(
'title' => 'Text (plain)',
'mime' => 'text/plain',
- 'geshi' => 'txt'
+ 'geshi' => 'txt',
+ 'renderer' => '\\phorkie\\Renderer_Plaintext'
),
'ts' => array(
'title' => 'TypoScript',