config.php 450 B

123456789101112
  1. <?php
  2. header('Content-Type: text/html; charset=UTF-8');
  3. //包含配置信息
  4. $data = rkcache("config", true);
  5. //判读新浪微博登录是否开启
  6. if($data['sina_isuse'] != 1){
  7. @header('location: ' . config('ds_config.h5_site_url'));
  8. exit;
  9. }
  10. define( "WB_AKEY" , trim($data['sina_wb_akey']));
  11. define( "WB_SKEY" , trim($data['sina_wb_skey']));
  12. define( "WB_CALLBACK_URL" , API_SITE_URL.DIRECTORY_SEPARATOR.'api/oa_sina?step=callback');