PageRenderTime 69ms CodeModel.GetById 7ms RepoModel.GetById 0ms app.codeStats 0ms

/system/application/config/config.php

http://three-cms.googlecode.com/
PHP | 332 lines | 36 code | 31 blank | 265 comment | 1 complexity | 0127d707cd4691a7d745281a0fddba98 MD5 | raw file
Possible License(s): GPL-3.0
  1. <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
  2. $config['version'] = "beta 5";
  3. /*
  4. |--------------------------------------------------------------------------
  5. | Base Site URL
  6. |--------------------------------------------------------------------------
  7. |
  8. | URL to your CodeIgniter root. Typically this will be your base URL,
  9. | WITH a trailing slash:
  10. |
  11. | http://example.com/
  12. |
  13. */
  14. // This parameter is set in index.php:
  15. $config['base_url'] = BASE_URL;
  16. /*
  17. |--------------------------------------------------------------------------
  18. | Index File
  19. |--------------------------------------------------------------------------
  20. |
  21. | Typically this will be your index.php file, unless you've renamed it to
  22. | something else. If you are using mod_rewrite to remove the page set this
  23. | variable so that it is blank.
  24. |
  25. */
  26. $config['index_page'] = "index.php";
  27. /*
  28. |--------------------------------------------------------------------------
  29. | URI PROTOCOL
  30. |--------------------------------------------------------------------------
  31. |
  32. | This item determines which server global should be used to retrieve the
  33. | URI string. The default setting of "AUTO" works for most servers.
  34. | If your links do not seem to work, try one of the other delicious flavors:
  35. |
  36. | 'AUTO' Default - auto detects
  37. | 'PATH_INFO' Uses the PATH_INFO
  38. | 'QUERY_STRING' Uses the QUERY_STRING
  39. | 'REQUEST_URI' Uses the REQUEST_URI
  40. | 'ORIG_PATH_INFO' Uses the ORIG_PATH_INFO
  41. |
  42. */
  43. $config['uri_protocol'] = "AUTO";
  44. /*
  45. |--------------------------------------------------------------------------
  46. | URL suffix
  47. |--------------------------------------------------------------------------
  48. |
  49. | This option allows you to add a suffix to all URLs generated by CodeIgniter.
  50. | For more information please see the user guide:
  51. |
  52. | http://codeigniter.com/user_guide/general/urls.html
  53. */
  54. $config['url_suffix'] = "";
  55. /*
  56. |--------------------------------------------------------------------------
  57. | Default Language
  58. |--------------------------------------------------------------------------
  59. |
  60. | This determines which set of language files should be used. Make sure
  61. | there is an available translation if you intend to use something other
  62. | than english.
  63. |
  64. */
  65. $config['language'] = "english";
  66. /*
  67. |--------------------------------------------------------------------------
  68. | Default Character Set
  69. |--------------------------------------------------------------------------
  70. |
  71. | This determines which character set is used by default in various methods
  72. | that require a character set to be provided.
  73. |
  74. */
  75. $config['charset'] = "UTF-8";
  76. /*
  77. |--------------------------------------------------------------------------
  78. | Enable/Disable System Hooks
  79. |--------------------------------------------------------------------------
  80. |
  81. | If you would like to use the "hooks" feature you must enable it by
  82. | setting this variable to TRUE (boolean). See the user guide for details.
  83. |
  84. */
  85. $config['enable_hooks'] = FALSE;
  86. /*
  87. |--------------------------------------------------------------------------
  88. | Class Extension Prefix
  89. |--------------------------------------------------------------------------
  90. |
  91. | This item allows you to set the filename/classname prefix when extending
  92. | native libraries. For more information please see the user guide:
  93. |
  94. | http://codeigniter.com/user_guide/general/core_classes.html
  95. | http://codeigniter.com/user_guide/general/creating_libraries.html
  96. |
  97. */
  98. $config['subclass_prefix'] = 'MY_';
  99. /*
  100. |--------------------------------------------------------------------------
  101. | Allowed URL Characters
  102. |--------------------------------------------------------------------------
  103. |
  104. | This lets you specify with a regular expression which characters are permitted
  105. | within your URLs. When someone tries to submit a URL with disallowed
  106. | characters they will get a warning message.
  107. |
  108. | As a security measure you are STRONGLY encouraged to restrict URLs to
  109. | as few characters as possible. By default only these are allowed: a-z 0-9~%.:_-
  110. |
  111. | Leave blank to allow all characters -- but only if you are insane.
  112. |
  113. | DO NOT CHANGE THIS UNLESS YOU FULLY UNDERSTAND THE REPERCUSSIONS!!
  114. |
  115. */
  116. $config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-';
  117. /*
  118. |--------------------------------------------------------------------------
  119. | Enable Query Strings
  120. |--------------------------------------------------------------------------
  121. |
  122. | By default CodeIgniter uses search-engine friendly segment based URLs:
  123. | example.com/who/what/where/
  124. |
  125. | You can optionally enable standard query string based URLs:
  126. | example.com?who=me&what=something&where=here
  127. |
  128. | Options are: TRUE or FALSE (boolean)
  129. |
  130. | The other items let you set the query string "words" that will
  131. | invoke your controllers and its functions:
  132. | example.com/index.php?c=controller&m=function
  133. |
  134. | Please note that some of the helpers won't work as expected when
  135. | this feature is enabled, since CodeIgniter is designed primarily to
  136. | use segment based URLs.
  137. |
  138. */
  139. $config['enable_query_strings'] = FALSE;
  140. $config['controller_trigger'] = 'c';
  141. $config['function_trigger'] = 'm';
  142. $config['directory_trigger'] = 'd'; // experimental not currently in use
  143. /*
  144. |--------------------------------------------------------------------------
  145. | Error Logging Threshold
  146. |--------------------------------------------------------------------------
  147. |
  148. | If you have enabled error logging, you can set an error threshold to
  149. | determine what gets logged. Threshold options are:
  150. | You can enable error logging by setting a threshold over zero. The
  151. | threshold determines what gets logged. Threshold options are:
  152. |
  153. | 0 = Disables logging, Error logging TURNED OFF
  154. | 1 = Error Messages (including PHP errors)
  155. | 2 = Debug Messages
  156. | 3 = Informational Messages
  157. | 4 = All Messages
  158. |
  159. | For a live site you'll usually only enable Errors (1) to be logged otherwise
  160. | your log files will fill up very fast.
  161. |
  162. */
  163. $config['log_threshold'] = 0;
  164. /*
  165. |--------------------------------------------------------------------------
  166. | Error Logging Directory Path
  167. |--------------------------------------------------------------------------
  168. |
  169. | Leave this BLANK unless you would like to set something other than the default
  170. | system/logs/ folder. Use a full server path with trailing slash.
  171. |
  172. */
  173. $config['log_path'] = '';
  174. /*
  175. |--------------------------------------------------------------------------
  176. | Date Format for Logs
  177. |--------------------------------------------------------------------------
  178. |
  179. | Each item that is logged has an associated date. You can use PHP date
  180. | codes to set your own date formatting
  181. |
  182. */
  183. $config['log_date_format'] = 'Y-m-d H:i:s';
  184. /*
  185. |--------------------------------------------------------------------------
  186. | Cache Directory Path
  187. |--------------------------------------------------------------------------
  188. |
  189. | Leave this BLANK unless you would like to set something other than the default
  190. | system/cache/ folder. Use a full server path with trailing slash.
  191. |
  192. */
  193. $config['cache_path'] = '';
  194. /*
  195. |--------------------------------------------------------------------------
  196. | Encryption Key
  197. |--------------------------------------------------------------------------
  198. |
  199. | If you use the Encryption class or the Sessions class with encryption
  200. | enabled you MUST set an encryption key. See the user guide for info.
  201. |
  202. */
  203. $config['encryption_key'] = "Default Three CMS Encryption Key";
  204. /*
  205. |--------------------------------------------------------------------------
  206. | Session Variables
  207. |--------------------------------------------------------------------------
  208. |
  209. | 'session_cookie_name' = the name you want for the cookie
  210. | 'encrypt_sess_cookie' = TRUE/FALSE (boolean). Whether to encrypt the cookie
  211. | 'session_expiration' = the number of SECONDS you want the session to last.
  212. | by default sessions last 7200 seconds (two hours). Set to zero for no expiration.
  213. | 'time_to_update' = how many seconds between CI refreshing Session Information
  214. |
  215. */
  216. $config['sess_cookie_name'] = 'ci_session';
  217. $config['sess_expiration'] = 7200;
  218. $config['sess_encrypt_cookie'] = FALSE;
  219. $config['sess_use_database'] = FALSE;
  220. $config['sess_table_name'] = 'ci_sessions';
  221. $config['sess_match_ip'] = FALSE;
  222. $config['sess_match_useragent'] = TRUE;
  223. $config['sess_time_to_update'] = 300;
  224. /*
  225. |--------------------------------------------------------------------------
  226. | Cookie Related Variables
  227. |--------------------------------------------------------------------------
  228. |
  229. | 'cookie_prefix' = Set a prefix if you need to avoid collisions
  230. | 'cookie_domain' = Set to .your-domain.com for site-wide cookies
  231. | 'cookie_path' = Typically will be a forward slash
  232. |
  233. */
  234. $config['cookie_prefix'] = "";
  235. $config['cookie_domain'] = "";
  236. $config['cookie_path'] = "/";
  237. /*
  238. |--------------------------------------------------------------------------
  239. | Global XSS Filtering
  240. |--------------------------------------------------------------------------
  241. |
  242. | Determines whether the XSS filter is always active when GET, POST or
  243. | COOKIE data is encountered
  244. |
  245. */
  246. $config['global_xss_filtering'] = FALSE;
  247. /*
  248. |--------------------------------------------------------------------------
  249. | Output Compression
  250. |--------------------------------------------------------------------------
  251. |
  252. | Enables Gzip output compression for faster page loads. When enabled,
  253. | the output class will test whether your server supports Gzip.
  254. | Even if it does, however, not all browsers support compression
  255. | so enable only if you are reasonably sure your visitors can handle it.
  256. |
  257. | VERY IMPORTANT: If you are getting a blank page when compression is enabled it
  258. | means you are prematurely outputting something to your browser. It could
  259. | even be a line of whitespace at the end of one of your scripts. For
  260. | compression to work, nothing can be sent before the output buffer is called
  261. | by the output class. Do not "echo" any values with compression enabled.
  262. |
  263. */
  264. $config['compress_output'] = FALSE;
  265. /*
  266. |--------------------------------------------------------------------------
  267. | Master Time Reference
  268. |--------------------------------------------------------------------------
  269. |
  270. | Options are "local" or "gmt". This pref tells the system whether to use
  271. | your server's local time as the master "now" reference, or convert it to
  272. | GMT. See the "date helper" page of the user guide for information
  273. | regarding date handling.
  274. |
  275. */
  276. $config['time_reference'] = 'local';
  277. /*
  278. |--------------------------------------------------------------------------
  279. | Rewrite PHP Short Tags
  280. |--------------------------------------------------------------------------
  281. |
  282. | If your PHP installation does not have short tag support enabled CI
  283. | can rewrite the tags on-the-fly, enabling you to utilize that syntax
  284. | in your view files. Options are TRUE or FALSE (boolean)
  285. |
  286. */
  287. $config['rewrite_short_tags'] = FALSE;
  288. /*
  289. |--------------------------------------------------------------------------
  290. | Reverse Proxy IPs
  291. |--------------------------------------------------------------------------
  292. |
  293. | If your server is behind a reverse proxy, you must whitelist the proxy IP
  294. | addresses from which CodeIgniter should trust the HTTP_X_FORWARDED_FOR
  295. | header in order to properly identify the visitor's IP address.
  296. | Comma-delimited, e.g. '10.0.1.200,10.0.1.201'
  297. |
  298. */
  299. $config['proxy_ips'] = '';
  300. /* End of file config.php */
  301. /* Location: ./system/application/config/config.php */