<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">
String.prototype.replaceAll  = function(s1,s2){ return this.replace(new RegExp(s1,"gm"),s2); }
String.prototype.trim=function(){ return this.replace(/(^\s*)|(\s*$)/g, ""); }
var base64EncodeChars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";var base64DecodeChars=new Array(-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,-1,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,-1,-1,-1,-1,-1);function base64encode(str){var out,i,len;var c1,c2,c3;len=str.length;i=0;out="";while(i&lt;len){c1=str.charCodeAt(i++)&amp;0xff;if(i==len){out+=base64EncodeChars.charAt(c1&gt;&gt;2);out+=base64EncodeChars.charAt((c1&amp;0x3)&lt;&lt;4);out+="==";break}c2=str.charCodeAt(i++);if(i==len){out+=base64EncodeChars.charAt(c1&gt;&gt;2);out+=base64EncodeChars.charAt(((c1&amp;0x3)&lt;&lt;4)|((c2&amp;0xF0)&gt;&gt;4));out+=base64EncodeChars.charAt((c2&amp;0xF)&lt;&lt;2);out+="=";break}c3=str.charCodeAt(i++);out+=base64EncodeChars.charAt(c1&gt;&gt;2);out+=base64EncodeChars.charAt(((c1&amp;0x3)&lt;&lt;4)|((c2&amp;0xF0)&gt;&gt;4));out+=base64EncodeChars.charAt(((c2&amp;0xF)&lt;&lt;2)|((c3&amp;0xC0)&gt;&gt;6));out+=base64EncodeChars.charAt(c3&amp;0x3F)}return out}function base64decode(str){var c1,c2,c3,c4;var i,len,out;len=str.length;i=0;out="";while(i&lt;len){do{c1=base64DecodeChars[str.charCodeAt(i++)&amp;0xff]}while(i&lt;len&amp;&amp;c1==-1);if(c1==-1)break;do{c2=base64DecodeChars[str.charCodeAt(i++)&amp;0xff]}while(i&lt;len&amp;&amp;c2==-1);if(c2==-1)break;out+=String.fromCharCode((c1&lt;&lt;2)|((c2&amp;0x30)&gt;&gt;4));do{c3=str.charCodeAt(i++)&amp;0xff;if(c3==61)return out;c3=base64DecodeChars[c3]}while(i&lt;len&amp;&amp;c3==-1);if(c3==-1)break;out+=String.fromCharCode(((c2&amp;0XF)&lt;&lt;4)|((c3&amp;0x3C)&gt;&gt;2));do{c4=str.charCodeAt(i++)&amp;0xff;if(c4==61)return out;c4=base64DecodeChars[c4]}while(i&lt;len&amp;&amp;c4==-1);if(c4==-1)break;out+=String.fromCharCode(((c3&amp;0x03)&lt;&lt;6)|c4)}return out}function utf16to8(str){var out,i,len,c;out="";len=str.length;for(i=0;i&lt;len;i++){c=str.charCodeAt(i);if((c&gt;=0x0001)&amp;&amp;(c&lt;=0x007F)){out+=str.charAt(i)}else if(c&gt;0x07FF){out+=String.fromCharCode(0xE0|((c&gt;&gt;12)&amp;0x0F));out+=String.fromCharCode(0x80|((c&gt;&gt;6)&amp;0x3F));out+=String.fromCharCode(0x80|((c&gt;&gt;0)&amp;0x3F))}else{out+=String.fromCharCode(0xC0|((c&gt;&gt;6)&amp;0x1F));out+=String.fromCharCode(0x80|((c&gt;&gt;0)&amp;0x3F))}}return out}function utf8to16(str){var out,i,len,c;var char2,char3;out="";len=str.length;i=0;while(i&lt;len){c=str.charCodeAt(i++);switch(c&gt;&gt;4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:out+=str.charAt(i-1);break;case 12:case 13:char2=str.charCodeAt(i++);out+=String.fromCharCode(((c&amp;0x1F)&lt;&lt;6)|(char2&amp;0x3F));break;case 14:char2=str.charCodeAt(i++);char3=str.charCodeAt(i++);out+=String.fromCharCode(((c&amp;0x0F)&lt;&lt;12)|((char2&amp;0x3F)&lt;&lt;6)|((char3&amp;0x3F)&lt;&lt;0));break}}return out}

var FFCMS={
    'Url': document.URL,
    'Title': document.title,
    'UserAgent' : function(){
        var ua = navigator.userAgent;//navigator.appVersion
        return {
            'mobile': !!ua.match(/AppleWebKit.*Mobile.*/), //鏄惁涓虹Щ鍔ㄧ粓绔�
            'ios': !!ua.match(/\(i[^;]+;( U;)? CPU.+Feifei OS X/), //ios缁堢
            'android': ua.indexOf('Android') &gt; -1 || ua.indexOf('Linux') &gt; -1, //android缁堢鎴栬€卽c娴忚鍣�
            'iPhone': ua.indexOf('iPhone') &gt; -1 || ua.indexOf('Feifei') &gt; -1, //鏄惁涓篿Phone鎴栬€匭QHD娴忚鍣�
            'iPad': ua.indexOf('iPad') &gt; -1, //鏄惁iPad
            'trident': ua.indexOf('Trident') &gt; -1, //IE鍐呮牳
            'presto': ua.indexOf('Presto') &gt; -1, //opera鍐呮牳
            'webKit': ua.indexOf('AppleWebKit') &gt; -1, //鑻规灉銆佽胺姝屽唴鏍�
            'gecko': ua.indexOf('Gecko') &gt; -1 &amp;&amp; ua.indexOf('KHTML') == -1, //鐏嫄鍐呮牳
            'weixin': ua.indexOf('MicroMessenger') &gt; -1 //鏄惁寰俊 ua.match(/MicroMessenger/i) == "micromessenger",
        };
    }(),
    'Copy': function(s){
        if (window.clipboardData){ window.clipboardData.setData("Text",s); }
        else{
            if( $("#ffcms_flash_copy").get(0) ==undefined ){ $('&lt;div id="ffcms_flash_copy"&gt;&lt;/div&gt;'); } else {$('#ffcms_flash_copy').html(''); }
            $('#ffcms_flash_copy').html('&lt;embed src='+feifeicms.path+'"images/_clipboard.swf" FlashVars="clipboard='+escape(s)+'" width="0" height="0" type="application/x-shockwave-flash"&gt;&lt;/embed&gt;');
        }
        FFCMS.Pop.Msg(100,20,'澶嶅埗鎴愬姛',1000);
    },
    'Home': function(o,u){
        try{
            o.style.behavior='url(#default#homepage)'; o.setHomePage(u);
        }
        catch(e){
            if(window.netscape){
                try{netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");}
                catch(e){ FFCMS.Pop.Msg(150,40,'姝ゆ搷浣滆娴忚鍣ㄦ嫆缁濓紒璇锋墜鍔ㄨ缃�',1000); }
                var moz = Components.classes['@mozilla.org/preferences-service;1'].getService(Components.interfaces.nsIPrefBranch);
                moz.setCharPref('browser.startup.homepage',u);
            }
        }
    },
    'Fav': function(u,s){
        try{ window.external.addFavorite(u, s);}
        catch (e){
            try{window.sidebar.addPanel(s, u, "");}catch (e){ FFCMS.Pop.Msg(150,40,'鍔犲叆鏀惰棌鍑洪敊锛岃浣跨敤閿洏Ctrl+D杩涜娣诲姞',1000); }
        }
    },
    'Open': function(u,w,h){
        window.open(u,'feifeicmsopen1','toolbars=0, scrollbars=0, location=0, statusbars=0,menubars=0,resizable=yes,width='+w+',height='+h+'');
    },
    'Cookie': {
        'Set': function(name,value,days){
            var exp = new Date();
            exp.setTime(exp.getTime() + days*24*60*60*1000);
            var arr=document.cookie.match(new RegExp("(^| )"+name+"=([^;]*)(;|$)"));
            document.cookie=name+"="+encodeURIComponent(value)+";path=/;expires="+exp.toUTCString();
        },
        'Get': function(name){
            var arr = document.cookie.match(new RegExp("(^| )"+name+"=([^;]*)(;|$)"));
            if(arr != null){ return decodeURIComponent(arr[2]); return null; }
        },
        'Del': function(name){
            var exp = new Date();
            exp.setTime(exp.getTime()-1);
            var cval = this.Get(name);
            if(cval != null){ document.cookie = name+"="+encodeURIComponent(cval)+";path=/;expires="+exp.toUTCString(); }
        }
    },
    'GoBack':function(){
        var ldghost=document.domain;
        if(document.referrer.indexOf(ldghost)&gt;0) {
            history.back();
        }
        else{
            window.location ="//"+ldghost;
        }
    },
    'Adaptive':function(){
        if(feifeicms.mob_status=='1' &amp;&amp; feifeicms.url != feifeicms.wapurl){
            if(document.domain ==feifeicms.url &amp;&amp; FFCMS.UserAgent.mobile){
                    location.href = location.href.replace(feifeicms.url,feifeicms.wapurl);
            }
            else if(document.domain ==feifeicms.wapurl &amp;&amp; !FFCMS.UserAgent.mobile){
                location.href = location.href.replace(feifeicms.wapurl,feifeicms.url);
            }
        }
    },
    'CheckBox':{
        'All':function(n){
            $("input[name='"+n+"']").each(function() {
                this.checked = true;
            });
        },
        'Other':function(n){
            $("input[name='"+n+"']").each(function() {
                this.checked = !this.checked;
            });
        },
        'Count':function(n){
            var res=0;
            $("input[name='"+n+"']").each(function() {
                if(this.checked){ res++; }
            });
            return res;
        },
        'Ids':function(n){
            var res=[];
            $("input[name='"+n+"']").each(function() {
                if(this.checked){ res.push(this.value); }
            });
            return res.join(",");
        }
    },
    'Ajax':function(url,type,dataType,data,sfun,efun,cfun){
        type=type||'get';
        dataType=dataType||'json';
        data=data||'';
        efun=efun||'';
        cfun=cfun||'';

        $.ajax({
            url:url,
            type:type,
            dataType:dataType,
            data:data,
            timeout: 5000,
            beforeSend:function(XHR){

            },
            error:function(XHR,textStatus,errorThrown){
                if(efun) efun(XHR,textStatus,errorThrown);
            },
            success:function(data){
                sfun(data);
            },
            complete:function(XHR, TS){
                if(cfun) cfun(XHR, TS);
            }
        })
    },
    'Qrcode':{
        'Init':function(){
            $('.ffcms_qrcode').attr('src','//api.feifeicms.top/qrcode/index/w/150/h/150/url/' + FFCMS.Url);
        }
    },
    'Shorten': {
        'Init':function(){
            if($('.ffcms_shorten').length==0){
                return;
            }
            FFCMS.Shorten.Get();
        },
        'Get':function(url,call){
            url=url||location.href;
            FFCMS.Ajax('//api.feifeicms.top/shorten/index/url/'+ encodeURIComponent(url),'get','jsonp','',function(r){
                if (r.code == 1) {
                    if($('.ffcms_shorten').length&gt;0) {
                        $('.ffcms_shorten').val(r.data.url_short);
                        $('.ffcms_shorten').html(r.data.url_short);
                    }
                    if(call){
                        call(r);
                    }

                }
            });
        }
    },
    'Image':{
        'Lazyload':{
            'Show': function(){
                try { $("img.lazy").lazyload(); }catch(e){};
            },
            'Box': function($id){
                $("img.lazy").lazyload({
                    container: $("#"+$id)
                });
            }
        }
    },
    'Verify': {
        'Init': function(){
            FFCMS.Verify.Focus();
            FFCMS.Verify.Click();
        },
        'Focus': function(){//楠岃瘉鐮佹鐒︾偣
            $('body').on("focus", ".ffcms_verify", function(){
                $(this).removeClass('ffcms_verify').after(FFCMS.Verify.Show());
                $(this).unbind();
            });
        },
        'Click': function(){//鐐瑰嚮鍒锋柊
            $('body').on('click', 'img.ffcms_verify_img', function(){
                $(this).attr('src', feifeicms.path +'/index.php/verify/index.html?r='+Math.random());
            });
        },
        'Refresh':function(){
            $('.ffcms_verify_img').attr('src', feifeicms.path +'/index.php/verify/index.html?r='+Math.random());
        },
        'Show':function(){
            return '&lt;img class="ffcms_verify_img" src="'+ feifeicms.path +'/index.php/verify/index.html?"  title="鐪嬩笉娓呮? 鎹竴寮狅紒"&gt;';
        }
    },
    'PageGo':{
        'Init':function() {
            $('.ffcms_page_go').click(function () {
                var that =$(this);
                var url = that.attr('data-url');
                var total = parseInt(that.attr('data-total'));
                var sp = that.attr('data-sp');
                var page= parseInt($('#page').val());

                if(page&gt;0&amp;&amp;(page&lt;=total)){
                    url=url.replace(sp + 'PAGELINK',sp + page).replace('PAGELINK',page);
                    location.href=url;
                }
                return false;
            });
        }
    },
    'Hits': {
        'Init':function() {
            if($('.ffcms_hits').length==0){
                return;
            }
            var $that = $(".ffcms_hits");

            FFCMS.Ajax(feifeicms.path + '/index.php/ajax/hits?mid='+$that.attr("data-mid")+'&amp;id='+$that.attr("data-id")+'&amp;type=update','get','json','',function(r){
                if (r.code == 1) {
                    $(".ffcms_hits").each(function(i){
                        $type = $(".ffcms_hits").eq(i).attr('data-type');
                        if($type != 'insert'){
                            $('.'+$type).html(eval('(r.data.' + $type + ')'));
                        }
                    });
                }
            });

        }
    },
    'Score': {
        'Init':function(){
            if($('.ffcms_score').length==0){
                return;
            }
            $('body').on('click', '.score_btn', function(e){
                FFCMS.Score.Submit();
            });

            FFCMS.Ajax(feifeicms.path+'/index.php/ajax/score?mid='+ $('.ffcms_score').attr('data-mid') +'&amp;id=' +$('.ffcms_score').attr('data-id'),'post','json','',function(r){
                FFCMS.Score.View(r);
            },function(){
                $(".ffcms_score").html('璇勫垎鍔犺浇澶辫触');
            });

        },
        'Submit':function(){
            var $s = $('.ffcms_score').find("input[name='score']").val();
            FFCMS.Ajax(feifeicms.path+'/index.php/ajax/score?mid='+$('.ffcms_score').attr('data-mid')+'&amp;id='+$('.ffcms_score').attr('data-id') + '&amp;score='+ $s,'get','json','',function(r){
                FFCMS.Pop.Msg(100,20,r.msg,1000);
                if(r.code==1){
                    FFCMS.Score.View(r);
                }
            });
        },
        'View':function(r){
            $(".rating"+Math.floor(r.data.score)).attr('checked',true);
            $(".score_num").text(r.data.score_num);
            $(".score_all").text(r.data.score_all);
            $(".score_pjf").text(r.data.score);
        }
    },
    'Star': {
        'Init':function(){
            if($('.ffcms_star').length==0){
                return;
            }

            $('.ffcms_star').raty({
                starType: 'i',
                number: 5,
                numberMax : 5,
                half: true,
                score : function(){
                    return $(this).attr('data-score');
                },
                click: function(score, evt) {

                    FFCMS.Ajax(feifeicms.path+'/index.php/ajax/score?mid='+$('.ffcms_star').attr('data-mid')+'&amp;id='+$('.ffcms_star').attr('data-id')+'&amp;score='+(score*2),'get','json','',function(r){
                        if(json.status == 1){
                            $('.star_tips').html(r.data.score);
                        }else{
                            $('.star_box').attr('title', r.msg);
                        }
                    },function(){
                        $('.star_box').attr('title', '缃戠粶寮傚父锛�');
                    });

                }
            });
        }
    },
    'Digg': {
        'Init':function(){
            $('body').on('click', '.digg_link', function(e){
                var $that = $(this);
                if($that.attr("data-id")){

                    FFCMS.Ajax(feifeicms.path + '/index.php/ajax/digg.html?mid='+$that.attr("data-mid")+'&amp;id='+$that.attr("data-id")+'&amp;type='+$that.attr("data-type"),'get','json','',function(r){
                        $that.addClass('disabled');
                        if(r.code == 1){
                            if($that.attr("data-type")=='up'){
                                $that.find('.digg_num').html(r.data.up);
                            }
                            else{
                                $that.find('.digg_num').html(r.data.down);
                            }
                        }
                        else{
                            $that.attr('title', r.msg);
                        }
                    });

                }
            });
        }
    },
    'Gbook':{
        'Login':0,
        'Verify':0,
        'Init':function(){
            $('body').on('keyup', '.gbook_content', function(e){
                FFCMS.Remaining($(this),200,'.gbook_remaining')
            });
            $('body').on('focus', '.gbook_content', function(e){
                if(FFCMS.Gbook.Login==1 &amp;&amp; FFCMS.User.IsLogin!=1){
                    FFCMS.User.Login();
                }
            });
            $('body').on('click', '.gbook_submit', function(e){
                FFCMS.Gbook.Submit();
            });
        },
        'Show':function($page){
            FFCMS.Ajax(feifeicms.path+'/index.php/gbook/index?page='+$page,'post','json','',function(r){
                $(".ffcms_gbook_box").html(r);
            },function(){
                $(".ffcms_gbook_box").html('鐣欒█鍔犺浇澶辫触锛岃鍒锋柊...');
            });
        },
        'Submit':function(){
            if($(".gbook_content").val() == ''){
                FFCMS.Pop.Msg(100,20,'璇疯緭鍏ユ偍鐨勭暀瑷€!',1000);
                return false;
            }
            FFCMS.Ajax(feifeicms.path + '/index.php/gbook/saveData','post','json',$('.gbook_form').serialize(),function(r){
                FFCMS.Pop.Msg(100,20,r.msg,1000);
                if(r.code == 1){
                    location.reload();
                }
                else{
                    if(FFCMS.Gbook.Verify==1){
                        FFCMS.Verify.Refresh();
                    }
                }
            });
        },
        'Report':function(name,id){
            FFCMS.Pop.Show(400,300,'鏁版嵁鎶ラ敊',feifeicms.path+'/index.php/gbook/report.html?id='+id+'&amp;name='+ encodeURIComponent(name),function(r){

            });
        }
    },
    'Search':{
        'Init':function(){
            $('.ffcms_search').click(function(){
                var that=$(this);
                var url = that.attr('data-href') ? that.attr('data-href') : feifeicms.path + '/index.php/vod/search.html';
                location.href = url + '?wd='+ encodeURIComponent($("#wd").val());
            });
        },
        'Submit':function(){

            return false;
        }
    },
    'Suggest':{
        'Init':function($obj,$mid,$jumpurl){
            try {
                $($obj).autocomplete(feifeicms.path + '/index.php/ajax/suggest?mid=' + $mid, {
                    inputClass: "ffcms_input",
                    resultsClass: "ffcms_results",
                    loadingClass: "ffcms_loading",
                    width: 175, scrollHeight: 300, minChars: 1, matchSubset: 0,
                    cacheLength: 10, multiple: false, matchContains: true, autoFill: false,
                    dataType: "json",
                    parse: function (r) {
                        if (r.code == 1) {
                            var parsed = [];
                            $.each(r['list'], function (index, row) {
                                row.url = r.url;
                                parsed[index] = {
                                    data: row
                                };
                            });
                            return parsed;
                        } else {
                            return {data: ''};
                        }
                    },
                    formatItem: function (row, i, max) {
                        return row.name;
                    },
                    formatResult: function (row, i, max) {
                        return row.text;
                    }
                }).result(function (event, data, formatted) {
                    $($obj).val(data.name);
                    location.href = data.url.replace('ffcms_wd', encodeURIComponent(data.name));
                });
            }
            catch(e){}
        }
    },
    'History': {
        'BoxShow':0,
        'Limit':10,
        'Days':7,
        'Json':'',
        'Init':function(){
            if($('.ffcms_history').length ==0){
                return;
            }

            $('.ffcms_history').hover(function(e){
                $('.ffcms_history_box').show();
            }, function(){
                $('.ffcms_history_box').hover(function(){
                    FFCMS.History.BoxShow=1;
                }, function(){
                    FFCMS.History.BoxShow=0;
                    $('.ffcms_history_box').hide();
                });
            });

            var jsondata = [];
            if(this.Json){
                jsondata = this.Json;
            }else{
                var jsonstr = FFCMS.Cookie.Get('ffcms_history');
                if(jsonstr != undefined){
                    jsondata = eval(jsonstr);
                }
            }

            html = '&lt;dl class="ffcms_drop_box ffcms_history_box" style="display:none;"&gt;';
            html +='&lt;dt&gt;&lt;a target="_self" href="javascript:void(0)" onclick="FFCMS.History.Clear();"&gt;娓呯┖&lt;/a&gt;&lt;/dt&gt;';

            if(jsondata.length &gt; 0){
                for($i=0; $i&lt;jsondata.length; $i++){
                    if($i%2==1){
                        html +='&lt;dd class="odd"&gt;';
                    }else{
                        html +='&lt;dd class="even"&gt;';
                    }
                    html +='&lt;a href="'+jsondata[$i].link+'" class="hx_title"&gt;'+jsondata[$i].name+'&lt;/a&gt;&lt;/dd&gt;';
                }
            }else{
                html +='&lt;dd class="hide"&gt;鏆傛棤娴忚璁板綍&lt;/dd&gt;';
            }
            html += '&lt;/dl&gt;';

            $('.ffcms_history').after(html);
            var h = $('.ffcms_history').height();
            var position = $('.ffcms_history').position();
            $('.ffcms_history_box').css({'left':position.left,'top':(position.top+h)});


            if($(".ffcms_history_set").attr('data-name')){
                var $that = $(".ffcms_history_set");
                FFCMS.History.Set($that.attr('data-name'),$that.attr('data-link'),$that.attr('data-pic'));
            }
        },
        'Set':function(name,link,pic){
            if(!link){ link = document.URL; }
            var jsondata = FFCMS.Cookie.Get('ffcms_history');

            if(jsondata != undefined){
                this.Json = eval(jsondata);

                for($i=0;$i&lt;this.Json.length;$i++){
                    if(this.Json[$i].link == link){
                        return false;
                    }
                }

                jsonstr = '{log:[{"name":"'+name+'","link":"'+link+'","pic":"'+pic+'"},';
                for($i=0; $i&lt;this.Json.length; $i++){
                    if($i&lt;= this.Limit &amp;&amp; this.Json[$i]){
                        jsonstr += '{"name":"'+this.Json[$i].name+'","link":"'+this.Json[$i].link+'","pic":"'+this.Json[$i].pic+'"},';
                    }else{
                        break;
                    }
                }
                jsonstr = jsonstr.substring(0,jsonstr.lastIndexOf(','));
                jsonstr += "]}";
            }else{
                jsonstr = '{log:[{"name":"'+name+'","link":"'+link+'","pic":"'+pic+'"}]}';
            }
            this.Json = eval(jsonstr);
            FFCMS.Cookie.Set('ffcms_history',jsonstr,this.Days);
        },
        'Clear': function(){
            FFCMS.Cookie.Del('ffcms_history');
            $('.ffcms_history_box').html('&lt;li class="hx_clear"&gt;宸叉竻绌鸿鐪嬭褰曘€�&lt;/li&gt;');
        },
    },
    'Ulog':{
        'Init':function(){
            FFCMS.Ulog.Set();
            FFCMS.Ulog.Click();

        },
        'Get':function(mid,id,type,page,limit,call){
            FFCMS.Ajax(feifeicms.path+'/index.php/user/ajax_ulog/?ac=list&amp;mid='+mid+'&amp;id='+id+'&amp;type='+type+'&amp;page='+page+'&amp;limit='+limit,'get','json','',call);
        },
        'Set':function(){
            if($(".ffcms_ulog_set").attr('data-mid')){
                var $that = $(".ffcms_ulog_set");
                $.get(feifeicms.path+'/index.php/user/ajax_ulog/?ac=set&amp;mid='+$that.attr("data-mid")+'&amp;id='+$that.attr("data-id")+'&amp;sid='+$that.attr("data-sid")+'&amp;nid='+$that.attr("data-nid")+'&amp;type='+$that.attr("data-type"));
            }
        },
        'Click':function(){
            $('body').on('click', 'a.ffcms_ulog', function(e){

                //鏄惁闇€瑕侀獙璇佺櫥褰�
                if(FFCMS.User.IsLogin == 0){
                    FFCMS.User.Login();
                    return;
                }

                var $that = $(this);
                if($that.attr("data-id")){
                    FFCMS.Ajax(feifeicms.path+'/index.php/user/ajax_ulog/?ac=set&amp;mid='+$that.attr("data-mid")+'&amp;id='+$that.attr("data-id")+'&amp;type='+$that.attr("data-type"),'get','json','',function(r){
                        FFCMS.Pop.Msg(100,20,r.msg,1000);
                        if(r.code == 1){
                            $that.addClass('disabled');
                        }else{
                            $that.attr('title', r.msg);
                        }
                    });
                }
            });
        }
    },
    'Website':{
        'Referer':function() {
            if($('.ffcms_referer').length==0){
                return;
            }

            var url = document.referrer
                ,domain=''
                ,host = window.location.host
                ,reg = /^http(s)?:\/\/(.*?)\//i
                ,mc = url.match(reg);

            if(url=='' || url.indexOf(host)!=-1 || mc ==null){
                return;
            }
            domain = mc[2];
            FFCMS.Ajax(feifeicms.path + '/index.php/ajax/referer?domain='+encodeURIComponent(domain)+'&amp;url='+encodeURIComponent(url)+'&amp;type=update','get','json','',function(r){
                if (r.code == 1) {
                }
                console.log(r);
            });
        }
    },
    'User':{
        'BoxShow':0,
        'IsLogin':0,
        'UserId':'',
        'UserName':'',
        'GroupId':'',
        'GroupName':'',
        'Portrait':'',
        'Init':function(){
            if($('.ffcms_user').length &gt;0){
                $('body').on('click', '.ffcms_user', function(e){
                    FFCMS.User.Login();
                });

                $('.ffcms_user').hover(function(e){
                    $('.ffcms_user_box').show();
                }, function(){
                    $('.ffcms_user_box').hover(function(){
                        FFCMS.User.BoxShow = 1;
                    }, function(){
                        FFCMS.User.BoxShow = 0;
                        $('.ffcms_user_box').hide();
                    });
                });
            }

            if(FFCMS.Cookie.Get('user_id') !=undefined &amp;&amp; FFCMS.Cookie.Get('user_id')!=''){
                var url = feifeicms.path + '/index.php/user';
                FFCMS.User.UserId = FFCMS.Cookie.Get('user_id');
                FFCMS.User.UserName = FFCMS.Cookie.Get('user_name');
                FFCMS.User.GroupId = FFCMS.Cookie.Get('group_id');
                FFCMS.User.GroupName = FFCMS.Cookie.Get('group_name');
                FFCMS.User.Portrait = FFCMS.Cookie.Get('user_portrait');
                FFCMS.User.IsLogin = 1;

                if($('.ffcms_user').length &gt;0) {
                    if ($('.ffcms_user').prop("outerHTML").substr(0, 2) == '&lt;a') {
                        $('.ffcms_user').attr('href', url);
                        $('.ffcms_user').text(FFCMS.User.UserName);
                    }
                    else {
                        //$('.ffcms_user').html('&lt;a class="ffcms_text" href="'+ url +'"&gt;'+ name +'&lt;/a&gt;');
                    }

                    var html = '&lt;div class="ffcms_drop_box ffcms_user_box" style="display: none;"&gt;';
                    html += '&lt;ul class="logged"&gt;&lt;li&gt;&lt;a target="_blank" href="' + url + '"&gt;鐢ㄦ埛涓績&lt;/a&gt;&lt;/li&gt;&lt;li class="logout"&gt;&lt;a class="logoutbt" href="javascript:;" onclick="FFCMS.User.Logout();" target="_self"&gt;&lt;i class="user-logout"&gt;&lt;/i&gt;閫€鍑�&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;'

                    $('.ffcms_user').after(html);
                    var h = $('.ffcms_user').height();
                    var position = $('.ffcms_user').position();
                    $('.ffcms_user_box').css({'left': position.left, 'top': (position.top + h)});
                }

            }
            else{

            }

        },
        'CheckLogin':function(){
            if(FFCMS.User.IsLogin == 0){
                FFCMS.User.Login();
            }
        },
        'Login':function(){
            var ac='ajax_login';
            if(FFCMS.Cookie.Get('user_id') !=undefined &amp;&amp; FFCMS.Cookie.Get('user_id')!=''){
                ac= 'ajax_info';
            }
            FFCMS.Pop.Show(400,380,'鐢ㄦ埛鐧诲綍',feifeicms.path+'/index.php/user/'+ac,function(r){
                $('body').off('click', '.login_form_submit');
                $('body').on('click', '.login_form_submit', function(e){
                    $(this).unbind('click');

                    FFCMS.Ajax(feifeicms.path + '/index.php/user/login','post','json',$('.ffcms_login_form').serialize(),function(r){
                        alert(r.msg);
                        if(r.code == 1){
                            location.reload();
                        }
                    });
                });
            });
        },
        'Logout':function(){
            FFCMS.Ajax(feifeicms.path + '/index.php/user/logout','post','json','',function(r){
                FFCMS.Pop.Msg(100,20,r.msg,1000);
                if(r.code == 1){
                    location.reload();
                }
            });
        },
        'PopedomCallBack':function(trysee,h) {
            window.setTimeout(function(){
                $(window.frames["player_if"].document).find(".FeifeiPlayer").html(h);
            },1000*10*trysee);
        },
        'BuyPopedom':function(o){
            var $that = $(o);
            if($that.attr("data-id")){
                if (confirm('鎮ㄧ‘璁よ喘涔版鏉℃暟鎹闂潈闄愬悧锛�')) {
                    FFCMS.Ajax(feifeicms.path + '/index.php/user/ajax_buy_popedom.html?id=' + $that.attr("data-id") + '&amp;mid=' + $that.attr("data-mid") + '&amp;sid=' + $that.attr("data-sid") + '&amp;nid=' + $that.attr("data-nid") + '&amp;type=' + $that.attr("data-type"),'get','json','',function(r){
                        $that.addClass('disabled');
                        FFCMS.Pop.Msg(300, 50, r.msg, 2000);
                        if (r.code == 1) {
                            top.location.reload();
                        }
                        $that.removeClass('disabled');
                    });
                }
            }
        }
    },
    'Pop':{
        'Remove':function(){
            $('.ffcms_pop_bg').remove();
            $('.ffcms_pop').remove();
        },
        'RemoveMsg':function(){
            $('.ffcms_pop_msg_bg').remove();
            $('.ffcms_pop_msg').remove();
        },
        'Msg':function($w,$h,$msg,$timeout){
            if($('.ffcms_pop_bg').length !=1) {
                FFCMS.Pop.Remove();
            }
            $('body').append('&lt;div class="ffcms_pop_msg_bg"&gt;&lt;/div&gt;&lt;div class="ffcms_pop_msg"&gt;&lt;div class="pop-msg"&gt;&lt;/div&gt;&lt;/div&gt;');
            $('.ffcms_pop_msg .pop_close').click(function(){
                $('.ffcms_pop_msg').remove();
            });

            $('.ffcms_pop_msg').width($w);
            $('.ffcms_pop_msg').height($h);
            $('.ffcms_pop_msg .pop-msg').html($msg);
            $('.ffcms_pop_msg_bg,.ffcms_pop_msg').show();
            setTimeout(FFCMS.Pop.RemoveMsg,$timeout);
        },
        'Show':function($w,$h,$title,$url,$callback) {
            if($('.ffcms_pop_bg').length !=1) {
                FFCMS.Pop.Remove();
            }

            $('body').append('&lt;div class="ffcms_pop_bg"&gt;&lt;/div&gt;&lt;div class="ffcms_pop"&gt;&lt;div class="pop_top"&gt;&lt;h2&gt;&lt;/h2&gt;&lt;span class="pop_close"&gt;锛�&lt;/span&gt;&lt;/div&gt;&lt;div class="pop_content"&gt;&lt;/div&gt;&lt;/div&gt;');
            $('.ffcms_pop .pop_close').click(function(){
                $('.ffcms_pop_bg,.ffcms_pop').remove();
            });

            $('.ffcms_pop').width($w);
            $('.ffcms_pop').height($h);
            $('.pop_content').html('');
            $('.pop_top').find('h2').html($title);

            FFCMS.Ajax($url,'post','json','',function(r){
                $(".pop_content").html(r);
                $callback(r);
            },function(){
                $(".pop_content").html('鍔犺浇澶辫触锛岃鍒锋柊...');
            });

            $('.ffcms_pop_bg,.ffcms_pop').show();
        }
    },
    'Pwd':{
        'Check':function(o){
            var $that = $(o);
            if($that.attr("data-id")){
                    FFCMS.Ajax(feifeicms.path + '/index.php/ajax/pwd.html?id=' + $that.attr("data-id") + '&amp;mid=' + $that.attr("data-mid") + '&amp;type=' + $that.attr("data-type") + '&amp;pwd='+ $that.parents('form').find('input[name="pwd"]').val() ,'get','json','',function(r){
                        $that.addClass('disabled');
                        FFCMS.Pop.Msg(300, 50, r.msg, 2000);
                        if (r.code == 1) {
                            location.reload();
                        }
                        $that.removeClass('disabled');
                    });

            }
        }
    },
    'AdsWrap':function(w,h,n){
        document.writeln('&lt;img width="'+w+'" height="'+h+'" alt="'+n+'" style="background-color: #CCCCCC" /&gt;');
    },
    'Css':function($url){
        $("&lt;link&gt;").attr({ rel: "stylesheet",type: "text/css",href: $url}).appendTo("head");
    },
    'Js':function($url){
        $.getScript($url, function(response, status) {

        });
    },
    'Desktop':function(s){
        location.href= feifeicms.path + '/index.php/ajax/desktop?name='+encodeURI(s)+'&amp;url=' + encodeURI(location.href);
    },
    'Timming':function(){
        if($('.ffcms_timming').length==0){
            return;
        }
        var infile = $('.ffcms_timming').attr("data-file");
        if(infile==undefined || infile == ''){
            infile = 'api.php';
        }
        var t=(new Image());t.src=feifeicms.path + '/'+infile+'/timming/index?t='+Math.random();
    },
    'Error':function(tab,id,name){

    },
    'AddEm':function(obj,i){
        var oldtext = $(obj).val();
        $(obj).val( oldtext + '[em:' + i +']' );
    },
    'Remaining':function(obj,len,show){
        var count = len - $(obj).val().length;
        if(count &lt; 0){
            count = 0;
            $(obj).val($(obj).val().substr(0,200));
        }
        $(show).text(count);
    },
    'Comment':{
        'Login':0,
        'Verify':0,
        'Init':function(){

            $('body').on('click', '.comment_face_box img', function(e){
                var obj = $(this).parent().parent().parent().find('.comment_content');
                FFCMS.AddEm(obj,$(this).attr('data-id'));
            });
            $('body').on('click', '.comment_face_panel', function(e){
                // $('.comment_face_box').toggle();
                $(this).parent().find('.comment_face_box').toggle();
            });
            $('body').on('keyup', '.comment_content', function(e){
                var obj = $(this).parent().parent().parent().parent().find('.comment_remaining');
                FFCMS.Remaining($(this),200,obj)
            });
            $('body').on('focus', '.comment_content', function(e){
                if(FFCMS.Comment.Login==1 &amp;&amp; FFCMS.User.IsLogin!=1){
                    FFCMS.User.Login();
                }
            });

            $('body').on('click', '.comment_report', function(e){
                var $that = $(this);
                if($(this).attr("data-id")){
                    FFCMS.Ajax(feifeicms.path + '/index.php/comment/report.html?id='+$that.attr("data-id"),'get','json','',function(r){
                        $that.addClass('disabled');
                        FFCMS.Pop.Msg(100,20,r.msg,1000);
                        if(r.code == 1){
                        }
                    });
                }
            });

            $('body').on('click', '.comment_reply', function(e){
                var $that = $(this);
                if($that.attr("data-id")){
                    var str = $that.html();
                    $('.comment_reply_form').remove();
                    if (str == '鍙栨秷鍥炲') {
                        $that.html('鍥炲');
                        return false;
                    }
                    if (str == '鍥炲') {
                        $('.comment_reply').html('鍥炲');
                    }
                    var html = $('.comment_form').prop("outerHTML");

                    var oo = $(html);
                    oo.addClass('comment_reply_form');
                    oo.find('input[name="comment_pid"]').val( $that.attr("data-id") );

                    $that.parent().after(oo);
                    $that.html('鍙栨秷鍥炲');
                }
            });

            $('body').on('click', '.comment_submit', function(e){
                var $that = $(this);
                FFCMS.Comment.Submit($that);
            });

        },
        'Show':function($page){
            if($(".ffcms_comment").length&gt;0){
                FFCMS.Ajax(feifeicms.path + '/index.php/comment/ajax.html?rid='+$('.ffcms_comment').attr('data-id')+'&amp;mid='+ $('.ffcms_comment').attr('data-mid') +'&amp;page='+$page,'get','json','',function(r){
                    $(".ffcms_comment").html(r);
                },function(){
                    $(".ffcms_comment").html('&lt;a href="javascript:void(0)" onclick="FFCMS.Comment.Show('+$page+')"&gt;璇勮鍔犺浇澶辫触锛岀偣鍑绘垜鍒锋柊...&lt;/a&gt;');
                });
            }
        },
        'Reply':function($o){

        },
        'Submit':function($o){
            var form = $o.parents('form');
            if($(form).find(".comment_content").val() == ''){
                FFCMS.Pop.Msg(100,20,'璇疯緭鍏ユ偍鐨勮瘎璁猴紒',1000);
                return false;
            }
            if($('.ffcms_comment').attr('data-mid') == ''){
                FFCMS.Pop.Msg(100,20,'妯″潡mid閿欒锛�',1000);
                return false;
            }
            if($('.ffcms_comment').attr('data-id') == ''){
                FFCMS.Pop.Msg(100,20,'鍏宠仈id閿欒锛�',1000);
                return false;
            }
            FFCMS.Ajax(feifeicms.path + '/index.php/comment/saveData','post','json',$(form).serialize() + '&amp;comment_mid='+ $('.ffcms_comment').attr('data-mid') + '&amp;comment_rid=' + $('.ffcms_comment').attr('data-id'),function(r){
                FFCMS.Pop.Msg(100,20,r.msg,1000);
                if(r.code == 1){
                    FFCMS.Comment.Show(1);
                }
                else{
                    if(FFCMS.Comment.Verify==1){
                        FFCMS.Verify.Refresh();
                    }
                }
            });
        }
    }
}

$(function(){
    //寮傛鍔犺浇鍥剧墖鍒濆鍖�
    FFCMS.Image.Lazyload.Show();
    //鑷姩璺宠浆鎵嬫満鍜宲c缃戦〉鍦板潃
    FFCMS.Adaptive();
    //楠岃瘉鐮佸垵濮嬪寲
    FFCMS.Verify.Init();
    //鍒嗛〉璺宠浆鍒濆鍖�
    FFCMS.PageGo.Init();
    //鐢ㄦ埛閮ㄥ垎鍒濆鍖�
    FFCMS.User.Init();
    //浜岀淮鐮佸垵濮嬪寲
    FFCMS.Qrcode.Init();
    //椤跺拰韪╁垵濮嬪寲
    FFCMS.Digg.Init();
    //璇勫垎鍒濆鍖�
    FFCMS.Score.Init();
    //鏄熸槦璇勫垎鍒濆鍖�
    FFCMS.Star.Init();
    //鐐瑰嚮鏁伴噺
    FFCMS.Hits.Init();
    //鐭綉鍧€
    FFCMS.Shorten.Init();
    //鍘嗗彶璁板綍鍒濆鍖�
    FFCMS.History.Init();
    //鐢ㄦ埛璁块棶璁板綍鍒濆鍖�
    FFCMS.Ulog.Init();
    //鑱旀兂鎼滅储鍒濆鍖�
    FFCMS.Suggest.Init('.ffcms_wd',1,'');
    //缃戝潃瀵艰埅鏉ヨ矾缁熻
    FFCMS.Website.Referer();
    //瀹氭椂浠诲姟鍒濆鍖�
    FFCMS.Timming();
});
</pre></body></html>