123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- <?php
- defined('IN_IA') or exit('Access Denied');
-
- $config = array();
-
- //dev
- $config['db']['master']['host'] = 'shengws2015.mysql.rds.aliyuncs.com';
- $config['db']['master']['username'] = 'ztw';
- $config['db']['master']['password'] = 'ztw123456=';
- $config['db']['master']['port'] = '3306';
- $config['db']['master']['database'] = 'renren_dev';
- $config['db']['master']['charset'] = 'utf8mb4';
- $config['db']['master']['pconnect'] = 0;
- $config['db']['master']['tablepre'] = 'ims_';
-
- $config['other_db']['sgj_user']['host'] = 'shengws2015.mysql.rds.aliyuncs.com';
- $config['other_db']['sgj_user']['username'] = 'ztw';
- $config['other_db']['sgj_user']['password'] = 'ztw123456=';
- $config['other_db']['sgj_user']['port'] = '3306';
- $config['other_db']['sgj_user']['database'] = 'sgj_users_dev';
- $config['other_db']['sgj_user']['charset'] = 'utf8mb4';
- $config['other_db']['sgj_user']['pconnect'] = 0;
- $config['other_db']['sgj_user']['tablepre'] = '';
-
- //prod
- // $config['db']['master']['host'] = 'shengws2015.mysql.rds.aliyuncs.com';
- // $config['db']['master']['username'] = 'syh';
- // $config['db']['master']['password'] = 'xhPECP2nFObR8aUK';
- // $config['db']['master']['port'] = '3306';
- // $config['db']['master']['database'] = 'renren';
- // $config['db']['master']['charset'] = 'utf8mb4';
- // $config['db']['master']['pconnect'] = 0;
- // $config['db']['master']['tablepre'] = 'ims_';
-
- // $config['other_db']['sgj_user']['host'] = 'shengws2015.mysql.rds.aliyuncs.com';
- // $config['other_db']['sgj_user']['username'] = 'syh';
- // $config['other_db']['sgj_user']['password'] = 'xhPECP2nFObR8aUK';
- // $config['other_db']['sgj_user']['port'] = '3306';
- // $config['other_db']['sgj_user']['database'] = 'sgj_users';
- // $config['other_db']['sgj_user']['charset'] = 'utf8mb4';
- // $config['other_db']['sgj_user']['pconnect'] = 0;
- // $config['other_db']['sgj_user']['tablepre'] = '';
-
- $config['db']['slave_status'] = false;
- $config['db']['slave']['1']['host'] = '';
- $config['db']['slave']['1']['username'] = '';
- $config['db']['slave']['1']['password'] = '';
- $config['db']['slave']['1']['port'] = '3307';
- $config['db']['slave']['1']['database'] = '';
- $config['db']['slave']['1']['charset'] = 'utf8';
- $config['db']['slave']['1']['pconnect'] = 0;
- $config['db']['slave']['1']['tablepre'] = 'ims_';
- $config['db']['slave']['1']['weight'] = 0;
-
- $config['db']['common']['slave_except_table'] = array('core_sessions');
-
- // -------------------------- CONFIG COOKIE --------------------------- //
- $config['cookie']['pre'] = '0b3f_';
- $config['cookie']['domain'] = '';
- $config['cookie']['path'] = '/';
-
- // -------------------------- CONFIG SETTING --------------------------- //
- $config['setting']['charset'] = 'utf-8';
- $config['setting']['cache'] = 'mysql';
- $config['setting']['timezone'] = 'Asia/Shanghai';
- $config['setting']['memory_limit'] = '256M';
- $config['setting']['filemode'] = 0644;
- $config['setting']['authkey'] = 'db2a5959';
- $config['setting']['founder'] = '1';
- $config['setting']['development'] = 0;
- $config['setting']['referrer'] = 0;
-
- // -------------------------- CONFIG UPLOAD --------------------------- //
- $config['upload']['image']['extentions'] = array('gif', 'jpg', 'jpeg', 'png');
- $config['upload']['image']['limit'] = 5000;
- $config['upload']['attachdir'] = 'attachment';
- $config['upload']['audio']['extentions'] = array('mp3');
- $config['upload']['audio']['limit'] = 5000;
-
- // -------------------------- CONFIG MEMCACHE --------------------------- //
- $config['setting']['memcache']['server'] = '';
- $config['setting']['memcache']['port'] = 11211;
- $config['setting']['memcache']['pconnect'] = 1;
- $config['setting']['memcache']['timeout'] = 30;
- $config['setting']['memcache']['session'] = 1;
-
- // -------------------------- CONFIG PROXY --------------------------- //
- $config['setting']['proxy']['host'] = '';
- $config['setting']['proxy']['auth'] = '';
|