JumboTCMS_src/JumboTCMS.WebFile/user/avatar.aspx.cs

(开头部分) 3KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

/*
 * 程序名称: JumboTCMS(将博内容管理系统通用版)
 * 
 * 程序版本: 7.x
 * 
 * 程序作者: 子木将博 (QQ:791104444@qq.com,仅限商业合作)
 * 
 * 版权申明: http://www.jumbotcms.net/about/copyright.html
 * 
 * 技术答疑: http://forum.jumbotcms.net/
 * 
 */

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.IO;
namespace JumboTCMS.WebFile.User
{
    public partial class _avatar : JumboTCMS.UI.BasicPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
           // Response.Write("{\"status\":\"-2\"}");
            //Response.End();
            string UserId = f("userid");
            string UserKey = f("userkey");
            if (JumboTCMS.Utils.MD5.Upper32(UserId + site.StaticKey) != UserKey)
            {
                Response.Write("{\"status\":\"-2|||身份验证有误\"}");
                Response.End();
            }
            String thumbnailPath0 = Server.MapPath("~/_data/avatar/" + UserId + ".jpg");
            String thumbnailPath1 = Server.MapPath("~/_data/avatar/" + UserId + "_l.jpg");
            String thumbnailPath2 = Server.MapPath("~/_data/avatar/" + UserId + "_m.jpg");
            String thumbnailPath3 = Server.MapPath("~/_data/avatar/" + UserId + "_s.jpg");
            String pic = f("pic");
            String pic1 = f("pic1");
            String pic2 = f("pic2");
            String pic3 = f("pic3");
            try
            {
                if (pic.Length > 0)
                {
                    byte[] bytes = Convert.FromBase64String(pic);  //将2进制编码转换为8位无符号整数数组

                    FileStream fs = new FileStream(thumbnailPath0, System.IO.FileMode.Create);
                    fs.Write(bytes, 0, bytes.Length);
                    fs.Close();
                }
                //图1
                if (pic1.Length > 0)
                {
                    byte[] bytes1 = Convert.FromBase64String(pic1);  //将2进制编码转换为8位无符号整数数组.
                    FileStream fs1 = new FileStream(thumbnailPath1, System.IO.FileMode.Create);
                    fs1.Write(bytes1, 0, bytes1.Length);
                    fs1.Close();
                }

后面还有 28 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。