Files

56 lines
2.1 KiB
C#
Raw Permalink Normal View History

using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Text;
using System.Data;
namespace Mtxfw.VipSite
{
public partial class Telesa : System.Web.UI.Page
{
Mtxfw.DAL.user_info daoUser = new Mtxfw.DAL.user_info();
public int Card = 0, uLevel = 0, uLevel2 = 0, msgCount = 0, IFApp = 0, IFStores=0;
public string MemberName = "", MemberJS = "";
protected Mtxfw.Utility.Config config = new Mtxfw.Utility.Config("");
protected void Page_Load(object sender, EventArgs e)
{
if (Session["MemberId"] != null && Session["MemberName"] != null)
{
Card = int.Parse(Session["MemberId"].ToString());
MemberName = Session["MemberName"].ToString();
if (Session["MemberuLevel"] != null)
{
uLevel = int.Parse(Session["MemberuLevel"].ToString());
}
if (Session["MemberuLevel2"] != null)
{
uLevel2 = int.Parse(Session["MemberuLevel2"].ToString());
}
if (Session["MemberIFStores"] != null)
{
IFStores = int.Parse(Session["MemberIFStores"].ToString());
}
if (Session["MemberJS"] != null)
{
MemberJS = Session["MemberJS"].ToString();
}
if (config.CloseEnable == "1" && IFStores == 0)
{
Session.RemoveAll();
Response.Redirect("/CloseMsg.aspx");
}
}
else
{
string RUrl = Request.Url.ToString();
Response.Cookies.Add(new HttpCookie("{RUrl}", RUrl));
Response.Cookies["{RUrl}"].Expires = DateTime.Now.AddDays(1);
Response.Redirect("/gl.aspx?g=0");
}
msgCount = new Mtxfw.DAL.Article().GetCount("receiverid=" + Card + " And ParentID=20 And Seef=0");
}
}
}