git.cweiske.de
/
phorkie.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
automatically configure git paths (dir + public clone url)
[phorkie.git]
/
data
/
config.default.php
diff --git
a/data/config.default.php
b/data/config.default.php
index 45adf92aed4742c2d1a684cb4d6fd680996ff800..5b56fc7e16d87de96bdd0c60102c4276c03cc30f 100644
(file)
--- a/
data/config.default.php
+++ b/
data/config.default.php
@@
-1,19
+1,34
@@
<?php
<?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,
$GLOBALS['phorkie']['cfg'] = array(
'debug' => false,
- 'gitdir' => __DIR__ . '/../repos/git/',
- 'workdir' => __DIR__ . '/../repos/work/',
+ 'git' => array(
+ 'public' => '%BASEURL%' . 'repos/git/',
+ 'private' => null,
+ ),
+ 'gitdir' => $wwwDir . 'repos/git/',
+ 'workdir' => $wwwDir . 'repos/work/',
'tpl' => __DIR__ . '/templates/',
'tpl' => __DIR__ . '/templates/',
- 'baseurl' => '/',
+ 'baseurl' => null,
+ 'avatars' => true,
'css' => '',
'css' => '',
- 'iconpng' => '',
+ 'iconpng' => '',
//phorkie browser icon (favicon)
'title' => 'phorkie',
'topbar' => '',
'setupcheck' => true,
'elasticsearch' => null,
'title' => 'phorkie',
'topbar' => '',
'setupcheck' => true,
'elasticsearch' => null,
- 'geshi' => 'MediaWiki/geshi/geshi/geshi.php',
'index' => 'new',//"new" or "list"
'perPage' => 10,
'index' => 'new',//"new" or "list"
'perPage' => 10,
+ 'defaultListPage' => 'last',//a number or "last"
'notificator' => array(
/* send out pingback/webmentions when a remote paste is forked */
'linkback' => true,
'notificator' => array(
/* send out pingback/webmentions when a remote paste is forked */
'linkback' => true,
@@
-149,6
+164,12
@@
$GLOBALS['phorkie']['languages'] = array(
'mime' => 'text/xml',
'geshi' => 'xml'
),
'mime' => 'text/xml',
'geshi' => 'xml'
),
+ 'xsl' => array(
+ 'title' => 'eXtensible Stylesheet Language',
+ 'mime' => 'text/xml',
+ 'geshi' => 'xml',
+ 'show' => false
+ ),
);
//needed for UTF-8 characters in file names
);
//needed for UTF-8 characters in file names