using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

namespace LoveWeb
{
    public partial class LoginSkip : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                string username = Session["username"].ToString();
                if (username == "admin")
                {
                    Session["user"] = username;
                    Label1.Text = "<a href='ForumView.aspx'>我要回复</a> --<a href='Admin/AdminIndex.aspx'>我要管理网站</a> ---<a href='Soul.aspx'>我要发表文章</a>";
                }
                else
                {
                    Session["user"] = username;
                    Label1.Text = "<a href='ForumView.aspx'>我要回复</a>  ---<a href='Soul.aspx'>我要发表文章</a>";
                }
            }
        }
    }
}
