admin/uppassword/sisu.aspx.cs
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.OleDb;
using System.Data;
namespace web.admin.uppassword
{
public partial class sisu : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if(!IsPostBack)
{
int x = 20;
int p = 1;
if (Request.QueryString["pagex"] != null)
{
p = Convert.ToInt32(Request.QueryString["pagex"]);
}
string username = new Random().Next(100).ToString();
string sqlstring = string.Empty;
if ((p - 1) * x == 0)
{
sqlstring = "select top " + x + " * from adminlogin order by id";
}
else
{
sqlstring = "select top " + x + " * from adminlogin where id not in(select top " + (p - 1) * x + " id from adminlogin order by id ) order by id";
}
using (DataTable li = new AcsHelper().ExecuteDataSet(sqlstring))
{
this.Repeater1.DataSource = li;
this.Repeater1.DataBind();
}
this.Literal1.Text = liu.fystr(x, "adminlogin", username, p, "pagex", "id");
}
}
protected void Rp_OnItemCommand(object o, RepeaterCommandEventArgs e)
{
if (e.CommandName == "del")
{
string sqlstring = "delete from adminlogin where id=" + e.CommandArgument;
int a = new AcsHelper().ExecuteNonQuery(sqlstring);
if (a > 0)
{
Response.Redirect(Request.RawUrl);
}
}
}
public static string ifid(object id)
后面还有 15 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
