PageRenderTime 33ms CodeModel.GetById 9ms RepoModel.GetById 0ms app.codeStats 0ms

/application/config/config.php

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