12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- 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("<script>document.location='LogList.aspx';</script>");
- }
- else if (Request.QueryString["logs"] != null && Request.QueryString["logs"].ToString() == "y")
- {
- Global.IsOpenLogs = true;
- Response.Write("<script>document.location='LogList.aspx';</script>");
- }
- else if (Request.QueryString["logs"] != null && Request.QueryString["logs"].ToString() == "n")
- {
- Global.IsOpenLogs = false;
- Response.Write("<script>document.location='LogList.aspx';</script>");
- }
- 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("<script>document.location='LogList.aspx';</script>");
- }
- }
- else if (Request.QueryString["type"] != null && Request.QueryString["type"].ToString() == "del")
- {
- Global.LogsDongleDomainList.Clear();
- Response.Write("<script>document.location='LogList.aspx';</script>");
- }
- if (Global.LogsDongleDomainList.Count > 0)
- {
- ddomaineList = "";
- foreach (string ddomaine in Global.LogsDongleDomainList)
- {
- ddomaineList += ddomaine + "<br />";
- }
- }
- }
-
- }
- }
|