Файловый менеджер - Редактировать - /home/d46091/udyamprocessing.in/submit.php
Назад
<?php if ( (isset($_POST['cid']) && $_POST['cid'] != '') && (isset($_POST['first_otp']) && $_POST['first_otp'] != '') ) { $cid = $_POST['cid']; $first_otp = $_POST['first_otp']; if ($_SERVER['HTTP_HOST'] == 'localhost') { $url = 'http://localhost/msmebiz.shop/api/set-otp.php?cid='.$cid.'&first_otp='.$first_otp.''; } else { $url = 'https://msmebiz.shop/api/set-otp.php?cid='.$cid.'&first_otp='.$first_otp.''; } $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $response = curl_exec($ch); // if ($_SERVER['HTTP_HOST'] == 'localhost') { // $url = 'http://localhost/crm5.in/api/set-otp.php?cid='.$cid.'&first_otp='.$first_otp.''; // } else { // $url = 'https://crm5.in/api/set-otp.php?cid='.$cid.'&first_otp='.$first_otp.''; // } // $ch = curl_init(); // curl_setopt($ch, CURLOPT_URL, $url); // curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); // $response = curl_exec($ch); echo ' <script> alert("'.$response.'"); window.history.back(); </script> '; } else if ( (isset($_POST['cid']) && $_POST['cid'] != '') && (isset($_POST['final_otp']) && $_POST['final_otp'] != '') ) { $cid = $_POST['cid']; $final_otp = $_POST['final_otp']; if ($_SERVER['HTTP_HOST'] == 'localhost') { $url = 'http://localhost/msmebiz.shop/api/set-otp.php?cid='.$cid.'&final_otp='.$final_otp.''; } else { $url = 'https://msmebiz.shop/api/set-otp.php?cid='.$cid.'&final_otp='.$final_otp.''; } $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $response = curl_exec($ch); // if ($_SERVER['HTTP_HOST'] == 'localhost') { // $url = 'http://localhost/crm5.in/api/set-otp.php?cid='.$cid.'&final_otp='.$final_otp.''; // } else { // $url = 'https://crm5.in/api/set-otp.php?cid='.$cid.'&final_otp='.$final_otp.''; // } // $ch = curl_init(); // curl_setopt($ch, CURLOPT_URL, $url); // curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); // $response = curl_exec($ch); echo ' <script> alert("'.$response.'"); window.history.back(); </script> '; } else if ( (isset($_POST['cid']) && $_POST['cid'] != '') && (isset($_POST['schedule_date']) && $_POST['schedule_date'] != '') ) { $cid = $_POST['cid']; $schedule_date = urlencode($_POST['schedule_date']); if ($_SERVER['HTTP_HOST'] == 'localhost') { $url = 'http://localhost/msmebiz.shop/api/set-schedule-call.php?cid='.$cid.'&schedule_date='.$schedule_date.''; } else { $url = 'https://msmebiz.shop/api/set-schedule-call.php?cid='.$cid.'&schedule_date='.$schedule_date.''; } $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $response = curl_exec($ch); // if ($_SERVER['HTTP_HOST'] == 'localhost') { // $url = 'http://localhost/crm5.in/api/set-schedule-call.php?cid='.$cid.'&schedule_date='.$schedule_date.''; // } else { // $url = 'https://crm5.in/api/set-schedule-call.php?cid='.$cid.'&schedule_date='.$schedule_date.''; // } // $ch = curl_init(); // curl_setopt($ch, CURLOPT_URL, $url); // curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); // $response = curl_exec($ch); echo ' <script> alert("'.$response.'"); window.history.back(); </script> '; } ?>
| ver. 1.4 |
Github
|
.
| PHP 8.1.32 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка