PageRenderTime 40ms CodeModel.GetById 15ms RepoModel.GetById 0ms app.codeStats 0ms

/app/config/config.example.php

https://bitbucket.org/nanomites_webdev/heroframework
PHP | 435 lines | 75 code | 48 blank | 312 comment | 8 complexity | f83fafc1e7349e181cd267391731ccf0 MD5 | raw file
Possible License(s): LGPL-2.1, BSD-3-Clause, GPL-2.0
  1. <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
  2. /* BEGIN MANDATORY CONFIGURATION */
  3. /* The following variables are configured automatically with the installation wizard. */
  4. /*
  5. |--------------------------------------------------------------------------
  6. | Base Site URL
  7. |--------------------------------------------------------------------------
  8. |
  9. | URL to your CodeIgniter root. Typically this will be your base URL,
  10. | WITH a trailing slash:
  11. |
  12. | http://example.com/
  13. |
  14. */
  15. $config['base_url'] = "";
  16. // rewrite base URL to SSL if accessed via SSL
  17. if ($_SERVER["SERVER_PORT"] == "443" or (isset($_SERVER['https']) and $_SERVER['HTTPS'] == 'on')) {
  18. $config['base_url'] = str_replace('http://','https://',$config['base_url']);
  19. }
  20. /*
  21. |--------------------------------------------------------------------------
  22. | Encryption Key
  23. |--------------------------------------------------------------------------
  24. |
  25. | If you use the Encryption class or the Sessions class with encryption
  26. | enabled you MUST set an encryption key. See the user guide for info.
  27. |
  28. */
  29. $config['encryption_key'] = "10101010101010101010101010";
  30. $config['cron_key'] = '0000000000000000';
  31. /* END MANDATORY CONFIGURATION */
  32. /*
  33. |--------------------------------------------------------------------------
  34. | Branding Config
  35. |--------------------------------------------------------------------------
  36. |
  37. */
  38. $config['app_name'] = 'Hero';
  39. $config['app_link'] = 'http://www.heroframework.com/';
  40. $config['app_support'] = 'http://www.heroframework.com/support';
  41. $config['default_theme'] = 'electric';
  42. /*
  43. |--------------------------------------------------------------------------
  44. | App Paths
  45. |--------------------------------------------------------------------------
  46. |
  47. */
  48. $config['path_writeable'] = FCPATH . 'writeable/';
  49. $config['path_product_files'] = $config['path_writeable'] . 'product_files/';
  50. $config['path_product_images'] = $config['path_writeable'] . 'product_images/';
  51. $config['path_editor_uploads'] = $config['path_writeable'] . 'editor_uploads/';
  52. $config['path_custom_field_uploads'] = $config['path_writeable'] . 'custom_uploads/';
  53. $config['path_image_thumbs'] = $config['path_writeable'] . 'image_thumbs/';
  54. $config['path_email_templates'] = $config['path_writeable'] . 'email_templates/';
  55. /*
  56. |--------------------------------------------------------------------------
  57. | Miscellaneous
  58. |--------------------------------------------------------------------------
  59. |
  60. */
  61. $config['upload_max'] = ini_get('upload_max_filesize');
  62. if (ini_get('post_max_size') != '' and (ini_get('post_max_size') < $config['upload_max'])) {
  63. $config['upload_max'] = ini_get('post_max_size');
  64. }
  65. // not all servers allow 0777 folders/files, this may have to be 0755
  66. $config['write_mode'] = 0777;
  67. // how many times can a purchased download be downloaded?
  68. $config['maximum_downloads_per_purchase'] = 2;
  69. // specify an image library to use. leave blank to autodetect.
  70. // options: GD, GD2, ImageMagick
  71. $config['image_library'] = '';
  72. // if you specified ImageMagick or NetPBM, you must specify the path
  73. $config['image_library_path'] = '';
  74. // secure routes (these will be redirected to HTTPS if you have an SSL certificate)
  75. $config['secure_modules'] = array('users','checkout');
  76. // if enabled, the debugger will display a profile of all queries, memory usage, and other
  77. // useful information upon each page load
  78. $config['debug_profiler'] = FALSE;
  79. // the earliest time to run the billing cron job for subscription maintenance
  80. // 24 hour clock, no leading zero, uses system time
  81. $config['billing_cron_time'] = 11;
  82. // should we make sure that only one user is logged into an account at the same time?
  83. $config['duplicate_login_check'] = 'yes';
  84. // allow special characters in usernames (e.g., for email addresses)?
  85. $config['username_allow_special_characters'] = FALSE;
  86. /*
  87. |--------------------------------------------------------------------------
  88. | Advanced Configuration for the Truly Bold
  89. |--------------------------------------------------------------------------
  90. |
  91. */
  92. $config['max_recurring_days_from_today'] = 1095;
  93. // do not edit either of these unless you plan on also modifying lots of core files
  94. $config['query_result_default_limit'] = 100;
  95. $config['recurring_charge_failures_allowed'] = 1;
  96. /*
  97. |--------------------------------------------------------------------------
  98. |--------------------------------------------------------------------------
  99. |------------- STANDARD CODEIGNITER CONFIGURATION BELOW -------------------
  100. |--------------------------------------------------------------------------
  101. |--------------------------------------------------------------------------
  102. */
  103. /*
  104. |--------------------------------------------------------------------------
  105. | Index File
  106. |--------------------------------------------------------------------------
  107. |
  108. | Typically this will be your index.php file, unless you've renamed it to
  109. | something else. If you are using mod_rewrite to remove the page set this
  110. | variable so that it is blank.
  111. |
  112. */
  113. $config['index_page'] = "";
  114. /*
  115. |--------------------------------------------------------------------------
  116. | URI PROTOCOL
  117. |--------------------------------------------------------------------------
  118. |
  119. | This item determines which server global should be used to retrieve the
  120. | URI string. The default setting of "AUTO" works for most servers.
  121. | If your links do not seem to work, try one of the other delicious flavors:
  122. |
  123. | 'AUTO' Default - auto detects
  124. | 'PATH_INFO' Uses the PATH_INFO
  125. | 'QUERY_STRING' Uses the QUERY_STRING
  126. | 'REQUEST_URI' Uses the REQUEST_URI
  127. | 'ORIG_PATH_INFO' Uses the ORIG_PATH_INFO
  128. |
  129. */
  130. $config['uri_protocol'] = "AUTO";
  131. /*
  132. |--------------------------------------------------------------------------
  133. | URL suffix
  134. |--------------------------------------------------------------------------
  135. |
  136. | This option allows you to add a suffix to all URLs generated by CodeIgniter.
  137. | For more information please see the user guide:
  138. |
  139. | http://codeigniter.com/user_guide/general/urls.html
  140. */
  141. $config['url_suffix'] = "";
  142. /*
  143. |--------------------------------------------------------------------------
  144. | Default Language
  145. |--------------------------------------------------------------------------
  146. |
  147. | This determines which set of language files should be used. Make sure
  148. | there is an available translation if you intend to use something other
  149. | than english.
  150. |
  151. */
  152. $config['language'] = "english";
  153. /*
  154. |--------------------------------------------------------------------------
  155. | Default Character Set
  156. |--------------------------------------------------------------------------
  157. |
  158. | This determines which character set is used by default in various methods
  159. | that require a character set to be provided.
  160. |
  161. */
  162. $config['charset'] = "UTF-8";
  163. /*
  164. |--------------------------------------------------------------------------
  165. | Enable/Disable System Hooks
  166. |--------------------------------------------------------------------------
  167. |
  168. | If you would like to use the "hooks" feature you must enable it by
  169. | setting this variable to TRUE (boolean). See the user guide for details.
  170. |
  171. */
  172. $config['enable_hooks'] = TRUE;
  173. /*
  174. |--------------------------------------------------------------------------
  175. | Class Extension Prefix
  176. |--------------------------------------------------------------------------
  177. |
  178. | This item allows you to set the filename/classname prefix when extending
  179. | native libraries. For more information please see the user guide:
  180. |
  181. | http://codeigniter.com/user_guide/general/core_classes.html
  182. | http://codeigniter.com/user_guide/general/creating_libraries.html
  183. |
  184. */
  185. $config['subclass_prefix'] = 'MY_';
  186. /*
  187. |--------------------------------------------------------------------------
  188. | Allowed URL Characters
  189. |--------------------------------------------------------------------------
  190. |
  191. | This lets you specify with a regular expression which characters are permitted
  192. | within your URLs. When someone tries to submit a URL with disallowed
  193. | characters they will get a warning message.
  194. |
  195. | As a security measure you are STRONGLY encouraged to restrict URLs to
  196. | as few characters as possible. By default only these are allowed: a-z 0-9~%.:_-
  197. |
  198. | Leave blank to allow all characters -- but only if you are insane.
  199. |
  200. | DO NOT CHANGE THIS UNLESS YOU FULLY UNDERSTAND THE REPERCUSSIONS!!
  201. |
  202. */
  203. $config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-\=';
  204. /*
  205. |--------------------------------------------------------------------------
  206. | Enable Query Strings
  207. |--------------------------------------------------------------------------
  208. |
  209. | By default CodeIgniter uses search-engine friendly segment based URLs:
  210. | example.com/who/what/where/
  211. |
  212. | You can optionally enable standard query string based URLs:
  213. | example.com?who=me&what=something&where=here
  214. |
  215. | Options are: TRUE or FALSE (boolean)
  216. |
  217. | The other items let you set the query string "words" that will
  218. | invoke your controllers and its functions:
  219. | example.com/index.php?c=controller&m=function
  220. |
  221. | Please note that some of the helpers won't work as expected when
  222. | this feature is enabled, since CodeIgniter is designed primarily to
  223. | use segment based URLs.
  224. |
  225. */
  226. $config['enable_query_strings'] = FALSE;
  227. $config['controller_trigger'] = 'c';
  228. $config['function_trigger'] = 'm';
  229. $config['directory_trigger'] = 'd'; // experimental not currently in use
  230. /*
  231. |--------------------------------------------------------------------------
  232. | Error Logging Threshold
  233. |--------------------------------------------------------------------------
  234. |
  235. | If you have enabled error logging, you can set an error threshold to
  236. | determine what gets logged. Threshold options are:
  237. | You can enable error logging by setting a threshold over zero. The
  238. | threshold determines what gets logged. Threshold options are:
  239. |
  240. | 0 = Disables logging, Error logging TURNED OFF
  241. | 1 = Error Messages (including PHP errors)
  242. | 2 = Debug Messages
  243. | 3 = Informational Messages
  244. | 4 = All Messages
  245. |
  246. | For a live site you'll usually only enable Errors (1) to be logged otherwise
  247. | your log files will fill up very fast.
  248. |
  249. */
  250. $config['log_threshold'] = 0;
  251. /*
  252. |--------------------------------------------------------------------------
  253. | Error Logging Directory Path
  254. |--------------------------------------------------------------------------
  255. |
  256. | Leave this BLANK unless you would like to set something other than the default
  257. | /app/logs/ folder. Use a full server path with trailing slash.
  258. |
  259. */
  260. $config['log_path'] = '';
  261. /*
  262. |--------------------------------------------------------------------------
  263. | Date Format for Logs
  264. |--------------------------------------------------------------------------
  265. |
  266. | Each item that is logged has an associated date. You can use PHP date
  267. | codes to set your own date formatting
  268. |
  269. */
  270. $config['log_date_format'] = 'Y-m-d H:i:s';
  271. /*
  272. |--------------------------------------------------------------------------
  273. | Cache Directory Path
  274. |--------------------------------------------------------------------------
  275. |
  276. | Leave this BLANK unless you would like to set something other than the default
  277. | /app/cache/ folder. Use a full server path with trailing slash.
  278. |
  279. */
  280. $config['cache_path'] = '';
  281. /*
  282. |--------------------------------------------------------------------------
  283. | Session Variables
  284. |--------------------------------------------------------------------------
  285. |
  286. | 'session_cookie_name' = the name you want for the cookie
  287. | 'encrypt_sess_cookie' = TRUE/FALSE (boolean). Whether to encrypt the cookie
  288. | 'session_expiration' = the number of SECONDS you want the session to last.
  289. | by default sessions last 7200 seconds (two hours). Set to zero for no expiration.
  290. | 'time_to_update' = how many seconds between CI refreshing Session Information
  291. |
  292. */
  293. $config['sess_cookie_name'] = 'ci_session';
  294. $config['sess_expiration'] = 86400;
  295. $config['sess_encrypt_cookie'] = FALSE;
  296. $config['sess_use_database'] = TRUE;
  297. $config['sess_table_name'] = 'ci_sessions';
  298. $config['sess_match_ip'] = FALSE;
  299. $config['sess_match_useragent'] = TRUE;
  300. $config['sess_time_to_update'] = 300;
  301. /*
  302. |--------------------------------------------------------------------------
  303. | Cookie Related Variables
  304. |--------------------------------------------------------------------------
  305. |
  306. | 'cookie_prefix' = Set a prefix if you need to avoid collisions
  307. | 'cookie_domain' = Set to .your-domain.com for site-wide cookies
  308. | 'cookie_path' = Typically will be a forward slash
  309. |
  310. */
  311. if (!empty($config['base_url'])) {
  312. $config['cookie_prefix'] = '';
  313. $parsed_url = parse_url($config['base_url']);
  314. $host = $parsed_url['host'];
  315. $config['cookie_domain'] = $host;
  316. $config['cookie_path'] = (empty($parsed_url['path'])) ? "/" : $parsed_url['path'];
  317. }
  318. else {
  319. $config['cookie_prefix'] = '';
  320. $config['cookie_domain'] = '';
  321. $config['cookie_path'] = '/';
  322. }
  323. /*
  324. |--------------------------------------------------------------------------
  325. | Global XSS Filtering
  326. |--------------------------------------------------------------------------
  327. |
  328. | Determines whether the XSS filter is always active when GET, POST or
  329. | COOKIE data is encountered
  330. |
  331. */
  332. $config['global_xss_filtering'] = FALSE;
  333. /*
  334. |--------------------------------------------------------------------------
  335. | Output Compression
  336. |--------------------------------------------------------------------------
  337. |
  338. | Enables Gzip output compression for faster page loads. When enabled,
  339. | the output class will test whether your server supports Gzip.
  340. | Even if it does, however, not all browsers support compression
  341. | so enable only if you are reasonably sure your visitors can handle it.
  342. |
  343. | VERY IMPORTANT: If you are getting a blank page when compression is enabled it
  344. | means you are prematurely outputting something to your browser. It could
  345. | even be a line of whitespace at the end of one of your scripts. For
  346. | compression to work, nothing can be sent before the output buffer is called
  347. | by the output class. Do not "echo" any values with compression enabled.
  348. |
  349. */
  350. $config['compress_output'] = FALSE;
  351. /*
  352. |--------------------------------------------------------------------------
  353. | Master Time Reference
  354. |--------------------------------------------------------------------------
  355. |
  356. | Options are "local" or "gmt". This pref tells the system whether to use
  357. | your server's local time as the master "now" reference, or convert it to
  358. | GMT. See the "date helper" page of the user guide for information
  359. | regarding date handling.
  360. |
  361. */
  362. $config['time_reference'] = 'gmt';
  363. /*
  364. |--------------------------------------------------------------------------
  365. | Rewrite PHP Short Tags
  366. |--------------------------------------------------------------------------
  367. |
  368. | If your PHP installation does not have short tag support enabled CI
  369. | can rewrite the tags on-the-fly, enabling you to utilize that syntax
  370. | in your view files. Options are TRUE or FALSE (boolean)
  371. |
  372. */
  373. $config['rewrite_short_tags'] = TRUE;
  374. /*
  375. |--------------------------------------------------------------------------
  376. | Reverse Proxy IPs
  377. |--------------------------------------------------------------------------
  378. |
  379. | If your server is behind a reverse proxy, you must whitelist the proxy IP
  380. | addresses from which CodeIgniter should trust the HTTP_X_FORWARDED_FOR
  381. | header in order to properly identify the visitor's IP address.
  382. | Comma-delimited, e.g. '10.0.1.200,10.0.1.201'
  383. |
  384. */
  385. $config['proxy_ips'] = '';
  386. /* End of file config.php */
  387. /* Location: ./app/config/config.php */