config_web.php 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. {
  11. function _InitTester()
  12. {
  13. $this->testerArr = array(
  14. 'FA29D1152CF72523563BCB5A0C28744B'
  15. );
  16. }
  17. function _InitBaneder()
  18. {
  19. $this->banedArr = array();
  20. }
  21. /**
  22. * 外网paydb
  23. */
  24. protected function _InitOuterNetPaydb()
  25. {
  26. // $this->paydb->host = '10.66.108.49';
  27. // $this->paydb->port = '3306';
  28. // $this->paydb->name = 'dhdpay';
  29. // $this->paydb->user = 'root';
  30. // $this->paydb->password = 'wanggang1985';
  31. }
  32. protected function _InitOuterNetNosql()
  33. {
  34. // $this->nosql->host = '192.168.10.16'; # host/ip
  35. // $this->nosql->port = 6002; # 端口
  36. // $this->nosql->pwd = 'wanggang1985'; # 密钥
  37. }
  38. }
  39. return new config_web();