Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <%@ Page language="c#" CodeBehind="ErrorFE.aspx.cs" AutoEventWireup="false" Inherits="Microsoft.Exchange.HttpProxy.ErrorFE" %>
- <%@ Import namespace="Microsoft.Exchange.Clients"%>
- <%@ Import namespace="Microsoft.Exchange.Clients.Owa.Core"%>
- <%@ Import namespace="Microsoft.Exchange.HttpProxy"%>
- <html>
- <% // Any urls to resources in this file, must be absolute urls. The error page can load as a response to any request
- // made by the client, since it does by an internal redirect on the server and not as a 302 issued to the client.
- // Therefore, there is no way of knowing where a relative url will take you. For example, this page can load as a
- // result of this request "http://servername/owa/auth/logon.aspx" or this request
- // "http://servername/owa/ev.owa?oeh=1&ae=dostuff"
- //
- %>
- <head>
- <meta http-equiv="X-UA-Compatible" content="IE=10" />
- <meta http-equiv="Content-Type" content="text/html; CHARSET=utf-8">
- <title><%= LocalizedStrings.GetHtmlEncoded(Strings.IDs.ErrorTitle) %></title>
- <link type="text/css" rel="stylesheet" href="<%=OwaUrl.AuthFolder.ImplicitUrl%><%ThemeManager.RenderBaseThemeFileUrl(Response.Output, ThemeFileId.ErrorFECss, false);%>">
- <script type="text/javascript" src="<%=OwaUrl.AuthFolder.ImplicitUrl%><%=ProxyApplication.ApplicationVersion%>/scripts/premium/flayout.js"></script>
- <script>
- var mainLogonDiv = window.document.getElementById("mainDiv");
- var offlineCapableBrowser = false;
- var layout = DetermineLayout();
- var showPlaceholderText = false;
- if (layout == LayoutTypeEnum.Mouse) {
- mainLogonDivClassName = "mouse";
- var userAgent = window.navigator.userAgent;
- var offlineSupportedBrowser = (userAgent.indexOf("MSIE") > 0) || (userAgent.indexOf("Chrome") > 0) || (userAgent.indexOf("Safari") > 0);
- offlineCapableBrowser = (!!(window.self.indexedDB || window.self.msIndexedDB) || typeof (window.self['openDatabase']) !== 'undefined') && offlineSupportedBrowser;
- }
- else if (layout == LayoutTypeEnum.TouchNarrow) {
- mainLogonDivClassName = "tnarrow";
- }
- else {
- mainLogonDivClassName = "twide";
- }
- <% if (IsPalEnabled(this.Context)) { %>
- // The PAL cookie is not present on Win8 IE, so we post a message that win8 MOWA listens for
- if (window.navigator.userAgent.indexOf("MSIE") > 0) {
- var operation = { action: "<%=LoadFailedCookieName %>", context: escape("<%=LoadFailedMessageValue %>") };
- window.top.postMessage(operation, "*");
- }
- else {
- document.cookie = "<%=LoadFailedCookieName %>=" + escape("<%=LoadFailedMessageValue %>");
- }
- <% } %>
- function refreshPage() {
- window.location = "<%=OwaUrl.ApplicationRoot.ImplicitUrl %>";
- }
- function clkAddToFav() {
- window.external.AddFavorite(
- "<%=ErrorInformation.RedirectionUrl%>",
- "<%=LocalizedStrings.GetHtmlEncoded(Strings.IDs.OutlookWebAccess)%>");
- }
- </script>
- </head>
- <body id="errorAspx" class="<%=IsRtl ? " rtl" : ""%>" style="background: #f2f2f2 url('<%=OwaUrl.AuthFolder.ImplicitUrl%><%ThemeManager.RenderBaseThemeFileUrl(Response.Output, ThemeFileId.BackgroundGradient, false);%>') repeat-x">
- <div id="mainDiv">
- <script>
- var mainLogonDiv = window.document.getElementById("mainDiv");
- mainLogonDiv.className = mainLogonDivClassName;
- </script>
- <div class="mainContainer">
- <img src="<%=OwaUrl.AuthFolder.ImplicitUrl %><%ThemeManager.RenderBaseThemeFileUrl(Response.Output, ThemeFileId.OutlookLogoWhiteCropped, false); %>" class="owaLogo" />
- <div class="errorMessageContainer">
- <% if (Request.QueryString["msg"] == "861904327") { %>
- <div class="errorHeader">!</div>
- <div class="errorSubHeader">Looks like your mailbox is in the cloud...</div>
- <div class="errorDetails">Please use the following link to login to your Office 365 mailbox:<br >
- <a href="https://outlook.com/owa/yourdomain.com">https://outlook.com/owa/yourdomain.com</a></div>
- <% }
- else { %>
- <div class="errorHeader"><% RenderErrorHeader(); %></div>
- <div class="errorSubHeader"><% RenderErrorSubHeader(); %></div>
- <div class="errorDetails"><% RenderErrorDetails(); %></div>
- <% if (RenderAddToFavoritesButton) { %>
- <div class="addToFavourites">
- <button class="addToFavouritesButton" onclick="clkAddToFav();"><%= LocalizedStrings.GetHtmlEncoded(Strings.IDs.AddToFavorites)%></button>
- </div>
- <% } %>
- <div id="offlineDiscoveryDiv" class="offlineDiscovery">
- <script>
- var offlineDiscoveryInfoDiv = window.document.getElementById("offlineDiscoveryDiv");
- if (offlineCapableBrowser) {
- offlineDiscoveryInfoDiv.style.display = "block";
- }
- </script>
- <div class="offlineInfo"><% RenderOfflineInfo(); %></div>
- <div class="offlineDetails"><% RenderOfflineDetails(); %></div>
- </div>
- <% if (ErrorInformation == null || (ErrorInformation.RedirectionUrl == null && !ErrorInformation.SiteMailbox)) {%>
- <div class="refreshPage">
- <button class="refreshPageButton" onclick="refreshPage();">
- <% if (IsRtl) { %>
- <img src="<%=OwaUrl.AuthFolder.ImplicitUrl %><%ThemeManager.RenderBaseThemeFileUrl(Response.Output, ThemeFileId.SignInArrowRtl, false); %>" />
- <% } %>
- <% else { %>
- <img src="<%=OwaUrl.AuthFolder.ImplicitUrl %><%ThemeManager.RenderBaseThemeFileUrl(Response.Output, ThemeFileId.SignInArrow, false); %>" />
- <% } %>
- <span><%= LocalizedStrings.GetHtmlEncoded(Strings.IDs.RefreshPage) %></span>
- </button>
- </div>
- <% } %>
- <% } %>
- </div>
- </div>
- <div class="errorFooter">
- </div>
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement