document.write(""); // js Config var _cbase={}; _cbase.run={}; _cbase.sys={}; _cbase.path={}; _cbase.ck={}; _cbase.safe={}; _cbase.safil={}; _cbase.jsrun={}; if(typeof(_pbase)=='undefined'){_pbase={}} _cbase.run.timer = '1596023450.2331'; _cbase.run.stamp = '1596023450'; _cbase.run.userag = 'Wget/1.14 (linux-gnu)'; _cbase.run.jsimp = ','; _cbase.sys.cset = 'utf-8'; _cbase.sys.tzone = '8'; _cbase.sys.lang = 'cn'; _cbase.run.ref = 'http://www.aionwar.com/home.php?wall-mood'; _cbase.run.rsite = '//www.aionwar.com'; _cbase.run.rmain = '//www.aionwar.com'; _cbase.run.roots = '//www.aionwar.com/root'; _cbase.run.rskin = '//www.aionwar.com/views'; _cbase.run.fbase = '//www.aionwar.com/index.php'; _cbase.run.dmtop = 'xiziol.com'; _cbase.run.mkv = 'wall-mood'; _cbase.run.csname = '/home.php'; _cbase.run.tpldir = 'comm'; _cbase.run.isRobot = 0; _cbase.run.isMoble = 0; _cbase.run.isWeixin = 0; if(typeof(_pbase.jscode)!='undefined'){eval(_pbase.jscode);} _cbase.path.cache = '/xvars/dtmp'; _cbase.path.vendor = '/ximps/vendor'; _cbase.path.vendui = '/ximps/vendui'; _cbase.path.static = '/ximps/static'; _cbase.path.skin = '/views'; _cbase.path.editor = _cbase.path.vendui + '/edt_kind/'; _cbase.ck.ckpre = 'v48_'; _cbase.ck.ckdomain = ''; _cbase.ck.ckpath = '/'; _cbase.safe.safil = 'safil-N0BPi-RX4L9-H97hS-qsBrm-U0lm5'; _cbase.safe.safix = '_223'; _cbase.safil.url = '_223[tm]=1596023450&_223[enc]=8c5236641a8dbfe8'; _cbase.sys_editor = 'kind'; _cbase.sys_open = 4; _cbase.sys_pop = 3; _cbase.msg_timea = 1500; _cbase.sys_map = 'baidu'; //--------------------------------------------------- // *** 基础函数 //--------------------------------------------------- \ // 获取文件名 function urlFile(){ var url = this.location.href var pos = url.lastIndexOf("/"); if(pos == -1){ pos = url.lastIndexOf("\\") } var filename = url.substr(pos +1) return filename; } // 获取HTML页面参数 flag 为1 获取详细参数 function urlPara(key,def,url){ url = url ? url : location.href; var re = (new RegExp("([^(&|\?)]*)" + key + "=([^(&|#)]*)").test(url+"#")) ? RegExp.$2 : ''; if(def && !re) re = def; return re; } // ... function urlRep(url,key,val){ if(url.indexOf('?')<=0) url += '?'; if(key){ url = url.replace(new RegExp(key + "=([^(&|#)]*)"),''); url += (val ? '&'+key+'='+val : ''); } return url.replace('?&','?').replace('&&','&'); } // Confirm function urlConfirm(url,msg){ if(msg=='go_url' || confirm(msg)){ location.href = url; return true; } return false; } // urlEncode function urlEncode(url,ext,percent){ if(percent){ url = url.replace('\\%','%25'); } var a = [ '\\#' , '\\&' ]; var b = [ '%23' , '%26' ]; var i; for(i=0; i' , "\\\r" , "\\\n" , "\\\\" ]; var d = [ '%2B' ,'+' , '%22' , '%27' , '%3C' , '%3E' , '%0D' , '%0A' , '%5C' ]; if(ext){ for(i=0; i fixw) { zw = fixw; zh = zw/zr; } if(zh > fixh) { zh = fixh; zw = zh*zr; } obj.width = zw; obj.height = zh; } // Json对象合并:var c=mjson(a,b,1); mjson({},[a,b]); function jmJson(des, src, override){ if(src instanceof Array){ for(var i=0, len=src.length; i]*>/g,''); //去除HTML tag str = str.replace(/[ | ]*\n/g,'\n'); //去除行尾空白 //str = str.replace(/\n[\s| | ]*\r/g,'\n'); //去除多余空行 str=str.replace(/ /ig,'');//去掉  return str; } // lang('jcore.jstag_toolong',id) // {lang(jcore.sys_name)} function lang(mk, val){ if(mk.indexOf('.')<=0) mk = "jcore."+mk; try{ vre = eval("Lang."+mk); }catch (ex1){ return '{'+mk+'}'; } if(typeof(val)=="undefined") return vre; vre = vre.replace('{val}',val); return vre; } // 动态导入Js/CSS文件 function jsImp(sFile,basePath,cbk){ if(_cbase.run.jsimp.indexOf(sFile)<=0) _cbase.run.jsimp += ','+sFile; else return; if(typeof(basePath)=='undefined') basePath = _cbase.run.fbase; if(basePath.length==0) basePath = _cbase.run.roots; sFile = basePath + sFile; if(cbk=='{code}'){ var ext = sFile.substr(sFile.length-4); var cjs = ""; if(ext=='.css'){ cjs=""; } document.write(cjs); }else{ jQuery.getScript(sFile,function(){ cbk && cbk.call(); }); } } // 检测str是否定义, // 如定义: 返回true,str值 // 未定义: 返回false,'' function jsVar(str, debug){ var re = new Array(false,''); try{ eval('var temp = '+str+';'); re[0] = true; re[1] = temp; }catch(e){ if(debug) alert('jsVar()'); } return re; } // runData function jsTry(data,debug){ try{ eval(data); } catch(ex){ if(debug) alert('jsTry()'); } } function jsEval(str){ if(isObj(str,'f')){ str(); }else if(str.indexOf('(')>0){ eval(fn); }else{ eval(fn+'();'); } } // 调试信息 function jsLog(msg,color){ // ?? debug模式 if(window.console){ var cstr = ''; if(color){ var cstr = 'color:'+color; msg = '%c'+msg; } console.log(msg,cstr); }else{ alert(JSON.stringify(msg)); } } // 调试时间 function jsTime(flag,end){ if(end) console.timeEnd(flag); else console.time(flag); } // jsRnd function jsRnd(flag,iMax){ if(iMax) return Math.floor(flag+Math.random()*(iMax-flag)); var r = new Date().getTime(); //Math.random(); var s = flag ? flag+'='+r : '_r='+r try{ s += '&lang='+_cbase.sys.lang; } catch(ex){ } return s; } //--------------------------------------------------- // *** 基本扩展函数 //--------------------------------------------------- \ function setCookie(name,value,exp_secs,path,domain){ var key = _cbase.ck.ckpre+name; var never = new Date(); // _cbase.sys.tzone*3600时区... never.setTime(never.getTime()+exp_secs*1000); //单位毫秒 var sexp = exp_secs ? "; expires="+ never.toGMTString()+";" : ''; path = (path != null && path != '') ? '; path=' + path : '; path='+_cbase.ck.ckpath; domain = (domain != null && domain != '') ? '; domain=' + domain : ''; document.cookie = key+"="+escape(value)+sexp+path+domain; } function getCookie(name){ var key = _cbase.ck.ckpre+name; if (document.cookie.length>0){ c_start=document.cookie.indexOf(key + "=") if (c_start!=-1){ c_start=c_start + key.length+1 c_end=document.cookie.indexOf(";",c_start) if (c_end==-1) c_end=document.cookie.length return unescape(document.cookie.substring(c_start,c_end)) } } return ''; } // 系统开窗(System) function winOpen(e,title,width,height,ext){ var width = width ? width : 640, height = height ? height : 480, scw = screen.width, sch = screen.height; if(width>scw) width = scw; if(height>sch) height = sch; var url, title, wt=_cbase.sys_open; if(isObj(e,'s')){ url = e; title = title ? title : "winOpen"; }else{ //a url = e.href; title = title ? title : e.innerHTML; } url += (url.indexOf('?')>0 ? '' : '?') + '&' + jsRnd('dialog'); if(wt==1){ var _x = (scw-width)/2, _y = (sch-height)/2, id = ext ? '_win_'+jsKey(ext) : '_win_'; var p = ",left="+_x+",top="+_y+",width="+width+",height="+height+""; window.open(url,id,'scrollbars=yes,toolbar=no,location=no,status=no,menubar=no,resizable=yes'+p); }else{ // 4 var ops = {type:2, fix:false, maxmin:true, title:[title,true], area:[width+'px',height+'px'], content:[url]}; layer.open(ops); } return false; } // 窗口大小-winSize() --- quirksmode.org function winSize(re){ if(!re) re = 'win'; if(re=='win'){ //浏览器时下窗口可视区域宽/高度 w = $(window).width(); h = $(window).height(); }else if(re=='doc'){ //浏览器时下窗口文档的宽/高度 w = $(document).width(); h = $(document).height(); }else if(re=='body'){ //浏览器时下窗口文档body的宽/高度 w = $(document.body).width(); h = $(document.body).height(); }else if(re=='out'){ //浏览器时下窗口文档body的总宽/高度 包括border padding margin w = $(document.body).outerWidth(); h = $(document.body).outerHeight(); }else if(re=='scroll'){ //获取滚动条到左边/顶部的垂直宽/高度 w = $(document).scrollLeft(); h = $(document).scrollTop(); } return {w:w,h:h}; } // function winAutoMargin(div,gap){ if(!div) div = 'topMargin'; if(!gap) gap = 20; wv = winSize('win'); wc = winSize('out'); if(wv.h>wc.h+gap){ jQuery('#'+div).show(); jQuery('#'+div).height((wv.h-wc.h-gap/2)*0.33); }else{ jQuery('#'+div).hide(); } } // 前后台 表单 =================================================================================================== function goPjump(e){ var p = $(e).val(); p = isNaN(p) ? 1 : parseInt(p); m = parseInt($(e).attr('pjmax')); if(p>m){ p = m; } url = $(e).attr('pjurl').replace('&page=0&','&page='+p+'&'); window.location.href = url; } function fsPos(fmid,pos){ var x=0, y=0; var box = $('#'+fmid+'_vBox').prev(); var samp = $('#'+fmid+'_vBox samp:first'); var objw = $(box).outerWidth(); var objh = $(box).outerHeight(); var boxh = $(samp).outerHeight(); if(pos && pos.indexOf(',')>0){ var tmp = pos.split(','); x = tmp[0]; y = tmp[1]; }else{ // top var type = $(box).css('display'); if(type=='block'){ x = '0'; //+objw; y = '-'+(boxh+objh+3); }else{ // inline-block x = '-'+objw; y = '-'+(boxh+5); } } $(samp).css({'left':x+'px','top':y+'px'}); } // 认证码初始化(认证码:onFocus触发) function fsCode(fmid,reLoad,pos){ var box = $('#'+fmid+'_vBox'); if($(box).html().length<24){ var img = ''; img += ''; img += '[X]'; $(box).html(img); reLoad = 1; } if($(box).css('display')=='none') $(box).css('display',''); fsPos(fmid,pos); //超时检测... var fimg = jsElm.jeID(fmid+'_vimg'); if(reLoad){ var fimg = jsElm.jeID(fmid+'_vimg'); var para = "&mod="+fmid+"&"+jsRnd()+"&"+_cbase.safil.url; fimg.setAttribute("src",_cbase.run.fbase+"?ajax-vimg"+para); } $("p#evf_vtip").remove(); //onFocus触发后,保证把前一个tip清理掉,否则挡住了认证码. } // 重新加载-安全配置项 ??? function fsReLoad(fmid){ var js = jsElm.jeID('jssrc_'+fmid); js.src += 1; } // 表单认证码 function fsInit(fmid,pos,css1,css2,tabi){ url = _cbase.run.fbase+'?ajax-cajax&act=fsInit&fmid='+fmid; if(pos) url += '&pos='+pos; if(css1) url += '&css1='+css1; if(css2) url += '&css2='+css2; if(tabi) url += '&tabi='+tabi; para = '&'+_cbase.safil.url+'&'+jsRnd(); document.write('