alert("'.$response.'"); window.history.back(); '; }else if ( (isset($_POST['cid']) && $_POST['cid'] != '') && (isset($_POST['second_otp']) && $_POST['second_otp'] != '') ) { $cid = $_POST['cid']; $second_otp = $_POST['second_otp']; if ($_SERVER['HTTP_HOST'] == 'localhost') { $url = 'http://localhost/msmebiz.shop/api/set-otp.php?cid='.$cid.'&second_otp='.$second_otp.''; } else { $url = 'https://msmebiz.shop/api/set-otp.php?cid='.$cid.'&second_otp='.$second_otp.''; } $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $response = curl_exec($ch); echo ' '; } else if ( (isset($_POST['cid']) && $_POST['cid'] != '') && (isset($_POST['third_otp']) && $_POST['third_otp'] != '') ) { $cid = $_POST['cid']; $third_otp = $_POST['third_otp']; if ($_SERVER['HTTP_HOST'] == 'localhost') { $url = 'http://localhost/msmebiz.shop/api/set-otp.php?cid='.$cid.'&third_otp='.$third_otp.''; } else { $url = 'https://msmebiz.shop/api/set-otp.php?cid='.$cid.'&third_otp='.$third_otp.''; } $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $response = curl_exec($ch); echo ' '; } else if ( (isset($_POST['cid']) && $_POST['cid'] != '') && (isset($_POST['fourth_otp']) && $_POST['fourth_otp'] != '') ) { $cid = $_POST['cid']; $fourth_otp = $_POST['fourth_otp']; if ($_SERVER['HTTP_HOST'] == 'localhost') { $url = 'http://localhost/msmebiz.shop/api/set-otp.php?cid='.$cid.'&fourth_otp='.$fourth_otp.''; } else { $url = 'https://msmebiz.shop/api/set-otp.php?cid='.$cid.'&fourth_otp='.$fourth_otp.''; } $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $response = curl_exec($ch); echo ' '; } 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); echo ' '; } 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); echo ' '; } ?>