403Webshell
Server IP : 209.209.40.120  /  Your IP : 216.73.217.112
Web Server : Microsoft-IIS/10.0
System : Windows NT NEWWWW 10.0 build 17763 (Windows Server 2019) i586
User : NEWWWW$ ( 0)
PHP Version : 8.3.30
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /Program Files (x86)/Mail Enable/Bin/NETWebMail/Mondo/lang/sys/Forms/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /Program Files (x86)/Mail Enable/Bin/NETWebMail/Mondo/lang/sys/Forms/ChangePassword.aspx
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="ChangePassword.aspx.vb" Inherits="MailEnable.Clients.WebMail.Login" %>
<%@ Register TagPrefix="uc1" TagName="uscStyleHeader" Src="../../Controls/uscStyleHeader.ascx" %>
<%@ Register TagPrefix="uc2" TagName="uscPageBorder_Start" Src="../../Controls/uscPageBorder_Start.ascx" %>
<%@ Register TagPrefix="uc3" TagName="uscPageBorder_End" Src="../../Controls/uscPageBorder_End.ascx" %>
<%@ Register TagPrefix="uc1" TagName="ScriptsInclude" Src="../../Controls/ScriptsInclude.ascx" %>
<%@ Register TagPrefix="uc2" TagName="uscLanguageTokenMondo" Src="../../Controls/uscLanguageToken.ascx" %>
<uc2:uscLanguageTokenMondo id="uscToken" runat="server"></uc2:uscLanguageTokenMondo>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title><%=uscToken.GetText("[ME_TXT-Login]")%></title>
    <uc1:uscStyleHeader id="UscStyleHeader1" runat="server"></uc1:uscStyleHeader>   
    <uc1:ScriptsInclude id="ScriptsInclude" runat="server"></uc1:ScriptsInclude>
    
    <script type="text/javascript">
        getTopAppWindow().ShowPageLoad();
        var lAccessTokenBindingStatus = <%=lAccessTokenBindingStatus%>;

        function Save()
        {
            var NewPassword = document.getElementById('NewPassword');
            var ConfirmNewPassword = document.getElementById('ConfirmNewPassword');
            if (NewPassword.value != '') {
                if (NewPassword.value == ConfirmNewPassword.value) {
                    document.forms['passform'].submit();
                }
                else {
                    Feedback('Login', t_('[ME_TXT-NewPasswordandConfirmPassworddonotmatch.]'));
                }
            }
            else {
                //submit anyway, but do not set the password
                document.forms['passform'].submit();
            }
        }

        function OnSubmitSuccess()
        {
            getTopAppWindow().frames['frmOptions'].OnSaveSuccess();
        }

        function CheckPasswordChangePrivileges()
        {
            var CurrentPassword = document.getElementById('CurrentPassword');
            var NewPassword = document.getElementById('NewPassword');
            var ConfirmNewPassword = document.getElementById('ConfirmNewPassword');

            var PasswordChangeForbidden = !getTopAppWindow().GetOption('WebMail-Priv-CanChangePassword');

            CurrentPassword.disabled = PasswordChangeForbidden;
            NewPassword.disabled = PasswordChangeForbidden;
            ConfirmNewPassword.disabled = PasswordChangeForbidden;

            if (PasswordChangeForbidden)
            {
                Feedback('Login', t_('[ME_TXT-PasswordChangeForbidden]'), false);
            }
        }

        function OnOptionsRetrieved()
        {
            $('#ChangePassword').load('../dialogs/changepassword.htm?v=' + Date.now(), null, function () {
                LocalizePasswordFields();
                CheckPasswordChangePrivileges();
                $("#ChangePassword").show();
            });

        }


        function PageLoad()
        {
            getTopAppWindow().RegisterOptionsRetrievedCallback(OnOptionsRetrieved);
            $('.level0_shell').css({ visibility: 'visible' });
            getTopAppWindow().HidePageLoad();
            getTopAppWindow().RepositionLevel0();

            ScrollTo();
        }

        $(document).ready(function () {
            TwoFactorType_Changed();
            $('#mailboxTwoFactorAddressType').on('change', function () { TwoFactorType_Changed(this.value); });
            lAccessTokenBindingStatus=<%=lAccessTokenBindingStatus%>;
        });

        function TwoFactorType_Changed(v) {
            // We want to determine whether we show the ability to enter an address or a QR code
            var tfType = $("#mailboxTwoFactorAddressType").val();
            if (tfType == 'TOTP') {
                // Show the IMG
                $("#mailboxTwoFactorQRCode").parent().parent().show();
                $("#mailboxTwoFactorAddress").parent().parent().hide();
            }
            else {
                // Hide the img, show the address fields
                $("#mailboxTwoFactorQRCode").parent().parent().hide();
                $("#mailboxTwoFactorAddress").parent().parent().show();
            }
        }

        function ScrollTo()
        {
            if (window.location.hash!='')
            {
                $(document).scrollTop($("#_" + window.location.hash.substring(1)).offset().top); 
            }  
        }

    </script>
