JumboTCMS_src/JumboTCMS.WebFile/admin/mobile/jsonp.aspx.cs
(开头部分) 5KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace JumboTCMS.WebFile.Admin.mobile
{
public partial class _jsonp : JumboTCMS.UI.BasicPage
{
private string _response = "";
protected void Page_Load(object sender, EventArgs e)
{
String cb = q("callback");
Callback();
if (cb!="")
{
Response.Write(cb + "(" + this._response + ")");
}
else
{
Response.Write(this._response);
}
}
private void Callback()
{
string _username =q("username");
string _opertype =q("opertype");
string _adminname = q("adminname");
string _adminpass = q("adminpass");
_adminpass = JumboTCMS.Utils.MD5.Last64(JumboTCMS.Utils.MD5.Lower32(_adminpass));
int _opernumber = Str2Int(q("opernumber"), 0);
doh.Reset();
doh.ConditionExpress = "adminname=@adminname and adminpass=@adminpass and adminstate=1";
doh.AddConditionParameter("@adminname", _adminname);
doh.AddConditionParameter("@adminpass", _adminpass);
string _adminid = Str2Str(doh.GetField("jcms_normal_user", "adminid").ToString());
if (_adminid == "0")
{
this._response = JsonResult(0, "管理员账户或密码错误");
return;
}
string Founders = JumboTCMS.Utils.XmlCOM.ReadConfig("~/_data/config/site", "Founders");
if (!Founders.ToLower().Contains("." + _adminname.ToLower() + "."))
{
this._response = JsonResult(0, "嘿嘿,您老不是超级管理员");
return;
}
doh.Reset();
doh.ConditionExpress = "username=@username";
doh.AddConditionParameter("@username", _username);
string _userid = Str2Str(doh.GetField("jcms_normal_user", "id").ToString());
if (_userid == "0")
{
this._response = JsonResult(0, "用户不存在");
return;
}
JumboTCMS.DAL.Normal_UserDAL _User = new JumboTCMS.DAL.Normal_UserDAL();
JumboTCMS.DAL.Normal_AdminlogsDAL _Adminlogs = new JumboTCMS.DAL.Normal_AdminlogsDAL();
后面还有 55 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。