/// <summary> /// 页面载入检查 /// </summary> public void PageLoadCheck() { if (ShopCache.GetDomainStatus() == "0") { if (!Shop.LebiAPI.Service.Instanse.Check("lebilicense")) { StringBuilder sb = new StringBuilder(); sb.Append("Powered by <a style=\"font-size:12px;color:#00497f\" href=\"http://www.lebi.cn\" target=\"_blank\" title=\"LebiShop多语言网店系统\">LebiShop</a> "); sb.Append("V" + SYS.Version + "." + SYS.Version_Son); Response.Write("<div style=\"height:100px;padding-top:10px;text-align:left;font-size:12;\">LebiShop发现异常,您可以访问<a style=\"font-size:12px;color:#00497f\" href=\"http://www.lebi.cn\" target=\"_blank\" title=\"LebiShop多语言网店系统\">www.lebi.cn</a>寻求帮助<br>"); Response.Write(sb.ToString() + "</div>"); } else { Response.Write(SYS.Wornings); } Response.End(); return; } if (SYS.VisitTimeFlag == "1") { //开启了禁止访问 Response.Write(SYS.Wornings); Response.End(); return; } if (SYS.IPLock != "") { string ip = RequestTool.GetClientIP(); string[] locks = SYS.IPLock.Split(','); string reg; foreach (string iplock in locks) { if (iplock == ip) { Response.Write(SYS.Wornings); Response.End(); return; } reg = iplock.Replace(".", @"\."); reg = iplock.Replace("*", @"\d+"); if (RegexTool.Check(ip, reg)) { Response.Write(SYS.Wornings); Response.End(); return; } } } }