PageRenderTime 29ms CodeModel.GetById 12ms RepoModel.GetById 0ms app.codeStats 0ms

/src/system/application/config_sample/config.php

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