人人商城

config.php 3.9KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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. // $config['fxtokenkey'] = 'kN*5&AHqLP7&IGRKvHoElJm*2YY6Nw*QSScJ4ff&DH&ofGnbfQIks1A1NT9AbIDB';
  22. //prod
  23. $config['db']['master']['host'] = 'shengws2015.mysql.rds.aliyuncs.com';
  24. $config['db']['master']['username'] = 'syh';
  25. $config['db']['master']['password'] = 'xhPECP2nFObR8aUK';
  26. $config['db']['master']['port'] = '3306';
  27. $config['db']['master']['database'] = 'renren';
  28. $config['db']['master']['charset'] = 'utf8mb4';
  29. $config['db']['master']['pconnect'] = 0;
  30. $config['db']['master']['tablepre'] = 'ims_';
  31. $config['other_db']['sgj_user']['host'] = 'shengws2015.mysql.rds.aliyuncs.com';
  32. $config['other_db']['sgj_user']['username'] = 'syh';
  33. $config['other_db']['sgj_user']['password'] = 'xhPECP2nFObR8aUK';
  34. $config['other_db']['sgj_user']['port'] = '3306';
  35. $config['other_db']['sgj_user']['database'] = 'sgj_users';
  36. $config['other_db']['sgj_user']['charset'] = 'utf8mb4';
  37. $config['other_db']['sgj_user']['pconnect'] = 0;
  38. $config['other_db']['sgj_user']['tablepre'] = '';
  39. $config['fxtokenkey'] = '8&o!5VSz^iWe*PzhDogC5%m*S$ZlyB3c%5R4CrWjTwJJSJdEbop6do@eFR*7deTY';
  40. $config['db']['slave_status'] = false;
  41. $config['db']['slave']['1']['host'] = '';
  42. $config['db']['slave']['1']['username'] = '';
  43. $config['db']['slave']['1']['password'] = '';
  44. $config['db']['slave']['1']['port'] = '3307';
  45. $config['db']['slave']['1']['database'] = '';
  46. $config['db']['slave']['1']['charset'] = 'utf8';
  47. $config['db']['slave']['1']['pconnect'] = 0;
  48. $config['db']['slave']['1']['tablepre'] = 'ims_';
  49. $config['db']['slave']['1']['weight'] = 0;
  50. $config['db']['common']['slave_except_table'] = array('core_sessions');
  51. // -------------------------- CONFIG COOKIE --------------------------- //
  52. $config['cookie']['pre'] = '0b3f_';
  53. $config['cookie']['domain'] = '';
  54. $config['cookie']['path'] = '/';
  55. // -------------------------- CONFIG SETTING --------------------------- //
  56. $config['setting']['charset'] = 'utf-8';
  57. $config['setting']['cache'] = 'mysql';
  58. $config['setting']['timezone'] = 'Asia/Shanghai';
  59. $config['setting']['memory_limit'] = '256M';
  60. $config['setting']['filemode'] = 0644;
  61. $config['setting']['authkey'] = 'db2a5959';
  62. $config['setting']['founder'] = '1';
  63. $config['setting']['development'] = 0;
  64. $config['setting']['referrer'] = 0;
  65. // -------------------------- CONFIG UPLOAD --------------------------- //
  66. $config['upload']['image']['extentions'] = array('gif', 'jpg', 'jpeg', 'png');
  67. $config['upload']['image']['limit'] = 5000;
  68. $config['upload']['attachdir'] = 'attachment';
  69. $config['upload']['audio']['extentions'] = array('mp3');
  70. $config['upload']['audio']['limit'] = 5000;
  71. // -------------------------- CONFIG MEMCACHE --------------------------- //
  72. $config['setting']['memcache']['server'] = '';
  73. $config['setting']['memcache']['port'] = 11211;
  74. $config['setting']['memcache']['pconnect'] = 1;
  75. $config['setting']['memcache']['timeout'] = 30;
  76. $config['setting']['memcache']['session'] = 1;
  77. // -------------------------- CONFIG PROXY --------------------------- //
  78. $config['setting']['proxy']['host'] = '';
  79. $config['setting']['proxy']['auth'] = '';