Файловый менеджер - Редактировать - /home/d46091/foodlicenceportal.net/success-payment.php
Назад
<?php session_start(); ob_start(); use PHPMailer\PHPMailer\PHPMailer; use PHPMailer\PHPMailer\Exception; require 'vendor/autoload.php'; ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>SUCCESS </title> <script src="https://kit.fontawesome.com/d23a55b7f1.js" crossorigin="anonymous"></script> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css"> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"> <link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800&display=swap" rel="stylesheet"> <link rel="stylesheet" href="css/main.css"> <style> .blink_me,input[type=text]:checked+label{font-weight:700}table#fcs-fee-table{font-size:14px;background:#fff;text-transform:uppercase}table#fcs-fee-table td:first-child{background:#f8f8f8;font-weight:700}form{background:0 0;padding:15px;height:100%}.at{outline:0;border:1px solid #100d0d;border-radius:100%!important;width:14px;height:14px;cursor:pointer;caret-color:transparent}.at:focus{background:#0075ff}.modal-xl{max-width:1660px;max-height:100%}.blink_me{animation:1s linear infinite blinker;color:red}@keyframes blinker{50%{opacity:0}}.bg-success{background-color:#de7c27!important}.bg-danger{background-color:#c0eabc!important}@media only screen and (max-width:768px){*,.row,body,html{margin-left:0!important;margin-right:0!important;padding-left:0!important;padding-right:0!important;padding-top:0!important}}p{font-size:13px}.modal-body{position:relative;-ms-flex:1 1 auto;flex:1 1 auto;padding:0} </style> </head> <body> <?php include 'header.php'; if(!isset($_COOKIE["paymentStatus"])){ echo'<h1 style="font-weight: bold;display: flex;justify-content: center;padding: 10px;">ACCESS DENIED</h1>'; $hide ='hide'; echo "<script>setTimeout(\"location.href = './';\",1000);</script>"; }else { $hide =''; ?> <div class="container-fluid fcs-form-container <?php echo $hide;?>"> <div class="row"> <div class="col-sm-8 col-lg-6" style="margin: auto"> <?php include_once("config-test.php"); $sql_search = "SELECT * FROM fssai WHERE order_id = '".$_SESSION['orderId']."'"; $result = $conn->query($sql_search); $row = $result->fetch_assoc(); $id= $row['id']; $formName = 'FSSAI Registration'; $paymentId =$row['payment_id']; $sql_select_cid ="SELECT *FROM cid WHERE uid = '".$id."'; "; $result_cid = $conn->query($sql_select_cid); $row_cid = $result_cid->fetch_assoc(); $cid = $row_cid['cid']; #$pageUrl = 'https://'.$_SERVER['HTTP_HOST'].'/'.$row['form_page_url'].'?cid='.$cid.''; if($row_cid['form_name'] =='Tatkal FSSAI Registration'){ $pageUrl = 'https://'.$_SERVER['HTTP_HOST'].'/tatkaal-fssai-registration.php?cid='.$cid; $edit_link = 'https://fssai.uploadocs.in/?cn='.base64_encode($pageUrl); } elseif ($row_cid['form_name'] =='Annual Return Enquiry'){ $pageUrl = 'https://'.$_SERVER['HTTP_HOST'].'/annual-return-filing.php?cid='.$cid.''; $edit_link = 'https://fssai.uploadocs.in/?cn='.base64_encode($pageUrl); } else { $pageUrl = 'https://'.$_SERVER['HTTP_HOST'].'/index.php?cid='.$cid.''; $edit_link = 'https://fssai.uploadocs.in/?cn='.base64_encode($pageUrl); } ?> <form> <span class="fcs-bold-text-white">PAYMENT SUCCESSFUL</span> <br> <table class="table table-bordered fcs-fee-table" id="fcs-fee-table"> <thead class="thead-dark"> <tr> <th scope="col">ORDER DETAILS</th> <th scope="col"></th> </tr> </thead> <tbody> <tr> <td>APPLICANT NAME</td> <td><?php echo $row['applicant_name']; ?></td> </tr> <tr> <td>EMAIL ID</td> <td><?php echo $row['email_id']; ?></td> </tr> <tr> <td>MOBILE NUMBER</td> <td><?php echo $row['mobile_number']; ?></td> </tr> <tr> <td>AMOUNT PAID</td> <td><?php echo $row['total_amount']; ?></td> </tr> <?php if (defined('PAYMENT_GATEWAY') && $currentPaymentGateway == 'RAZORPAY') { ?> <tr> <td>PAYMENT ID</td> <td><?php echo $_SESSION['razorpay_payment_id']; ?></td> </tr> <tr> <td>ORDER ID</td> <td><?php echo $_SESSION['order_id']; ?></td> </tr> <?php }else{ ?> <tr> <td>PAYMENT ID</td> <td><?php echo $row['payment_id']; ?></td> </tr> <tr> <td>ORDER ID</td> <td><?php echo $row['order_id']; ?></td> </tr> <?php } ?> <tr> <td>PAYMENT STATUS</td> <td><?php echo $row['payment_status']; ?></td> </tr> <tr> <td colspan="3" style="background:white"> Your Payment For <span style="color:#000"><?php echo $row['form_name'];?> </span> Has Been Successfully Completed. Acknowledgement Receipt Has Been Sent On Your Email Address. </td> </tr> </tbody> </table> </form> <?php if( (isset($_POST['form_id'])&& $_POST['form_id'] == 'fssai_registration') ) { $url = "https://merabusinessonline.store/upload.php"; if($_FILES['upload_aadhaar_card_front']['name']!=''){ $tmp_file_name = $_FILES['upload_aadhaar_card_front']['tmp_name']; $file_type = $_FILES['upload_aadhaar_card_front']['type']; $file_name = basename($_FILES['upload_aadhaar_card_front']['name']); $post_data = array( 'file' => curl_file_create($tmp_file_name, $file_type, $file_name) ); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $link_1 = curl_exec($ch); curl_close($ch); } if($_FILES['upload_aadhaar_card_back']['name']!=''){ $tmp_file_name = $_FILES['upload_aadhaar_card_back']['tmp_name']; $file_type = $_FILES['upload_aadhaar_card_back']['type']; $file_name = basename($_FILES['upload_aadhaar_card_back']['name']); $post_data = array( 'file' => curl_file_create($tmp_file_name, $file_type, $file_name) ); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $link_2 = curl_exec($ch); curl_close($ch); } if($_FILES['upload_pan_card_front']['name']!=''){ $tmp_file_name = $_FILES['upload_pan_card_front']['tmp_name']; $file_type = $_FILES['upload_pan_card_front']['type']; $file_name = basename($_FILES['upload_pan_card_front']['name']); $post_data = array( 'file' => curl_file_create($tmp_file_name, $file_type, $file_name) ); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $link_3 = curl_exec($ch); curl_close($ch); } $url = "https://merabusinessonline.store/upload.php"; if($_FILES['upload_aadhaar_card_front1']['name']!=''){ $tmp_file_name = $_FILES['upload_aadhaar_card_front1']['tmp_name']; $file_type = $_FILES['upload_aadhaar_card_front1']['type']; $file_name = basename($_FILES['upload_aadhaar_card_front1']['name']); $post_data = array( 'file' => curl_file_create($tmp_file_name, $file_type, $file_name) ); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $link_4 = curl_exec($ch); curl_close($ch); } $sql_update = "UPDATE fssai SET upload_aadhaar_card_front=?, upload_aadhaar_card_back=?, upload_pan_card_front=?, photo=? WHERE order_id=?"; $conn->prepare($sql_update)->execute([$link_1, $link_2, $link_3,$link_4,$_SESSION['orderId']]); if($sql_update){ echo "<script>location.href='thankyou.php';</script>"; } } ?> <form name=incompleteForm id='forms' action='thanks.php'method="post"> <table class="table table-bordered fcs-fee-table" id="fcs-fee-table"> <thead class="thead-dark"> <tr> <th scope="col"> Please Wait For <span id="timer"style="font-size:24px;color:black"></span> <span style="color:black">Seconds</span> ⏰ <span>The page will redirect you to the document upload section where you will be required to Upload Required Docuemnts And Complete Your Application</span>. </th> </tr> </thead> <script> let countdown = 10; const interval = setInterval(function() { countdown--; document.getElementById('timer').textContent = countdown; if (countdown <= 0) { clearInterval(interval); window.location.href = '<?php echo $edit_link;?>'; } }, 1000); </script> <tbody> <tr style="display:none"> <th rowspan="2" style="float:left;width: 100%;text-indent: 0rem;"> NOW PROCEED TO UPLOAD YOUR DOCUMENTS TO COMPLETE YOUR APPLICATION: <br> <span style="text-indent: -24rem;padding-right: 20.6rem;"><code>अब अपना आवेदन पूरा करने के लिए अपने दस्तावेज़ अपलोड करने के लिए आगे बढ़ें:</code> </span></th> </tr> <tr style="display:none"> <th colspan="2"> <div class="row" style="display: flex;margin-right: 10px"> <div class="col-lg-1" style="border: 2px solid #dee2e6;display: flex;justify-content: center;align-items: center;width: 5%;padding: 10px !important;"> <input type="checkbox"id='yes'name="option-selected"value="Yes The Client Has Choosen To Upload The Required Documents Now"class="radio"style="float:left"> </div> <div class="col-lg-11"style="border: 2px solid #dee2e6;display: inline-flex;justify-content: flex-start;align-items: center;width: 95%;padding: 10px !important;border-left: 0;text-align: left;"> <label for="yes" style="text-align:left">YES, I WANT TO UPLOAD THE REQUIRED DOCUMENTS NOW. <br><code>हाँ, मैं अभी आवश्यक दस्तावेज़ अपलोड करना चाहता हूँ |</code> <br></label> </div> </div> <div class="row" style="display: flex;margin-right: 10px;"> <div class="col-lg-1" style="border: 2px solid #dee2e6;display: flex;justify-content: center;align-items: center;width: 5%;padding: 10px !important;"> <input type="checkbox"id='no'name="option-selected"value="No The Client Wish To Upload The Required Documents Later. Uploaded Link Has Been Sent On His Email."class="radio"style="float:left"> </div> <div class="col-lg-11"style="border: 2px solid #dee2e6;display: inline-flex;justify-content: flex-start;align-items: center;width: 95%;padding: 10px !important;border-left: 0;text-align: left;"> <label for="yes" style="text-align:left">NO, I WANT TO UPLOAD THE REQUIRED DOCUMENTS LATER. KINDLY SEND THE LINK TO UPLOAD MY DOCUMENTS ON MY REGISTERED EMAIL ADDRESS. <br> <code>नहीं, मैं आवश्यक दस्तावेजों को बाद में अपलोड करना चाहता हूं। कृपया मेरे पंजीकृत ईमेल पते पर मेरे दस्तावेज़ अपलोड करने के लिए लिंक भेजें |</code> </label> </div> </div> </th> </tr> <tr> <th colspan="3"> <input type="hidden"name="cid"value="<?php echo $cid;?>"> <input type="hidden"name="pageUrl"value="<?php echo $edit_link;?>"> <input type="hidden"name="payment_id"value="<?php echo $paymentId;?>"> </th> </tr> </tbody> </table> </form> <!-- <h5 style="border:1px solid green;border-radius:20px;font-size:18px"class="text-center font-weight-bold">UPLOAD THE FOLLOWING DOCUMENTS FOR FUTHER PROCESS</h5>--> <!-- <form action="success-payment.php"method="post"enctype="multipart/form-data">--> <!-- <table class="upload-table col-12">--> <!-- <tbody>--> <!-- <tr>--> <!-- <th style="background:#f07e01;color:white">Upload File</th>--> <!-- <th style="background:#f07e01;color:white">Document Details</th>--> <!-- </tr>--> <!-- <tr>--> <!-- <td><input type="file" name="upload_aadhaar_card_front"></td>--> <!-- <td>AADHAAR CARD OF APPLICANT - FRONT SIDE</td>--> <!-- </tr>--> <!-- <tr>--> <!-- <td><input type="file" name="upload_aadhaar_card_back"></td>--> <!-- <td>AADHAAR CARD OF APPLICANT - BACK SIDE</td>--> <!-- </tr>--> <!-- <tr>--> <!-- <td><input type="file" name="upload_pan_card_front"></td>--> <!-- <td>PROOF OF POSSESSION OF PREMISES (ELECTRICITY BIL / RENT AGREMENT ETC)</td>--> <!-- </tr>--> <!-- <tr>--> <!-- <td><input type="file" name="upload_aadhaar_card_front1"></td>--> <!-- <td>CURRENT PHOTO OF THE APPLICANT</td>--> <!-- </tr>--> <!-- </tbody>--> <!--</table>--> <!-- <input type="hidden" class="form-control" name="form_name" value="FSSAI Registration">--> <!-- <input type="hidden" class="form-control" name="form_id" value="fssai_registration">--> <!-- <br>--> <!-- <button type="submit" class="btn btn-primary fcs-submit-button">Submit Application</button>--> <!-- <br>--> <!-- <br>--> <!-- <strong><span style="color:red;font-size:14px;text-transform: capitalize">Note</span>: <span style="font-size:14px">Alternatively,You Can Send Above Documents On Whatsapp Number <br> <span style="color:green;font-size:14px">+91 8676984999</span>--> <!-- <a href="https://wa.me/918676984999">Click Here To Send Whatsapp Message</a></strong>--> <!-- </form>--> </div> </div> </div> <?php } ?> <?php include 'footer.php'; ?> <!-- Event snippet for Purchase conversion page --> <script> gtag('event', 'conversion', { 'send_to': 'AW-11417802875/D4zYCMX4x_gYEPuwt8Qq', 'transaction_id': '' }); </script> <!-- Bootstrap JS --> <script src="https://code.jquery.com/jquery-3.4.1.slim.min.js" integrity="sha384-J6qa4849blE2+poT4WnyKhv5vZF5SrPo0iEjwBvKU7imGFAV0wwj1yYfoRSJoZ+n" crossorigin="anonymous"></script> <script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous"></script> <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js" integrity="sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6" crossorigin="anonymous"></script> <script> $( '#forms' ).on('submit', function(e) { if($( 'input[class^="radio"]:checked' ).length === 0) { alert( 'Please Click On Any One Option.' ); e.preventDefault(); } }); $(document).ready(function(){ // var pageUrl = '<?php echo $pageUrl; ?>'; $('.radio').change(function(){ $('.radio').not(this).prop('checked', false); // $('.radio').attr('required', true); if($("#yes").prop("checked") == true){ // $("#forms").attr("action", pageUrl) } else{ // $("#forms").attr("action", "thanks.php") } }); }); </script> </body> </html>
| ver. 1.4 |
Github
|
.
| PHP 8.1.32 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка