|
@@ -1,62 +1,67 @@
|
|
|
<?php
|
|
|
-// defined('InShopNC') or exit('Access Invalid!');
|
|
|
|
|
|
-$config = array();
|
|
|
-$config['base_site_url'] = 'http://shopnc.yage.com';
|
|
|
-$config['shop_site_url'] = 'http://shopnc.yage.com/shop';
|
|
|
-$config['cms_site_url'] = 'http://shopnc.yage.com/cms';
|
|
|
-$config['microshop_site_url'] = 'http://shopnc.yage.com/microshop';
|
|
|
-$config['circle_site_url'] = 'http://shopnc.yage.com/circle';
|
|
|
-$config['admin_site_url'] = 'http://shopnc.yage.com/admin';
|
|
|
-$config['mobile_site_url'] = 'http://shopnc.yage.com/mobile';
|
|
|
-$config['wap_site_url'] = 'http://shopnc.yage.com/wap';
|
|
|
-$config['chat_site_url'] = 'http://shopnc.yage.com/chat';
|
|
|
-$config['node_site_url'] = 'http://127.0.0.1:8090';
|
|
|
-$config['upload_site_url'] = 'http://shopnc.yage.com/data/upload';
|
|
|
-$config['resource_site_url'] = 'http://shopnc.yage.com/data/resource';
|
|
|
-$config['version'] = '201502020388';
|
|
|
-$config['setup_date'] = '2015-08-22 15:52:34';
|
|
|
-$config['gip'] = 0;
|
|
|
-$config['dbdriver'] = 'mysqli';
|
|
|
-$config['tablepre'] = '33hao_';
|
|
|
-$config['db']['1']['dbhost'] = '127.0.0.1';
|
|
|
-$config['db']['1']['dbport'] = '3306';
|
|
|
-$config['db']['1']['dbuser'] = 'root';
|
|
|
-$config['db']['1']['dbpwd'] = '55668899';
|
|
|
-$config['db']['1']['dbname'] = '33hao';
|
|
|
-$config['db']['1']['dbcharset'] = 'UTF-8';
|
|
|
-$config['db']['slave'] = $config['db']['master'];
|
|
|
-$config['session_expire'] = 3600;
|
|
|
-$config['lang_type'] = 'zh_cn';
|
|
|
-$config['cookie_pre'] = '6B0C_';
|
|
|
-$config['thumb']['cut_type'] = 'gd';
|
|
|
-$config['thumb']['impath'] = '';
|
|
|
-$config['cache']['type'] = 'file';
|
|
|
-//$config['redis']['prefix'] = 'nc_';
|
|
|
-//$config['redis']['master']['port'] = 6379;
|
|
|
-//$config['redis']['master']['host'] = '127.0.0.1';
|
|
|
-//$config['redis']['master']['pconnect'] = 0;
|
|
|
-//$config['redis']['slave'] = array();
|
|
|
-//$config['fullindexer']['open'] = false;
|
|
|
-//$config['fullindexer']['appname'] = '33hao';
|
|
|
-$config['debug'] = false;
|
|
|
-$config['default_store_id'] = '1';
|
|
|
-//如果开始伪静态,这里设置为true
|
|
|
-$config['url_model'] = false;
|
|
|
-//如果店铺开启二级域名绑定的,这里填写主域名如baidu.com
|
|
|
-$config['subdomain_suffix'] = '';
|
|
|
-//$config['session_type'] = 'redis';
|
|
|
-//$config['session_save_path'] = 'tcp://127.0.0.1:6379';
|
|
|
-$config['node_chat'] = true;
|
|
|
-//流量记录表数量,为1~10之间的数字,默认为3,数字设置完成后请不要轻易修改,否则可能造成流量统计功能数据错误
|
|
|
-$config['flowstat_tablenum'] = 3;
|
|
|
-$config['sms']['gwUrl'] = 'http://sdkhttp.eucp.b2m.cn/sdk/SDKService';
|
|
|
-$config['sms']['serialNumber'] = '';
|
|
|
-$config['sms']['password'] = '';
|
|
|
-$config['sms']['sessionKey'] = '';
|
|
|
-$config['queue']['open'] = false;
|
|
|
-$config['queue']['host'] = '127.0.0.1';
|
|
|
-$config['queue']['port'] = 6379;
|
|
|
-$config['cache_open'] = false;
|
|
|
-$config['delivery_site_url'] = 'http://shopnc.yage.com/delivery';
|
|
|
-return $config;
|
|
|
+function config_init()
|
|
|
+{
|
|
|
+ $ret = array();
|
|
|
+ $ret['base_site_url'] = 'http://shopnc.yage.com';
|
|
|
+ $ret['shop_site_url'] = 'http://shopnc.yage.com/shop';
|
|
|
+ $ret['cms_site_url'] = 'http://shopnc.yage.com/cms';
|
|
|
+ $ret['microshop_site_url'] = 'http://shopnc.yage.com/microshop';
|
|
|
+ $ret['circle_site_url'] = 'http://shopnc.yage.com/circle';
|
|
|
+ $ret['admin_site_url'] = 'http://shopnc.yage.com/admin';
|
|
|
+ $ret['mobile_site_url'] = 'http://shopnc.yage.com/mobile';
|
|
|
+ $ret['wap_site_url'] = 'http://shopnc.yage.com/wap';
|
|
|
+ $ret['chat_site_url'] = 'http://shopnc.yage.com/chat';
|
|
|
+ $ret['node_site_url'] = 'http://127.0.0.1:8090';
|
|
|
+ $ret['upload_site_url'] = 'http://shopnc.yage.com/data/upload';
|
|
|
+ $ret['resource_site_url'] = 'http://shopnc.yage.com/data/resource';
|
|
|
+ $ret['version'] = '201502020388';
|
|
|
+ $ret['setup_date'] = '2015-08-22 15:52:34';
|
|
|
+ $ret['gip'] = 0;
|
|
|
+ $ret['dbdriver'] = 'mysqli';
|
|
|
+ $ret['tablepre'] = '33hao_';
|
|
|
+ $ret['db']['1']['dbhost'] = '127.0.0.1';
|
|
|
+ $ret['db']['1']['dbport'] = '3306';
|
|
|
+ $ret['db']['1']['dbuser'] = 'root';
|
|
|
+ $ret['db']['1']['dbpwd'] = '55668899';
|
|
|
+ $ret['db']['1']['dbname'] = '33hao';
|
|
|
+ $ret['db']['1']['dbcharset'] = 'UTF-8';
|
|
|
+ $ret['db']['slave'] = $ret['db']['master'];
|
|
|
+ $ret['session_expire'] = 3600;
|
|
|
+ $ret['lang_type'] = 'zh_cn';
|
|
|
+ $ret['cookie_pre'] = '6B0C_';
|
|
|
+ $ret['thumb']['cut_type'] = 'gd';
|
|
|
+ $ret['thumb']['impath'] = '';
|
|
|
+ $ret['cache']['type'] = 'file';
|
|
|
+
|
|
|
+ //$ret['redis']['prefix'] = 'nc_';
|
|
|
+ //$ret['redis']['master']['port'] = 6379;
|
|
|
+ //$ret['redis']['master']['host'] = '127.0.0.1';
|
|
|
+ //$ret['redis']['master']['pconnect'] = 0;
|
|
|
+ //$ret['redis']['slave'] = array();
|
|
|
+ //$ret['fullindexer']['open'] = false;
|
|
|
+ //$ret['fullindexer']['appname'] = '33hao';
|
|
|
+
|
|
|
+ $ret['debug'] = false;
|
|
|
+ $ret['default_store_id'] = '1';
|
|
|
+ //如果开始伪静态,这里设置为true
|
|
|
+ $ret['url_model'] = false;
|
|
|
+ //如果店铺开启二级域名绑定的,这里填写主域名如baidu.com
|
|
|
+ $ret['subdomain_suffix'] = '';
|
|
|
+ //$ret['session_type'] = 'redis';
|
|
|
+ //$ret['session_save_path'] = 'tcp://127.0.0.1:6379';
|
|
|
+ $ret['node_chat'] = true;
|
|
|
+ //流量记录表数量,为1~10之间的数字,默认为3,数字设置完成后请不要轻易修改,否则可能造成流量统计功能数据错误
|
|
|
+ $ret['flowstat_tablenum'] = 3;
|
|
|
+ $ret['sms']['gwUrl'] = 'http://sdkhttp.eucp.b2m.cn/sdk/SDKService';
|
|
|
+ $ret['sms']['serialNumber'] = '';
|
|
|
+ $ret['sms']['password'] = '';
|
|
|
+ $ret['sms']['sessionKey'] = '';
|
|
|
+ $ret['queue']['open'] = false;
|
|
|
+ $ret['queue']['host'] = '127.0.0.1';
|
|
|
+ $ret['queue']['port'] = 6379;
|
|
|
+ $ret['cache_open'] = false;
|
|
|
+ $ret['delivery_site_url'] = 'http://shopnc.yage.com/delivery';
|
|
|
+
|
|
|
+ return $ret;
|
|
|
+}
|