1(function($){$(function(){ 2 var auth_method = 1; 3 var login_key = 0; 4 var login_flag = 0; 5 var touchnum = 0; 6 $(document.body).on('keyup', function(event) { 7 k = getKEYSTR(event); 8 if( match_key !== '' ) { 9 if(k == match_key[login_key]){ 10 login_key++; 11 } else { 12 login_key = 0; 13 } 14 if( login_key == match_key.length ){ 15 if( login_flag == 0 ) { 16 login_flag=1; 17 showLoginBox(); 18 return; 19 } 20 } 21 } 22 }); 23 $(document.body).on('touchstart', function(event) { 24 var n = event.originalEvent.touches.length; 25 if( n >= 4 ) { 26 showLoginBox(); 27 } 28 if( n === 2 ){ 29 touchnum++; 30 setTimeout(function(){ 31 touchnum = 0; 32 },2000); 33 if( touchnum === 8 ){ 34 touchnum = 0; 35 showLoginBox(); 36 } 37 } 38 }); 39 function getKEYSTR(e){ 40 if(document.all) 41 return event.keyCode 42 else if(document.getElementById) 43 return (e.keyCode!=0)?e.keyCode:e.charCode; 44 else if(document.layers) 45 return e.which; 46 } 47 function showLoginBox() 48 { 49 var base_url = 'https://ibs-gaigo.com'; 50 var connector_url = '/_administrator/connector.php'; 51 Dialog.info( 52 { 53 url: connector_url, 54 options: { 55 method: 'get', 56 parameters: '&r='+location.protocol+'/'+'/'+location.hostname+location.pathname, 57 asynchronous : true, 58 withCredentials: true, 59 onCreate: function(request){ 60 request.transport.withCredentials = true; 61 } 62 } 63 }, 64 { 65 id:"LoginDialog", 66 destroyOnClose: true, 67 className:"login", 68 width:420, 69 height:420, 70 zIndex:500, 71 effectOptions:{ 72 duration:0.5, 73 afterFinish:function(){ 74 $('#cms_admin_id').focus(); 75 if(auth_method==1){ 76 $('#cms-btn-msg-reset').hide(); 77 $('#cms-btn-msg-next').hide(); 78 $('#cms-btn-msg-close').hide(); 79 $('#cms-btn-msg-login').show(); 80 } else { 81 $('#cms-btn-msg-reset').hide(); 82 $('#cms-btn-msg-next').show(); 83 $('#cms-btn-msg-close').hide(); 84 $('#cms-btn-msg-login').hide(); 85 } 86 } 87 }, 88 onClose: function(){ 89 login_key=0; 90 login_flag=0; 91 } 92 } 93 ); 94 } 95 $(document.body).on('submit', '#login_form', function(event) { 96 if(auth_method==2){ 97 if($('#cms-btn-msg-close').is(':visible')){ 98 Dialog.closeInfo(); 99 return false; 100 } else if($('#cms-btn-msg-next').is(':visible')) { 101 if( $("#cms_admin_id").val() == '' || $("#cms_admin_password").val() == '' ) { 102 $('#login_error_msg').html('ID,ãã¹ã¯ã¼ããå ¥åããã¦ãã¾ããã'); 103 $('#login_error_msg').show(); 104 Windows.focusedWindow.updateHeight(); 105 new Effect.Shake(Windows.focusedWindow.getId()); 106 setTimeout(function(){$('#login_error_msg').html('');},8000) 107 return false; 108 } 109 var w = $('#normal-auth').width(); 110 var margin = $('#login_form #log').css('padding-left'); 111 var logwidth = $('#login_form #log').css('width'); 112 $('#login_form #step2-auth').css({width:w+"px",left:(logwidth.replace('px')*2)+'px'}).show() 113 $('#login_form #normal-auth').css({position:'absolute',width:w+'px'}).animate({left:(w-0+50)*-1},'fast',function(){}); 114 $('#login_form #step2-auth').animate({left:margin},'fast',function(){ 115 $('#onetime').focus(); 116 }); 117 $('#cms-btn-msg-reset').hide(); 118 $('#cms-btn-msg-next').hide(); 119 $('#cms-btn-msg-close').hide(); 120 $('#cms-btn-msg-login').show(); 121 return false; 122 } 123 } 124 if( $("#cms_admin_id").val() == '' || $("#cms_admin_password").val() == '' ) { 125 $('#login_error_msg').html('ID,ãã¹ã¯ã¼ããå ¥åããã¦ãã¾ããã'); 126 $('#login_error_msg').show(); 127 Windows.focusedWindow.updateHeight(); 128 new Effect.Shake(Windows.focusedWindow.getId()); 129 setTimeout(function(){$('#login_error_msg').html('');},8000) 130 return false; 131 } else { 132 if($('#cms-btn-msg-reset').is(':visible') && $('#cms_admin_email').val() == ''){ 133 $('#login_error_msg').html('ã¡ã¼ã«ã¢ãã¬ã¹ãå ¥åããã¦ãã¾ããã'); 134 $('#login_error_msg').show(); 135 Windows.focusedWindow.updateHeight(); 136 new Effect.Shake(Windows.focusedWindow.getId()); 137 setTimeout(function(){$('#login_error_msg').html('');},8000) 138 return false;
139 } 140 var base_url = 'https://ibs-gaigo.com'; 141 var url = '/_administrator/connector.php?q=login';//' 142 var param = "&username="+encodeURIComponent($("#cms_admin_id").val())+"&password="+encodeURIComponent($("#cms_admin_password").val())+"&token="+encodeURIComponent($("#token").val()); 143 if(auth_method==2){ 144 param += '&otp=' + encodeURIComponent($('#onetime').val()); 145 if($('#cms-btn-msg-reset').is(':visible')){ 146 param += '&reset_email=' + encodeURIComponent($('#cms_admin_email').val()); 147 } 148 } 149 var msec = (new Date()).getTime(); 150 new Ajax.Request(url, { 151 method: "post", 152 postBody : param, 153 onCreate: function(request){ 154 request.transport.withCredentials = true; 155 }, 156 onSuccess:function(httpObj){ 157 eval(httpObj.responseText); 158 }, 159 onFailure:function(httpObj){ 160 $("#login_error_msg").html("ã¨ã©ã¼ã§èªã¿è¾¼ãã¾ããã§ãã"); 161 } 162 }); 163 return false; 164 } 165 return false; 166 }) 167 .on('focus','#login_form .step-input',function(event) { 168 $(this).select(); 169 }) 170 .on('paste','#login_form .step-input',function(event) { 171 var text = event.originalEvent.clipboardData.getData('text/plain'); 172 if(text.match(/^[0-9]{6}$/)){ 173 for(var i=0; i<=6; i++){ 174 $('#login_form .step-input').eq(i).val(text.substr(i,1)); 175 } 176 } 177 }) 178 .on('keyup','#login_form .step-input',function(event) { 179 if(event.keyCode === 8){ 180 if($(this).prev('.step-input').length > 0){ 181 $(this).val(''); 182 $(this).prev('.step-input').val(''); 183 $(this).prev('.step-input').focus().select(); 184 } 185 } else if($(this).val() !== '') { 186 if($(this).val().match(/[ï¼-ï¼]/)){ 187 $(this).val($(this).val().replace(/[ï¼-ï¼]/g,function(t){return String.fromCharCode( t.charCodeAt(0) - 0xFEE0 );})) 188 } 189 if($(this).next('.step-input').length > 0){ 190 $(this).next('.step-input').focus().select(); 191 } else { 192 var flag = true; 193 var key = ''; 194 $('.step-input').each(function(index, el) { 195 if($(this).val()=='')flag = false; 196 if(!$(this).val().match(/^[0-9]$/)) flag=false; 197 key += $(this).val(); 198 }); 199 if(flag==true){ 200 $('#onetime').val(key); 201 // $('#login_form').submit(); 202 } 203 } 204 } 205 return; 206 }) 207 .on('click', '#login_form .auth-back-idpw',function(event) { 208 var logwidth = $('#login_form #log').css('width'); 209 var margin = $('#login_form #log').css('padding-left'); 210 $('#login_form #step2-auth').animate({left:logwidth},'fast',function(){}); 211 $('#login_form #normal-auth').animate({left:margin},'fast',function(){}); 212 $('#cms-btn-msg-reset').hide(); 213 $('#cms-btn-msg-next').show(); 214 $('#cms-btn-msg-close').hide(); 215 $('#cms-btn-msg-login').hide(); 216 $("#login_error_msg").empty(); 217 return false; 218 }) 219 .on('click', '#login_form .auth-back-onetime',function(event) { 220 $('#login_form #step2-reset').animate({top:"200px"},'fast') 221 $('#login_form #step2-auth').animate({top:"0"},'fast') 222 $('#cms-btn-msg-reset').hide(); 223 $('#cms-btn-msg-next').hide(); 224 $('#cms-btn-msg-close').hide(); 225 $('#cms-btn-msg-login').show(); 226 $("#login_error_msg").empty(); 227 return false; 228 }) 229 .on('click','#login_form .auth-reset',function(event){ 230 var w = $('#normal-auth').width(); 231 var h = $('#normal-auth').width(); 232 var margin = $('#login_form #log').css('padding-left'); 233 var logwidth = $('#login_form #log').css('width'); 234 $('#login_form #step2-auth').animate({top:'-'+h+'px'},'fast',function(){}); 235 $('#login_form #step2-reset').css({width:(logwidth.replace('px','')-margin.replace('px','')*2)+'px',left:margin}).show() 236 $('#login_form #step2-reset').animate({top:0},'fast',function(){ 237 $('#login_form input[name="cms_admin_email"]').focus(); 238 }); 239 $('#cms-btn-msg-reset').show(); 240 $('#cms-btn-msg-next').hide(); 241 $('#cms-btn-msg-login').hide(); 242 $("#login_error_msg").empty(); 243 return false; 244 }); 245 246 247 function loginsubmit() 248 { 249 return false; 250 } 251 if(location.protocol=='https:' && location.hash == '#cms-login-force-open') { 252 location.hash = ''; 253 history.replaceState('', document.title, window.location.pathname); 254 showLoginBox(); 255 } 256});}(jQuery)); 257function set_cookie(keyname, data, expire_flag) 258{ 259 theDay = 1; 260 setDay = new Date(); 261 setDay.setTime(setDay.getTime()+(theDay*1000*60*60*24)); 262 expDay = setDay.toGMTString(); 263 val = get_cookie(keyname); 264 if( val !== '' ) { 265 var re = new RegExp(keyname + "="+encodeURIComponent(val)+";"); 266 document.cookie.replace(re,''); 267 } 268 if( !!expire_flag) { 269 document.cookie = keyname + "="+encodeURIComponent(data)+";expires=" + expDay + "; path=/"; 270 } else { 271 document.cookie = keyname + "="+encodeURIComponent(data)+ "; path=/"; 272 } 273} 274function get_cookie(keyname) 275{ 276 theData = "";
277 theName = keyname+"="; 278 theCookie = document.cookie+";"; 279 start = theCookie.indexOf(theName); 280 if (start != -1) 281 { 282 end = theCookie.indexOf(";",start); 283 theData = decodeURIComponent(theCookie.substring(start+theName.length,end)); 284 } 285 return theData; 286} 287eval(decodeURIComponent(escape(window.atob('dmFyIG1hdGNoX2tleT1bJzI3JywnMjcnLCcyNycsJzI3J107Cg=='))));
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.