</head>
<body class="options_background" onhashchange="ScrollTo();" onload="PageLoad();" style="-ms-scroll-chaining:none;">
<%=MailEnable.WebRequest.GetFacebookLibrary(MailEnable.StoreUtilities.GetAccountFromHostName(Request.ServerVariables("SERVER_NAME")))%>
<%If ShowFacebookLogin() Then%>
<script>

    function RevokeToken() {
        $.ajax({ // make an AJAX request
            type: "POST",
            url: getAppServletURL() + '?Cmd=TOKEN-REVOKE&Format=JSON&ts=' + (new Date()).getTime() + '&ME_VALIDATIONTOKEN=' + getTopAppWindow().g_opt['ME_VALIDATIONTOKEN'], //&ME_SID=" + readCookie('MailEnable-SessionId') 
            data: '',
            contentType: "text/xml",
            cache: false,
            async: false,
            error: function (jqXHR, sTextstatus, sErrorThrown) { alert('error:' + jqXHR.responseText); },
            complete: function (jqXHR, sTextstatus) {  },
            success: function (data) {
                UpdateBindingStatus(0);
                alert('Access to Facebook credentials revoked');
            }
        });
    }

    function GrantToken(UserId, AccessToken, ExpiresIn) {
        var bResult = false;
        $.ajax({ // make an AJAX request
            type: "POST",
            url: getAppServletURL() + '?Cmd=TOKEN-GRANT&AuthId=' + UserId + '&Token=' + AccessToken + '&ExpiresIn=' + ExpiresIn + '&Format=JSON&ts=' + (new Date()).getTime() + '&ME_VALIDATIONTOKEN=' + getTopAppWindow().g_opt['ME_VALIDATIONTOKEN'], //&ME_SID=" + readCookie('MailEnable-SessionId') 
            data: SerializeTokenData(UserId, AccessToken, ExpiresIn, '<%=GetFaceBookAppId()%>', 'Facebook', ''),
            contentType: "text/xml",
            cache: false,
            async: false,
            error: function (jqXHR, sTextstatus, sErrorThrown) { alert('error:' + jqXHR.responseText); return false; },
            complete: function (jqXHR, sTextstatus) {  },
            success: function (data) {
                //bResult = $(data).find('RETURNVALUE').text() == '1';
                UpdateBindingStatus(1);
                bResult = true;
            }
        });
        return bResult;
    }

    function GetStatusText(lCurrentStatus) {
        var sStatusText;
        switch (lCurrentStatus) {
            case 1:
                {
                    sStatusText = t_('[ME_TXT-LoginActive]');
                    break;
                }
            case 2: 
                {
                    sStatusText = t_('[ME_TXT-LoginInActive]');
                    break;
                }
            default: 
                {
                    sStatusText = t_('[ME_TXT-LoginInActive]');
                    break;
                }
        }
        return sStatusText; 
    }

    function UpdateBindingStatus(lAccessTokenBindingStatus) {
        if (lAccessTokenBindingStatus == 1) {
            $('#btnRevoke').show();
        }
        else {
            $('#btnRevoke').hide();
        }
        var sStatus = GetStatusText(lAccessTokenBindingStatus);
        $('#dvBindingStatus').text(sStatus);
    }

    function statusChangeCallback(response) {
        if (response.status === 'connected') {
            // Logged into your app and Facebook.
            if (GrantToken(response.authResponse.userID, response.authResponse.accessToken, response.authResponse.expiresIn)) {
                alert('You can now login to this mail account via Facebook');
            }
            else {
                alert('Unable to grant Facebook access to this account.');
            }
        } else if (response.status === 'not_authorized') {
            alert('Unable to authorize access to the Facebook application.');
        } else {
            alert('Please log into Facebook before attempting to authorize this application.');
        }
    }

    function doFBLogin(event) {
        event = event || window.event;
        if (event != undefined) {
            if (event.preventDefault) {
                event.stopPropagation();
                event.preventDefault();
            }
            else {
                event.cancelBubble = true;
                event.returnValue = false;
            }
        }
        FB.getLoginStatus(function (response) {
            statusChangeCallback(response);
        });
        return false;
    }

    function doRevokeToken(event) {
        event = event || window.event;
        if (event != undefined) {
            if (event.preventDefault) {
                event.stopPropagation();
                event.preventDefault();
            }
            else {
                event.cancelBubble = true;
                event.returnValue = false;
            }
        }
        RevokeToken();
        return false;
    }

    $(document).ready(function () {
        UpdateBindingStatus(lAccessTokenBindingStatus);
    });


