protected void Page_Load(object sender, EventArgs e)
 {
     if (!(MySQLServer.auth_chech(Request) && MySQLServer.admin_check(Request)))
     {
         Response.Redirect("~/", false);
     }
 }
        protected async void Page_Load(object sender, EventArgs e)
        {
            connection = new MySqlConnection(MySQLServer.connectionString);
            await connection.OpenAsync();

            if (MySQLServer.auth_chech(Request))
            {
                Response.Redirect("~/Account/Profile", false);
            }
        }
예제 #3
0
        protected async void Page_Load(object sender, EventArgs e)
        {
            if (!(MySQLServer.auth_chech(Request) && MySQLServer.admin_check(Request)))
            {
                Response.Redirect("~/", false);
            }


            if (category.Items.Count == 0)
            {
                loadMeta();
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            HttpCookie loginCookie = Request.Cookies["login"];
            HttpCookie signCookie  = Request.Cookies["sign"];

            if (!MySQLServer.auth_chech(Request))
            {
                Response.Redirect("../Accounts/Login.aspx");
                return;
            }
            name       = loginCookie.Value.ToUpper();
            login.Text = "<h1>" + name + "</h1>";

            loadMeta();


            //QRCode();
        }