PageRenderTime 26ms CodeModel.GetById 58ms RepoModel.GetById 1ms app.codeStats 0ms

/system/application/config/config.php

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