using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace LYFZ.WanYuKeFu
{
public partial class LogList : System.Web.UI.Page
{
public string tempLogs = "日志功能未来开启";
public string ddomaineList = "暂无待调试加密锁域名";
protected void Page_Load(object sender, EventArgs e)
{
if (Global.IsOpenLogs)
{
tempLogs = "日志功能已开启";
}
if (Request.QueryString["logs"] != null && Request.QueryString["logs"].ToString() == "del")
{
Global.DeleteWeiXinlogs();
Response.Write("");
}
else if (Request.QueryString["logs"] != null && Request.QueryString["logs"].ToString() == "y")
{
Global.IsOpenLogs = true;
Response.Write("");
}
else if (Request.QueryString["logs"] != null && Request.QueryString["logs"].ToString() == "n")
{
Global.IsOpenLogs = false;
Response.Write("");
}
if (Request.QueryString["type"] != null && Request.QueryString["type"].ToString() == "add" && Request.QueryString["ddomaine"] != null)
{
string ddomaine = Request.QueryString["ddomaine"].ToString();
if (!Global.LogsDongleDomainList.Contains(ddomaine))
{
Global.LogsDongleDomainList.Add(ddomaine);
Response.Write("");
}
}
else if (Request.QueryString["type"] != null && Request.QueryString["type"].ToString() == "del")
{
Global.LogsDongleDomainList.Clear();
Response.Write("");
}
if (Global.LogsDongleDomainList.Count > 0)
{
ddomaineList = "";
foreach (string ddomaine in Global.LogsDongleDomainList)
{
ddomaineList += ddomaine + "
";
}
}
}
}
}