config.php 18 KB

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