config_sae.php 934 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. /**
  3. * 洛阳赤炎鹰网络科技有限公司
  4. * https://www.cyyvip.com
  5. * Copyright (c) 2022 赤店商城 All rights reserved.
  6. */
  7. $kv = new SaeKV();
  8. // 初始化SaeKV对象
  9. $ret = $kv->init();
  10. $ret = $kv->get('THINKCMF_DYNAMIC_CONFIG');
  11. $runtime_config= $ret ? unserialize($ret) : array();
  12. $_msaestorage=new SaeStorage();
  13. $sae = array(
  14. 'DB_TYPE' => 'mysql',
  15. 'DB_DEPLOY_TYPE'=> 1,
  16. 'DB_RW_SEPARATE'=>true,
  17. 'DB_HOST' => SAE_MYSQL_HOST_M,
  18. 'DB_NAME' => SAE_MYSQL_DB,
  19. 'DB_USER' => SAE_MYSQL_USER,
  20. 'DB_PWD' => SAE_MYSQL_PASS,
  21. 'DB_PORT' => SAE_MYSQL_PORT,
  22. 'DB_PREFIX' => 'sp_',
  23. //cookies
  24. "COOKIE_PREFIX" => 'U49dZ1_',
  25. 'FILE_UPLOAD_TYPE' => 'Sae', // 文件上传方式
  26. 'TMPL_PARSE_STRING'=>array(
  27. '__UPLOAD__'=>$_msaestorage->getUrl('data','upload')."/",
  28. )
  29. );
  30. //print_r($runtime_config); die;
  31. return array_merge($sae, $runtime_config);