Şuanki Dizin: /home/wwwdreamtechnolo/www/panel.atsevairag.com/old2/atse_admin_panel007/ |
Şuanki Dosya : /home/wwwdreamtechnolo/www/panel.atsevairag.com/old2/atse_admin_panel007/admin-change-password.php |
<?php ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(E_ALL); require_once("../lib/class/functions.php"); $db = new functions(); $current_page = ""; if(!isset($_SESSION['current_admn_email'])) { header("Location:/atse_admin_panel007/index.php"); } $current_login_email = $_SESSION['current_admn_email']; $current_pwd_error = ""; $new_pwd_error = ""; $conf_pwd_error = ""; $success_msg = 0; $flag = 0; if(isset($_POST['change_password'])) { $current_pwd = $_POST['current_password']; $new_pwd = $_POST['new_password']; $conf_pwd = $_POST['conf_new_password']; if($current_pwd=="") { $current_pwd_error = "सध्याचा पासवर्ड लिहा"; $flag = 1; } if($new_pwd=="") { $new_pwd_error = "नवीन पासवर्ड लिहा"; $flag = 1; } else if($conf_pwd!=$new_pwd) { $conf_pwd_error = "नवीन पासवर्ड आणि पुन्हा लिहलेला पासवर्ड सारखाच लिहा"; $flag = 1; } if($flag==0) { $got_password = ""; if($_SESSION['current_login_user_type']=="admin") { $got_password = $db->get_admin_password($current_login_email); } else if($_SESSION['current_login_user_type']=="teacher") { $got_password = $db->get_teacher_password($current_login_email); } else if($_SESSION['current_login_user_type']=="Pratinidhi") { $got_password = $db->get_pratinidhi_password($current_login_email); } else if($_SESSION['current_login_user_type']=="staff") { $got_password = $db->get_staff_member_password($current_login_email); } if($got_password!="") { if($current_pwd==$got_password) { if($new_pwd==$conf_pwd) { if($_SESSION['current_login_user_type']=="admin") { if($db->set_new_admin_password($new_pwd,$current_login_email)) { $success_msg = 1; } } else if($_SESSION['current_login_user_type']=="teacher") { if($db->set_new_teacher_password($new_pwd,$current_login_email)) { $success_msg = 1; } } else if($_SESSION['current_login_user_type']=="Pratinidhi") { if($db->set_new_pratinidhi_password($new_pwd,$current_login_email)) { $success_msg = 1; } } else if($_SESSION['current_login_user_type']=="staff") { if($db->set_new_staff_password($new_pwd,$current_login_email)) { $success_msg = 1; } } } } else { $current_pwd_error = "Incorrect current password"; } } } } ?> <html> <head> <meta charset="UTF-8"> <title>ATSE Vairag</title> <link rel="stylesheet" type="text/css" href="../css/stylesheet.css" /> <script type="text/javascript" src="/js/jquery-1.9.1.min.js"></script> <script type="text/javascript" src="/js/site.js"></script> </head> <body> <?php require_once('header.php'); ?> <div style="min-height:570px;"> <div class="admin-mid-section"> <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="POST"> <br /> <center><strong>पासवर्ड बदला</strong></center> <hr /> <div class="add_centre_container"> <br /> <?php if($success_msg=="1") { ?> <div class="add_centre_success"> नवीन पासवर्ड बदल केला आहे. </div> <?php } ?> <br /> <input type="password" name="current_password" class="input_txt" placeholder="सध्याचा पासवर्ड लिहा" style="width:400px;" /> <label class="error_indicator" style="margin-left:10px;"><?php echo $current_pwd_error; ?></label> <input type="password" name="new_password" class="input_txt" placeholder="नवीन पासवर्ड लिहा" style="width:400px;" /> <label class="error_indicator" style="margin-left:10px;"><?php echo $new_pwd_error; ?></label> <input type="password" name="conf_new_password" class="input_txt" placeholder="पासवर्ड पुन्हा लिहा" style="width:400px;" /> <label class="error_indicator" style="width:300px; margin-left:10px;"><?php echo $conf_pwd_error; ?></label> <br /><br /> <center><input type="submit" name="change_password" value="पासवर्ड बदला" class="reg_btn_form" style="width:160px;" /></center> </div> </form> <br /> </div> </div> <?php require_once('footer.php'); ?> </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