PageRenderTime 72ms CodeModel.GetById 25ms RepoModel.GetById 1ms app.codeStats 0ms

/application/config/config.php

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