Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <head>
- <title>Log On</title>
- <link href='https://fonts.googleapis.com/css?family=Roboto Slab' rel='stylesheet'>
- <link href='https://fonts.googleapis.com/css?family=Roboto' rel='stylesheet'>
- <link href='https://fonts.googleapis.com/css?family=Open Sans' rel='stylesheet'>
- <script language="JavaScript">
- if (window.focus) self.focus();
- function openAnyWindow(url, name) {
- var l = openAnyWindow.arguments.length;
- var w = "";
- var h = "";
- var features = "";
- for (i=2; i<l; i++) {
- var param = openAnyWindow.arguments[i];
- if ( (parseInt(param) == 0) || (isNaN(parseInt(param))) ) {
- features += param + ',';
- } else {
- (w == "") ? w = "width=" + param + "," : h = "height=" + param;
- }
- }
- features += w + h;
- var code = "popupWin = window.open(url, name";
- if (l > 2) code += ", '" + features;
- code += "')";
- eval(code);
- }
- /* 3/4/09 ylee: === EDM update start === */
- function edmGetCookieValue(cookieName) {
- var cookieValue = "";
- if (document.cookie != "") {
- var cookieArray = document.cookie.split("; ");
- for (var i = 0; i < cookieArray.length; i++)
- if (cookieArray[i].split("=")[0] == cookieName) {
- cookieValue = cookieArray[i].split("=")[1];
- break;
- }
- }
- return cookieValue;
- }
- function encode() {
- var nonceCookie = edmGetCookieValue("auth");
- document.submitForm.nonce.value = nonceCookie;
- document.submitForm.encoded.value = document.submitForm.username.value + ":" +
- (document.submitForm.username.value + ":" +
- //md5(document.submitForm.username.value + ":" +
- document.submitForm.password.value + ":" + nonceCookie);
- document.submitForm.goto.disabled=true;
- document.submitForm.username.disabled=true;
- document.submitForm.password.disabled=true;
- }
- function encode_vrf() {
- var nonceCookie = edmGetCookieValue("auth");
- document.submitForm.nonce.value = nonceCookie;
- document.submitForm.encoded.value = document.submitForm.username.value + ":" +
- document.submitForm.password.value;
- document.submitForm.goto.disabled=true;
- document.submitForm.username.disabled=true;
- document.submitForm.password.disabled=true;
- }
- /* === merged from logon.html of BayStack === */
- function encode_ers2500() {
- var nonceCookie = edmGetCookieValue("auth");
- // ERS2500 does not impose the minimum length of username and password
- /*
- if (!testForLength(document.submitForm.username.value,-1,15,-1)) {
- alert ("Maximum of 15 characters for Username!");
- return;
- }
- if (!testForLength(document.submitForm.password.value,-1,15,-1)) {
- alert ("Maximum of 15 characters for Password!");
- return;
- }
- */
- document.submitForm.nonce.value = nonceCookie;
- document.submitForm.encoded.value = getUsernameLength(document.submitForm.username.value) +
- document.submitForm.username.value + ":" +
- document.submitForm.password.value; // sets the hidden field value to whatever md5 returns.
- // document.forms["submitForm"].submit();
- document.submitForm.goto.disabled=true;
- document.submitForm.username.disabled=true;
- document.submitForm.password.disabled=true;
- }
- function testForLength (InString, Abs, LTE, GTE) {
- if (Abs != -1) {
- if(InString.length == Abs)
- return(true);
- } else if (LTE != -1) {
- if(InString.length <= LTE)
- return(true);
- } else if (GTE != -1) {
- if(InString.length >= GTE)
- return(true);
- }
- return (false);
- }
- function getUsernameLength(username) {
- var userLength = "";
- if ( username.length < 10 )
- userLength = "0" + username.length;
- else
- userLength = username.length;
- return userLength;
- }
- function CheckForAuthenFailure()
- {
- if (0)
- alert ("Login Failed!");
- }
- function checkUsernameLen()
- {
- if (!testForLength(document.submitForm.username.value,-1,15,-1))
- alert ("Maximum of 15 characters for Username!");
- }
- function checkPasswordLen()
- {
- if (!testForLength(document.submitForm.password.value,-1,15,-1))
- alert ("Maximum of 15 characters for Password!");
- }
- /* 3/4/09 ylee: === EDM update end === */
- var browser;
- var version;
- var os;
- var BrowserDetect = {
- init: function () {
- this.browser = this.searchBrowser(this.dataBrowser) || "An unknown browser";
- this.version = this.searchVersion(navigator.userAgent)
- || this.searchVersion(navigator.appVersion)
- || "an unknown version";
- this.OS = this.searchOS(this.dataOS) || "an unknown OS";
- var supportedBrowser = false;
- if (this.browser == "Firefox" && this.version >= 3.0)
- supportedBrowser = true;
- else if ((/MSIE 10/i.test(navigator.userAgent)) || (/MSIE 9/i.test(navigator.userAgent)) || (/rv:11.0/i.test(navigator.userAgent))){
- supportedBrowser = true;
- }
- else if (/Edge\/\d./i.test(navigator.userAgent)){
- supportedBrowser = true;
- }
- if (!supportedBrowser) {
- alert("You are using an unsupported browser/version and may experience latency.\n" +
- "The supported browsers are IE 9.0 +, Edge 38+ and Firefox 3.0+");
- }
- },
- searchBrowser: function (data) {
- for (var i=0;i<data.length;i++) {
- var dataString = data[i].string;
- var dataProp = data[i].prop;
- this.versionSearchString = data[i].versionSearch || data[i].identity;
- if (dataString) {
- if (dataString.indexOf(data[i].subString) != -1) {
- browser=data[i].identity;
- // alert("Browser type: "+browser);
- return data[i].identity;
- }
- }
- else if (dataProp) {
- browser=data[i].identity;
- //alert("Browser type: "+browser);
- return data[i].identity;
- }
- }
- },
- searchOS: function (data) {
- for (var i=0;i<data.length;i++) {
- var dataString = data[i].string;
- var dataProp = data[i].prop;
- this.versionSearchString = data[i].versionSearch || data[i].identity;
- if (dataString) {
- if (dataString.indexOf(data[i].subString) != -1) {
- os=data[i].identity;
- //alert("Operating System: "+os);
- return data[i].identity;
- }
- }
- else if (dataProp) {
- identity=data[i].identity;
- //alert("Operating System: "+os);
- return data[i].identity;
- }
- }
- },
- searchVersion: function (dataString) {
- var index = dataString.indexOf(this.versionSearchString);
- if (index == -1) return;
- version=parseFloat(dataString.substring(index+this.versionSearchString.length+1));
- //alert("version: "+version);
- return parseFloat(dataString.substring(index+this.versionSearchString.length+1));
- },
- dataBrowser: [
- { string: navigator.userAgent,
- subString: "OmniWeb",
- versionSearch: "OmniWeb/",
- identity: "OmniWeb"
- },
- {
- string: navigator.vendor,
- subString: "Apple",
- identity: "Safari"
- },
- {
- prop: window.opera,
- identity: "Opera"
- },
- {
- string: navigator.vendor,
- subString: "iCab",
- identity: "iCab"
- },
- {
- string: navigator.vendor,
- subString: "KDE",
- identity: "Konqueror"
- },
- {
- string: navigator.userAgent,
- subString: "Firefox",
- identity: "Firefox"
- },
- {
- string: navigator.vendor,
- subString: "Camino",
- identity: "Camino"
- },
- { // for newer Netscapes (6+)
- string: navigator.userAgent,
- subString: "Netscape",
- identity: "Netscape"
- },
- {
- string: navigator.userAgent,
- subString: "MSIE",
- identity: "Explorer",
- versionSearch: "MSIE"
- },
- {
- string: navigator.userAgent,
- subString: "Gecko",
- identity: "Mozilla",
- versionSearch: "rv"
- },
- { // for older Netscapes (4-)
- string: navigator.userAgent,
- subString: "Mozilla",
- identity: "Netscape",
- versionSearch: "Mozilla"
- }
- ],
- dataOS : [
- {
- string: navigator.platform,
- subString: "Win",
- identity: "Windows"
- },
- {
- string: navigator.platform,
- subString: "Mac",
- identity: "Mac"
- },
- {
- string: navigator.platform,
- subString: "Linux",
- identity: "Linux"
- }
- ]
- };
- BrowserDetect.init();
- function copyrightMessage () {
- var d = new Date ();
- document.write ("Copyright © 2010-" + d.getFullYear() + " Extreme Networks. All rights reserved.");
- }
- function getCustomBanner(){
- var xmlhttp;
- var bannerDefaultTxt="<b>WARNING:</b> This computer system and network is PRIVATE and PROPRIETARY and may only be accessed by authorized users.</br>Unauthorized use of this computer system or network is strictly prohibited and may be subject to criminal prosecution,</br>employee discipline up to and including discharge, or the termination of the vendor/service contracts.</br>The owner, or its agents, may monitor any activity or communication on the computer system or network.</br></br>";
- document.getElementById("bannerTxt").innerHTML =bannerDefaultTxt;
- if(window.XMLHttpRequest){
- xmlhttp = new XMLHttpRequest();
- }
- else{
- xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
- }
- xmlhttp.onreadystatechange = function(){
- if(xmlhttp.status == 200 && xmlhttp.readyState == 4 && xmlhttp.responseText!=""){
- bannerDefaultTxt = (xmlhttp.responseText).replace(/(?:\r\n|\r|\n)/g, '<br />');
- document.getElementById("bannerTxt").innerHTML = bannerDefaultTxt;
- }
- };
- xmlhttp.open("GET","cli_custom_banner.txt");
- xmlhttp.send();
- }
- </script>
- <style type="text/css">
- html, body {
- font-family: 'Roboto Slab', 'Roboto', 'Open Sans', Verdana;
- font-size: 14px;
- margin:0;
- padding:0;
- border:0 none;
- overflow:auto;
- height:100%;
- }
- </style>
- </head>
- <body>
- <div style="position:relative;top:0px">
- <table border="0" cellspacing="0" cellpadding="0" width="100%">
- <tr>
- <td valign="top" width="100%" colspan="2" style="background-color:#440099">
- <div style="position:relative;top:0px">
- <div style="position:absolute; left:10px; top: 95px; width:590px; min-width:590px;">
- <img src="images/EDM.png" alt="Enterprise Device Manager" width="590" height="35" />
- </div>
- <div style="position:absolute; right:269px;float:right">
- <img src="images/slash-WH.png" width="230" height="230" alt="" style="left:590px" />
- </div>
- <div style="position:absolute; right:10px; top:65px;float:right">
- <img src="images/ExtremeNetworks.png" alt="Extreme Networks" width="289" height="90" />
- </div>
- </div>
- <table border="0" cellspacing="0" cellpadding="0" width="100%" height="230px">
- <tr>
- <td> </td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- </div>
- <div style="position:relative;padding-top:30px;right:50px;float:right;">
- <table>
- <tr>
- <td valign="top" width="100%" align="left"></td>
- <td valign="top" width="100%">
- <table border="0" cellpadding="0" cellspacing="0" align="center" title="">
- <form method="POST" name="submitForm" onSubmit="encode_vrf()">
- <table>
- <tr>
- <td><font size="2"><b><nobr>User Name:</nobr></b></font></td>
- <td align="right"><input style="width: 12em;" type="text" name="username" size="20"></td>
- </tr>
- <tr>
- <td><font size="2"><b><nobr>Password:</nobr></b></font></td>
- <td align="right"><input style="width: 12em;" type="password" name="password" size="20"></td>
- </tr>
- <tr>
- <input type="hidden" name="encoded">
- <input type="hidden" name="nonce">
- <td colspan="2" align="right">
- <input type="submit" name="goto" value="Log On">
- </td>
- <input type="hidden" name="URL" value="/">
- </tr>
- </table>
- </form>
- <script type='text/javascript'>
- document.submitForm.username.focus();
- </script>
- </table>
- </td>
- </tr>
- </table>
- </div>
- <div style="padding-top:120px;"><pre>
- <div id="bannerTxt" style="margin-left:50px;font-size:13px">
- <script type='text/javascript'>
- getCustomBanner();
- </script>
- </div></pre>
- </div>
- <div style="text-align:center; font-size:12px; padding-top:100px;">
- <script type='text/javascript'>
- copyrightMessage();
- </script>
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement