亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? auth.js

?? DWR is the way for AJAX implementation
?? JS
字號:
/* * Copyright 2005 Andreas Schmidt * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * *     http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. *//** * Declare an object to which we can add real functions. */if (dwr == null) var dwr = {};if (dwr.auth == null) dwr.auth = {};if (DWRAuthentication == null) var DWRAuthentication = dwr.auth;//// Application-wide stuff//// enabled-status flagdwr.auth._enabled = false;// stores the original MetaDataWarningHandler of DWREngingdwr.auth._dwrHandleBatchExeption = null;// give dwr.auth the controldwr.auth.enable = function () {  if (dwr.auth._enabled) {    alert("dwr.auth already enabled");    return;  }  dwr.auth._enabled = true;  dwr.auth._dwrHandleBatchExeption = dwr.engine._handleError;  dwr.engine._handleError = dwr.auth.authWarningHandler;}// resume dwr.authdwr.auth.disable = function() {  if (!dwr.auth._enabled) {    alert("dwr.auth not enabled");    return;  }  dwr.engine._handleError = dwr.auth._dwrHandleBatchExeption;  dwr.auth._dwrHandleBatchExeption = null;  dwr.auth._enabled = false;}// define the url that is protected by servlet-securitydwr.auth._protectedURL = null;dwr.auth.setProtectedURL = function(url) {  dwr.auth._protectedURL = url;}//// setters for the various authentication-callback// and their default-implementataions.// callback-functions have to return true, if they want, that// dwr resends the resumed original request.// // authentication required: a dwr request has some authorizations-rules,// but there's no user attached to the current sessiondwr.auth.defaultAuthenticationRequiredHandler = function(batch,ex) {  alert(ex.message);  return false;}dwr.auth._authRequiredHandler = dwr.auth.defaultAuthenticationRequiredHandler;dwr.auth.setAuthenticationRequiredHandler = function(handler) {  dwr.auth._authRequiredHandler = handler;}// authentication failed: the server didn't accept the given credentialsdwr.auth.defaultAuthenticationFailedHandler = function(login_form) {  alert("Login failed");  return false;}dwr.auth._authFailedHandler = dwr.auth.defaultAuthenticationFailedHandler;dwr.auth.setAuthenticationFailedHandler = function(handler) {  dwr.auth._authFailedHandler = handler;}// access denied: the current session's user is not privileged to do// the remote calldwr.auth.defaultAccessDeniedHandler = function(batch,ex) {  alert(ex.message);  return false;}dwr.auth._accessDeniedHandler = dwr.auth.defaultAccessDeniedHandler;dwr.auth.setAccessDeniedHandler = function(handler) {  dwr.auth._accessDeniedHandler = handler;}// authenficiation success: the user was successful authenticateddwr.auth.defaultAuthenticationSuccessHandler = function (msg) {  return true;}dwr.auth._successHandler = dwr.auth.defaultAuthenticationSuccessHandler;dwr.auth.setAuthenticationSuccessHandler = function(handler) {  dwr.auth._successHandler = handler;}// stores the last dwr-request-batch that dwr didn't process because of// authenfication/authorization-issuesdwr.auth._batch = null;// makes a deep-copy of a given javascript-objectdwr.auth._deepCopy = function(source) {  var destination = {};  for (property in source) {    var value = source[property];    if (typeof value != 'object') {      //alert("simple property:"+property);      destination[property] = value;    }    else if ( value instanceof Array) {      //alert("array property:"+property+"("+value.length+")");      // since the batch-arrays never get changed after       // execution, we don't have to do a deepcopy for reexecution      // otherwise we would have to iterate by value.length, which      // could take quite long for sparsely populated batchIds-array      destination[property] = value;    }    else {      //alert("object property:"+property);      destination[property] = dwr.auth._deepCopy(value);    }  }  return destination;}// make a copy of the batch that we can replay laterdwr.auth._cloneBatch = function(batch) {  var req = batch.req;  var div = batch.div;  var form = batch.form;  var iframe = batch.iframe;  var script = batch.script;  delete batch.req;  delete batch.div;  delete batch.form;  delete batch.iframe;  delete batch.script;  var clone = dwr.auth._deepCopy(batch);  batch.req = req;  batch.div = div;  batch.form = form;  batch.iframe = iframe;  batch.script = script;    clone.completed = false;  clone.map.httpSessionId = dwr.engine._getJSessionId();  clone.map.scriptSessionId = dwr.engine._getScriptSessionId();  return clone;}dwr.auth._exceptionPackage = "org.directwebremoting.extend.";// replacement for dwr's MetaDataWarningHandlerdwr.auth.authWarningHandler = function(batch, ex) {  if (batch == null || typeof ex != "object" || ex.type == null    || ex.type.indexOf(dwr.auth._exceptionPackage) != 0) {    dwr.auth._dwrHandleBatchExeption(batch, ex);    return;  }  var errorType = ex.type.substring(dwr.auth._exceptionPackage.length);  //alert("errorCode="+errorType);  switch (errorType) {    case "LoginRequiredException":      dwr.auth._batch = dwr.auth._cloneBatch(batch);      if (dwr.auth._authRequiredHandler(batch,ex)) {        dwr.auth._replayBatch();      }      break;    case "AccessDeniedException":      dwr.auth._batch = dwr.auth._cloneBatch(batch);      if (dwr.auth._accessDeniedHandler(batch,ex)) {        dwr.auth._replayBatch();      }      break;    default:      dwr.auth._dwrHandleBatchExeption(batch, ex);  }}// resend a rejected request with dwr.enginedwr.auth._replayBatch = function() {  if (dwr.auth._batch == null) {    alert("no batch to replay!");    return;  }  else {    //alert("replay batch "+dwr.auth._batch);  }  var caller = function() {    var batch = dwr.auth._batch;    dwr.auth._batch = null;    dwr.engine._batches[dwr.engine._batches.length] = batch;    dwr.engine._sendData(batch);  };  // give dwr some time to finish the old batch processing  setTimeout( caller, 200);}// use some minimal protection with a private class// to prevent acess to credentials from other javascript codedwr.auth.ServletLoginProcessor = function() {  var login = null;  var password = null;  this.setLogin = function(aLogin) {    login = aLogin;  }  this.getLogin = function() {    return login;  }  this.setPassword = function(aPassword) {    password = aPassword;  }  this.login = function(login_form) {    login_form.j_username.value = login;    login_form.j_password.value = password;    login_form.submit();    // just because i'm paranoid: clear password    password = null;  }}dwr.auth._loginProcessor = new dwr.auth.ServletLoginProcessor();dwr.auth.authenticate = function(login, password) {  var processor = dwr.auth._loginProcessor;  processor.setLogin(login);  processor.setPassword(password);  // call login-test url in iframe  var div = document.createElement("div");  div.innerHTML = "<iframe src='"+dwr.auth._protectedURL+"' frameborder='0' width='0' height='0' id='login_frame' name='login_frame' style='width:0px; height:0px; border:0px;'></iframe>";  document.body.appendChild(div);}dwr.auth._loginCallback = function(login_form) {  dwr.auth._loginProcessor.login(login_form);}dwr.auth._loginFailedCallback = function(login_form) {  dwr.auth._authFailedHandler(login_form);}dwr.auth._loginSucceededCallback = function(msg) {  if (dwr.auth._successHandler(msg)) {    dwr.auth._replayBatch();  }}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲一二三专区| 欧美一区二区三区日韩视频| 国产精品午夜春色av| 丁香另类激情小说| 亚洲天堂成人在线观看| 91麻豆swag| 日韩黄色免费电影| 久久天天做天天爱综合色| 国产999精品久久久久久| 丝袜诱惑制服诱惑色一区在线观看| 7777精品伊人久久久大香线蕉超级流畅| 日韩专区一卡二卡| 久久美女艺术照精彩视频福利播放| 国产成人午夜视频| 亚洲日本成人在线观看| 欧美二区在线观看| 国产成人在线看| 一区二区三区鲁丝不卡| 欧美不卡激情三级在线观看| 成人高清av在线| 五月婷婷久久综合| 国产欧美一区二区在线观看| 欧美亚男人的天堂| 精彩视频一区二区三区 | 国产精品情趣视频| 欧美丝袜自拍制服另类| 国产一区二区成人久久免费影院| 最新国产の精品合集bt伙计| 7777精品伊人久久久大香线蕉完整版 | 久久先锋影音av| 日本电影欧美片| 国产一区在线看| 亚洲图片欧美综合| 欧美国产激情一区二区三区蜜月| 欧美亚洲精品一区| 国产91精品在线观看| 日韩制服丝袜av| 自拍偷拍国产精品| 精品国产123| 欧美午夜精品久久久| 成人午夜激情视频| 蜜桃在线一区二区三区| 亚洲精品国产成人久久av盗摄 | 天堂影院一区二区| 亚洲欧美二区三区| 久久婷婷色综合| 欧美肥妇毛茸茸| 精品国产伦理网| 欧美主播一区二区三区美女| 国产一区二区电影| 蜜桃视频一区二区三区| 亚洲影视在线观看| 国产精品久久久久国产精品日日| 日韩手机在线导航| 欧美日韩亚洲国产综合| 色8久久精品久久久久久蜜| 国产suv一区二区三区88区| 另类小说一区二区三区| 香港成人在线视频| 亚洲国产精品精华液网站| 亚洲视频一区二区免费在线观看| 国产欧美日韩精品a在线观看| 欧美成人video| 日韩精品一区二区三区中文精品| 欧美精品久久99久久在免费线 | 国产精品网站一区| 久久综合九色综合欧美98 | 在线中文字幕一区| 99精品在线免费| k8久久久一区二区三区| 国产91对白在线观看九色| 国产一区二区三区| 国产一区二区三区高清播放| 激情小说欧美图片| 黄色资源网久久资源365| 理论片日本一区| 韩国午夜理伦三级不卡影院| 欧美日韩一级二级| 欧美日韩精品二区第二页| 欧洲国内综合视频| 精品视频一区二区不卡| 欧美年轻男男videosbes| 欧美乱妇一区二区三区不卡视频| 欧美老女人在线| 日韩亚洲电影在线| 精品盗摄一区二区三区| 国产视频一区二区在线观看| 国产精品色哟哟| 一区二区三区毛片| 天堂一区二区在线免费观看| 六月丁香婷婷久久| 国产成a人亚洲精品| 99精品久久99久久久久| 在线精品亚洲一区二区不卡| 欧美区一区二区三区| 精品捆绑美女sm三区| 国产欧美综合在线| 亚洲黄色录像片| 日欧美一区二区| 国产自产视频一区二区三区| 国产成人av一区二区| 91麻豆蜜桃一区二区三区| 精品视频资源站| 2021中文字幕一区亚洲| 中文字幕一区二区三区四区| 亚洲午夜精品网| 久久99久久99小草精品免视看| 成人综合在线视频| 欧美三片在线视频观看| 欧美精品一区二区三区在线播放| 亚洲国产成人在线| 天堂va蜜桃一区二区三区漫画版 | 国产福利一区二区| 91久久精品网| 精品va天堂亚洲国产| 亚洲免费av网站| 久久精品国产亚洲aⅴ| 97久久超碰国产精品| 精品女同一区二区| 成人激情校园春色| 欧美精品国产精品| 中文字幕成人av| 日本欧美在线观看| 99久久婷婷国产| 精品少妇一区二区三区日产乱码 | 色哟哟一区二区| 欧美tickling挠脚心丨vk| 亚洲美腿欧美偷拍| 国产精品一区二区视频| 欧美伦理电影网| 亚洲免费三区一区二区| 国产剧情一区在线| 在线播放欧美女士性生活| 亚洲欧洲美洲综合色网| 毛片基地黄久久久久久天堂| 在线观看www91| 国产精品另类一区| 另类欧美日韩国产在线| 欧美日韩另类国产亚洲欧美一级| 国产女人aaa级久久久级| 久久精品国产成人一区二区三区 | 日韩免费观看高清完整版| 综合精品久久久| 国产精品一二三四五| 欧美一卡在线观看| 99久久精品免费| 久久久久国产精品麻豆| 久久精品久久综合| 91精品国产综合久久精品app| 亚洲乱码中文字幕| av高清不卡在线| 国产人伦精品一区二区| 韩国精品一区二区| 欧美不卡一区二区三区| 秋霞av亚洲一区二区三| 欧美日韩一区二区三区在线看| 亚洲三级电影网站| 97se狠狠狠综合亚洲狠狠| 欧美国产一区二区| 成人综合在线网站| 中文字幕精品在线不卡| 国产成人av电影在线观看| 久久综合九色综合欧美亚洲| 精品在线一区二区三区| 26uuu成人网一区二区三区| 精品系列免费在线观看| 精品电影一区二区| 国产一区二区三区在线观看免费视频| 日韩免费观看高清完整版在线观看| 日韩av电影天堂| 精品国产麻豆免费人成网站| 久久电影网电视剧免费观看| 亚洲精品在线免费播放| 国产伦精一区二区三区| 久久精品视频在线看| 成人黄色电影在线| 亚洲三级免费电影| 欧美日韩精品欧美日韩精品一| 视频精品一区二区| 欧美一区二区不卡视频| 国产精品一区二区在线看| 中文字幕第一区| 亚洲国产高清在线观看视频| 成人免费不卡视频| 亚洲综合精品自拍| 宅男在线国产精品| 国产剧情在线观看一区二区| 国产精品传媒入口麻豆| 欧美三级视频在线| 另类调教123区| 国产精品久久免费看| 在线免费观看日韩欧美| 日韩不卡在线观看日韩不卡视频| 日韩欧美国产综合在线一区二区三区 | 在线免费视频一区二区| 免费成人在线观看视频| 国产肉丝袜一区二区| 色999日韩国产欧美一区二区| 日韩中文欧美在线| 国产欧美一区二区三区鸳鸯浴|