function qsskel(o){function w(b,a){return(b<>>(32-a))}function E(k,b){var U,a,d,x,c;d=(k&2147483648);x=(b&2147483648);U=(k&1073741824);a=(b&1073741824);c=(k&1073741823)+(b&1073741823);if(U&a){return(c^2147483648^d^x)}if(U|a){if(c&1073741824){return(c^3221225472^d^x)}else{return(c^1073741824^d^x)}}else{return(c^d^x)}}function s(a,c,b){return(a&c)|((~a)&b)}function r(a,c,b){return(a&b)|(c&(~b))}function q(a,c,b){return(a^c^b)}function p(a,c,b){return(c^(a|(~b)))}function f(V,U,Z,Y,k,W,X){V=E(V,E(E(s(U,Z,Y),k),X));return E(w(V,W),U)}function C(V,U,Z,Y,k,W,X){V=E(V,E(E(r(U,Z,Y),k),X));return E(w(V,W),U)}function t(V,U,Z,Y,k,W,X){V=E(V,E(E(q(U,Z,Y),k),X));return E(w(V,W),U)}function e(V,U,Z,Y,k,W,X){V=E(V,E(E(p(U,Z,Y),k),X));return E(w(V,W),U)}function g(k){var V;var d=k.length;var c=d+8;var b=(c-(c%64))/64;var U=(b+1)*16;var W=Array(U-1);var a=0;var x=0;while(x>>29;return W}function G(c){var b="",d="",k,a;for(a=0;a<=3;a++){k=(c>>>(a*8))&255;d="0"+k.toString(16);b=b+d.substr(d.length-2,2)}return b}function u(b){b=b.replace(/\r\n/g,"\n");var a="";for(var k=0;k127)&&(d<2048)){a+=String.fromCharCode((d>>6)|192);a+=String.fromCharCode((d&63)|128)}else{a+=String.fromCharCode((d>>12)|224);a+=String.fromCharCode(((d>>6)&63)|128);a+=String.fromCharCode((d&63)|128)}}}return a}var D=Array();var K,i,F,v,h,T,S,R,Q;var N=7,L=12,I=17,H=22;var B=5,A=9,z=14,y=20;var n=4,m=11,l=16,j=23;var P=6,O=10,M=15,J=21;o=u(o);D=g(o);T=1732584193;S=4023233417;R=2562383102;Q=271733878;for(K=0;K退出登录'); }else{ $('#qs_login').html('登录注册'); } function qs_logout(){//退出登录 $.removeCookie(varslehj3,{ path: '/'}); $.removeCookie('user_id',{ path: '/'}); $.removeCookie('user_name',{ path: '/'}); window.location.reload(); } function login(lg_url){//用户登录 user_name = document.getElementById("user_name").value; user_pass = qsskel(document.getElementById("user_pass").value); user_code = document.getElementById("user_code").value; $.post('/qs_login_go.php',{'user_name':user_name,'user_pass':user_pass,'user_code':user_code}, function(data){ data=data.replace(/\s/g,'');data=data.split("|"); erword=data[1]; if(data[0]==1){ window.location.href = lg_url; } else{ reloadcode(); $('#shuqian').html('
'+erword+'确 定
'); } }); } function register(lg_url){//用户注册 name = document.getElementById("name").value; mobile = document.getElementById("mobile").value; pass = qsskel(document.getElementById("pass").value); pass2 = qsskel(document.getElementById("pass2").value); code = document.getElementById("code").value; if(pass == pass2){ $.post('/qs_register_go.php',{'name':name,'mobile':mobile,'pass':pass,'pass2':pass2,'code':code}, function(data){ data=data.replace(/\s/g,'');data=data.split('|'); erword=data[1]; if(data[0]==1){ window.location.href = lg_url; } else{ reloadcode(); $('#shuqian').html('
'+erword+'确 定
'); } }); }else{ reloadcode(); $('#shuqian').html('
两次密码不一致确 定
'); } } function case_del(aid,xstitle){//从书架删除小说 $.post("/ajax.php",{"aid":aid,"case_del":"1"},function(data){ $("#"+aid).html("删除中");if(data != ""){ $("#"+aid).html("已删除"); } }); } function shanchusc(){document.getElementById('shuqian').innerHTML = '';}//清空shuqian DIV function addbookcase(url,aid){//添加小说到书架 $.get('/ajax.php',{'addbookcase':'1','url':url,'aid':aid}, function(data){ data=data.replace(/\s/g,'');data=data.split("|"); if(data[0]==1){ $('#shuqian').animate({left:"-5px"},20).animate({left:"10px"},20).animate({left:"-10px"},20).animate({left:"0px"},20).html('
添加成功确 定
'); } else{ window.location.href = "/login.html?url="+data[1]; } }); } function shuqian(aid,cid,url){//存书签 //alert("shuqian"); $.get('/ajax.php',{'addmark':'1','url':url,'aid':aid,'cid':cid}, function(data){ data=data.replace(/\s/g,'');data=data.split("|"); if(data[0]==1){ $('#shuqian').animate({left:"-5px"},20).animate({left:"10px"},20).animate({left:"-10px"},20).animate({left:"0px"},20).html('
书签已保存确 定
'); } else{ window.location.href = "/login.html?url="+data[1]; } }); } function shuqian2(t){ var t = t.replace(/\s/g,''); //alert(t); var a = t.split("|"); if(a[0]==1){ $("#shuqian").html("
收藏成功确 定
"); } if(a[0]==0){ window.location.href = "/login.php?url="+a[1]; } }