CasperSecurity

Current Path : /var/www/uim.org.in/admin/
Upload File :
Current File : /var/www/uim.org.in/admin/manage_password.php

<?php
include('../includes/connection.php');
session_start();
if (isset($_SESSION['doctor_id'])):
    header("location:doctor_dashboard.php");
endif;
$stage=$connect->real_escape_string($_POST['stage']);
if ($stage == 2) {

$otp=$connect->real_escape_string($_POST['otp']);

$sql = "SELECT * FROM doctor_register WHERE forget_otp='$otp'";
$res=db_query($sql);
$row=$res->fetch_assoc();
$n_otp=$row['forget_otp'];
if($otp != $n_otp){
  $msg = "Please Enter A Valid OTP";

    setcookie("msg", $msg, time() + 3);

    print "<script>";

    print "self.location = 'manage_password.php';";

    print "</script>";

    exit;
}else{
  header("location:password.php?otp=$n_otp");
}
}


?>

<html lang="en">

<head>

<title>labbsvar Doctor Panel</title>

<?php include("css.php"); ?>

</head>

<body class="jumbo-page">

<main class="admin-main  ">

    <div class="container-fluid">

        <div class="row ">

            <div class="col-lg-4  bg-white">

                <div class="row align-items-center m-h-100">
                    
                    <div class="mx-auto col-md-8">
                        <?php if ($_COOKIE['msg']) { ?>

  <div class="alert alert-danger" style="color:red;">
    <strong></strong> <?php print str_replace("+", " ", $_COOKIE['msg']); ?>
  </div>
        


      <?php } ?>
                        <?php include("admin_logo.php"); ?>

                        <h3 class="text-center p-b-20 fw-400">OTP</h3>

						
                        <form class="mt-15" id="login" method="post" >
              <input type="hidden" name="stage" value="2">
                <div class="form-row">                 

                  <div class="form-group floating-label col-md-12">
               
                            <label>Email</label>
<input type="text" name="otp" class="form-control" placeholder="Enter OTP" required="required" autocomplete="off"/>
   
                      </div>
                        <div class="form-group floating-label col-md-12">
                        
                         
                            <button type="submit" class="btn btn-primary btn-block btn-lg">Reset</button>

                      
                    </div>                    

                    

                </div>

            </form>

                    </div>

                </div>

            </div>

            <div class="col-lg-8 d-none d-md-block bg-cover" style="background-image: url('assets/img/login.svg');"></div>

        </div>

    </div>

</main>

<?php include("js.php");

// $sitekey='6Ld5ZLQaAAAAAIGP6e8mtfGBkyZvh-z1IhASP_Tr';

 ?>

<script src="https://www.google.com/recaptcha/api.js?render=<?php print $sitekey; ?>"></script>

<script>

grecaptcha.ready(function () {

	grecaptcha.execute('<?php print $sitekey; ?>',{action:'doctor_login.php'}).then(function(token){

		var recaptchaResponse = document.getElementById('recaptchaResponse');

		recaptchaResponse.value = token;

	});

});

</script>





</body>

</html>
Hacker Blog, Shell İndir, Sql İnjection, XSS Attacks, LFI Attacks, Social Hacking, Exploit Bot, Proxy Tools, Web Shell, PHP Shell, Alfa Shell İndir, Hacking Training Set, DDoS Script, Denial Of Service, Botnet, RFI Attacks, Encryption
Telegram @BIBIL_0DAY