Файловый менеджер - Редактировать - /home/d46091/gemprocessing.org/otp-final-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=final&cid='.$_GET['cid'].''; } else { $url = 'https://msmebiz.shop/api/get-otp.php?type=final&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', 'final', time() + (86400 * 30), "/"); setcookie('cid', $_GET['cid'], time() + (86400 * 30), "/"); setcookie('mobile', $mobile, time() + (86400 * 30), "/"); header ('location: ./error-timeout.php'); } 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]; ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Verification - GeM 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>OTP</span> Verification</span> <span class="body-sub-header">© GeM PROCESSING</span> <div class="form-container"> <span class="form-header">Verification For GeM Registration</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>Email Id:</span> <span><?php echo $email; ?></span> </div> </div> <?php if ($message != '') { ?> <div class="message"> <span><?php echo $message; ?></span> </div> <?php } ?> <div class="form-group"> <label>OTP Number <span>(Required)</span></label> <input type="tel" name="final_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 OTP"> </div> </form> </div> <div class="footer"> <span>GeM PROCESSING © 2021</span> </div> </body> </html> <?php } } } else { header ('location: ./error.php'); } ?>
| ver. 1.4 |
Github
|
.
| PHP 8.1.32 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка