continued :)
[phpgitweb.git] / htdocs / config.example.php
index b8441e06ce3ebb8ec8606be264a2743b3bb19fde..f33327883a91b8ff8da28f73c3704a0bd05fec86 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-/* config.example.php - phpwebirc
+/* config.example.php - phpgitweb
  * Copyright (C) 2011-2012  Philipp Kreil (pk910)
  * 
  * This program is free software: you can redistribute it and/or modify
  * along with this program. If not, see <http://www.gnu.org/licenses/>. 
  */
 
+/* Global configuration */
 
 
+/* GIT configuration */
+class GitConfig {
+    /* PHPGitWeb Title / Name */
+       const GITWEB_TITLE = "PHPGitWeb";
+       
+    /* path to git projects (<project>.git) */
+    const PROJECT_ROOT = "/srv/gitosis/repositories/";
+    
+    /* Point to projects.list file generated by gitosis. */
+    //const PROJECT_LIST = NULL;
+    const PROJECT_LIST = "/srv/gitosis/gitosis/projects.list";
+    
+    /* Only allow Projects from PROJECT_LIST being viewed */
+    const STRICT_EXPORT = true;
+    
+    /* Only allow Projects with this file within their PROJECT_ROOT being viewed */
+    //const EXPORT_FILE = "export-ok";
+    const EXPORT_FILE = NULL;
+       
+       /* Override Project Owner to this one */
+       const PROJECT_OWNER = NULL;
+       
+       /* Template name */
+       const TEMPLATE_NAME = NULL;
+       
+       /* Git executable */
+       const GIT_EXEC = NULL; /* autodetect */
+}
+
 ?>
\ No newline at end of file