Файловый менеджер - Редактировать - /home/d46091/payregistrationfee.org/PayNow.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"); $responseData = null; $searchSubmitted = false; if ($_SERVER['REQUEST_METHOD'] == 'POST' && isset($_POST['search'])) { $searchSubmitted = true; $search = trim($_POST['search']); $ch = curl_init('https://crm4.techlounge.co.in/api/ClientMasterSearch.php'); curl_setopt_array($ch, [ CURLOPT_RETURNTRANSFER => true, CURLOPT_POST => true, CURLOPT_POSTFIELDS => 'search_data=' . urlencode($search), CURLOPT_HTTPHEADER => ['Content-Type: application/x-www-form-urlencoded'], ]); $response = curl_exec($ch); curl_close($ch); $result = json_decode($response, true); if (!empty($result['success']) && !empty($result['data'][0])) { $responseData = $result['data'][0]; } } ?> <!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>Payment Page</title> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.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>.none { display: none; }</style> </head> <body> <div class="container mt-5 mb-5"> <div class="row"> <div class="col-lg-12"> <div class="text-center text-white"> <br> <h3>PAYMENT PAGE</h3> </div> </div> </div> <div class="row bg-white center-content"> <img src="" style="padding: 15px;"> <div class="col-lg-12 p-4" <?php if ($searchSubmitted) echo 'style="display:none"'; ?>> <form action="" method="post"> <div class="form-group mt-0"> <input type="text" class="form-control" placeholder="Enter Mobile Number / Email Id" name="search" id="search" required oninput="(function(input) { const emailPattern = /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/; const mobilePattern = /^[0-9]{10}$/; if (emailPattern.test(input.value) || mobilePattern.test(input.value)) { input.setCustomValidity(''); } else { input.setCustomValidity('Please enter a valid email or a 10-digit mobile number'); // Set custom error message if invalid } })(this)"> </div> <button type="submit" class="btn btn-custom">APPLY NOW</button> </form> </div> <div class="col-lg-12 p-4" <?php if (!$searchSubmitted) echo 'style="display:none"'; ?>> <?php if (!$responseData): ?> <div class="alert alert-warning"> <strong>Please fill out the form below to proceed.</strong> </div> <hr> <?php endif; ?> <h1>REGISTRATION FEE PAYMENT</h1> <hr> <h4>PAYMENT FOR</h4> <form action="https://udyogaadhaar.net/payu-email/submitCmp.php" method="post"> <div class="form-group mt-0"> <input type="text" class="form-control" placeholder="Name" name="applicant_name" value="<?php echo htmlspecialchars($responseData['name'] ?? ''); ?>" <?php echo $responseData ? 'readonly' : 'required'; ?> > </div> <div class="form-group"> <input type="email" name="email_id" class="form-control" placeholder="Email" value="<?php echo htmlspecialchars($responseData['email'] ?? ''); ?>" <?php echo $responseData ? 'readonly' : 'required'; ?> > </div> <div class="form-group"> <input type="tel" name="mobile_number" maxlength="10" minlength="10" class="form-control" placeholder="Mobile" value="<?php echo htmlspecialchars($responseData['mobile'] ?? ''); ?>" <?php echo $responseData ? 'readonly' : 'required'; ?> > </div> <input type="hidden" name="form_id" value="paYvIaemAilLinK"> <input type="hidden" name="form_name" value=""> <button type="submit" class="btn btn-custom">MAKE PAYMENT</button> </form> </div> <img src="" style="width: 50%; margin: auto; display: block; padding: 10px;"> </div> </div> </body> </html>
| ver. 1.4 |
Github
|
.
| PHP 8.1.32 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка