/*
 * 程序名称: JumboTCMS(将博内容管理系统通用版)
 * 
 * 程序版本: 6.x
 * 
 * 程序作者: 将博开发团队 (商业合作请联系：791104444@qq.com)
 * 
 * 版权申明: http://www.jumbotcms.net/about/copyright.html
 * 
 * 技术答疑: http://forum.jumbotcms.net/
 * 
 */

using System;
using JumboTCMS.Common;

namespace JumboTCMS.WebFile.User
{
    public partial class _member_third : JumboTCMS.UI.UserCenter
    {
        public bool Bind_Sina = false;
        public bool Bind_Tencent = false;
        public bool Bind_Renren = false;
        protected void Page_Load(object sender, EventArgs e)
        {
            User_Load("", "html");
            doh.Reset();
            doh.ConditionExpress = "id=" + UserId;
            object[] value = doh.GetFields("jcms_normal_user", "Token_Sina,Token_Tencent,Token_Renren");
            Bind_Sina = (value[0].ToString().Length > 0);
            Bind_Tencent = (value[1].ToString().Length > 0);
            Bind_Renren = (value[2].ToString().Length > 0);
        }
    }
}
