Şuanki Dizin: /home/wwwdreamtechnolo/www/b2bflight.com/B2BFlight/project/dashboard/auth/ |
Şuanki Dosya : /home/wwwdreamtechnolo/www/b2bflight.com/B2BFlight/project/dashboard/auth/agent-change-pass.php |
<?php require_once('../lib/functions.php'); $db = new class_functions(); $flag = 0; if(isset($_GET['logout'])) { unset($_SESSION['current_login_admin']); } else if(isset($_SESSION['current_login_admin'])) { $phone_number = $_SESSION['current_login_admin']; } $flag=0; $confirm_password_error = ""; $current_password_error = ""; if(isset($_POST['submit'])) { $old_pass = $_POST['old_pass']; $new_pass = $_POST['new_pass']; if($db->agent_update_password($new_pass,$old_pass)) { $flag = 1; } } ?> <!doctype html> <html lang="en" dir="ltr"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <title><?php echo $project_name; ?></title> <!-- Favicon --> <link rel="shortcut icon" href="../images/<?php echo $logo_1; ?>" /> <!-- Library / Plugin Css Build --> <link rel="stylesheet" href="../../assets/css/core/libs.min.css" /> <!-- Hope Ui Design System Css --> <link rel="stylesheet" href="../../assets/css/hope-ui.min.css?v=2.0.0" /> <!-- Custom Css --> <link rel="stylesheet" href="../../assets/css/custom.min.css?v=2.0.0" /> <!-- Dark Css --> <link rel="stylesheet" href="../../assets/css/dark.min.css"/> <!-- Customizer Css --> <link rel="stylesheet" href="../../assets/css/customizer.min.css" /> <!-- RTL Css --> <link rel="stylesheet" href="../../assets/css/rtl.min.css"/> <link rel="stylesheet" href="../style.css"/> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css"> </head> <body > <?php if($flag == 1) { ?> <div class="mb-3 alert alert-left alert-success alert-dismissible fade show" role="alert" style="width:80%; margin:auto; margin-top:25px;"> <span>Password Updated Successfully</span> <button type="button" class="btn-close btn-close-white" data-bs-dismiss="alert" aria-label="Close"></button> </div> <?php } ?> <style type="text/css"> .btn { border: none; } .btn:hover { background-color: #3a57e8;; } .cls { background-color: white; } </style> <section class="login-content" > <div class="row m-0 align-items-center bg-white vh-100" > <div class="col-md-6" style=" position: absolute;right: 450px;"> <div class="row justify-content-center"> <div class="col-md-10" style="border: 1px solid rgba(0,0,0,0.4); border-radius: 8px; box-shadow: 10px 10px 10px 10px solid rgba(0,0,0,0.4);"> <div class="card card-transparent shadow-none d-flex justify-content-center mb-0 auth-card"> <div class="card-body"> <center><img src="../images/<?php echo $logo; ?>" class="software_logo" /></center> <br /> <h2 class="mb-2 text-center">Change Password</h2> <form id="loginForm" action="<?php echo $_SERVER['PHP_SELF']; ?>" method="POST"> <div class="row"> <div class="col-lg-12"> <div class="form-group"> <label for="old_pass" class="form-label">Old Password</label> <div class="input-group"> <input type="password" name="old_pass" class="form-control" aria-describedby="old_pass" placeholder="Old Password"> <button type="button" class="btn btn-outline-secondary toggle-password" data-target="old_pass"> <i class="far fa-eye"></i> </button> </div> <?php echo $current_password_error; ?> </div> </div> <div class="col-lg-12"> <div class="form-group"> <label for="new_pass" class="form-label">New Password</label> <div class="input-group"> <input type="password" name="new_pass" class="form-control" aria-describedby="new_pass" placeholder="New Password"> <button type="button" class="btn btn-outline-secondary toggle-password" data-target="new_pass"> <i class="far fa-eye"></i> </button> </div> </div> </div> <div class="col-lg-12"> <div class="form-group"> <label for="confirmpassword" class="form-label">Confirm Password</label> <div class="input-group"> <input type="password" name="confirmpassword" class="form-control" id="otpInput" aria-describedby="confirmpassword" placeholder="Confirm Password" required> <button type="button" class="btn btn-outline-secondary toggle-password" data-target="confirmpassword"> <i class="far fa-eye"></i> </button> </div> <?php echo $confirm_password_error; ?> </div> </div> <div class="col-lg-12 d-flex justify-content-between"> <div class="form-check mb-3"> <input type="checkbox" class="form-check-input" id="customCheck1"> <label class="form-check-label" for="customCheck1">Remember Me</label> </div> </div> </div> <div class="d-flex justify-content-center" style="gap: 20px;"> <button type="submit" name="submit" class="btn btn-primary">Change Password</button> <a href="agent-signin.php">Sign In >></a> </div> </form> </div> </div> </div> </div> </div> </section> </div> <script> document.addEventListener('DOMContentLoaded', function() { const togglePasswordButtons = document.querySelectorAll('.toggle-password'); togglePasswordButtons.forEach(button => { button.addEventListener('click', function() { const targetId = this.getAttribute('data-target'); const targetInput = document.querySelector(`[name="${targetId}"]`); if (targetInput.type === 'password') { targetInput.type = 'text'; this.innerHTML = '<i class="far fa-eye-slash"></i>'; } else { targetInput.type = 'password'; this.innerHTML = '<i class="far fa-eye"></i>'; } }); }); }); </script> <!-- Library Bundle Script --> <script src="../../assets/js/core/libs.min.js"></script> <!-- External Library Bundle Script --> <script src="../../assets/js/core/external.min.js"></script> <!-- Widgetchart Script --> <script src="../../assets/js/charts/widgetcharts.js"></script> <!-- mapchart Script --> <script src="../../assets/js/charts/vectore-chart.js"></script> <script src="../../assets/js/charts/dashboard.js" ></script> <!-- fslightbox Script --> <script src="../../assets/js/plugins/fslightbox.js"></script> <!-- Settings Script --> <script src="../../assets/js/plugins/setting.js"></script> <!-- Slider-tab Script --> <script src="../../assets/js/plugins/slider-tabs.js"></script> <!-- Form Wizard Script --> <script src="../../assets/js/plugins/form-wizard.js"></script> <!-- AOS Animation Plugin--> <!-- App Script --> <script src="../../assets/js/hope-ui.js" defer></script> </body> </html>
Linux 65-254-81-4.cprapid.com 5.14.0-284.11.1.el9_2.x86_64 #1 SMP PREEMPT_DYNAMIC Tue May 9 05:49:00 EDT 2023 x86_64
Apache
65.254.81.4