PageRenderTime 50ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 0ms

/application/config/config.php

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