| Server IP : 3.111.61.48 / Your IP : 216.73.216.67 Web Server : Apache System : Linux ip-10-0-5-176 6.8.0-1057-aws #60~22.04.1-Ubuntu SMP Wed May 27 08:16:59 UTC 2026 x86_64 User : ubuntu ( 1000) PHP Version : 8.2.31 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /var/www/vhost/arukustech.com/wp-content/themes/arukus/ |
Upload File : |
<?php
//get_header();
define('WP_USE_THEMES', false);
$path = preg_replace( '/wp-content.*$/', '', __DIR__ );
require_once( $path . 'wp-load.php' );
//require("mailer/PHPMailer-master/src/PHPMailer.php");
//require("mailer/PHPMailer-master/src/SMTP.php");
// Assuming you have the user input stored in a variable called $user_input
$user_input = $_POST['otpText']; // Replace 'user_input' with the actual name of your input field
// Prepare the user input for the database query
$user_input = sanitize_text_field($user_input); // Sanitize the input to prevent SQL injection
$yourEmail = $_POST['userEmail'];
$yourFullName = $_POST['yourFullName'];
$yourPhNumber = $_POST['yourPhNumber'];
global $wpdb;
$post_title = $yourEmail; // Replace with the actual post title you want to search
$smtpHost = 'email-smtp.ap-south-1.amazonaws.com';
$smtpUsername = 'AKIAYOTEITKZEDBWNLUZ';
$smtpPassword = 'BE9WW5YpIcb+XU11fC/oWlMxJuA4UFuUXLY9NM+k6K+o';
$smtpPort = 587; // Change the port if necessary
// Compose the email message
$subject = 'Thank You for Downloading the Arukus Technologies Brochure!';
// $message = "Hello,\n\n";
// $message .= "Thank you for your interest in our demo. Here is your verification code: $verificationCode\n\n";
// $message .= "Best regards,\n Arukus Technology";
// Send the email
//require_once 'PHPMailerAutoload.php';
$clientmail = new PHPMailer\PHPMailer\PHPMailer();
$clientmail->IsSMTP(); // enable SMTP
$clientmail->IsHTML(true);
$clientmail->SMTPDebug = 0; // debugging: 1 = errors and messages, 2 = messages only
//$mail = new PHPMailer;
//$mail->isSMTP();
//$mail->SMTPSecure = 'ssl';
$clientmail->Host = $smtpHost;
$clientmail->SMTPAuth = true;
$clientmail->Username = $smtpUsername;
$clientmail->Password = $smtpPassword;
$clientmail->SMTPSecure = 'tls';
$clientmail->Port = $smtpPort;
//$mail->setFrom($smtpUsername);
//$mail->addAddress($email);
$clientmail->SetFrom('no-reply@arukustech.com', 'Arukus Technogies');
$clientmail->FromName = "Arukus Technologies";
$clientmail->AddAddress($yourEmail);
$clientmail->Subject = $subject;
$clientmail->Body = '<html lang=en><meta charset=utf-8><title>Arukus Technologies</title><link href=https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.0/css/all.min.css rel=stylesheet><style>html{width:100%;margin:0;padding:0}body{-webkit-text-size-adjust:none;-ms-text-size-adjust:none;margin:0;padding:0;-webkit-font-smoothing:antialiased}table{border-spacing:0}img{display:block!important;outline:0;text-decoration:none;-ms-interpolation-mode:bicubic;border:none;height:auto;line-height:100%}img.image-inline{display:inline-block!important}p{padding:0;margin:0}br{line-height:0!important}a,b,div,em,i,li,p,span,strong,td{-webkit-text-size-adjust:none}table td,table tr{border-collapse:collapse}table{border-collapse:collapse;mso-table-lspace:0;mso-table-rspace:0}@media screen and (max-width:100%){table[class=table-wrappper]{width:100%!important}td[class=content-left-gap]{width:5%!important}table[class=content-table],td[class=content-table]{width:100%!important}td[class=banner-image] img{width:100%!important}table[class=main-table-wrappper]{width:100%!important}td[class=gap-01]{height:15px!important}td[class=space-01]{width:15px!important}table[class=table-wrappper] .heading01{font-size:20px!important}table[class=table-wrappper] .text01{font-size:14px!important;margin-bottom:24px!important}table[class=table-wrappper] .heading02{font-size:24px!important}td[class=content-border]{height:25px!important}table[class=table-wrappper] .heading03{font-size:18px!important}table[class=table-wrappper] .email-link{display:block!important;margin:10px 0!important}}@media screen and (max-width:420px){table[class=brand]{width:100%!important;text-align:left!important}table[class=website-btn]{width:100%!important;text-align:left!important}table[class=website-btn-tbl]{width:130px!important}}</style><body style=background-color:#d7d7d7><table align=left cellpadding=0 cellspacing=0 style="width:100%;border-left:15px solid #d7d7d7;border-right:15px solid #d7d7d7"bgcolor=#d7d7d7><tr><td height=28 class=gap-01><tr><td class=main-td><table align=left cellpadding=0 cellspacing=0 class=main-table-wrappper style=width:800px bgcolor=#ffffff><tr><td><table align=left cellpadding=0 cellspacing=0 class=table-wrappper style=width:800px><tr><td height=15 colspan=4><tr><td width=20><td align=left valign=top><table align=left cellpadding=0 cellspacing=0 class=brand style=width:109px><tr><td align=left><a href=https://arukustech.com/ style=border:none;padding:0;text-decoration:none;border:none;cursor:pointer><img alt=Arukus Technologies height=39 src=https://arukustech.com/wp-content/uploads/2023/07/logo-web.jpg style=border:none title=Arukus Technologies width=150></a></table><td align=right style=padding-top:9px valign=top><table align=right cellpadding=0 cellspacing=0 class=website-btn style=width:130px width=130><tr><td height=1 class=gap-01><tr><td align=right><table align=right cellpadding=0 cellspacing=0 class=website-btn-tbl width=100%><tr><td align=right style=height:35px><a href=https://arukustech.com/ style=color:#fff;border-radius:4px;background-color:#eb553c;font-family:Verdana,Geneva,Tahoma,sans-serif;font-size:14px;width:108px;height:15px;display:block;text-align:left;text-decoration:none;padding:10px;cursor:pointer;line-height:15px>Visit Website</a></table></table><td width=20><tr><td height=15 colspan=4></table><tr><td class=banner-image><a href=# style=border:none;padding:0;text-decoration:none;border:none;cursor:pointer><img alt=Banner height=175 src=https://arukustech.com/wp-content/uploads/2023/07/mail_banner.png style=border:none; box-sizing:border-box; title=Banner width=800></a><tr><td height=25 class=gap-01><tr><td><table align=left cellpadding=0 cellspacing=0 class=table-wrappper style=width:800px><tr><td class=content-left-gap width=25><td><table align=left cellpadding=0 cellspacing=0 class=content-table style=width:100%><tr><td align=left><p style="margin:0 0 28px;font-family:Verdana,Geneva,Tahoma,sans-serif;font-size:13px;color:#293a47"class=text01><p style="margin:0 0 28px;font-family:Verdana,Geneva,Tahoma,sans-serif;font-size:13px;color:#293a47">Dear '.$yourFullName.',<br><br>Thank you for your interest in Arukus Technologies and for taking the time to download our brochure. We appreciate your trust in our solutons and are thrilled to provide you with valuable insights into how our technology can empower your financial institutions.<br><br>Our team at Arukus Technologies is dedicated to revolutonizing the operations of Microfinance Institutions (MFIs) and Non-Banking Financial Companies (NBFCs) through innovative solutions. We believe that with the right technology in place, financial institutions can achieve greater efficiency, enhanced risk management, and sustainable growth.<br><br> The downloaded brochure will provide you with a comprehensive overview of our product suite, which includes our Loan Origination System, Cross-Sell Application, Enterprise Risk Management, Collection Management System, Expense Management System, Field Track-O, Internal Audit & Compliance Management System, and Fraud Management System. Each solution is meticulously designed to address the unique challenges faced by MFIs and NBFCs, helping them streamline operations, achieve sales and collection targets, manage expenses, and remain compliant.<br><br> We hope the brochure offers valuable insights into how our solutions can support your institutions goals. Should you have any further questions or require additional information, please do not hesitate to reach out to our team. We are here to assist you and provide the necessary guidance to help you make informed decisions for your institution.<br><br> Thank you for choosing Arukus Technologies!<br><br> Best regards,<br>Arukus Technologies<tr><td height=38 class=content-border style="border-top:1px solid #cfcece"><tr><td align=center><p style="margin:0 0 6px;font-family:Verdana,Geneva,Tahoma,sans-serif;font-size:22px;color:#293a47;font-weight:700"class=heading03>Get connected with us!<p style="margin:0 0 10px;font-family:Verdana,Geneva,Tahoma,sans-serif;font-size:14px;color:#293a47"class=text01><a href=mailto:info@arukustech.com style=color:#293a47;text-decoration:none;margin-right:20px class=email-link><i class="fa-solid fa-envelope"></i> info@arukustech.com</a><a href="tel:(033) 4808-9668"style=font-family:Verdana,Geneva,Tahoma,sans-serif;font-size:12px;color:#293a47;text-decoration:none><i class="fa-solid fa-phone-volume"></i> (033) 4808-9668</a><tr><td height=20><tr><td align=center><p style=margin:0;font-family:Verdana,Geneva,Tahoma,sans-serif;font-size:12px;color:#293a47>© Copyright '.date("Y").'. All Rights Reserved.<tr><td height=20></table><td class=content-left-gap width=25></table><tr><td height=9 bgcolor=#293a47></table><tr><td height=28 class=gap-01></table>';
//die('1234');
//var_dump($mail);
$myposts = $wpdb->get_results(
$wpdb->prepare(
"SELECT *
FROM $wpdb->posts
WHERE post_title LIKE %s
AND post_content LIKE %s
ORDER BY post_date DESC
LIMIT 1",
'%' . $wpdb->esc_like( $userEmail ) . '%',
'%' . $wpdb->esc_like( $user_input ) . '%'
)
);
if ($myposts) {
if ($clientmail) {
if($clientmail->Send()) {
echo json_encode(array('status' => 'success'));
}
else {
// Return an error message if the email fails to send
echo json_encode(array('error' => 'Email sending failed.'));
echo 'Oops! Something went wrong. Please try again later.';
}
} else {
// Handle email sending failure
echo json_encode(array('error' => 'Email sending failed.'));
echo 'Oops! Something went wrong. Please try again later.';
}
// Post content found, do something with $result
} else {
// No post content found
//echo 'Post not found.';
echo json_encode(array('error' => 'Incorrect OTP'));
}
?>
<?php /* ?>$query = new WP_Query($args);
// Check if any posts match the query
if ($query->have_posts()) {
// The input value matches at least one 'downloaded-brochure' post content
while ($query->have_posts()) {
$query->the_post();
// Do something with the matching post
$post_title = get_the_title(); // Get the post title
$post_content = get_the_content(); // Get the post content
// Output or process the matching post data as needed
echo json_encode(array('status' => 'success'));
}
} else {
// No posts matched the query
// Handle the case where there are no matches
echo json_encode(array('error' => 'failour'));
}
// Restore the original post data
wp_reset_postdata();<?php */ ?>