git.cweiske.de
/
phorkie.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
support .conf-iguration files
[phorkie.git]
/
data
/
config.default.php
diff --git
a/data/config.default.php
b/data/config.default.php
index 2e588fadc39fb8a93a68bfade175f5285d899e6d..d603622f0cf4207279d177f4915fc2016ee65016 100644
(file)
--- a/
data/config.default.php
+++ b/
data/config.default.php
@@
-2,15
+2,21
@@
$pharFile = \Phar::running();
if ($pharFile == '') {
$phorkieDir = __DIR__ . '/../';
$pharFile = \Phar::running();
if ($pharFile == '') {
$phorkieDir = __DIR__ . '/../';
+ $wwwDir = $phorkieDir . 'www/';
} else {
//remove phar:// from the path
$phorkieDir = dirname(substr($pharFile, 7)) . '/';
} 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' => $phorkieDir . 'repos/git/',
- 'workdir' => $phorkieDir . 'repos/work/',
+ 'git' => array(
+ 'public' => '%BASEURL%' . 'repos/git/',
+ 'private' => null,
+ ),
+ 'gitdir' => $wwwDir . 'repos/git/',
+ 'workdir' => $wwwDir . 'repos/work/',
'tpl' => __DIR__ . '/templates/',
'baseurl' => null,
'avatars' => true,
'tpl' => __DIR__ . '/templates/',
'baseurl' => null,
'avatars' => true,
@@
-50,6
+56,12
@@
$GLOBALS['phorkie']['tools'] = array(
* Key is the file extension
*/
$GLOBALS['phorkie']['languages'] = array(
* 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',
'css' => array(
'title' => 'CSS',
'mime' => 'text/css',