config.php 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <?php
  2. defined('IN_IA') or exit('Access Denied');
  3. $config = array();
  4. $config['db']['master']['host'] = '127.0.0.1';
  5. $config['db']['master']['username'] = 'root';
  6. $config['db']['master']['password'] = 'root';
  7. $config['db']['master']['port'] = '3306';
  8. $config['db']['master']['database'] = 'we7';
  9. $config['db']['master']['charset'] = 'utf8';
  10. $config['db']['master']['pconnect'] = 0;
  11. $config['db']['master']['tablepre'] = 'ims_';
  12. $config['db']['slave_status'] = false;
  13. $config['db']['slave']['1']['host'] = '';
  14. $config['db']['slave']['1']['username'] = '';
  15. $config['db']['slave']['1']['password'] = '';
  16. $config['db']['slave']['1']['port'] = '3307';
  17. $config['db']['slave']['1']['database'] = '';
  18. $config['db']['slave']['1']['charset'] = 'utf8';
  19. $config['db']['slave']['1']['pconnect'] = 0;
  20. $config['db']['slave']['1']['tablepre'] = 'ims_';
  21. $config['db']['slave']['1']['weight'] = 0;
  22. $config['db']['common']['slave_except_table'] = array('core_sessions');
  23. // -------------------------- CONFIG COOKIE --------------------------- //
  24. $config['cookie']['pre'] = '94cf_';
  25. $config['cookie']['domain'] = '';
  26. $config['cookie']['path'] = '/';
  27. // -------------------------- CONFIG SETTING --------------------------- //
  28. $config['setting']['charset'] = 'utf-8';
  29. $config['setting']['cache'] = 'mysql';
  30. $config['setting']['timezone'] = 'Asia/Shanghai';
  31. $config['setting']['memory_limit'] = '256M';
  32. $config['setting']['filemode'] = 0644;
  33. $config['setting']['authkey'] = '890db3e9';
  34. $config['setting']['founder'] = '1';
  35. $config['setting']['development'] = 0;
  36. $config['setting']['referrer'] = 0;
  37. // -------------------------- CONFIG UPLOAD --------------------------- //
  38. $config['upload']['image']['extentions'] = array('gif', 'jpg', 'jpeg', 'png');
  39. $config['upload']['image']['limit'] = 5000;
  40. $config['upload']['attachdir'] = 'attachment';
  41. $config['upload']['audio']['extentions'] = array('mp3');
  42. $config['upload']['audio']['limit'] = 5000;
  43. // -------------------------- CONFIG REDIS --------------------------- //
  44. $config['setting']['redis']['server'] = '127.0.0.1';
  45. $config['setting']['redis']['port'] = 6379;
  46. $config['setting']['redis']['pconnect'] = 1;
  47. $config['setting']['redis']['timeout'] = 30;
  48. $config['setting']['redis']['session'] = 1;
  49. // -------------------------- CONFIG MEMCACHE --------------------------- //
  50. $config['setting']['memcache']['server'] = '';
  51. $config['setting']['memcache']['port'] = 11211;
  52. $config['setting']['memcache']['pconnect'] = 1;
  53. $config['setting']['memcache']['timeout'] = 30;
  54. $config['setting']['memcache']['session'] = 1;
  55. // -------------------------- CONFIG PROXY --------------------------- //
  56. $config['setting']['proxy']['host'] = '';
  57. $config['setting']['proxy']['auth'] = '';