Файловый менеджер - Редактировать - /home/d46091/efoodlicence.com/thanks.php
Назад
<?php require 'vendor/autoload.php'; use PHPMailer\PHPMailer\PHPMailer; use PHPMailer\PHPMailer\Exception; if(isset($_POST['test'])) { include_once('./config-test.php'); if($_POST['option-selected']=='Yes The Client Has Choosen To Upload The Required Documents Now') { $cid = $_POST['cid']; $optSelected = urlencode($_POST['option-selected']); $formId = $_POST['payment_id']; $pageUrls = $_POST['pageUrl']; $pageUrl = $pageUrls; $current_url ='foodlicenceapply.com'; $ch = curl_init('https://crm2.techlounge.co.in/api/msme-upload-document-status.php?formId='.$formId.'&website='.$current_url.'&optSelected='.$optSelected.''); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $response = curl_exec ($ch); curl_close($ch); $response; if($response == ',,,,,'){ $ch = curl_init('https://crm2.techlounge.co.in/api/msme-upload-document-status.php?formId='.$formId.'&website='.$current_url.'&optSelected='.$optSelected.''); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $response = curl_exec ($ch); curl_close($ch); $response; } $array=explode(',',$response); header('Location:'.$pageUrl.''); exit; }else { $sql_select_msme ="SELECT *FROM fssai WHERE payment_id = '".$_POST['payment_id']."';"; $result_msme = $conn->query($sql_select_msme); $row = $result_msme->fetch_assoc(); $cid = $_POST['cid']; $optSelected = urlencode($_POST['option-selected']); $formId = $_POST['payment_id']; $pageUrls = $_POST['pageUrl']; $pageUrl = $pageUrls; $current_url ='foodlicenceapply.com'; $ch = curl_init('https://crm2.techlounge.co.in/api/msme-upload-document-status.php?formId='.$formId.'&website='.$current_url.'&optSelected='.$optSelected.''); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $response = curl_exec ($ch); curl_close($ch); $response; if($response == ',,,,,'){ $ch = curl_init('https://crm2.techlounge.co.in/api/msme-upload-document-status.php?formId='.$formId.'&website='.$current_url.'&optSelected='.$optSelected.''); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $response = curl_exec ($ch); curl_close($ch); $response; } $array=explode(',',$response); $mail = new PHPMailer(true); try { $mail->isSMTP(); $mail->Host = 'foodlicenceapply.com'; $mail->SMTPAuth = true; $mail->Username = 'no-reply@foodlicenceapply.com'; $mail->Password = 'freeDOM@611#'; $mail->SMTPSecure = 'tls'; $mail->Port = 587; $mail->setFrom("no-reply@foodlicenceapply.com", "FSSAI"); $mail->addAddress("".$row['email_id'].""); $mail->isHTML(true); $mail->Subject = "UPLOAD DOCUMENTS"; $mail->Body = '<div style="width:100%;margin:0;padding:0;float:left; font-family:sans-serif;letter-spacing: 0.5px;background:#ddd;"> <div style="width:80%;margin:auto;background:#fff;"> <div style="width:100%;float:left;margin:auto;background: #fff;padding:20px 0px 0px;text-align: center"> <img src="https://foodlicenceapply.com/assets/images/fssai-logo.png" alt="FSSAI REGISTRATION" style="height:80px;"> <span style="display:block;color: #fff; font-size:24px;font-weight:700;background-image:linear-gradient(#00246b,#00246b 50%);padding:10px 0px;">FSSAI DOCUMENTATION LINK</span><hr style="width:80%;"> </div> <div style="width:100%;float:left;margin:auto;background: #fff;padding:0px 0px 10px;text-align: center"> <div class="box" style="border-left:8px solid #00246b; background-color:#cadcfc;margin:40px 35px;padding:10px 0px"> <span style="display:block;font-size:17px;font-weight:400;font-family:sans-serif;color:#000;text-align :left">Dear Sir, <br> This mail is in reference to the FSSAI Registration / Licence application submitted by you. <br><br> While Submitting your application, You requeted to send Document Submission Link on your email. We request you to Click on the Link below & Upload Your Documents As Soon As Possible. <br><br> Delay in submission of documents will lead to delay in processing of your application. We request you once again to submit documents at the earliest. </span> </div> </div> <div style="width:100%;float:left;margin:auto;background: #fff;padding:0px 0px 50px;text-align: center"> <button type="submit" style="padding:10px 20px 10px 20px;background-color:#00246b;border-radius:10px;border:1px solid #00246b;box-shadow:2px 2px 2px grey;"><a href="'.$pageUrl.'" style="text-decoration:none;color:#fff;font-size:15px;">Click Here To Upload Documentation</a></button> <br> <p style="text-align:center">Alternatively you can whatsapp your documents on +91-6200012753</p> </div> <div style="width:100%; background:#cadcfc;float:left;margin:auto;padding:40px 0px 10px;"> <table width="80%" style="background:none; margin:auto; border-collapse:collapse;padding:0px;border-radius:5px;"> <tbody> <tr> <td> <div style="width:90%;margin:auto;"> <h3 style="color:#f94d00;font-size:18px;">Your order details are as follows :</h3> </div> </td> </tr> <tr> <td style="padding:10px 0px;"> <div style="width:90%;margin:auto;"> <div style="width:30%;float:left;"> <b style="color:#343a40;font-size:16px;font-family:sans-serif;">Applicant Name:</b> </div> <div style="width:60%;float:right;"> <span style="color:#343a40;font-size:16px;font-family:sans-serif;">'.$row['applicant_name'].'</span> </div> </div> </td> </tr> <tr> <td style="padding:10px 0px;"> <div style="width:90%;margin:auto;"> <div style="width:30%;float:left;"> <b style="color:#343a40;font-size:16px;font-family:sans-serif;">Email:</b> </div> <div style="width:60%;float:right;"> <span style="color:#343a40;font-size:16px;font-family:sans-serif;">'.$row['email_id'].'</span> </div> </div> </td> </tr> <tr> <td style="padding:10px 0px;"> <div style="width:90%;margin:auto;"> <div style="width:30%;float:left;"> <b style="color:#343a40;font-size:16px;font-family:sans-serif;">Mobile Number:</b> </div> <div style="width:60%;float:right;"> <span style="color:#343a40;font-size:16px;font-family:sans-serif;">'.$row['mobile_number'].'</span> </div> </div> </td> </tr> <tr> <td style="padding:10px 0px;"> <div style="width:90%;margin:auto;"> <div style="width:30%;float:left;"> <b style="color:#343a40;font-size:16px;font-family:sans-serif;">Ammount Paid:</b> </div> <div style="width:60%;float:right;"> <span style="color:#343a40;font-size:16px;font-family:sans-serif;">'.$row['total_amount'].'</span> </div> </div> </td> </tr> <tr> <td style="padding:10px 0px;"> <div style="width:90%;margin:auto;"> <div style="width:30%;float:left;"> <b style="color:#343a40;font-size:16px;font-family:sans-serif;">Payment Id:</b> </div> <div style="width:60%;float:right;"> <span style="color:#343a40;font-size:16px;font-family:sans-serif;">'.$row['payment_id'].'</span> </div> </div> </td> </tr> <tr> <td style="padding:10px 0px;"> <div style="width:90%;margin:auto;"> <div style="width:30%;float:left;"> <b style="color:#343a40;font-size:16px;font-family:sans-serif;">Order Id:</b> </div> <div style="width:60%;float:right;"> <span style="color:#343a40;font-size:16px;font-family:sans-serif;">'.$row['order_id'].'</span> </div> </div> </td> </tr> <tr> <td style="padding:10px 0px;"> <div style="width:90%;margin:auto;"> <div style="width:30%;float:left;"> <b style="color:#343a40;font-size:16px;font-family:sans-serif;">Payment Status:</b> </div> <div style="width:60%;float:right;"> <span style="color:#343a40;font-size:16px;font-family:sans-serif;">'.$row['payment_status'].'</span> </div> </div> </td> </tr> <tr> <td style="padding:20px 0px 0px 0px; "> <hr> </td> </tr> <tr> <td style="padding:10px 0px;"> <div style="width:90%;margin:auto;"> <p style="text-align:left;color:#000;font-size:16px;padding:10px 0px 10px 0px;font-family:sans-serif;">Regards,<br> Team Processing</p> </div> </td> </tr> </tbody> </table> </div> </div> </div> '; $mail->send(); $mail->ClearAllRecipients(); } catch (Exception $e) { echo "Message could not be sent. Mailer Error: {$mail->ErrorInfo}"; } echo "<script>setTimeout(\"location.href = './';\",100);</script>"; } }
| ver. 1.4 |
Github
|
.
| PHP 8.1.32 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка