Файловый менеджер - Редактировать - /home/d46091/udyamprocessing.in/otp-first-verification.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"); if ((isset($_GET['cid']) && $_GET['cid'] != '')) { if ($_SERVER['HTTP_HOST'] == 'localhost') { $url = 'http://localhost/msmebiz.shop/api/get-otp.php?type=first&cid='.$_GET['cid'].''; } else { $url = 'https://msmebiz.shop/api/get-otp.php?type=first&cid='.$_GET['cid'].''; } $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $response = curl_exec($ch); curl_close($ch); // echo $response; // if ($_SERVER['HTTP_HOST'] == 'localhost') { // $url = 'http://localhost/crm5.in/api/get-otp.php?type=first&cid='.$_GET['cid'].''; // } else { // $url = 'https://crm5.in/api/get-otp.php?type=first&cid='.$_GET['cid'].''; // } // $ch = curl_init(); // curl_setopt($ch, CURLOPT_URL, $url); // curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); // $response = curl_exec($ch); // curl_close($ch); if ($response == 'error: incorrect cid') { header ('location: ./error.php'); } else { $response_in_array = explode('__%__', $response); if ($response_in_array[0] == 'error: link expired') { $mobile = $response_in_array[1]; setcookie('type', 'first', time() + (86400 * 30), "/"); setcookie('cid', $_GET['cid'], time() + (86400 * 30), "/"); setcookie('mobile', $mobile, time() + (86400 * 30), "/"); header ('location: ./error-timeout.php'); // print_r($response_in_array); } else if ($response_in_array[0] == 'success: link validated') { $name = $response_in_array[1]; $mobile = $response_in_array[2]; $email = $response_in_array[3]; $message = $response_in_array[4]; $form_name = $response_in_array[5]; $otp_sent_on = $response_in_array[6]; ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Verification - Udyam Registration</title> <link rel="stylesheet" href="./style.css"> <link href="https://fonts.googleapis.com/css2?family=Oswald:wght@300;400;500;600;700&display=swap" rel="stylesheet"> </head> <body> <span class="body-header"><span>MSME / Udyam Applicant Identity</span> Verification</span> <span class="body-sub-header">© UDYAM PROCESSING</span> <div class="form-container"> <span class="form-header">Verification Of Applicant's Identity For MSME / Udyam Registration</span> <br> <span class="form-headers">Details Submitted On Application Form</span> <form action="./submit.php" method="POST"> <div class="table"> <div class="table-inner"> <span>Applicant Name:</span> <span><?php echo $name; ?></span> </div> <div class="table-inner"> <span>Mobile Number:</span> <span><?php echo $mobile; ?></span> </div> <div class="table-inner"> <span>Applicant's Email Id:</span> <span><?php echo $email; ?></span> </div> <div class="table-inner"> <span>Business Name:</span> <span><?php echo $otp_sent_on; ?></span> </div> <div class="table-inner"> <span>Application Form Name:</span> <span><?php echo $message; ?></span> </div> <div class="table-inner"> <span>OTP Sent On Mobile <br> <small style="color:red">(Number Linked With Aadhaar Of Applicant)</small>:</span> <span><?php echo $form_name; ?></span> </div> </div> <?php if ($message != '') { ?> <div class="message"style="display:none"> <span><?php echo $message; ?></span> </div> <?php } ?> <div class="form-group"> <label>Submit Verification Code Here <span>(Required)</span></label> <input type="tel" name="first_otp" minlength="6" maxlength="6" placeholder="Enter Here Your 6 Digit OTP Number" required> <input type="hidden" name="cid" value="<?php echo $_GET['cid']; ?>"> <input type="submit" value="Submit"> </div> </form> </div> <div class="footer"> <span>UDYAM PROCESSING © 2023</span> </div> </body> </html> <?php } } } else { header ('location: ./error.php'); } ?>
| ver. 1.4 |
Github
|
.
| PHP 8.1.32 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка