HEX
Server: Apache
System: Linux 185.122.168.184.host.secureserver.net 5.14.0-570.52.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Oct 15 06:39:08 EDT 2025 x86_64
User: barbeatleanalyti (1024)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: /home/barbeatleanalyti/public_html/api.beatleanalytics.com/getEmailPassword.php--
<?php

// array for JSON response
$response = array();
 
// include db connect class
require_once 'db_connect.php';
 ?>
 <!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">

<!-- jQuery library -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>

<!-- Latest compiled JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
 <?php
// connecting to db
$db = new DB_CONNECT(); 

// check for post data
if (isset($_GET["phoneno"],$_GET["emailid"])) {
 
 $phoneno = $_GET["phoneno"];
 $emailid = $_GET["emailid"];
$uname = "";
 $result = mysql_query("SELECT * FROM beatle_userlogin WHERE db_phone LIKE '$phoneno'")or die(mysql_error());

 if (!empty($result)) {
        // check for empty result
        if (mysql_num_rows($result) > 0) {
 
            $result = mysql_fetch_array($result);
            $uname = $result["db_username"];
        }
    } else {
        // no industry found
        $response["success"] = 0;
        $response["message"] = "No user found.";
 
        // echo no users JSON
        echo json_encode($response);
    }

$to = "gmp382024@gmail.com";
$subject = "Beatle Analytics";

$message = "
<html>
<head>
<title>Beatle Analytics</title>
</head>
<body>
<p>hello ".$uname."</p>
<p style='color:red;'>CREATING MEANINGFUL REPORTS AND ACCURATE DATA INTERPRETATION.<br>
Our product encompasses the latest technology to provide our clients the best of analysis and trouble shooting . Real time feedback opens whole new dimensions in data analysis and provides more authentic and accurate interpretations.</p>
<button id='myBtn'>submit</button>
</body>
</html>
<script>
document.getElementById('myBtn').onclick = function() {myFunction()};
function myFunction() {
    $.post('http://beatleanalytics.com/password_recovery.php',
    {
        name: 'Donald Duck'
        
    },
    function(data, status){
        alert('Data:' + data );
    });
}
</script>
";
echo $message;

// Always set content-type when sending HTML email
$headers = "MIME-Version: 1.0" . "\r\n";
$headers .= "Content-type:text/html;charset=UTF-8" . "\r\n";

// More headers
$headers .= 'From: <beatleanalytics.help@beatleanalytics.com>' . "\r\n";
//$headers .= 'Cc: myboss@example.com' . "\r\n";

/*$retval = mail($to,$subject,$message,$headers);

	if( $retval == true ) {
        echo "Message sent successfully...";
    }else {
        echo "Message could not be sent...";
    }*/
    
 }else{

 	    // no industry found
        $response["success"] = 0;
        $response["message"] = "Oops something wrong.";
 
        // echo no users JSON
        echo json_encode($response);
 }
?>