| Server IP : 64.202.187.69 / Your IP : 216.73.216.192 Web Server : Apache System : Linux 69.187.202.64.host.secureserver.net 3.10.0-1160.144.1.el7.tuxcare.els6.x86_64 #1 SMP Fri May 29 16:22:24 UTC 2026 x86_64 User : transmarket ( 1001) PHP Version : 7.2.34 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/transmarket/translator/controllers/ |
Upload File : |
<?php
include 'connection.php';
$email = $_POST['email'];
$sql = 'SELECT * FROM tbl_translators WHERE email ="' . $email . '"';
$result = $mysqli->query($sql);
$login_id = '';
$first_name = '';
if ($result->num_rows > 0) {
while ($row = $result->fetch_object()) {
$login_id = $row->id;
$email = $row->email;
if($row->name != '') {
$first_name = " ".$row->name;
}
}
/* start mail user */
$key = uniqid(time().'-key',TRUE);
$sql1 = 'update `tbl_translators` set `reset_key` = "' . addslashes($key) . '" WHERE email = "' . $email. '"';
$result1 = $mysqli->query($sql1);
$link = $prefix . $dir . "confirm-password.php?id=" . $login_id . "&salt=" . $key;
$toEmail = $email;
$fromEmail = 'no-reply@translateme.market';
$subject = "Password reset - TranslateMe Market";
$headers = "MIME-Version: 1.0" . "\r\n";
$headers .= "Content-type:text/html;charset=UTF-8" . "\r\n";
$headers .= 'From: ' . $fromEmail . "\r\n";
$content = '';
$content .= '
<html>
<body>
<table border="0" cellpadding="0" cellspacing="0" height="100%" lang="en" style="min-width: 393px;" width="100%">
<tbody>
<tr height="32" style="height:32px">
<td></td>
</tr>
<tr align="center">
<td style="width:32px" width="32"></td>
<td>
<table border="0" cellpadding="0" cellspacing="0" style="max-width: 100%;">
<tbody>
<tr>
<td>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody>
<tr>
<td align="left"><img height="32" src="https://translator.translateme.market/images/logo.png" style="display:block;width:100px;height:100px" width="92" class="CToWUd"></td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr height="16"></tr>
<tr>
<td>
<table bgcolor="#2bbbad" border="0" cellpadding="0" cellspacing="0" style="min-width:332px;max-width:600px;border:1px solid #f0f0f0;border-bottom:0;border-top-left-radius:3px;border-top-right-radius:3px" width="100%">
<tbody>
<tr>
<td colspan="3" height="50" style="height:50px"></td>
</tr>
<tr>
<td style="width:32px" width="32"></td>
<td style="font-family:Roboto-Regular,Helvetica,Arial,sans-serif;font-size:24px;color:#ffffff;line-height:1.25;min-width:300px">'.$subject.'</td>
<td style="width:32px" width="32"></td>
</tr>
<tr>
<td colspan="3" height="18" style="height:18px"></td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td>
<table bgcolor="#FAFAFA" border="0" cellpadding="0" cellspacing="0" style="min-width:332px;max-width:600px;border:1px solid #f0f0f0;border-bottom:1px solid #c0c0c0;border-top:0;border-bottom-left-radius:3px;border-bottom-right-radius:3px" width="100%">
<tbody>
<tr height="16" style="height:16px">
<td rowspan="3" style="width:32px" width="32"></td>
<td></td>
<td rowspan="3" style="width:32px" width="32"></td>
</tr>
<tr>
<td>
<table border="0" cellpadding="0" cellspacing="0" style="min-width:300px">
<tbody>
<tr>
<td style="font-family:Roboto-Regular,Helvetica,Arial,sans-serif;font-size:13px;color:#202020;line-height:1.5;padding-bottom:4px">
Hi'. $first_name . ',
</td>
</tr>
<tr>
<td style="font-family:Roboto-Regular,Helvetica,Arial,sans-serif;font-size:13px;color:#202020;line-height:1.5;padding:4px 0">
<p>We recently received a request to recover the TranslateMe Market Account <a href="mailto:'.$email.'" target="_blank">'.$email.'</a>.</p>
<p>If you sent that request, please click on <a href="'.$link.'">this link</a> to set a new password. </p>
<p>However, if you did not make this request, you do not need to take any action. </p>
<p>(If you have resolved your issue, that is great! In that case, please feel free to ignore this email.)</p>
<p>Thank you for your patience.</p>
</td>
</tr>
<tr>
<td style="font-family:Roboto-Regular,Helvetica,Arial,sans-serif;font-size:13px;color:#202020;line-height:1.5;">
<p>The TranslateMe Market Team</p>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr height="32" style="height:32px"></tr>
</tbody>
</table>
</td>
</tr>
<tr height="16" style="height:16px"></tr>
<tr>
<td style="max-width:600px;font-family:Roboto-Regular,Helvetica,Arial,sans-serif;font-size:10px;color:#bcbcbc;line-height:1.5">
<table>
<tbody>
<tr>
<td>
<table style="font-family:Roboto-Regular,Helvetica,Arial,sans-serif;font-size:10px;color:#666666;line-height:18px;padding-bottom:10px">
<tbody>
<tr>
<td>This email can not receive replies. For more information.</td>
</tr>
<tr>
<td>© Copyright ' . date("Y") . ' TranslateMe Market</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</td>
<td style="width:32px" width="32"></td>
</tr>
<tr height="32" style="height:32px">
<td></td>
</tr>
</tbody>
</table>
</body>
</html>';
if(mail($toEmail, $subject, $content, $headers)) {
$results['status'] = 200;
$results['message'] = "We have sent you an email.";
}else{
$results['status'] = 300;
$results['message'] = "Something went wrong, please try again.";
}
/* end mail user */
}else{
$results['status'] = 300;
$results['message'] = "Email does not exists.";
}
echo json_encode($results);
?>