config.php 654 B

12345678910111213141516
  1. <?php
  2. header('Content-Type: text/html; charset=UTF-8');
  3. session_start();
  4. //包含配置信息
  5. //$data = rkcache("setting", true);
  6. $data = require(BASE_DATA_PATH.DS.'cache'.DS.'setting.php'); // by abc
  7. //判读站外分析是否开启
  8. if($data['share_isuse'] != 1 || $data['share_sinaweibo_isuse'] != 1){
  9. echo "<script>alert('系统未开启该功能');</script>";
  10. echo "<script>window.close();</script>";
  11. exit;
  12. }
  13. define( "WB_AKEY" , trim($data['share_sinaweibo_appid']));
  14. define( "WB_SKEY" , trim($data['share_sinaweibo_appkey']));
  15. define( "WB_CALLBACK_URL" , SHOP_SITE_URL.DS.'index.php?act=member_sharemanage&op=share_sinaweibo');