PageRenderTime 42ms CodeModel.GetById 19ms RepoModel.GetById 0ms app.codeStats 0ms

/application/config/config.php

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