PageRenderTime 40ms CodeModel.GetById 12ms RepoModel.GetById 0ms app.codeStats 0ms

/application/config/config.php

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