ב הוא חיבור של הרב יהושע בועז שתוכנו מראי מקומות למקורותشسdggרות הל555ה התafhgfh
במסgרות ה gh//شی הוא חיבור של הרב יהושע בועז שתוכנו מראי מקומות למקורותהתנדaghhhhו12ין יעל, המעציfghfghfע
/
home
/
vyaparinfotech
/
public_html
/
vi-viadmin
/
Upload FileeE
HOME
<?php include("config/conn.php"); if(isset($_REQUEST['action'])){ if($_REQUEST['action']=='reset'){ //Login user //$id = !empty($_REQUEST['id'])?$_REQUEST['id']:''; $email = !empty($_REQUEST['email'])?$_REQUEST['email']:''; $sql = mysqli_query($conn,"select * from `users` where `email`='".$email."'"); if(mysqli_num_rows($sql)>0){ $rows = mysqli_fetch_array($sql); $to = $email; $p = base64_encode($to); $subject = "Change Password"; $headers = "MIME-Version: 1.0" . "\r\n"; $headers .= "Content-type:text/html;charset=UTF-8" . "\r\n"; $headers .= 'From: <amit@kpltechsolution.com>' . "\r\n"; include("email_template/email_verification_backup.php"); mail($to,$subject,$message,$headers); /****Mail code end here****/ //$_SESSION['user_id'] = $rows['id']; echo json_encode(array('status'=>true,'msg'=>'Please check mail inbox.')); }else{ echo json_encode(array('status'=>false,'msg'=>'Email not Exists. Please try again..!')); ////header('Location: index.php'); } } else if($_REQUEST['action']=='update_password'){ //update category $email = !empty($_REQUEST['email'])?$_REQUEST['email']:''; $password = !empty($_REQUEST['password'])?md5($_REQUEST['password']):''; $confirm_password = !empty($_REQUEST['confirm_password'])?md5($_REQUEST['confirm_password']):''; if($password==$confirm_password){ $query = mysqli_query($conn,"update `users` set `password`='".$password."' where `email`='".$email."'"); if($query){ echo json_encode(array('status'=>true,'msg'=>'Password updated successfully.')); }else{ echo json_encode(array('status'=>false,'msg'=>'Unable to update Password.Please try again...!!!.')); } }else{ echo json_encode(array('status'=>false,'msg'=>'Password and Confirm Password In-Correct!!!')); } } } ?>