WebApplication/Mobile/Index.aspx.cs
(开头部分) 4KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Data;
using System.IO;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace WebApplication.Mobile
{
public partial class Index : System.Web.UI.Page
{
public int index = 0;
BLL.Models.GZXX_Model bll = new BLL.Models.GZXX_Model();
protected void Page_Load(object sender, EventArgs e)
{
if (!this.IsPostBack)
{
Model.Models.GZXX_Config cm = (Model.Models.GZXX_Config)Admin.Tools.SysCache.ReturnSysModelCache("configmodel");
string path = Server.MapPath(cm.IndexHtml.Replace("PC/", "Mobile/"));
FileInfo fi = new FileInfo(path);
if (fi.Exists)
{
using (StreamReader sr = new StreamReader(path, Encoding.UTF8))
{
int line = 0;
bool hline = true;
bool bline = false;
string headhtml = "";
while (!sr.EndOfStream)
{
//int cline = 0;
string html = string.Empty;
string text = sr.ReadLine();
if (text == "[head]")
{
hline = true;
}
if (text == "[/head]")
{
hline = false;
}
if (text == "[body]")
{
bline = true;
}
if (text == "[/body]")
{
bline = false;
}
#region [head]head内容[/head]
if (hline)
{
if (text != "[head]")
{
Match match = Regex.Match(text, "{KS:([^{]+)}");
while (match.Success)
后面还有 62 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
