Server IP : 162.240.98.243 / Your IP : 18.225.234.220 Web Server : Apache System : Linux server.bti.yaw.mybluehostin.me 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64 User : btiyawmy ( 1003) PHP Version : 7.2.34 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/btiyawmy/public_html/login.easenup.in/ |
Upload File : |
<?php session_start(); if(isset($_SESSION["adminid"])) { header("location:home.php"); } echo "<script>window.location='index.php';</script>"; ?> <!DOCTYPE html> <html> <head> <title>PHP Login with OTP Authentication</title> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <script src="http://code.jquery.com/jquery.js"></script> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"> </head> <body> <br /> <div class="container"> <br /> <?php if(isset($_GET["register"])) { if($_GET["register"] == 'success') { echo ' <h1 class="text-success">Your account will be activated in next 24 Hours. Please contact the admin if same is not activated within 24 hours. </h1> '; } } ?> </form> </div> </div> </div> </div> </div> <br /> <br /> </body> </html> <script> $(document).ready(function(){ $('#login_form').on('submit', function(event){ event.preventDefault(); var action = $('#action').val(); $.ajax({ url:"login_verify.php", method:"POST", data:$(this).serialize(), dataType:"json", beforeSend:function() { $('#next').attr('disabled', 'disabled'); }, success:function(data) { $('#next').attr('disabled', false); if(action == 'email') { if(data.error != '') { $('#user_email_error').text(data.error); } else { $('#user_email_error').text(''); $('#email_area').css('display', 'none'); $('#password_area').css('display', 'block'); } } else if(action == 'password') { if(data.error != '') { $('#user_password_error').text(data.error); } else { $('#user_password_error').text(''); $('#password_area').css('display', 'none'); $('#otp_area').css('display', 'block'); } } else { if(data.error != '') { $('#user_otp_error').text(data.error); } else { window.location.replace("home.php"); } } $('#action').val(data.next_action); } }) }); }); </script>