config_web.php 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?php
  2. namespace loyalsoft;
  3. /**
  4. * Description of config
  5. * 尝试用这种写法来定义服务器配置
  6. * @author gwang email:mail@wanggangzero.cn
  7. * @copyright © 2015-2-3, SJZ LoyalSoft Corporation & gwang. All rights reserved.
  8. */
  9. class config_web extends config {
  10. function _InitTester() {
  11. $this->testerArr = array(
  12. 'FA29D1152CF72523563BCB5A0C28744B'
  13. );
  14. }
  15. function _InitBaneder() {
  16. $this->banedArr = array();
  17. }
  18. /**
  19. * 外网paydb
  20. */
  21. protected function _InitOuterNetPaydb() {
  22. // $this->paydb->host = '10.66.108.49';
  23. // $this->paydb->port = '3306';
  24. // $this->paydb->name = 'dhdpay';
  25. // $this->paydb->user = 'root';
  26. // $this->paydb->password = 'wanggang1985';
  27. }
  28. protected function _InitOuterNetNosql() {
  29. // $this->nosql->host = '192.168.10.16'; # host/ip
  30. // $this->nosql->port = 6002; # 端口
  31. // $this->nosql->pwd = 'wanggang1985'; # 密钥
  32. }
  33. /**
  34. * 外网MongoDB
  35. */
  36. protected function _InitOuterMongoDB() {
  37. $this->mongodb = "mongodb://gwang:wanggang1985@localhost:27017/?authSource=admin";
  38. }
  39. }
  40. return new config_web();