MOON
Server: Apache
System: Linux smtp.modiva.org 3.10.0-862.14.4.el7.x86_64 #1 SMP Wed Sep 26 15:12:11 UTC 2018 x86_64
User: rtbrisc (1005)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: /home/rtbrisc/public_html/admin/account/reset.php
<?php
session_start();
require_once('server/db.php');
$email = $_GET['email'];

$verify = mysqli_query($conn, "SELECT * FROM tbluser WHERE Username = '$email'");
if($row = mysqli_fetch_assoc($verify)){
?>
  <!DOCTYPE html>
  <html>
    <head>
      <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
      <meta charset="utf-8" />
      <title>QIS | Password Reset</title>
      <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
      <meta content="" name="description" />
      <meta content="" name="author" />
      <link rel="shortcut icon" href="img/favicon.png">
      <!-- BEGIN PLUGIN CSS -->
      <link href="../main/assets/plugins/pace/pace-theme-flash.css" rel="stylesheet" type="text/css" media="screen" />
      <link href="../main/assets/plugins/bootstrapv3/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
      <link href="../main/assets/plugins/bootstrapv3/css/bootstrap-theme.min.css" rel="stylesheet" type="text/css" />
      <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
      <link href="../main/assets/plugins/animate.min.css" rel="stylesheet" type="text/css" />
      <link href="../main/assets/plugins/jquery-scrollbar/jquery.scrollbar.css" rel="stylesheet" type="text/css" />
      <!-- END PLUGIN CSS -->
      <!-- BEGIN CORE CSS FRAMEWORK -->
      <link href="../main/webarch/css/webarch.css" rel="stylesheet" type="text/css" />
      <!-- END CORE CSS FRAMEWORK -->
    </head>
    <!-- END HEAD -->
    <!-- BEGIN BODY -->
    <body class="error-body no-top lazy" data-original="images/login.jpg" style="background-image: url('images/login.jpg')">
      <div class="container">
        <div class="row login-container animated fadeInUp">
          <div class="col-md-7 col-md-offset-2 tiles white no-padding">
            <div class="p-t-30 p-l-40 p-b-20 xs-p-t-10 xs-p-l-10 xs-p-b-10">
              <h2 class="normal">
                QUICK IT SUPPORT (QIS NIGERIA)
              </h2>
              <h4 class="normal">Reset Your Password?</h4>
              
            </div>
            <div class="tiles grey p-t-20 p-b-20 no-margin text-black tab-content">
              <div role="tabpanel" class="tab-pane active" id="tab_login">
                <span class="text-success"><?php echo @$_SESSION['res_suc']; ?></span>
                <?php
                  if(empty($_SESSION['res_suc'])){
                ?>
                <form class="animated fadeIn validate" id="" name="" action="server/reset.php" method="post">
                  <span class="text-danger"><?php echo @$_SESSION['res_err']; ?></span>
                  <input type="hidden" name="txtEmail" id="txtEmail" value="<?php echo $email; ?>">
                  <div class="row form-row m-l-20 m-r-20 xs-m-l-10 xs-m-r-10">
                    <div class="col-md-6">
                      <input class="form-control" id="txtPassword" name="txtPassword" placeholder="Enter New Password" type="password" autofocus required>
                    </div>
                    <div class="col-md-6">
                      <input class="form-control" id="txtConfirmPassword" name="txtConfirmPassword" placeholder="Confirm New Password" type="password" required>
                    </div>
                  </div>
                  <div class="row form-row m-l-20 m-r-20 xs-m-l-10 xs-m-r-10">
                    <div class="col-md-12">
                      <div class="">
                        <input type="submit" name="submit" class="btn btn-primary btn-cons" value="Reset Password" style="background-color: #C7100E;">
                      </div>
                    </div>
                  </div>
                </form>
                <?php 
                  }else{
                ?>
                  <a href="../" class="btn btn-primary btn-cons" style="background-color: #0A0;">Go To Portal Home</a>
                <?php
                  }
                ?>
              </div>
            </div>
          </div>
        </div>
      </div>
      <!-- END CONTAINER -->
      <script src="../main/assets/plugins/pace/pace.min.js" type="text/javascript"></script>
      <!-- BEGIN JS DEPENDECENCIES-->
      <script src="../main/assets/plugins/jquery/jquery-1.11.3.min.js" type="text/javascript"></script>
      <script src="../main/assets/plugins/bootstrapv3/js/bootstrap.min.js" type="text/javascript"></script>
      <script src="../main/assets/plugins/jquery-block-ui/jqueryblockui.min.js" type="text/javascript"></script>
      <script src="../main/assets/plugins/jquery-unveil/jquery.unveil.min.js" type="text/javascript"></script>
      <script src="../main/assets/plugins/jquery-scrollbar/jquery.scrollbar.min.js" type="text/javascript"></script>
      <script src="../main/assets/plugins/jquery-numberAnimate/jquery.animateNumbers.js" type="text/javascript"></script>
      <script src="../main/assets/plugins/jquery-validation/js/jquery.validate.min.js" type="text/javascript"></script>
      <script src="../main/assets/plugins/bootstrap-select2/select2.min.js" type="text/javascript"></script>
      <!-- END CORE JS DEPENDECENCIES-->
      <!-- BEGIN CORE TEMPLATE JS -->
      <script src="../main/webarch/js/webarch.js" type="text/javascript"></script>
      <script src="../main/assets/js/chat.js" type="text/javascript"></script>
      <!-- END CORE TEMPLATE JS -->
    </body>
    <?php
    unset($_SESSION['res_err']);
    unset($_SESSION['res_suc']);
    ?>
  </html>
<?php
}else{
  $_SESSION['problem'] = "Invalid Password Reset Link, Please Contact our customer care for more details";
  header("Location: error.php");
}
?>