VM暫存
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

374 行
13KB

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