人人商城

config.php 3.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. <?php
  2. defined('IN_IA') or exit('Access Denied');
  3. $config = array();
  4. //dev
  5. $config['db']['master']['host'] = 'shengws2015.mysql.rds.aliyuncs.com';
  6. $config['db']['master']['username'] = 'ztw';
  7. $config['db']['master']['password'] = 'ztw123456=';
  8. $config['db']['master']['port'] = '3306';
  9. $config['db']['master']['database'] = 'renren_dev';
  10. $config['db']['master']['charset'] = 'utf8mb4';
  11. $config['db']['master']['pconnect'] = 0;
  12. $config['db']['master']['tablepre'] = 'ims_';
  13. $config['other_db']['sgj_user']['host'] = 'shengws2015.mysql.rds.aliyuncs.com';
  14. $config['other_db']['sgj_user']['username'] = 'ztw';
  15. $config['other_db']['sgj_user']['password'] = 'ztw123456=';
  16. $config['other_db']['sgj_user']['port'] = '3306';
  17. $config['other_db']['sgj_user']['database'] = 'sgj_users_dev';
  18. $config['other_db']['sgj_user']['charset'] = 'utf8mb4';
  19. $config['other_db']['sgj_user']['pconnect'] = 0;
  20. $config['other_db']['sgj_user']['tablepre'] = '';
  21. //prod
  22. // $config['db']['master']['host'] = 'shengws2015.mysql.rds.aliyuncs.com';
  23. // $config['db']['master']['username'] = 'syh';
  24. // $config['db']['master']['password'] = 'xhPECP2nFObR8aUK';
  25. // $config['db']['master']['port'] = '3306';
  26. // $config['db']['master']['database'] = 'renren';
  27. // $config['db']['master']['charset'] = 'utf8mb4';
  28. // $config['db']['master']['pconnect'] = 0;
  29. // $config['db']['master']['tablepre'] = 'ims_';
  30. // $config['other_db']['sgj_user']['host'] = 'shengws2015.mysql.rds.aliyuncs.com';
  31. // $config['other_db']['sgj_user']['username'] = 'syh';
  32. // $config['other_db']['sgj_user']['password'] = 'xhPECP2nFObR8aUK';
  33. // $config['other_db']['sgj_user']['port'] = '3306';
  34. // $config['other_db']['sgj_user']['database'] = 'sgj_users';
  35. // $config['other_db']['sgj_user']['charset'] = 'utf8mb4';
  36. // $config['other_db']['sgj_user']['pconnect'] = 0;
  37. // $config['other_db']['sgj_user']['tablepre'] = '';
  38. $config['db']['slave_status'] = false;
  39. $config['db']['slave']['1']['host'] = '';
  40. $config['db']['slave']['1']['username'] = '';
  41. $config['db']['slave']['1']['password'] = '';
  42. $config['db']['slave']['1']['port'] = '3307';
  43. $config['db']['slave']['1']['database'] = '';
  44. $config['db']['slave']['1']['charset'] = 'utf8';
  45. $config['db']['slave']['1']['pconnect'] = 0;
  46. $config['db']['slave']['1']['tablepre'] = 'ims_';
  47. $config['db']['slave']['1']['weight'] = 0;
  48. $config['db']['common']['slave_except_table'] = array('core_sessions');
  49. // -------------------------- CONFIG COOKIE --------------------------- //
  50. $config['cookie']['pre'] = '0b3f_';
  51. $config['cookie']['domain'] = '';
  52. $config['cookie']['path'] = '/';
  53. // -------------------------- CONFIG SETTING --------------------------- //
  54. $config['setting']['charset'] = 'utf-8';
  55. $config['setting']['cache'] = 'mysql';
  56. $config['setting']['timezone'] = 'Asia/Shanghai';
  57. $config['setting']['memory_limit'] = '256M';
  58. $config['setting']['filemode'] = 0644;
  59. $config['setting']['authkey'] = 'db2a5959';
  60. $config['setting']['founder'] = '1';
  61. $config['setting']['development'] = 0;
  62. $config['setting']['referrer'] = 0;
  63. // -------------------------- CONFIG UPLOAD --------------------------- //
  64. $config['upload']['image']['extentions'] = array('gif', 'jpg', 'jpeg', 'png');
  65. $config['upload']['image']['limit'] = 5000;
  66. $config['upload']['attachdir'] = 'attachment';
  67. $config['upload']['audio']['extentions'] = array('mp3');
  68. $config['upload']['audio']['limit'] = 5000;
  69. // -------------------------- CONFIG MEMCACHE --------------------------- //
  70. $config['setting']['memcache']['server'] = '';
  71. $config['setting']['memcache']['port'] = 11211;
  72. $config['setting']['memcache']['pconnect'] = 1;
  73. $config['setting']['memcache']['timeout'] = 30;
  74. $config['setting']['memcache']['session'] = 1;
  75. // -------------------------- CONFIG PROXY --------------------------- //
  76. $config['setting']['proxy']['host'] = '';
  77. $config['setting']['proxy']['auth'] = '';