<?php
header('Content-Type: text/html; charset=UTF-8');
//打开session
session_start();
error_reporting(0);

//包含配置信息
$data = rkcache("setting", true);
//判读站外分析是否开启
if($data['share_isuse'] != 1 || $data['share_qqweibo_isuse'] != 1){
	echo "<script>alert('系统未开启该功能');</script>";
	echo "<script>window.close();</script>";
	exit;
}
//填写自己的appid
$client_id = trim($data['share_qqweibo_appid']);
//填写自己的appkey
$client_secret = trim($data['share_qqweibo_appkey']);
//登录成功后跳转的地址,请确保地址真实可用，否则会导致登录失败
$callback = MEMBER_SITE_URL."/index.php?app=member_sharemanage&feiwa=share_qqweibo";
//调试模式
$debug = false;