-
Notifications
You must be signed in to change notification settings - Fork 0
/
OAuth.aspx.cs
31 lines (30 loc) · 850 Bytes
/
OAuth.aspx.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace HairSlayer
{
public partial class OAuth : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (Request.QueryString["z1"] != null)
{
if (Request.QueryString["z1"] == "cGF5cGFs")
{
Response.Redirect("Profile.aspx?eid=bmV3YWNj");
}
else
{
Response.Cookies["hr_main_ck"]["exp"] = DateTime.Now.AddDays(-10).ToString();
}
}
else
{
Response.Cookies["hr_main_ck"]["exp"] = DateTime.Now.AddDays(-10).ToString();
}
}
}
}