PageRenderTime 44ms CodeModel.GetById 16ms RepoModel.GetById 0ms app.codeStats 0ms

/application/config/config.php

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