FmcmsUi/install/stall_1.aspx.cs
(开头部分) 5KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Configuration;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;
using System.Diagnostics;
using Fm.Bussiness;
using System.Xml;
public partial class install_stall_1 : System.Web.UI.Page
{
//实例化文件操作类
ATL.IO. IOStream stream = new ATL.IO.IOStream();
//公用SQL脚本执行类
public_select ps = new public_select();
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
TextBox9.Text = Request.Url.ToString().Replace("install/stall_1.aspx", "");
tab_end.Visible = false;
}
if (Request.Form["server"] != null)
{
Response.ContentType = "text/html";
string con = "server=" + Request.Form["server"].ToString() + ";uid=" + Request.Form["uid"].ToString() + ";pwd=" + Request.Form["pwd"].ToString() + ";database=" + Request.Form["database"].ToString() + "";
Response.Write(GetCon(con));
Response.Flush();
Response.Close();
}
}
string GetCon(string str)
{
string bo="";
SqlConnection con = new SqlConnection(str);
try
{
con.Open();
if (con.State == 0)
{
bo = "0";
}
else
{
bo = "1";
}
}
finally
{
con.Close();
}
后面还有 132 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
