Tryag File Manager
Home
||
Turbo Force
||
B-F Config_Cpanel
Current Path :
/
home
/
ynormeco
/
.trash
/
admin
/
Or
Select Your Path :
Upload File :
New :
File
Dir
//home/ynormeco/.trash/admin/updatepass.php
<?php include("inc/config.php"); $conn=connect_db(); session_start(); $oldpass=$_POST['old']; $newpass=$_POST['new']; $conpass=$_POST['confirm']; $result1=mysqli_fetch_array(mysqli_query($conn,"select * from adminlog")); $pass=$result1['password']; if($pass==$oldpass) { if($newpass==$conpass){ $result=mysqli_query($conn,"update adminlog SET `password`='$newpass'"); if($result) { header("location:changepass.php?msg=successfully changed"); } } else { header("location:changepass.php?msg=Incorrect confirm password"); } } else{ header("location:changepass.php?msg=Incorrect old password"); } ?>