Manage/CompareOnline.aspx.cs
(开头部分) 11KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Data;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Text;
using System.IO;
using EKETEAM.Data;
using EKETEAM.FrameWork;
using System.Xml;
namespace eFrameWork.Manage
{
public partial class CompareOnline : System.Web.UI.Page
{
public string pattern = "";
string serverUrl = "http://frame.eketeam.com/Services/databaseSchema.aspx";
//string filepath = "columns_cache.xml";
string filepath = "../upload/temp/columns_cache.xml";
protected void Page_Load(object sender, EventArgs e)
{
pattern = eParameters.Request("pattern");
if (pattern.Length == 0) pattern = "1";
string act = eParameters.QueryString("act");
switch (act)
{
case "":
list();
break;
case "add":
add();
break;
case "create":
create();
break;
}
}
private void checkFile()
{
string path = Server.MapPath(filepath);
if (!Directory.Exists(new eFileInfo(path).Path)) Directory.CreateDirectory(new eFileInfo(path).Path);
if (System.IO.File.Exists(path))
{
FileInfo fi = new FileInfo(path);
TimeSpan timeSpan = DateTime.Now - fi.CreationTime;
int Minutes = Convert.ToInt32(timeSpan.TotalMinutes);
if (Minutes < 31) return;
}
string xmlbody = eBase.getRequest(serverUrl);
if (xmlbody.StartsWith("<") && xmlbody.EndsWith(">"))
{
eBase.WriteFile(path, xmlbody);
}
}
private void add()
{
string table = eParameters.QueryString("table");
string code = eParameters.QueryString("code");
后面还有 203 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