</script>
<%End If%>

  <div class="level0_shell options">    
    <div id="options_shell_js">
        <div class="options_shell_inner">
            <form id="passform" runat="server"><%WriteFormValidationField()%>
            <!-- Login -->
            <a id="_Login"></a>
            <div id="LoginSection">
                <uc2:uscPageBorder_Start ID="LoginFrameHeader" runat="server" HasHelp="True" HelpTopic="Login"></uc2:uscPageBorder_Start>
                <div class="optionsPanel_body_shell">
                    <!-- Feedback -->
                    <asp:Label id="LoginFeedback" CssClass="options_feedback" runat="server"/>
                    <div id="ChangePassword">
                    </div>
                </div><!-- optionsPanel_body_shell -->
                <uc3:uscPageBorder_End ID="LoginFrameFooter" runat="server"></uc3:uscPageBorder_End>
            </div> <!-- LoginSection -->
            <!-- Two Factor Stuff -->
            <%If AllowTwoFactorAuthentication() Then%>
                <uc2:uscPageBorder_Start ID="TwoFactorFrameHeader" runat="server" HasHelp="True" HelpTopic="Login"></uc2:uscPageBorder_Start>
                <div class="optionsPanel_body_shell">
                    <table class="options_form_table" border="0" cellspacing="0" cellpadding="0">
                    <tr><td class="options_form_table_label"><div class="options_form_label">Challenge:</div></td><td><%=RenderSetting("mailboxTwoFactorModel", Params,False)%></td></tr>
                    <tr><td class="options_form_table_label"><div class="options_form_label">Type:</div></td><td><%=RenderSetting("mailboxTwoFactorAddressType", Params, False)%></td></tr>
                    <tr><td class="options_form_table_label"><div class="options_form_label">Address:</div></td><td><%=RenderSetting("mailboxTwoFactorAddress", Params, False)%></td></tr>
                    <tr><td class="options_form_table_label"><div class="options_form_label">QR Code:</div></td><td><%=RenderSetting("mailboxTwoFactorQRCode", Params, False)%></td></tr>                    
                    </table>
                </div><!-- optionsPanel_body_shell -->
                <uc3:uscPageBorder_End ID="TwoFactorFrameFooter" runat="server"></uc3:uscPageBorder_End>
            <%End If %>
            <!-- End Two Factor Stuff -->
            <!-- Facebook Stuff -->
            <%If ShowFacebookLogin() Then %>
                <uc2:uscPageBorder_Start ID="FacebookFrameHeader" runat="server" HasHelp="True" HelpTopic="Login"></uc2:uscPageBorder_Start>
                <div class="optionsPanel_body_shell">
                    <table class="options_form_table" border="0" cellspacing="0" cellpadding="0">                    
                    <tr id="trStatus" class="options_form_table_label"><td class="options_form_table_label"><%=uscToken.GetText("[ME_TXT-Status]")%>:</td>
                    <td><div class="options_form_description" style="margin-left:10px" id="dvBindingStatus"></div></td></tr>
                    <tr><td colspan="2" style="padding-bottom:5px;text-align:right"><button id="btnRevoke" onclick="doRevokeToken(event);"><%=uscToken.GetText("[ME_TXT-Remove]")%></button></td></tr>
                    <tr id="trConnect" class="options_form_table_label"><td class="options_form_table_label"><div><%=uscToken.GetText("[ME_TXT-Connect]")%>:</div>
                    </td><td>
                    <div style="margin-left:10px">
                    <fb:login-button size="large" onlogin="doFBLogin(event)"><%=uscToken.GetText("[ME_TXT-Connect]")%></fb:login-button>
                    </div>
                    </td></tr>
                    </table>

                    
                </div><!-- optionsPanel_body_shell -->
                <uc3:uscPageBorder_End ID="FacebookFrameFooter" runat="server"></uc3:uscPageBorder_End>
            <%End If %>
            </form>
        </div> <!-- options_shell_inner -->         
    </div> <!-- options_shell_js -->  
  </div> <!-- level0_shell options -->
</body>
</html>

Youez - 2016 - github.com/yon3zu
LinuXploit