PageRenderTime 42ms CodeModel.GetById 16ms RepoModel.GetById 1ms app.codeStats 0ms

/opensourcepos/application/config/config.php

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