1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- <?php
- namespace loyalsoft;
- /**
- * Description of config
- * 尝试用这种写法来定义服务器配置
- * @author gwang email:mail@wanggangzero.cn
- * @copyright © 2015-2-3, SJZ LoyalSoft Corporation & gwang. All rights reserved.
- */
- class config_and extends config {
- function _InitTester() {
- $this->testerArr = array(
- "gwang", // 王刚
- "8796-any", // 王倩倩
- "wanggangzero.cn", // 王刚
- );
- }
- function _InitBaneder() {
- $this->banedArr = array(
- "251984775-baidu", // 王刚
- );
- }
- /**
- * 外网paydb
- */
- protected function _InitOuterNetPaydb() {
- $this->paydb->host = '172.17.16.5';
- $this->paydb->port = '3306';
- $this->paydb->name = 'ylsj2019_pay';
- $this->paydb->user = 'ylsjMTY0LjkyLjE5NC4x';
- $this->paydb->password = 'wanggang1985';
- }
- /**
- * 外网nosql
- */
- protected function _InitOuterNetNosql() {
- $this->nosql->host = "172.17.16.5"; # host/ip
- $this->nosql->port = 6379; # 端口
- $this->nosql->pwd = 'wanggang1985'; # 密钥
- }
- /**
- * 外网MongoDB
- */
- protected function _InitOuterMongoDB() {
- $this->mongodb = "mongodb://ylsjMTY0LjkyLjE5NC4x:wanggang1985@172.17.16.5:23333/?authSource=ylsj2019";
- }
- }
- return new config_and();
|