Файловый менеджер - Редактировать - /home/d46091/udyog-adhaar.in/cancel-registration.php
Назад
<?php ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(E_ALL); require("config.php"); require('razorpay-php/Razorpay.php'); session_start(); // if(isset($_POST['vercode'])){ // if((empty($_SESSION["vercode"])) || ($_SESSION["vercode"] != $_POST['vercode'])){ // die("<script>alert('Invalid Verification Code'); history.back();</script>"); // } // } use Razorpay\Api\Api; use PHPMailer\PHPMailer\PHPMailer; use PHPMailer\PHPMailer\Exception; require 'vendor/autoload.php'; if(defined('PAYMENT_GATEWAY')) { //atom $orderId ='order_'.(rand(10000000000,99999999999)); }else if(defined('PAYMENT_GATEWAY')){ //cashfree include_once('./editable/submit-form.php'); function generate($length = 7) { $chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890'; $token = ''; while(strlen($token) < $length) { $token .= $chars[mt_rand(0, strlen($chars) - 1)]; } return 'ORDER_' . $token; $orderId = generate(13); } }else{ $orderId =''; } $crm_website = strtoupper($_SERVER['SERVER_NAME']); $url1 = $_SERVER['SERVER_NAME']; $webpath = pathinfo($url1, PATHINFO_FILENAME); $website = strtoupper($webpath); ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(E_ALL); //uydam cantilation if ((isset($_POST['form_name']))&&(isset($_POST['form_id']))&&($_POST['form_name']=="UDYAM Cancellation")&&($_POST['form_id']=="udyam_cancellation")){ $applicant_name = urlencode($_POST['applicant_name']); $mobile_number = urlencode($_POST['mobile_number']); $email_id = urlencode($_POST['email_id']); $form_name = urlencode($_POST['form_name']); //cancel reason togle if(isset($_POST['cancel_reason_text'])){$cancelreason=$_POST['cancel_reason_text'];}else{$cancelreason=$_POST['cancel_reason'];} $_SESSION['table_id'] = 'msme_form'; $payment_status = 'Unpaid'; // price of udaym canceletion $product_price = 2700; $sql = "INSERT INTO msme_form ( form_name, applicant_name, mobile_number, email_id, aadhaar_number, udyam_number, business_name, total_amount, payment_status, terms_of_service, cancel_reason, order_id ) VALUES ( :form_name, :applicant_name, :mobile_number, :email_id, :aadhaar_number, :udyam_number, :business_name, :total_amount, :payment_status, :terms_of_service, :cancel_reason, :order_id )"; $result = $conn->prepare($sql); $result->execute([ 'form_name' => $_POST['form_name'], 'applicant_name' => $_POST['applicant_name'], 'mobile_number' => $_POST['mobile_number'], 'email_id' => $_POST['email_id'], 'aadhaar_number' => $_POST['aadhaar_number'], 'udyam_number' => $_POST['udyam_number'], 'business_name' => $_POST['business_name'], 'total_amount' => $product_price, 'payment_status' => $payment_status, 'terms_of_service' => 'Checked', 'cancel_reason' => $cancelreason, 'order_id' => $orderId ]); if(!$result = $conn->prepare($sql)){ die('There was an error running the query [' . $conn->error . ']'); } else { $_SESSION["formId"] = $conn->lastInsertId(); $ch = curl_init('https://crm2.techlounge.co.in/api/registration-form-submission.php?formId='.$_SESSION["formId"].'&vendor=TTG&business=MSME&website='.$crm_website.'&amount='.$product_price.'&status=Unpaid&name='.$applicant_name.'&mobile='.$mobile_number.'&email='.$email_id.'&formName='.$form_name.''); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $response = curl_exec($ch); curl_close($ch); $_SESSION["panel_form_id_2"] = $response; $ch = curl_init('https://crm11.techlounge.co.in/api/registration-form-submission.php?formId='.$_SESSION["formId"].'&vendor=TTG&business=MSME&website='.$crm_website.'&amount='.$product_price.'&status=Unpaid&name='.$applicant_name.'&mobile='.$mobile_number.'&email='.$email_id.'&formName='.$form_name.''); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $response = curl_exec($ch); curl_close($ch); $_SESSION["panel_form_id_11"] = $response; //Payment Gateway Redirection if (defined('PAYMENT_GATEWAY') && $currentPaymentGateway == 'CASHFREE') { include_once('./cashfree/request.php'); } else if (defined('PAYMENT_GATEWAY') && $currentPaymentGateway == 'ATOM') { include_once('./atom/submit.php'); } else if (defined('PAYMENT_GATEWAY') && $currentPaymentGateway == 'PAYU') { include_once('../payu-email/payu-submit.php'); }else if (defined('PAYMENT_GATEWAY') && $currentPaymentGateway == 'PAYKUN') { include_once('../payu/payu-submit.php'); }else if (defined('PAYMENT_GATEWAY') && $currentPaymentGateway == 'RAZORPAY') { include_once('../payu/payu-submit.php'); } // Mailer $host_name = $_SERVER['HTTP_HOST']; $website_name = strtoupper($host_name); $mail = new PHPMailer(true); try { $mail->isSMTP(); // $mail->SMTPDebug = 2; $mail->Host = $host_name; $mail->SMTPAuth = true; $mail->Username = 'order@'.$host_name.''; $mail->Password = 'freeDOM@611#'; $mail->SMTPSecure = 'tls'; $mail->Port = 587; $mail->setFrom('order@'.$host_name.'', $website_name); $mail->addAddress($_POST["email_id"]); $mail->isHTML(true); $mail->Subject = "New ".$_POST["form_name"]." Form Submitted"; $mail->Body = " APPLICANT NAME: ".$_POST["applicant_name"]."<br> MOBILE NUMBER: ".$_POST['mobile_number']."<br> EMAIL ID: ".$_POST['email_id']."<br> BUSINESS NAME: ".$_POST["business_name"]."<br> AADHAAR NUMBER: ".$_POST["aadhaar_number"]."<br> UDYAM NUMBER: ".$_POST["udyam_number"]."<br> CANCELLATION REASON: ".$_POST['cancel_reason']."<br> TOTAL AMOUNT: ".$product_price."<br> "; $mail->send(); } catch (Exception $e) { echo "Message could not be sent. Mailer Error: {$mail->ErrorInfo}"; } } include_once('./client-email.php'); //after submiting... die(); } ?> <!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>Cancel Udyog Aadhar/Udyam Registration Application Form</title> <meta name="description" content="Cancel Udyog Aadhar/Udyam Registration Application effortlessly with our expert team. Follow an easy steps to revoke your Application form. The process is quick."> <link rel="icon" href="./assets/img/flag.png" type="image/gif" sizes="16x16"> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css"> <link rel="stylesheet" href="main.css"> <link rel="canonical" href="https://udyog-adhaar.in/cancel-registration.php"/> <style> @media (min-width: 480px) { .fcs-form-container { padding: 15px 50px; } } .fchd { background:#385067; font-size: 16px; color: #FFF; padding: 10px; } .blink { color:black; animation: blinker 1s linear infinite; } @keyframes blinker { 50% { opacity: 0; } } </style> </head> <body> <?php include 'header.php'; ?> <div class="container-fluid fcs-form-container"> <div class="row"> <div class="col-12"> <h1 class="fcs-bold-text-white"style="margin-bottom:5px">Apply to Cancel Udyam Registration </h1> <br> </div> </div> <div class="row"> <div class="col-12 col-lg-6"> <div class="container-fluid fchd text-center""style="font-size:15px">Cancel Udyam Registration</div> <form id="main-form" action="cancel-registration.php" method="post" enctype="multipart/form-data"> <div class="form-group txt"> <label>APPLICANT NAME <span class="required">(Required)</span></label> <input type="text" class="form-control" name="applicant_name" value="" required> </div> <div class="form-group txt"> <label>MOBILE NUMBER <span class="required">(Required)</span></label> <input type="number" maxlength="10" minlength="10"class="form-control" name="mobile_number" required> </div> <div class="form-group txt"> <label>EMAIL ID <span class="required">(Required)</span></label> <input type="email" class="form-control" name="email_id" required> </div> <div class="form-group txt" style="display:none;"> <label>AADHAAR NUMBER <span class="required">(Required)</span></label> <input type="text" class="form-control" maxlength="12" minlength="12"name="aadhaar_number"> </div> <div class="form-group txt"> <label>UDYAM / UAM NUMBER <span class="required">(Required)</span><span style='font-size:10px'><span id='i' data-toggle="modal" data-target="#myModal" > find your udyam/ UAM number <img src="assets/img/info.png" alt="" style="width:12px;"></span></span></label> <input type="tel" class="form-control"name="udyam_number" required> </div> <div class="modal fade" id="myModal" role="dialog"> <div class="modal-dialog modal-lg"> <div class="modal-content"> <div style="margin-right:10px;margin-top:5px;"> <button type="button" class="close" data-dismiss="modal">×</button> </div> <div class="modal-body pt-0" style="margin-top:-5px;"> <div class="row"> <div class="col-sm-6"> <p style="text-align:center;"><b>Udyam Registration Certificate Sample</b></p> <p><img src='assets/img/udyam_no_sample .jpg' width='380'></img></p> </div> <div class="col-sm-6"> <p style="text-align:center;"><b>Udyog Registration Certificate Sample</b></p> <p><img src='assets/img/udyog_no.jpg' width='380'></img></p> </div> </div> </div> </div> </div> </div> <div class="form-group txt"> <label>BUSINESS NAME <span class="required">(Required)</span></label> <input type="text" class="form-control" name="business_name" required> </div> <div class="form-group txt"> <label for="Type_Of_Cancellation">Type Of Cancellation <span class="required">(Required)</span></label> <span style="margin-left:10px;"> <select id="dropreason" name="cancel_reason" required> <option value="" selected disabled hidden> Select an Option </option> <option value="No further need">No further need</option> <option value="I have shut down my Business">I have shut down my Business</option> <option value="This is my duplicate UAM">This is my duplicate UDYAM / UAM</option> <option value="Company owner changed">Company owner changed</option> <option value="Other">Other</option> </select> </span> </div> <div id='opentog'> </div> <div class="form-group form-check"> <input type="checkbox" class="form-check-input" name="terms_of_service" required> <label class="form-check-label">I AGREE TO THE <a href="./terms-of-service.php">TERMS OF SERVICE</a> <span class="required txt">[UPDATED]</span></label> </div> <div class="form-group form-check"> <input type="checkbox" class="form-check-input" name="tos" required> <label class="form-check-label">I, the applicant <!--(Owner of Aadhaar Number used in application)--> agree to share Details / Passcodes etc as & when required for the purpose of Udyam Certificate Generation.<span class="required txt">[UPDATED]</span></label> </div> <div class="form-group"> <input type="text" name="vercode" class="form-control" placeholder="Verfication Code" required="required"> </div> <div class="form-group small clearfix"> <label class="checkbox-inline">Verification Code</label> <img src="captcha.php"> </div> <input type="hidden" class="form-control" name="form_name" value="UDYAM Cancellation"> <input type="hidden" class="form-control" name="form_id" value="udyam_cancellation"> <button type="submit" class="btn btn-primary fcs-submit-button">Submit Application</button> </form> </div> <div class="col-12 col-lg-6"> <div class="container fchd text-center"style="font-size:15px">Read the Instruction to Cancel Udyam Registration </div> <div class="form-instructions"> <div class="form-group" style="margin-top: 25px;"> <label class="fcs-text-dark"><strong>Applicant Name :</strong> Applicant are required to enter his / her name as mentioned on Pan card.</label> </div> <div class="form-group" style="margin-top: 35px;"> <label class="fcs-text-dark"><strong>Mobile Number :</strong> Applicant are required to enter his / her Indian mobile number. Do not add +91.</label> </div> <div class="form-group" style="margin-top: 30px;"> <label class="fcs-text-dark"><strong>Email Id :</strong> Applicant are required to enter his / her email id, as certificate and acknowledgement will be send to registered id.</label> </div> <div class="form-group" style="margin-top: 30px;display:none;"> <label class="fcs-text-dark"><strong>Aadhaar Number :</strong> Applicant can enter his / her 12 digit Aadhaar number.</label> </div> <div class="form-group" style="margin-top: 30px;"> <label class="fcs-text-dark"><strong>Business Name :</strong> Applicant have to enter his / her business name, as it will get printed on certificate.</label> </div> <div class="form-group" style="margin-top: 25px;"> <label class="fcs-text-dark"><strong>Type of Cancellation :</strong> Applicant are required to enter reason for cancellation </label> </div> <div class="form-group" style="margin-top: 30px;"> <label class="fcs-text-dark"><strong>SUBMIT APPLICATION :</strong> Applicant have to click on submit application button after all details and document have uploaded.</label> </div> </div> </div> </div> </div> <br><br> <?php include 'footer.php'; ?> <script src="state.js"></script> <script> $(document).ready(function(){ $("#dropreason").change(function(){ var v = $('#dropreason').val(); if(v=='Other'){ var hh = '<div class="form-group txt"><label>CANCEL REASON <span class="required">(Required)</span></label><textarea type="text" class="form-control" name="cancel_reason_text" rows="4" required></textarea></div>'; $('#opentog').html(hh); }else{ $('#opentog').html('');} }) }); window.sum = function sum() { var w = document.getElementById('num1').value || 0; var x = document.getElementById('num2').value || 0; var y = document.getElementById('num3').value || 0; var z=parseInt(w)+parseInt(x)+parseInt(y); document.getElementById('total_sum').value=z; }; </script> </body> </html>
| ver. 1.4 |
Github
|
.
| PHP 8.1.32 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка