Hidistro.UI.SaleSystem.zbCodeBehind/VLoginOut.cs

(完整代码) 1KB

namespace Hidistro.UI.SaleSystem.zbCodeBehind
{
    using Hidistro.ControlPanel.Store;
    using Hidistro.Core;
    using Hidistro.UI.Common.Controls;
    using System;
    using System.IO;
    using System.Net;
    using System.Text;
    using System.Web;
    using System.Web.UI;

    [ParseChildren(true)]
    public class VLoginOut : VshopTemplatedWebControl
    {
        protected override void AttachChildControls()
        {
            HttpCookie cookie = HttpContext.Current.Request.Cookies.Get("Vshop-Member");
            if (cookie != null)
            {
                HiAffiliation.ClearUserCookie("", false);
            }
            if (HttpContext.Current.Request.Cookies.Get("Vshop-ReferralId") != null)
            {
                HiAffiliation.ClearReferralIdCookie();
            }
            this.Page.Response.Redirect(Globals.ApplicationPath + "/Default.aspx");
        }

        private string GetResponseResult(string url)
        {
            using (HttpWebResponse response = (HttpWebResponse) WebRequest.Create(url).GetResponse())
            {
                using (Stream stream = response.GetResponseStream())
                {
                    using (StreamReader reader = new StreamReader(stream, Encoding.UTF8))
                    {
                        return reader.ReadToEnd();
                    }
                }
            }
        }

        protected override void OnInit(EventArgs e)
        {
            if (this.SkinName == null)
            {
                this.SkinName = "Skin-VLogout.html";
            }
            base.OnInit(e);
        }
    }
}

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。