Warn people about changing config.default.php
[phorkie.git] / data / config.default.php
index 2e588fadc39fb8a93a68bfade175f5285d899e6d..4c3784950e1ff2957007563ed65be3a736144f0c 100644 (file)
@@ -1,16 +1,28 @@
 <?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'        => $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,
@@ -50,6 +62,12 @@ $GLOBALS['phorkie']['tools'] = 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',