麻豆小视频在线观看_中文黄色一级片_久久久成人精品_成片免费观看视频大全_午夜精品久久久久久久99热浪潮_成人一区二区三区四区

首頁 > CMS > Discuz > 正文

關于對discuz.gtimg.cn不明代碼的解決方法

2024-09-11 09:04:35
字體:
來源:轉載
供稿:網友
今天看了下一個頻道的頁面,發現有js什么的沖突代碼

最近用排除方法 是底部 

這代碼引起的,既然在底部那就很好找,找到模版 footer.htm  里面是用 調用的

之前沒有這代碼的,打了0339補丁就有了,那就去0339補丁里搜索這代碼

在 source/function/function_cloud.php 里有這么一句赤裸裸的代碼,為什么我叫他赤裸裸

一 因為這gtimg.cn跟官方,壓跟沒有聯系

二 這js代碼還會影響我們js的效果

三 下載這個js還使用一個eval(function(p,a,c,k,e,d)加密

-----------------------------------------------------------------------------------------------

解密后得到的代碼
  • var clearTips;DiscuzCloudNameSpace = new Object();DiscuzCloudNameSpace.register = function(fullName) {    try {        var nsArray = fullName.split(".");        var strNS = "";        var strEval = "";        for (var i = 0; i < nsArray.length; i++) {            if (strNS.length > 0) strNS += ".";            strNS += nsArray;            strEval += " if (typeof(" + strNS + ") =='undefined') " + strNS + " = new Object(); "        };        if (strEval != "") eval(strEval)    } catch(e) {        alert(e.message)    }};DiscuzCloudNameSpace.register('DiscuzCloud');DiscuzCloud.JSONP = (function() {    var counter = 0,    head, query, key, window = this;    function load(url) {        script = document.createElement('script'),        done = false;        script.src = url;        script.charset = 'UTF-8';        script.async = true;        script.onload = script.onreadystatechange = function() {            if (!done && (!this.readyState || this.readyState === "loaded" || this.readyState === "complete")) {                done = true;                script.onload = script.onreadystatechange = null;                if (script && script.parentNode) {                    script.parentNode.removeChild(script)                }            }        };        if (!head) {            head = document.getElementsByTagName('head')[0]        };        head.appendChild(script)    };    function jsonp(url, params, callback) {        if (url.indexOf('?') > -1) {            query = '&'        } else {            query = '?'        };        params = params || {};        for (key in params) {            if (params.hasOwnProperty(key)) {                query += encodeURIComponent(key) + "=" + encodeURIComponent(params[key]) + "&"            }        };        var jsonp = 'discuzTipsCallback';        window[jsonp] = function(data) {            callback(data);            try {                delete window[jsonp]            } catch(e) {}            window[jsonp] = null        };        load(url + query + "callback=" + jsonp);        return jsonp    };    return {        get: jsonp    }} ());DiscuzCloud.htmlspecialchars = function(string, quote_style, charset, double_encode) {    var optTemp = 0,    i = 0,    noquotes = false;    if (typeof quote_style === 'undefined' || quote_style === null) {        quote_style = 2    };    string = string.toString();    if (double_encode !== false) {        string = string.replace(/&/g, '&')    };    string = string.replace(//g, '>');    var OPTS = {        'ENT_NOQUOTES': 0,        'ENT_HTML_QUOTE_SINGLE': 1,        'ENT_HTML_QUOTE_DOUBLE': 2,        'ENT_COMPAT': 2,        'ENT_QUOTES': 3,        'ENT_IGNORE': 4    };    if (quote_style === 0) {        noquotes = true    };    if (typeof quote_style !== 'number') {        quote_style = [].concat(quote_style);        for (i = 0; i < quote_style.length; i++) {            if (OPTS[quote_style] === 0) {                noquotes = true            } else if (OPTS[quote_style]) {                optTemp = optTemp | OPTS[quote_style]            }        };        quote_style = optTemp    };    if (quote_style & OPTS.ENT_HTML_QUOTE_SINGLE) {        string = string.replace(/'/g, ''')    };    if (!noquotes) {        string = string.replace(/"/g, '"')    };    return string};DiscuzCloud.setCookie = function(name, value, sec) {    if (typeof(sec) == 'undefined') {        sec = 86400000;    } else {        sec = sec * 1000    };    var expires = new Date();    expires.setTime(expires.getTime() + sec);    document.cookie = name + '=' + escape(value) + '; expires=' + expires.toGMTString()};DiscuzCloud.getCookie = function(name) {    var cookie_start = document.cookie.indexOf(name);    var cookie_end = document.cookie.indexOf(';', cookie_start);    return cookie_start == -1 ? '': unescape(document.cookie.substring(cookie_start + name.length + 1, (cookie_end > cookie_start ? cookie_end: document.cookie.length)))};DiscuzCloud.$ = function(id) {    return document.getElementById(id)};DiscuzCloud.Tips = function(sId, version, release, api, founder, fix, sUrl, sCharset, ts, sig, adminId, groupId, uid, openId) {    this.sId = sId;    this.sUrl = sUrl;    this.version = version;    this.release = release;    this.api = api;    this.founder = founder;    this.fix = fix;    this.clientWidth = document.documentElement.clientWidth;    this.clientHeight = document.documentElement.clientHeight;    this.discuzTips = DiscuzCloud.$('discuz_tips');    newDate = new Date();    this.url = 'http://cp.discuz.qq.com/tips/get?rand=' + newDate.getDate() + newDate.getHours();    this.secret = '';    this.tipsId = '';    this.cacheKey = '';    this.sendTime = '';    this.sCharset = sCharset;    if (typeof(document.characterSet) == 'undefined') {        this.browserCharset = document.charset    } else {        this.browserCharset = document.characterSet    };    if (discuzTipsCVersion == '2') {        this.adminId = adminId;        this.groupId = groupId;        this.uid = uid;        this.openId = openId    };    this.ts = ts;    this.sig = sig};DiscuzCloud.Tips.prototype.show = function() {    if (discuzTipsCVersion == '2' && this.adminId != 1) {        return false    };    if (this.checkManyou()) {&
發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 欧美a∨一区二区三区久久黄 | 天堂精品在线 | 欧美精品日日鲁夜夜添 | 久久一区国产 | 日本成人一区二区三区 | 宅男噜噜噜66一区二区 | 8x成人在线电影 | 99精品视频一区二区 | 亚州精品天堂中文字幕 | 黄 色 免费网 站 成 人 | 福利在线免费 | 播色网 | 久久影院免费观看 | 亚洲一区在线观看视频 | 激情小说色 | 午夜视频福利 | 精品国产91久久久久久久 | 日韩美女电影 | 亚洲码无人客一区二区三区 | 亚洲国产视频网 | 国产亚洲精品久久久久婷婷瑜伽 | 久啪视频| 视频一区二区不卡 | 精品一区二区三区免费毛片 | 国产区二区 | 精品一区二区免费视频视频 | 精品一区二区三区免费看 | 欧美成人精品一区二区男人小说 | 成人9禁啪啪无遮挡免费 | 天天鲁在线视频免费观看 | 羞羞视频免费网站入口 | 久久久经典视频 | 欧美成人亚洲 | 99这里有精品| 成年人在线免费播放视频 | 日本爽快片100色毛片视频 | 亚洲一区二区国产 | 中国老女人一级毛片视频 | 99精品视频免费看 | 国产乱色精品成人免费视频 | 亚洲成人午夜精品 |