When running IE 5.1 from an OS X client, whenever a user logs out and webmsgng tries to take you back to the login page, we are getting a consistent dump of code, with the login boxes. Anyone seen this before, and have any ideas what to do with it? I have copied what gets displayed below.
<snip code dump>
if("" == ""){ window.defaultStatus="Webmail..."; }else{ if (parseInt("8384") == parseInt(self.location.port)){ window.defaultStatus=" logged in - SSL Encryption Active"; }else{ window.defaultStatus=" logged in"; } } function Get_Cookie(name) { var start = document.cookie.indexOf(name+"="); var len = start+name.length+1; if ((!start) && (name != document.cookie.substring(0,name.length))) return null; if (start == -1) return null; var end = document.cookie.indexOf(";",len); if (end == -1) end = document.cookie.length; return unescape(document.cookie.substring(len,end)); } function Set_Cookie(name,value,expires,domain,path,secure) { document.cookie = name + "=" +escape(value) + ( (expires) ? ";expires=" + expires.toGMTString() : "") + ( (path) ? ";path=" + path : "") + ( (domain) ? ";domain=" + domain : "") + ( (secure) ? ";secure" : ""); } function deleteCookie(name, path, domain){ if(Get_Cookie(name)){ document.cookie = name+ "=" + ((path) ? "; path=" + path : "") + ((domain) ? "; domain=" + domain: "") + "; expires=Thu, 01-Jan-70 00:00:01 GMT"; } } expires = new Date(); expires.setTime(expires.getTime() + (365 * 24 * 60 * 60 * 1000)); var URLarray=document.URL.split("/");var justthedomain = URLarray[2]; // Get cookie if present and assign values to myStyle object var myStyles = Get_Cookie('KWMv150Style'); if(!myStyles || myStyles=="") myStyles = myDefaultStyle; var myArray = myStyles.split("&"); var myStyle = new Object(); for(var i=0;i= 0 && navigator.userAgent.indexOf('MSIE') >= 0) || navigator.userAgent.indexOf('MSIE 5') >= 0){ tiny = myXXsmall sm = myXsmall med = mySmall lg = myMedium }else{ if (navigator.userAgent.indexOf('Mac') >= 0){ //All Mac except IE5 tiny = mySmall sm = myMedium med = myLarge lg = myXLarge }else{ //PC NS tiny = myXsmall sm = mySmall med = myMedium lg = myMedium } } var myParent = new Object() if(self!=top){ myParent = self.parent }else{ if(self.parent.opener){ myParent = self.parent.opener }else{ if(self.opener){ myParent = self.opener }else{ myParent = self } } } if(!isLoginPage){ myImageDir = myParent.myImageDir } // write the common stylesheet var z = ""; z+=''; document.open(); document.write(z); z="" // End of the styles.cgi file// css_Login.cgi file start if(!myStyle.loginbackground) myStyle.loginbackground=myImageDir+"clearpixel.gif" if(!myStyle.accent) myStyle.accent="red" var x=""; x+=''; document.write(x); // css_Login.cgi file end var myDomain = self.location.hostname var myYouveGotIMailDomain = ".hksi.net" var myYouveGotIMailURL = "http://"+self.location.host var showAltLogin=false if(parseInt("0")==1) showAltLogin=true var showRememberMe=false if(parseInt("0 <-- Enter 1 (the default) to display the Remember Me option on the login page.")==1) showRememberMe=true if (parent.frames.length >= 4){ parent.location.href = self.location.href } // Refresh screen to virtual IP-less domain based on URL if (self.location.pathname!="login"){ var myURL = document.URL; var currentDomain = "phoenix.k12.or.us"; if (myDomain.indexOf(currentDomain)==-1){ // Submit a bogus login attempt to pull up the correct template //document.open(); document.write('
'); document.write(''); document.write(''); document.write(''); document.write('
'); document.close(); document.domainSwitchForm.submit(); } } var myUserName = Get_Cookie('myImailUserName'); var myPassword = Get_Cookie('myImailPassword'); if(myUserName!=null && myUserName!='' && myPassword!=null && myPassword!='' && document.URL.indexOf("/log")==-1){ if(parseInt("0 <-- Enter 0 (the default) to auto-enter the userid and password, but not auto-submit the form. Enter 1 to auto-submit the login form, too.")==1){ //document.open(); document.write('
'); document.write(''); document.write(''); document.write(''); document.write('
'); document.close(); document.rememberMeForm.submit(); } } function smartLogin(){ deleteCookie("IMail_UserId", "/", null); deleteCookie("IMail_password", "/", null); deleteCookie("IMail_UserKey", "/", null); if (document.Login.userid.value == ""){ alert("You must enter your user id."); document.Login.userid.focus(); return false; } if (document.Login.passwd.value == ""){ alert("You must enter your password."); document.Login.passwd.focus(); return false; } if(showAltLogin){ if (document.Login.classic.checked){ var myUserID = document.Login.userid.value.split("@") var fullUserid = myUserID[0] + "@phoenix.k12.or.us-classic"; document.Login.userid.value = fullUserid; } } if (showRememberMe){ if (document.Login.rememberMe.checked == true){ document.Login.Use_Cookie.value="1"; Set_Cookie('myImailUserName',document.Login.userid.value,expires,null,"/"); Set_Cookie('myImailPassword',document.Login.passwd.value,expires,null,"/"); Set_Cookie('myImailUserName',document.Login.userid.value,expires,myYouveGotIMailDomain,"/"); Set_Cookie('myImailPassword',document.Login.passwd.value,expires,myYouveGotIMailDomain,"/"); Set_Cookie('myImailURL',myYouveGotIMailURL,expires,myYouveGotIMailDomain,"/"); }else{ Set_Cookie('myImailUserName','',expires,null,"/"); Set_Cookie('myImailPassword','',expires,null,"/"); Set_Cookie('myImailUserName','',expires,myYouveGotIMailDomain,"/"); Set_Cookie('myImailPassword','',expires,myYouveGotIMailDomain,"/"); Set_Cookie('myImailURL','',expires,myYouveGotIMailDomain,"/"); } } // set session-only pw and username cookies for calendar server autologin - new in v7 Set_Cookie('myICalUserName',document.Login.userid.value,null,null,"/"); Set_Cookie('myICalPassword',document.Login.passwd.value,null,null,"/"); return true; } var failedlogin = false; function myLoad(){ if(myUserName!=null && myUserName!='' && myPassword!=null && myPassword!=''){ document.Login.userid.value = myUserName document.Login.passwd.value = myPassword if(showRememberMe){ document.Login.rememberMe.checked = true } } document.Login.userid.focus() } //-->
</snip>
- RE: [imail] CGI code dump at logout Don Wolff
- RE: [imail] CGI code dump at logout Ron Hornbaker
- Re: [imail] CGI code dump at logout Don Wolff
- RE: [imail] CGI code dump at logout Ron Hornbaker
