Advertisement
Guest User

config.php

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