Try to guess the script URL
[gitphp.git] / config / gitphp.conf.php.example
blob:a/config/gitphp.conf.php.example -> blob:b/config/gitphp.conf.php.example
--- a/config/gitphp.conf.php.example
+++ b/config/gitphp.conf.php.example
@@ -1,6 +1,6 @@
 <?php
 /*
- *  config.inc.php
+ *  gitphp.conf.php
  *  gitphp: A PHP git repository browser
  *  Component: Configuration
  *
@@ -93,19 +93,27 @@
 $gitphp_conf['smarty_prefix'] = "smarty/";
 
 /*
- * bzsnapshots
- * If set to true, will bzcompress snapshot tars before sending them.
- * Your PHP must have been compiled with bzip2 support!
+ * compressformat
+ * Indicates what kind of compression will be done on the
+ * snapshot archive.  Recognized settings are:
+ *
+ * GITPHP_COMPRESS_BZ2 - create a tar.bz2 file (php must have bz2 support)
+ * GITPHP_COMPRESS_GZ - create a tar.gz file (php must have gzip support)
+ * GITPHP_COMPRESS_ZIP - create a zip file
+ *
+ * Any other setting, or no setting, will create uncompressed tar archives
+ * If you choose a compression format and your php does not support it,
+ * gitphp will fall back to uncompressed tar archives
  */
-$gitphp_conf['bzsnapshots'] = TRUE;
+$gitphp_conf['compressformat'] = GITPHP_COMPRESS_BZ2;
 
 /*
- * bzblocksize
- * Sets the compression level for bzip2.  Ranges from 1-9, with
+ * compresslevel
+ * Sets the compression level for snapshots.  Ranges from 1-9, with
  * 9 being the most compression but requiring the most processing
- * (bzip defaults to 4)
+ * (bzip defaults to 4, gzip defaults to -1)
  */
-$gitphp_conf['bzblocksize'] = 9;
+$gitphp_conf['compresslevel'] = 9;
 
 /*
  * geshi
@@ -148,6 +156,19 @@
 //$gitphp_conf['magicdb'] = "C:\\wamp\\php\\extras\\magic";  // Windows
 
 /*
+ * search
+ * Set this to false or comment it out to disable searching
+ */
+$gitphp_conf['search'] = TRUE;
+
+/*
+ * filesearch
+ * Set this to false to disable searching within files
+ * (it can be resource intensive)
+ */
+$gitphp_conf['filesearch'] = TRUE;
+
+/*
  * git_projects
  * Two-dimensional array list of projects
  * First array index is the name of the category the projects

comments