config.php 830 B

123456789101112131415161718192021222324
  1. <?php
  2. header('Content-Type: text/html; charset=UTF-8');
  3. //打开session
  4. session_start();
  5. error_reporting(0);
  6. //包含配置信息
  7. //$data = rkcache("setting", true);
  8. $data = require(BASE_DATA_PATH.DS.'cache'.DS.'setting.php'); // by abc.com
  9. //判读站外分析是否开启
  10. if($data['share_isuse'] != 1 || $data['share_qqweibo_isuse'] != 1){
  11. echo "<script>alert('系统未开启该功能');</script>";
  12. echo "<script>window.close();</script>";
  13. exit;
  14. }
  15. //填写自己的appid
  16. $client_id = trim($data['share_qqweibo_appid']);
  17. //填写自己的appkey
  18. $client_secret = trim($data['share_qqweibo_appkey']);
  19. //登录成功后跳转的地址,请确保地址真实可用,否则会导致登录失败
  20. $callback = SHOP_SITE_URL."/index.php?act=member_sharemanage&op=share_qqweibo";
  21. //调试模式
  22. $debug = false;