admin/infogys.aspx.cs
(开头部分) 12KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;
using System.IO;
public partial class login_infogys : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
Bindttextbox();
Bindjg();
Bindtag(); //推荐人审核
Bindadmintag(); //管理员可以审核所有的
}
if ((string)Session["userid"] == "")
{
//Response.Redirect("~/login/adminlogin.htm");
ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "click", "location.replace('/login/adminlogin.htm');", true);
}
else
{
Bindadmin();
}
}
private void Bindadmin()//验证改该会员是否有资格进入后台
{
string username = (string)Session["userid"];
string xy_sql = "select * from tb_gys where gys_user = @user and gys_admintag =@admintag ";
SqlParameter[] p = new SqlParameter[] {
new SqlParameter("@user",username),
new SqlParameter("@admintag","1"),
};
DataTable dt = SqlHelper.ExecuteQuery(xy_sql, p);
if (dt.Rows.Count <= 0)
{
ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "click", "location.replace('/login/adminlogin.htm');", true);
}
}
private void Bindtag()//查找其推荐人
{
string username = (string)Session["userid"];
int gysid = Convert.ToInt32(Session["gysid"]);
SqlParameter[] p = new SqlParameter[] {
new SqlParameter("@gysid",gysid),
};
string sql = "select * from tb_gys where gys_id=@gysid";
DataTable dt = SqlHelper.ExecuteQuery(sql, p);
后面还有 277 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。