SproutCMS

This is the code documentation for the SproutCMS project

source of /sprout/config/config.php

Base config file used by Kohana. Won't need changing usually.
  1. <?php
  2. /*
  3.  * kate: tab-width 4; indent-width 4; space-indent on; word-wrap off; word-wrap-column 120;
  4.  * :tabSize=4:indentSize=4:noTabs=true:wrap=false:maxLineLen=120:mode=php:
  5.  *
  6.  * Copyright (C) 2016 Karmabunny Pty Ltd.
  7.  *
  8.  * This file is a part of SproutCMS.
  9.  *
  10.  * SproutCMS is free software: you can redistribute it and/or modify it under the terms
  11.  * of the GNU General Public License as published by the Free Software Foundation, either
  12.  * version 2 of the License, or (at your option) any later version.
  13.  *
  14.  * For more information, visit <http://getsproutcms.com>.
  15.  */
  16.  
  17. /**
  18.  * Base config file used by Kohana. Won't need changing usually.
  19.  * @package Kohana
  20.  */
  21.  
  22. /**
  23.  * Some config options are a bit more site-specific, so are stored in the root config directory.
  24.  * Modules are also loaded from that file.
  25.  */
  26. $config['sprout_modules'] = array();
  27. require_once DOCROOT . 'config/config.php';
  28.  
  29. /**
  30.  * Force a default protocol to be used by the site. If no site_protocol is
  31.  * specified, then the current protocol is used, or when possible, only an
  32.  * absolute path (with no protocol/domain) is used.
  33.  */
  34. $config['site_protocol'] = 'https';
  35.  
  36. /**
  37.  * Name of the front controller for this application. Default: index.php
  38.  *
  39.  * This can be removed by using URL rewriting.
  40.  */
  41. if (PHP_SAPI === 'cgi') {
  42. $config['index_page'] = 'index.php';
  43. } else {
  44. $config['index_page'] = '';
  45. }
  46.  
  47. /**
  48.  * Fake file extension that will be added to all generated URLs. Example: .html
  49.  */
  50. $config['url_suffix'] = '';
  51.  
  52. /**
  53.  * Length of time of the internal cache in seconds. 0 or FALSE means no caching.
  54.  * The internal cache stores file paths and config entries across requests and
  55.  * can give significant speed improvements at the expense of delayed updating.
  56.  */
  57. $config['internal_cache'] = FALSE;
  58.  
  59. /**
  60.  * Internal cache directory.
  61.  */
  62. $config['internal_cache_path'] = APPPATH.'cache/';
  63.  
  64. /**
  65.  * Enable or disable gzip output compression. This can dramatically decrease
  66.  * server bandwidth usage, at the cost of slightly higher CPU usage. Set to
  67.  * the compression level (1-9) that you want to use, or FALSE to disable.
  68.  *
  69.  * Do not enable this option if you are using output compression in php.ini!
  70.  */
  71. $config['output_compression'] = FALSE;
  72.  
  73. /**
  74.  * Enable or disable global XSS filtering of GET, POST, and SERVER data. This
  75.  * option also accepts a string to specify a specific XSS filtering tool.
  76.  */
  77. $config['global_xss_filtering'] = FALSE;
  78.  
  79. /**
  80.  * Enable or disable displaying of Kohana error pages. This will not affect
  81.  * logging. Turning this off will disable ALL error pages.
  82.  */
  83. $config['display_errors'] = TRUE;
  84.  
  85. /**
  86.  * Sprout version is in another file too.
  87.  */
  88. require_once APPPATH . '/version.php';
  89.  
  90.