You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

523 lines
18 KiB

7 years ago
  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'] = '';
  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'] = 'korean';
  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'] = TRUE;
  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'] = 'WB_';
  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. | You can optionally enable standard query string based URLs:
  161. | example.com?who=me&what=something&where=here
  162. |
  163. | Options are: TRUE or FALSE (boolean)
  164. |
  165. | The other items let you set the query string 'words' that will
  166. | invoke your controllers and its functions:
  167. | example.com/index.php?c=controller&m=function
  168. |
  169. | Please note that some of the helpers won't work as expected when
  170. | this feature is enabled, since CodeIgniter is designed primarily to
  171. | use segment based URLs.
  172. |
  173. */
  174. $config['enable_query_strings'] = FALSE;
  175. $config['controller_trigger'] = 'c';
  176. $config['function_trigger'] = 'm';
  177. $config['directory_trigger'] = 'd';
  178. /*
  179. |--------------------------------------------------------------------------
  180. | Allow $_GET array
  181. |--------------------------------------------------------------------------
  182. |
  183. | By default CodeIgniter enables access to the $_GET array. If for some
  184. | reason you would like to disable it, set 'allow_get_array' to FALSE.
  185. |
  186. | WARNING: This feature is DEPRECATED and currently available only
  187. | for backwards compatibility purposes!
  188. |
  189. */
  190. $config['allow_get_array'] = TRUE;
  191. /*
  192. |--------------------------------------------------------------------------
  193. | Error Logging Threshold
  194. |--------------------------------------------------------------------------
  195. |
  196. | You can enable error logging by setting a threshold over zero. The
  197. | threshold determines what gets logged. Threshold options are:
  198. |
  199. | 0 = Disables logging, Error logging TURNED OFF
  200. | 1 = Error Messages (including PHP errors)
  201. | 2 = Debug Messages
  202. | 3 = Informational Messages
  203. | 4 = All Messages
  204. |
  205. | You can also pass an array with threshold levels to show individual error types
  206. |
  207. | array(2) = Debug Messages, without Error Messages
  208. |
  209. | For a live site you'll usually only enable Errors (1) to be logged otherwise
  210. | your log files will fill up very fast.
  211. |
  212. */
  213. $config['log_threshold'] = 0;
  214. /*
  215. |--------------------------------------------------------------------------
  216. | Error Logging Directory Path
  217. |--------------------------------------------------------------------------
  218. |
  219. | Leave this BLANK unless you would like to set something other than the default
  220. | application/logs/ directory. Use a full server path with trailing slash.
  221. |
  222. */
  223. $config['log_path'] = '';
  224. /*
  225. |--------------------------------------------------------------------------
  226. | Log File Extension
  227. |--------------------------------------------------------------------------
  228. |
  229. | The default filename extension for log files. The default 'php' allows for
  230. | protecting the log files via basic scripting, when they are to be stored
  231. | under a publicly accessible directory.
  232. |
  233. | Note: Leaving it blank will default to 'php'.
  234. |
  235. */
  236. $config['log_file_extension'] = '';
  237. /*
  238. |--------------------------------------------------------------------------
  239. | Log File Permissions
  240. |--------------------------------------------------------------------------
  241. |
  242. | The file system permissions to be applied on newly created log files.
  243. |
  244. | IMPORTANT: This MUST be an integer (no quotes) and you MUST use octal
  245. | integer notation (i.e. 0700, 0644, etc.)
  246. */
  247. $config['log_file_permissions'] = 0644;
  248. /*
  249. |--------------------------------------------------------------------------
  250. | Date Format for Logs
  251. |--------------------------------------------------------------------------
  252. |
  253. | Each item that is logged has an associated date. You can use PHP date
  254. | codes to set your own date formatting
  255. |
  256. */
  257. $config['log_date_format'] = 'Y-m-d H:i:s';
  258. /*
  259. |--------------------------------------------------------------------------
  260. | Error Views Directory Path
  261. |--------------------------------------------------------------------------
  262. |
  263. | Leave this BLANK unless you would like to set something other than the default
  264. | application/views/errors/ directory. Use a full server path with trailing slash.
  265. |
  266. */
  267. $config['error_views_path'] = '';
  268. /*
  269. |--------------------------------------------------------------------------
  270. | Cache Directory Path
  271. |--------------------------------------------------------------------------
  272. |
  273. | Leave this BLANK unless you would like to set something other than the default
  274. | application/cache/ directory. Use a full server path with trailing slash.
  275. |
  276. */
  277. $config['cache_path'] = '';
  278. /*
  279. |--------------------------------------------------------------------------
  280. | Cache Include Query String
  281. |--------------------------------------------------------------------------
  282. |
  283. | Whether to take the URL query string into consideration when generating
  284. | output cache files. Valid options are:
  285. |
  286. | FALSE = Disabled
  287. | TRUE = Enabled, take all query parameters into account.
  288. | Please be aware that this may result in numerous cache
  289. | files generated for the same page over and over again.
  290. | array('q') = Enabled, but only take into account the specified list
  291. | of query parameters.
  292. |
  293. */
  294. $config['cache_query_string'] = FALSE;
  295. /*
  296. |--------------------------------------------------------------------------
  297. | Encryption Key
  298. |--------------------------------------------------------------------------
  299. |
  300. | If you use the Encryption class, you must set an encryption key.
  301. | See the user guide for more info.
  302. |
  303. | https://codeigniter.com/user_guide/libraries/encryption.html
  304. |
  305. */
  306. $config['encryption_key'] = 'wheeparam';
  307. /*
  308. |--------------------------------------------------------------------------
  309. | Session Variables
  310. |--------------------------------------------------------------------------
  311. |
  312. | 'sess_driver'
  313. |
  314. | The storage driver to use: files, database, redis, memcached
  315. |
  316. | 'sess_cookie_name'
  317. |
  318. | The session cookie name, must contain only [0-9a-z_-] characters
  319. |
  320. | 'sess_expiration'
  321. |
  322. | The number of SECONDS you want the session to last.
  323. | Setting to 0 (zero) means expire when the browser is closed.
  324. |
  325. | 'sess_save_path'
  326. |
  327. | The location to save sessions to, driver dependent.
  328. |
  329. | For the 'files' driver, it's a path to a writable directory.
  330. | WARNING: Only absolute paths are supported!
  331. |
  332. | For the 'database' driver, it's a table name.
  333. | Please read up the manual for the format with other session drivers.
  334. |
  335. | IMPORTANT: You are REQUIRED to set a valid save path!
  336. |
  337. | 'sess_match_ip'
  338. |
  339. | Whether to match the user's IP address when reading the session data.
  340. |
  341. | WARNING: If you're using the database driver, don't forget to update
  342. | your session table's PRIMARY KEY when changing this setting.
  343. |
  344. | 'sess_time_to_update'
  345. |
  346. | How many seconds between CI regenerating the session ID.
  347. |
  348. | 'sess_regenerate_destroy'
  349. |
  350. | Whether to destroy session data associated with the old session ID
  351. | when auto-regenerating the session ID. When set to FALSE, the data
  352. | will be later deleted by the garbage collector.
  353. |
  354. | Other session cookie settings are shared with the rest of the application,
  355. | except for 'cookie_prefix' and 'cookie_httponly', which are ignored here.
  356. |
  357. */
  358. $config['sess_driver'] = 'files';
  359. $config['sess_cookie_name'] = 'ci_session';
  360. $config['sess_expiration'] = 7200;
  361. $config['sess_save_path'] = FCPATH."../_session";
  362. $config['sess_match_ip'] = FALSE;
  363. $config['sess_time_to_update'] = 300;
  364. $config['sess_regenerate_destroy'] = FALSE;
  365. /*
  366. |--------------------------------------------------------------------------
  367. | Cookie Related Variables
  368. |--------------------------------------------------------------------------
  369. |
  370. | 'cookie_prefix' = Set a cookie name prefix if you need to avoid collisions
  371. | 'cookie_domain' = Set to .your-domain.com for site-wide cookies
  372. | 'cookie_path' = Typically will be a forward slash
  373. | 'cookie_secure' = Cookie will only be set if a secure HTTPS connection exists.
  374. | 'cookie_httponly' = Cookie will only be accessible via HTTP(S) (no javascript)
  375. |
  376. | Note: These settings (with the exception of 'cookie_prefix' and
  377. | 'cookie_httponly') will also affect sessions.
  378. |
  379. */
  380. $config['cookie_prefix'] = '';
  381. $config['cookie_domain'] = '';
  382. $config['cookie_path'] = '/';
  383. $config['cookie_secure'] = FALSE;
  384. $config['cookie_httponly'] = FALSE;
  385. /*
  386. |--------------------------------------------------------------------------
  387. | Standardize newlines
  388. |--------------------------------------------------------------------------
  389. |
  390. | Determines whether to standardize newline characters in input data,
  391. | meaning to replace \r\n, \r, \n occurrences with the PHP_EOL value.
  392. |
  393. | WARNING: This feature is DEPRECATED and currently available only
  394. | for backwards compatibility purposes!
  395. |
  396. */
  397. $config['standardize_newlines'] = FALSE;
  398. /*
  399. |--------------------------------------------------------------------------
  400. | Global XSS Filtering
  401. |--------------------------------------------------------------------------
  402. |
  403. | Determines whether the XSS filter is always active when GET, POST or
  404. | COOKIE data is encountered
  405. |
  406. | WARNING: This feature is DEPRECATED and currently available only
  407. | for backwards compatibility purposes!
  408. |
  409. */
  410. $config['global_xss_filtering'] = FALSE;
  411. /*
  412. |--------------------------------------------------------------------------
  413. | Cross Site Request Forgery
  414. |--------------------------------------------------------------------------
  415. | Enables a CSRF cookie token to be set. When set to TRUE, token will be
  416. | checked on a submitted form. If you are accepting user data, it is strongly
  417. | recommended CSRF protection be enabled.
  418. |
  419. | 'csrf_token_name' = The token name
  420. | 'csrf_cookie_name' = The cookie name
  421. | 'csrf_expire' = The number in seconds the token should expire.
  422. | 'csrf_regenerate' = Regenerate token on every submission
  423. | 'csrf_exclude_uris' = Array of URIs which ignore CSRF checks
  424. */
  425. $config['csrf_protection'] = FALSE;
  426. $config['csrf_token_name'] = 'csrf_test_name';
  427. $config['csrf_cookie_name'] = 'csrf_cookie_name';
  428. $config['csrf_expire'] = 7200;
  429. $config['csrf_regenerate'] = TRUE;
  430. $config['csrf_exclude_uris'] = array();
  431. /*
  432. |--------------------------------------------------------------------------
  433. | Output Compression
  434. |--------------------------------------------------------------------------
  435. |
  436. | Enables Gzip output compression for faster page loads. When enabled,
  437. | the output class will test whether your server supports Gzip.
  438. | Even if it does, however, not all browsers support compression
  439. | so enable only if you are reasonably sure your visitors can handle it.
  440. |
  441. | Only used if zlib.output_compression is turned off in your php.ini.
  442. | Please do not use it together with httpd-level output compression.
  443. |
  444. | VERY IMPORTANT: If you are getting a blank page when compression is enabled it
  445. | means you are prematurely outputting something to your browser. It could
  446. | even be a line of whitespace at the end of one of your scripts. For
  447. | compression to work, nothing can be sent before the output buffer is called
  448. | by the output class. Do not 'echo' any values with compression enabled.
  449. |
  450. */
  451. $config['compress_output'] = FALSE;
  452. /*
  453. |--------------------------------------------------------------------------
  454. | Master Time Reference
  455. |--------------------------------------------------------------------------
  456. |
  457. | Options are 'local' or any PHP supported timezone. This preference tells
  458. | the system whether to use your server's local time as the master 'now'
  459. | reference, or convert it to the configured one timezone. See the 'date
  460. | helper' page of the user guide for information regarding date handling.
  461. |
  462. */
  463. $config['time_reference'] = 'local';
  464. /*
  465. |--------------------------------------------------------------------------
  466. | Rewrite PHP Short Tags
  467. |--------------------------------------------------------------------------
  468. |
  469. | If your PHP installation does not have short tag support enabled CI
  470. | can rewrite the tags on-the-fly, enabling you to utilize that syntax
  471. | in your view files. Options are TRUE or FALSE (boolean)
  472. |
  473. | Note: You need to have eval() enabled for this to work.
  474. |
  475. */
  476. $config['rewrite_short_tags'] = FALSE;
  477. /*
  478. |--------------------------------------------------------------------------
  479. | Reverse Proxy IPs
  480. |--------------------------------------------------------------------------
  481. |
  482. | If your server is behind a reverse proxy, you must whitelist the proxy
  483. | IP addresses from which CodeIgniter should trust headers such as
  484. | HTTP_X_FORWARDED_FOR and HTTP_CLIENT_IP in order to properly identify
  485. | the visitor's IP address.
  486. |
  487. | You can use both an array or a comma-separated list of proxy addresses,
  488. | as well as specifying whole subnets. Here are a few examples:
  489. |
  490. | Comma-separated: '10.0.1.200,192.168.5.0/24'
  491. | Array: array('10.0.1.200', '192.168.5.0/24')
  492. */
  493. $config['proxy_ips'] = '';