MMCT TEAM
Server IP : 162.214.80.37  /  Your IP : 216.73.216.83
Web Server : Apache
System : Linux sh013.webhostingservices.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
User : imyrqtmy ( 2189)
PHP Version : 8.2.18
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0750) :  /home2/imyrqtmy/public_html/leadriding/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home2/imyrqtmy/public_html/leadriding/frpass.php
<?php

   session_start();

//
include 'Admin/Includes/db.php';


   extract($_POST);

        $user = "SELECT * FROM `tbl_vendore` WHERE email = '$email'";

        $user_r = mysqli_query($con,$user);

        $rows = mysqli_num_rows($user_r);
       
    //   exit;

        if($rows>0)

        {

            $row = mysqli_fetch_array($user_r);

            $password = $row['password'];
            $cname = $row['cname'];

            $_SESSION['flash_message'] = 'userlogin';

                    
                        
                                  
                                  $html_message  =   '<p>Hello '. $cname .' , Your Password is '. $password .'  </p>';
                                  $html_message  .=   '<p>Thanks  </p>';
                                  $html_message  .=   '<p>LeadRiding Media Pvt. Ltd  </p>';
                                  




          
                $to =$email ;
                 $subject = "Forgotpassword Mail";
                //  $header = "From:$email \r\n";
                 $header = "MIME-Version: 1.0\r\n";
                 $header .= "Content-type: text/html\r\n";
                 
                 $retval = mail ($to,$subject,$html_message,$header);
                 
                //  if( $retval == true ) {
                //      echo 'kl';
                //  }
                //  else
                //  {
                //      echo 'l';
                     
                //  }

         echo "<script>;
        alert('Your password is sent in your mail id plz check');
								window.location.href='index.php';
								</script>";



        }else{

          // echo "<script>alert('User not found. Please try again!');</script>";

           $_SESSION['flash_message'] = 'usernotlogin';

          echo "<script>window.location.href='login.php';</script>";

        }

    

?>

MMCT - 2023