JumboTCMS_src/JumboTCMS.WebFile/plus/video_play.aspx.cs

(开头部分) 9KB

这里只显示每个文件的开头 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.Common;
namespace JumboTCMS.WebFile.Modules.Video.Plus
{
    public partial class _play : JumboTCMS.UI.FrontHtml
    {
        protected void Page_Unload(object sender, EventArgs e)
        {
            SavePageLog(1);
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            Server.ScriptTimeout = 5;//脚本过期时间
            if (!CheckFormUrl(false))//不可直接在url下访问
            {
                Response.Write("请勿直接访问");
                Response.End();
            }
            string id = Str2Str(q("id"));
            int NO = Str2Int(q("NO"));
            int vWidth = Str2Int(q("w")) == 0 ? 400 : Str2Int(q("w"));
            int vHeight = Str2Int(q("h")) == 0 ? 300 : Str2Int(q("h"));
            string vAutoStart = Str2Int(q("auto")) != 0 ? "true" : "false";
            string vAutoPlay = Str2Int(q("auto")) != 0 ? "1" : "0";
            bool vFull = Str2Int(q("full")) != 0 ? true : false;
            if (vFull)
                vHeight -= 55;
            string _html = string.Empty;
            if (id == "0")
            {
                _html = "<img src=\"" + site.Dir + "statics/common/video_play.jpg\" border=\"0\" width=\"" + vWidth + "\" height=\"" + vHeight + "\" />";
            }
            else
            {
                doh.Reset();
                doh.ConditionExpress = "id=" + id;
                object[] value = doh.GetFields("jcms_module_video", "Img,VideoUrl");
                string videoImg = value[0].ToString();
                string videoUrl = value[1].ToString().Replace("\r\n", "\r");
                string previewImage = videoImg == "" ? site.Dir + "statics/flash/videoPlayer/Evanescence1.jpg" : videoImg;

                if (videoUrl != "")
                {
                    string[] _VideoUrl = videoUrl.Split(new string[] { "\r" }, StringSplitOptions.None);
                    string _txt = "片段[" + (NO + 1) + "]";
后面还有 40 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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