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

/application/config/config.php

https://gitlab.com/carlosambiado89/intranet_planEvalWeb
PHP | 513 lines | 50 code | 29 blank | 434 comment | 0 complexity | c8d093b8a18a4dfe44961af92a374bc5 MD5 | raw file
  1. <?php
  2. defined('BASEPATH') OR exit('No direct script access allowed');
  3. /*
  4. |--------------------------------------------------------------------------
  5. | Base Site URL
  6. |--------------------------------------------------------------------------
  7. |
  8. | URL to your CodeIgniter root. Typically this will be your base URL,
  9. | WITH a trailing slash:
  10. |
  11. | http://example.com/
  12. |
  13. | WARNING: You MUST set this value!
  14. |
  15. | If it is not set, then CodeIgniter will try guess the protocol and path
  16. | your installation, but due to security concerns the hostname will be set
  17. | to $_SERVER['SERVER_ADDR'] if available, or localhost otherwise.
  18. | The auto-detection mechanism exists only for convenience during
  19. | development and MUST NOT be used in production!
  20. |
  21. | If you need to allow multiple domains, remember that this file is still
  22. | a PHP script and you can easily do that on your own.
  23. |
  24. */
  25. $config['base_url'] = 'http://localhost:8888/SistemasWeb/intranet_planEvalWeb/';
  26. /*
  27. |--------------------------------------------------------------------------
  28. | Index File
  29. |--------------------------------------------------------------------------
  30. |
  31. | Typically this will be your index.php file, unless you've renamed it to
  32. | something else. If you are using mod_rewrite to remove the page set this
  33. | variable so that it is blank.
  34. |
  35. */
  36. $config['index_page'] = '';
  37. /*
  38. |--------------------------------------------------------------------------
  39. | URI PROTOCOL
  40. |--------------------------------------------------------------------------
  41. |
  42. | This item determines which server global should be used to retrieve the
  43. | URI string. The default setting of 'REQUEST_URI' works for most servers.
  44. | If your links do not seem to work, try one of the other delicious flavors:
  45. |
  46. | 'REQUEST_URI' Uses $_SERVER['REQUEST_URI']
  47. | 'QUERY_STRING' Uses $_SERVER['QUERY_STRING']
  48. | 'PATH_INFO' Uses $_SERVER['PATH_INFO']
  49. |
  50. | WARNING: If you set this to 'PATH_INFO', URIs will always be URL-decoded!
  51. */
  52. $config['uri_protocol'] = 'REQUEST_URI';
  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. | https://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. | See http://php.net/htmlspecialchars for a list of supported charsets.
  84. |
  85. */
  86. $config['charset'] = 'UTF-8';
  87. /*
  88. |--------------------------------------------------------------------------
  89. | Enable/Disable System Hooks
  90. |--------------------------------------------------------------------------
  91. |
  92. | If you would like to use the 'hooks' feature you must enable it by
  93. | setting this variable to TRUE (boolean). See the user guide for details.
  94. |
  95. */
  96. $config['enable_hooks'] = FALSE;
  97. /*
  98. |--------------------------------------------------------------------------
  99. | Class Extension Prefix
  100. |--------------------------------------------------------------------------
  101. |
  102. | This item allows you to set the filename/classname prefix when extending
  103. | native libraries. For more information please see the user guide:
  104. |
  105. | https://codeigniter.com/user_guide/general/core_classes.html
  106. | https://codeigniter.com/user_guide/general/creating_libraries.html
  107. |
  108. */
  109. $config['subclass_prefix'] = 'MY_';
  110. /*
  111. |--------------------------------------------------------------------------
  112. | Composer auto-loading
  113. |--------------------------------------------------------------------------
  114. |
  115. | Enabling this setting will tell CodeIgniter to look for a Composer
  116. | package auto-loader script in application/vendor/autoload.php.
  117. |
  118. | $config['composer_autoload'] = TRUE;
  119. |
  120. | Or if you have your vendor/ directory located somewhere else, you
  121. | can opt to set a specific path as well:
  122. |
  123. | $config['composer_autoload'] = '/path/to/vendor/autoload.php';
  124. |
  125. | For more information about Composer, please visit http://getcomposer.org/
  126. |
  127. | Note: This will NOT disable or override the CodeIgniter-specific
  128. | autoloading (application/config/autoload.php)
  129. */
  130. $config['composer_autoload'] = FALSE;
  131. /*
  132. |--------------------------------------------------------------------------
  133. | Allowed URL Characters
  134. |--------------------------------------------------------------------------
  135. |
  136. | This lets you specify which characters are permitted within your URLs.
  137. | When someone tries to submit a URL with disallowed characters they will
  138. | get a warning message.
  139. |
  140. | As a security measure you are STRONGLY encouraged to restrict URLs to
  141. | as few characters as possible. By default only these are allowed: a-z 0-9~%.:_-
  142. |
  143. | Leave blank to allow all characters -- but only if you are insane.
  144. |
  145. | The configured value is actually a regular expression character group
  146. | and it will be executed as: ! preg_match('/^[<permitted_uri_chars>]+$/i
  147. |
  148. | DO NOT CHANGE THIS UNLESS YOU FULLY UNDERSTAND THE REPERCUSSIONS!!
  149. |
  150. */
  151. $config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-';
  152. /*
  153. |--------------------------------------------------------------------------
  154. | Enable Query Strings
  155. |--------------------------------------------------------------------------
  156. |
  157. | By default CodeIgniter uses search-engine friendly segment based URLs:
  158. | example.com/who/what/where/
  159. |
  160. | By default CodeIgniter enables access to the $_GET array. If for some
  161. | reason you would like to disable it, set 'allow_get_array' to FALSE.
  162. |
  163. | You can optionally enable standard query string based URLs:
  164. | example.com?who=me&what=something&where=here
  165. |
  166. | Options are: TRUE or FALSE (boolean)
  167. |
  168. | The other items let you set the query string 'words' that will
  169. | invoke your controllers and its functions:
  170. | example.com/index.php?c=controller&m=function
  171. |
  172. | Please note that some of the helpers won't work as expected when
  173. | this feature is enabled, since CodeIgniter is designed primarily to
  174. | use segment based URLs.
  175. |
  176. */
  177. $config['allow_get_array'] = TRUE;
  178. $config['enable_query_strings'] = FALSE;
  179. $config['controller_trigger'] = 'c';
  180. $config['function_trigger'] = 'm';
  181. $config['directory_trigger'] = 'd';
  182. /*
  183. |--------------------------------------------------------------------------
  184. | Error Logging Threshold
  185. |--------------------------------------------------------------------------
  186. |
  187. | You can enable error logging by setting a threshold over zero. The
  188. | threshold determines what gets logged. Threshold options are:
  189. |
  190. | 0 = Disables logging, Error logging TURNED OFF
  191. | 1 = Error Messages (including PHP errors)
  192. | 2 = Debug Messages
  193. | 3 = Informational Messages
  194. | 4 = All Messages
  195. |
  196. | You can also pass an array with threshold levels to show individual error types
  197. |
  198. | array(2) = Debug Messages, without Error Messages
  199. |
  200. | For a live site you'll usually only enable Errors (1) to be logged otherwise
  201. | your log files will fill up very fast.
  202. |
  203. */
  204. $config['log_threshold'] = 0;
  205. /*
  206. |--------------------------------------------------------------------------
  207. | Error Logging Directory Path
  208. |--------------------------------------------------------------------------
  209. |
  210. | Leave this BLANK unless you would like to set something other than the default
  211. | application/logs/ directory. Use a full server path with trailing slash.
  212. |
  213. */
  214. $config['log_path'] = '';
  215. /*
  216. |--------------------------------------------------------------------------
  217. | Log File Extension
  218. |--------------------------------------------------------------------------
  219. |
  220. | The default filename extension for log files. The default 'php' allows for
  221. | protecting the log files via basic scripting, when they are to be stored
  222. | under a publicly accessible directory.
  223. |
  224. | Note: Leaving it blank will default to 'php'.
  225. |
  226. */
  227. $config['log_file_extension'] = '';
  228. /*
  229. |--------------------------------------------------------------------------
  230. | Log File Permissions
  231. |--------------------------------------------------------------------------
  232. |
  233. | The file system permissions to be applied on newly created log files.
  234. |
  235. | IMPORTANT: This MUST be an integer (no quotes) and you MUST use octal
  236. | integer notation (i.e. 0700, 0644, etc.)
  237. */
  238. $config['log_file_permissions'] = 0644;
  239. /*
  240. |--------------------------------------------------------------------------
  241. | Date Format for Logs
  242. |--------------------------------------------------------------------------
  243. |
  244. | Each item that is logged has an associated date. You can use PHP date
  245. | codes to set your own date formatting
  246. |
  247. */
  248. $config['log_date_format'] = 'Y-m-d H:i:s';
  249. /*
  250. |--------------------------------------------------------------------------
  251. | Error Views Directory Path
  252. |--------------------------------------------------------------------------
  253. |
  254. | Leave this BLANK unless you would like to set something other than the default
  255. | application/views/errors/ directory. Use a full server path with trailing slash.
  256. |
  257. */
  258. $config['error_views_path'] = '';
  259. /*
  260. |--------------------------------------------------------------------------
  261. | Cache Directory Path
  262. |--------------------------------------------------------------------------
  263. |
  264. | Leave this BLANK unless you would like to set something other than the default
  265. | application/cache/ directory. Use a full server path with trailing slash.
  266. |
  267. */
  268. $config['cache_path'] = '';
  269. /*
  270. |--------------------------------------------------------------------------
  271. | Cache Include Query String
  272. |--------------------------------------------------------------------------
  273. |
  274. | Whether to take the URL query string into consideration when generating
  275. | output cache files. Valid options are:
  276. |
  277. | FALSE = Disabled
  278. | TRUE = Enabled, take all query parameters into account.
  279. | Please be aware that this may result in numerous cache
  280. | files generated for the same page over and over again.
  281. | array('q') = Enabled, but only take into account the specified list
  282. | of query parameters.
  283. |
  284. */
  285. $config['cache_query_string'] = FALSE;
  286. /*
  287. |--------------------------------------------------------------------------
  288. | Encryption Key
  289. |--------------------------------------------------------------------------
  290. |
  291. | If you use the Encryption class, you must set an encryption key.
  292. | See the user guide for more info.
  293. |
  294. | https://codeigniter.com/user_guide/libraries/encryption.html
  295. |
  296. */
  297. $config['encryption_key'] = '';
  298. /*
  299. |--------------------------------------------------------------------------
  300. | Session Variables
  301. |--------------------------------------------------------------------------
  302. |
  303. | 'sess_driver'
  304. |
  305. | The storage driver to use: files, database, redis, memcached
  306. |
  307. | 'sess_cookie_name'
  308. |
  309. | The session cookie name, must contain only [0-9a-z_-] characters
  310. |
  311. | 'sess_expiration'
  312. |
  313. | The number of SECONDS you want the session to last.
  314. | Setting to 0 (zero) means expire when the browser is closed.
  315. |
  316. | 'sess_save_path'
  317. |
  318. | The location to save sessions to, driver dependent.
  319. |
  320. | For the 'files' driver, it's a path to a writable directory.
  321. | WARNING: Only absolute paths are supported!
  322. |
  323. | For the 'database' driver, it's a table name.
  324. | Please read up the manual for the format with other session drivers.
  325. |
  326. | IMPORTANT: You are REQUIRED to set a valid save path!
  327. |
  328. | 'sess_match_ip'
  329. |
  330. | Whether to match the user's IP address when reading the session data.
  331. |
  332. | WARNING: If you're using the database driver, don't forget to update
  333. | your session table's PRIMARY KEY when changing this setting.
  334. |
  335. | 'sess_time_to_update'
  336. |
  337. | How many seconds between CI regenerating the session ID.
  338. |
  339. | 'sess_regenerate_destroy'
  340. |
  341. | Whether to destroy session data associated with the old session ID
  342. | when auto-regenerating the session ID. When set to FALSE, the data
  343. | will be later deleted by the garbage collector.
  344. |
  345. | Other session cookie settings are shared with the rest of the application,
  346. | except for 'cookie_prefix' and 'cookie_httponly', which are ignored here.
  347. |
  348. */
  349. $config['sess_driver'] = 'files';
  350. $config['sess_cookie_name'] = 'ci_session';
  351. $config['sess_expiration'] = 7200;
  352. $config['sess_save_path'] = NULL;
  353. $config['sess_match_ip'] = FALSE;
  354. $config['sess_time_to_update'] = 300;
  355. $config['sess_regenerate_destroy'] = FALSE;
  356. /*
  357. |--------------------------------------------------------------------------
  358. | Cookie Related Variables
  359. |--------------------------------------------------------------------------
  360. |
  361. | 'cookie_prefix' = Set a cookie name prefix if you need to avoid collisions
  362. | 'cookie_domain' = Set to .your-domain.com for site-wide cookies
  363. | 'cookie_path' = Typically will be a forward slash
  364. | 'cookie_secure' = Cookie will only be set if a secure HTTPS connection exists.
  365. | 'cookie_httponly' = Cookie will only be accessible via HTTP(S) (no javascript)
  366. |
  367. | Note: These settings (with the exception of 'cookie_prefix' and
  368. | 'cookie_httponly') will also affect sessions.
  369. |
  370. */
  371. $config['cookie_prefix'] = '';
  372. $config['cookie_domain'] = '';
  373. $config['cookie_path'] = '/';
  374. $config['cookie_secure'] = FALSE;
  375. $config['cookie_httponly'] = FALSE;
  376. /*
  377. |--------------------------------------------------------------------------
  378. | Standardize newlines
  379. |--------------------------------------------------------------------------
  380. |
  381. | Determines whether to standardize newline characters in input data,
  382. | meaning to replace \r\n, \r, \n occurrences with the PHP_EOL value.
  383. |
  384. | This is particularly useful for portability between UNIX-based OSes,
  385. | (usually \n) and Windows (\r\n).
  386. |
  387. */
  388. $config['standardize_newlines'] = FALSE;
  389. /*
  390. |--------------------------------------------------------------------------
  391. | Global XSS Filtering
  392. |--------------------------------------------------------------------------
  393. |
  394. | Determines whether the XSS filter is always active when GET, POST or
  395. | COOKIE data is encountered
  396. |
  397. | WARNING: This feature is DEPRECATED and currently available only
  398. | for backwards compatibility purposes!
  399. |
  400. */
  401. $config['global_xss_filtering'] = FALSE;
  402. /*
  403. |--------------------------------------------------------------------------
  404. | Cross Site Request Forgery
  405. |--------------------------------------------------------------------------
  406. | Enables a CSRF cookie token to be set. When set to TRUE, token will be
  407. | checked on a submitted form. If you are accepting user data, it is strongly
  408. | recommended CSRF protection be enabled.
  409. |
  410. | 'csrf_token_name' = The token name
  411. | 'csrf_cookie_name' = The cookie name
  412. | 'csrf_expire' = The number in seconds the token should expire.
  413. | 'csrf_regenerate' = Regenerate token on every submission
  414. | 'csrf_exclude_uris' = Array of URIs which ignore CSRF checks
  415. */
  416. $config['csrf_protection'] = FALSE;
  417. $config['csrf_token_name'] = 'csrf_test_name';
  418. $config['csrf_cookie_name'] = 'csrf_cookie_name';
  419. $config['csrf_expire'] = 7200;
  420. $config['csrf_regenerate'] = TRUE;
  421. $config['csrf_exclude_uris'] = array();
  422. /*
  423. |--------------------------------------------------------------------------
  424. | Output Compression
  425. |--------------------------------------------------------------------------
  426. |
  427. | Enables Gzip output compression for faster page loads. When enabled,
  428. | the output class will test whether your server supports Gzip.
  429. | Even if it does, however, not all browsers support compression
  430. | so enable only if you are reasonably sure your visitors can handle it.
  431. |
  432. | Only used if zlib.output_compression is turned off in your php.ini.
  433. | Please do not use it together with httpd-level output compression.
  434. |
  435. | VERY IMPORTANT: If you are getting a blank page when compression is enabled it
  436. | means you are prematurely outputting something to your browser. It could
  437. | even be a line of whitespace at the end of one of your scripts. For
  438. | compression to work, nothing can be sent before the output buffer is called
  439. | by the output class. Do not 'echo' any values with compression enabled.
  440. |
  441. */
  442. $config['compress_output'] = FALSE;
  443. /*
  444. |--------------------------------------------------------------------------
  445. | Master Time Reference
  446. |--------------------------------------------------------------------------
  447. |
  448. | Options are 'local' or any PHP supported timezone. This preference tells
  449. | the system whether to use your server's local time as the master 'now'
  450. | reference, or convert it to the configured one timezone. See the 'date
  451. | helper' page of the user guide for information regarding date handling.
  452. |
  453. */
  454. $config['time_reference'] = 'local';
  455. /*
  456. |--------------------------------------------------------------------------
  457. | Rewrite PHP Short Tags
  458. |--------------------------------------------------------------------------
  459. |
  460. | If your PHP installation does not have short tag support enabled CI
  461. | can rewrite the tags on-the-fly, enabling you to utilize that syntax
  462. | in your view files. Options are TRUE or FALSE (boolean)
  463. |
  464. | Note: You need to have eval() enabled for this to work.
  465. |
  466. */
  467. $config['rewrite_short_tags'] = FALSE;
  468. /*
  469. |--------------------------------------------------------------------------
  470. | Reverse Proxy IPs
  471. |--------------------------------------------------------------------------
  472. |
  473. | If your server is behind a reverse proxy, you must whitelist the proxy
  474. | IP addresses from which CodeIgniter should trust headers such as
  475. | HTTP_X_FORWARDED_FOR and HTTP_CLIENT_IP in order to properly identify
  476. | the visitor's IP address.
  477. |
  478. | You can use both an array or a comma-separated list of proxy addresses,
  479. | as well as specifying whole subnets. Here are a few examples:
  480. |
  481. | Comma-separated: '10.0.1.200,192.168.5.0/24'
  482. | Array: array('10.0.1.200', '192.168.5.0/24')
  483. */
  484. $config['proxy_ips'] = '';