JumboTCMS_src/JumboTCMS.WebFile/ajax/download.aspx.cs
(开头部分) 6KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
/*
* 程序名称: JumboTCMS(将博内容管理系统通用版)
*
* 程序版本: 7.x
*
* 程序作者: 子木将博 (QQ:791104444@qq.com,仅限商业合作)
*
* 版权申明: http://www.jumbotcms.net/about/copyright.html
*
* 技术答疑: http://forum.jumbotcms.net/
*
*/
using System;
using System.Data;
using System.Web;
using JumboTCMS.Utils;
using JumboTCMS.Common;
namespace JumboTCMS.WebFile.Modules.Soft.Ajax
{
public partial class _down : JumboTCMS.UI.FrontHtml
{
protected void Page_Load(object sender, EventArgs e)
{
Server.ScriptTimeout = 5;//脚本过期时间
string _userid = Str2Str(q("userid"));
//if (!(new JumboTCMS.DAL.Normal_UserDAL()).ChkUserSign(_userid, q("usersign")))
//{
// Response.Write(JsonResult(0, "验证信息有误"));
// Response.End();
//}
string id = Str2Str(q("id"));
string ChannelId = Str2Str(q("ChannelId"));
string ChannelType = q("ChannelType");
string _modulelist2 = JumboTCMS.Utils.XmlCOM.ReadConfig("~/_data/config/site", "ModuleList2");
if (!_modulelist2.Contains("." + ChannelType + "."))
{
Response.Write(JsonResult(0, "请不要恶意修改提交参数!"));
Response.End();
}
int NO = Str2Int(q("NO"));
doh.Reset();
doh.ConditionExpress = "ChannelId=" + ChannelId + " and id=" + id;
object[] _obj = doh.GetFields("jcms_module_" + ChannelType, "Title,Points," + ChannelType + "Url");
if (_obj == null)
{
Response.Write(JsonResult(0, "请不要恶意修改提交参数!"));
Response.End();
}
string _SourceTitle = _obj[0].ToString();
int _Points = Str2Int(_obj[1].ToString(), 0);
string downUrl = _obj[2].ToString().Replace("\r\n", "\r");
if (downUrl == "")
{
Response.Write(JsonResult(0, "当前下载地址为空!"));
Response.End();
}
if (_Points > 0)//说明是需要扣除博币的,那么肯定要判断当前用户博币够不够
{
if (!CanDownFile(ChannelType, ChannelId, id, _Points, _SourceTitle))
后面还有 77 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。