Файловый менеджер - Редактировать - /home/d46091/udyog-adhaar.in/updates.php
Назад
<?php include_once('./config.php'); date_default_timezone_set('Asia/Kolkata'); $date = date('d-m-Y H:i:s'); if((isset($_POST['form_id'])&& $_POST['form_id'] == 'udyam_online_for_proprietor')) { $cur_url = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? "https" : "http") . "://" . $_SERVER['HTTP_HOST'] ; $url = "https://msmeindia.xyz/index.php"; $tmp_file_name = $_FILES['upload_aadhaar_card_front']['tmp_name']; $file_type = $_FILES['upload_aadhaar_card_front']['type']; $file_name = basename($_FILES['upload_aadhaar_card_front']['name']); $post_data = array( 'file' => curl_file_create($tmp_file_name, $file_type, $file_name) ); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $link_1 = curl_exec($ch); curl_close($ch); $sql = "UPDATE msme_form SET office_address = '".$_POST["office_address"]."', office_state = '".$_POST["office_state"]."', office_district = '".$_POST["office_district"]."', office_pincode = '".$_POST["office_pincode"]."', annual_turnover = '".$_POST["annual_turnover"]."', social_category = '".$_POST["social_category"]."', uam_number = '".$_POST["uam_number"]."', pan_card_number = '".$_POST["pan_card_number"]."', bank_account_number = '".$_POST["bank_account_number"]."', ifsc_code = '".$_POST["ifsc_code"]."', date_of_commencement_of_business = '".$_POST["date_of_commencement_of_business"]."', main_business_activity_of_enterprise = '".$_POST["main_business_activity_of_enterprise"]."', additional_details_about_business = '".$_POST["additional_details_about_business"]."', persons_employed_male = '".$_POST["persons_employed_male"]."', persons_employed_female = '".$_POST["persons_employed_female"]."', persons_employed_other = '".$_POST["persons_employed_other"]."', persons_employed_total = '".$_POST["persons_employed_total"]."', investment_in_plant_and_machinery = '".$_POST["investment_in_plant_and_machinery"]."', upload_aadhaar_card_front = '".$link_1."' WHERE authId = '".$_POST["authId"]."' "; if(!$result = $conn->query($sql)){ die('There was an error running the query [' . $conn->error . ']'); } echo "<script>location.href='thank.php';</script>"; } if((isset($_POST['form_id'])&& $_POST['form_id'] == 're_registration_for_proprietor')) { $cur_url = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? "https" : "http") . "://" . $_SERVER['HTTP_HOST'] ; $url = "https://msmeindia.xyz/index.php"; $tmp_file_name = $_FILES['upload_aadhaar_card_front']['tmp_name']; $file_type = $_FILES['upload_aadhaar_card_front']['type']; $file_name = basename($_FILES['upload_aadhaar_card_front']['name']); $post_data = array( 'file' => curl_file_create($tmp_file_name, $file_type, $file_name) ); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $link_1 = curl_exec($ch); curl_close($ch); $link_2 = ''; $tmp_file_name = $_FILES['upload_aadhaar_card_back']['tmp_name']; $file_type = $_FILES['upload_aadhaar_card_back']['type']; $file_name = basename($_FILES['upload_aadhaar_card_back']['name']); $post_data = array( 'file' => curl_file_create($tmp_file_name, $file_type, $file_name) ); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $link_2 = curl_exec($ch); curl_close($ch); $sql = "UPDATE msme_form SET office_address = '".$_POST["office_address"]."', office_state = '".$_POST["office_state"]."', office_district = '".$_POST["office_district"]."', office_pincode = '".$_POST["office_pincode"]."', annual_turnover = '".$_POST["annual_turnover"]."', social_category = '".$_POST["social_category"]."', uam_number = '".$_POST["uam_number"]."', pan_card_number = '".$_POST["pan_card_number"]."', bank_account_number = '".$_POST["bank_account_number"]."', ifsc_code = '".$_POST["ifsc_code"]."', date_of_commencement_of_business = '".$_POST["date_of_commencement_of_business"]."', main_business_activity_of_enterprise = '".$_POST["main_business_activity_of_enterprise"]."', additional_details_about_business = '".$_POST["additional_details_about_business"]."', persons_employed_male = '".$_POST["persons_employed_male"]."', persons_employed_female = '".$_POST["persons_employed_female"]."', persons_employed_other = '".$_POST["persons_employed_other"]."', persons_employed_total = '".$_POST["persons_employed_total"]."', investment_in_plant_and_machinery = '".$_POST["investment_in_plant_and_machinery"]."', upload_aadhaar_card_front = '".$link_1."', upload_aadhaar_card_back = '".$link_2."' WHERE authId = '".$_POST["authId"]."' "; if(!$result = $conn->query($sql)){ die('There was an error running the query [' . $conn->error . ']'); } echo "<script>location.href='thank.php';</script>"; } if((isset($_POST['form_id'])&& $_POST['form_id'] == 'udyam_online_for_partnership_firm')) { $cur_url = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? "https" : "http") . "://" . $_SERVER['HTTP_HOST'] ; $url = "https://msmeindia.xyz/index.php"; $tmp_file_name = $_FILES['upload_aadhaar_card_front']['tmp_name']; $file_type = $_FILES['upload_aadhaar_card_front']['type']; $file_name = basename($_FILES['upload_aadhaar_card_front']['name']); $post_data = array( 'file' => curl_file_create($tmp_file_name, $file_type, $file_name) ); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $link_1 = curl_exec($ch); curl_close($ch); $sql = "UPDATE msme_form SET office_address = '".$_POST["office_address"]."', office_state = '".$_POST["office_state"]."', office_district = '".$_POST["office_district"]."', office_pincode = '".$_POST["office_pincode"]."', annual_turnover = '".$_POST["annual_turnover"]."', social_category = '".$_POST["social_category"]."', uam_number = '".$_POST["uam_number"]."', pan_card_number = '".$_POST["pan_card_number"]."', bank_account_number = '".$_POST["bank_account_number"]."', ifsc_code = '".$_POST["ifsc_code"]."', date_of_commencement_of_business = '".$_POST["date_of_commencement_of_business"]."', main_business_activity_of_enterprise = '".$_POST["main_business_activity_of_enterprise"]."', additional_details_about_business = '".$_POST["additional_details_about_business"]."', persons_employed_male = '".$_POST["persons_employed_male"]."', persons_employed_female = '".$_POST["persons_employed_female"]."', persons_employed_other = '".$_POST["persons_employed_other"]."', persons_employed_total = '".$_POST["persons_employed_total"]."', investment_in_plant_and_machinery = '".$_POST["investment_in_plant_and_machinery"]."', upload_aadhaar_card_front = '".$link_1."' WHERE authId = '".$_POST["authId"]."' "; if(!$result = $conn->query($sql)){ die('There was an error running the query [' . $conn->error . ']'); } echo "<script>location.href='thank.php';</script>"; } if((isset($_POST['form_id'])&& $_POST['form_id'] == 're_registration_for_partnership_firm')) { $cur_url = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? "https" : "http") . "://" . $_SERVER['HTTP_HOST'] ; $url = "https://msmeindia.xyz/index.php"; $tmp_file_name = $_FILES['upload_aadhaar_card_front']['tmp_name']; $file_type = $_FILES['upload_aadhaar_card_front']['type']; $file_name = basename($_FILES['upload_aadhaar_card_front']['name']); $post_data = array( 'file' => curl_file_create($tmp_file_name, $file_type, $file_name) ); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $link_1 = curl_exec($ch); curl_close($ch); $link_2 = ''; $tmp_file_name = $_FILES['upload_aadhaar_card_back']['tmp_name']; $file_type = $_FILES['upload_aadhaar_card_back']['type']; $file_name = basename($_FILES['upload_aadhaar_card_back']['name']); $post_data = array( 'file' => curl_file_create($tmp_file_name, $file_type, $file_name) ); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $link_2 = curl_exec($ch); curl_close($ch); $sql = "UPDATE msme_form SET office_address = '".$_POST["office_address"]."', office_state = '".$_POST["office_state"]."', office_district = '".$_POST["office_district"]."', office_pincode = '".$_POST["office_pincode"]."', annual_turnover = '".$_POST["annual_turnover"]."', social_category = '".$_POST["social_category"]."', uam_number = '".$_POST["uam_number"]."', pan_card_number = '".$_POST["pan_card_number"]."', bank_account_number = '".$_POST["bank_account_number"]."', ifsc_code = '".$_POST["ifsc_code"]."', date_of_commencement_of_business = '".$_POST["date_of_commencement_of_business"]."', main_business_activity_of_enterprise = '".$_POST["main_business_activity_of_enterprise"]."', additional_details_about_business = '".$_POST["additional_details_about_business"]."', persons_employed_male = '".$_POST["persons_employed_male"]."', persons_employed_female = '".$_POST["persons_employed_female"]."', persons_employed_other = '".$_POST["persons_employed_other"]."', persons_employed_total = '".$_POST["persons_employed_total"]."', investment_in_plant_and_machinery = '".$_POST["investment_in_plant_and_machinery"]."', upload_aadhaar_card_front = '".$link_1."', upload_aadhaar_card_back = '".$link_2."' WHERE authId = '".$_POST["authId"]."' "; if(!$result = $conn->query($sql)){ die('There was an error running the query [' . $conn->error . ']'); } echo "<script>location.href='thank.php';</script>"; } if((isset($_POST['form_id'])&& $_POST['form_id'] == 'udyam_online_for_private_limited')) { $cur_url = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? "https" : "http") . "://" . $_SERVER['HTTP_HOST'] ; $url = "https://msmeindia.xyz/index.php"; $tmp_file_name = $_FILES['upload_aadhaar_card_front']['tmp_name']; $file_type = $_FILES['upload_aadhaar_card_front']['type']; $file_name = basename($_FILES['upload_aadhaar_card_front']['name']); $post_data = array( 'file' => curl_file_create($tmp_file_name, $file_type, $file_name) ); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $link_1 = curl_exec($ch); curl_close($ch); $sql = "UPDATE msme_form SET office_address = '".$_POST["office_address"]."', office_state = '".$_POST["office_state"]."', office_district = '".$_POST["office_district"]."', office_pincode = '".$_POST["office_pincode"]."', annual_turnover = '".$_POST["annual_turnover"]."', social_category = '".$_POST["social_category"]."', uam_number = '".$_POST["uam_number"]."', pan_card_number = '".$_POST["pan_card_number"]."', bank_account_number = '".$_POST["bank_account_number"]."', ifsc_code = '".$_POST["ifsc_code"]."', date_of_commencement_of_business = '".$_POST["date_of_commencement_of_business"]."', main_business_activity_of_enterprise = '".$_POST["main_business_activity_of_enterprise"]."', additional_details_about_business = '".$_POST["additional_details_about_business"]."', persons_employed_male = '".$_POST["persons_employed_male"]."', persons_employed_female = '".$_POST["persons_employed_female"]."', persons_employed_other = '".$_POST["persons_employed_other"]."', persons_employed_total = '".$_POST["persons_employed_total"]."', investment_in_plant_and_machinery = '".$_POST["investment_in_plant_and_machinery"]."', upload_aadhaar_card_front = '".$link_1."', form_last_update_on = '". $date."' WHERE authId = '".$_POST["authId"]."' "; if(!$result = $conn->query($sql)){ die('There was an error running the query [' . $conn->error . ']'); } echo "<script>location.href='thank.php';</script>"; } if((isset($_POST['form_id'])&& $_POST['form_id'] == 're_registration_for_private_limited')) { $cur_url = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? "https" : "http") . "://" . $_SERVER['HTTP_HOST'] ; $url = "https://msmeindia.xyz/index.php"; $tmp_file_name = $_FILES['upload_aadhaar_card_front']['tmp_name']; $file_type = $_FILES['upload_aadhaar_card_front']['type']; $file_name = basename($_FILES['upload_aadhaar_card_front']['name']); $post_data = array( 'file' => curl_file_create($tmp_file_name, $file_type, $file_name) ); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $link_1 = curl_exec($ch); curl_close($ch); $link_2 = ''; $tmp_file_name = $_FILES['upload_aadhaar_card_back']['tmp_name']; $file_type = $_FILES['upload_aadhaar_card_back']['type']; $file_name = basename($_FILES['upload_aadhaar_card_back']['name']); $post_data = array( 'file' => curl_file_create($tmp_file_name, $file_type, $file_name) ); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $link_2 = curl_exec($ch); curl_close($ch); $sql = "UPDATE msme_form SET office_address = '".$_POST["office_address"]."', office_state = '".$_POST["office_state"]."', office_district = '".$_POST["office_district"]."', office_pincode = '".$_POST["office_pincode"]."', annual_turnover = '".$_POST["annual_turnover"]."', social_category = '".$_POST["social_category"]."', uam_number = '".$_POST["uam_number"]."', pan_card_number = '".$_POST["pan_card_number"]."', bank_account_number = '".$_POST["bank_account_number"]."', ifsc_code = '".$_POST["ifsc_code"]."', date_of_commencement_of_business = '".$_POST["date_of_commencement_of_business"]."', main_business_activity_of_enterprise = '".$_POST["main_business_activity_of_enterprise"]."', additional_details_about_business = '".$_POST["additional_details_about_business"]."', persons_employed_male = '".$_POST["persons_employed_male"]."', persons_employed_female = '".$_POST["persons_employed_female"]."', persons_employed_other = '".$_POST["persons_employed_other"]."', persons_employed_total = '".$_POST["persons_employed_total"]."', investment_in_plant_and_machinery = '".$_POST["investment_in_plant_and_machinery"]."', upload_aadhaar_card_front = '".$link_1."', upload_aadhaar_card_back = '".$link_2."' WHERE authId = '".$_POST["authId"]."' "; if(!$result = $conn->query($sql)){ die('There was an error running the query [' . $conn->error . ']'); } echo "<script>location.href='thank.php';</script>"; } if((isset($_POST['form_id'])&& $_POST['form_id'] == 'udyam_online_for_public_limited')) { $cur_url = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? "https" : "http") . "://" . $_SERVER['HTTP_HOST'] ; $url = "https://msmeindia.xyz/index.php"; $tmp_file_name = $_FILES['upload_aadhaar_card_front']['tmp_name']; $file_type = $_FILES['upload_aadhaar_card_front']['type']; $file_name = basename($_FILES['upload_aadhaar_card_front']['name']); $post_data = array( 'file' => curl_file_create($tmp_file_name, $file_type, $file_name) ); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $link_1 = curl_exec($ch); curl_close($ch); $sql = "UPDATE msme_form SET office_address = '".$_POST["office_address"]."', office_state = '".$_POST["office_state"]."', office_district = '".$_POST["office_district"]."', office_pincode = '".$_POST["office_pincode"]."', annual_turnover = '".$_POST["annual_turnover"]."', social_category = '".$_POST["social_category"]."', uam_number = '".$_POST["uam_number"]."', pan_card_number = '".$_POST["pan_card_number"]."', bank_account_number = '".$_POST["bank_account_number"]."', ifsc_code = '".$_POST["ifsc_code"]."', date_of_commencement_of_business = '".$_POST["date_of_commencement_of_business"]."', main_business_activity_of_enterprise = '".$_POST["main_business_activity_of_enterprise"]."', additional_details_about_business = '".$_POST["additional_details_about_business"]."', persons_employed_male = '".$_POST["persons_employed_male"]."', persons_employed_female = '".$_POST["persons_employed_female"]."', persons_employed_other = '".$_POST["persons_employed_other"]."', persons_employed_total = '".$_POST["persons_employed_total"]."', investment_in_plant_and_machinery = '".$_POST["investment_in_plant_and_machinery"]."', upload_aadhaar_card_front = '".$link_1."' WHERE authId = '".$_POST["authId"]."' "; if(!$result = $conn->query($sql)){ die('There was an error running the query [' . $conn->error . ']'); } echo "<script>location.href='thank.php';</script>"; } if((isset($_POST['form_id'])&& $_POST['form_id'] == 're_registration_for_public_limited')) { $cur_url = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? "https" : "http") . "://" . $_SERVER['HTTP_HOST'] ; $url = "https://msmeindia.xyz/index.php"; $tmp_file_name = $_FILES['upload_aadhaar_card_front']['tmp_name']; $file_type = $_FILES['upload_aadhaar_card_front']['type']; $file_name = basename($_FILES['upload_aadhaar_card_front']['name']); $post_data = array( 'file' => curl_file_create($tmp_file_name, $file_type, $file_name) ); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $link_1 = curl_exec($ch); curl_close($ch); $link_2 = ''; $tmp_file_name = $_FILES['upload_aadhaar_card_back']['tmp_name']; $file_type = $_FILES['upload_aadhaar_card_back']['type']; $file_name = basename($_FILES['upload_aadhaar_card_back']['name']); $post_data = array( 'file' => curl_file_create($tmp_file_name, $file_type, $file_name) ); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $link_2 = curl_exec($ch); curl_close($ch); $sql = "UPDATE msme_form SET office_address = '".$_POST["office_address"]."', office_state = '".$_POST["office_state"]."', office_district = '".$_POST["office_district"]."', office_pincode = '".$_POST["office_pincode"]."', annual_turnover = '".$_POST["annual_turnover"]."', social_category = '".$_POST["social_category"]."', uam_number = '".$_POST["uam_number"]."', pan_card_number = '".$_POST["pan_card_number"]."', bank_account_number = '".$_POST["bank_account_number"]."', ifsc_code = '".$_POST["ifsc_code"]."', date_of_commencement_of_business = '".$_POST["date_of_commencement_of_business"]."', main_business_activity_of_enterprise = '".$_POST["main_business_activity_of_enterprise"]."', additional_details_about_business = '".$_POST["additional_details_about_business"]."', persons_employed_male = '".$_POST["persons_employed_male"]."', persons_employed_female = '".$_POST["persons_employed_female"]."', persons_employed_other = '".$_POST["persons_employed_other"]."', persons_employed_total = '".$_POST["persons_employed_total"]."', investment_in_plant_and_machinery = '".$_POST["investment_in_plant_and_machinery"]."', upload_aadhaar_card_front = '".$link_1."', upload_aadhaar_card_back = '".$link_2."' WHERE authId = '".$_POST["authId"]."' "; if(!$result = $conn->query($sql)){ die('There was an error running the query [' . $conn->error . ']'); } echo "<script>location.href='thank.php';</script>"; } if((isset($_POST['form_id'])&& $_POST['form_id'] == 'udyam_online_for_others')) { $cur_url = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? "https" : "http") . "://" . $_SERVER['HTTP_HOST'] ; $url = "https://msmeindia.xyz/index.php"; $tmp_file_name = $_FILES['upload_aadhaar_card_front']['tmp_name']; $file_type = $_FILES['upload_aadhaar_card_front']['type']; $file_name = basename($_FILES['upload_aadhaar_card_front']['name']); $post_data = array( 'file' => curl_file_create($tmp_file_name, $file_type, $file_name) ); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $link_1 = curl_exec($ch); curl_close($ch); $sql = "UPDATE msme_form SET office_address = '".$_POST["office_address"]."', office_state = '".$_POST["office_state"]."', office_district = '".$_POST["office_district"]."', office_pincode = '".$_POST["office_pincode"]."', annual_turnover = '".$_POST["annual_turnover"]."', social_category = '".$_POST["social_category"]."', uam_number = '".$_POST["uam_number"]."', pan_card_number = '".$_POST["pan_card_number"]."', bank_account_number = '".$_POST["bank_account_number"]."', ifsc_code = '".$_POST["ifsc_code"]."', date_of_commencement_of_business = '".$_POST["date_of_commencement_of_business"]."', main_business_activity_of_enterprise = '".$_POST["main_business_activity_of_enterprise"]."', additional_details_about_business = '".$_POST["additional_details_about_business"]."', persons_employed_male = '".$_POST["persons_employed_male"]."', persons_employed_female = '".$_POST["persons_employed_female"]."', persons_employed_other = '".$_POST["persons_employed_other"]."', persons_employed_total = '".$_POST["persons_employed_total"]."', investment_in_plant_and_machinery = '".$_POST["investment_in_plant_and_machinery"]."', upload_aadhaar_card_front = '".$link_1."' WHERE authId = '".$_POST["authId"]."' "; if(!$result = $conn->query($sql)){ die('There was an error running the query [' . $conn->error . ']'); } echo "<script>location.href='thank.php';</script>"; } if((isset($_POST['form_id'])&& $_POST['form_id'] == 're_registration_for_others')) { $cur_url = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? "https" : "http") . "://" . $_SERVER['HTTP_HOST'] ; $url = "https://msmeindia.xyz/index.php"; $tmp_file_name = $_FILES['upload_aadhaar_card_front']['tmp_name']; $file_type = $_FILES['upload_aadhaar_card_front']['type']; $file_name = basename($_FILES['upload_aadhaar_card_front']['name']); $post_data = array( 'file' => curl_file_create($tmp_file_name, $file_type, $file_name) ); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $link_1 = curl_exec($ch); curl_close($ch); $link_2 = ''; $tmp_file_name = $_FILES['upload_aadhaar_card_back']['tmp_name']; $file_type = $_FILES['upload_aadhaar_card_back']['type']; $file_name = basename($_FILES['upload_aadhaar_card_back']['name']); $post_data = array( 'file' => curl_file_create($tmp_file_name, $file_type, $file_name) ); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $link_2 = curl_exec($ch); curl_close($ch); $sql = "UPDATE msme_form SET office_address = '".$_POST["office_address"]."', office_state = '".$_POST["office_state"]."', office_district = '".$_POST["office_district"]."', office_pincode = '".$_POST["office_pincode"]."', annual_turnover = '".$_POST["annual_turnover"]."', social_category = '".$_POST["social_category"]."', uam_number = '".$_POST["uam_number"]."', pan_card_number = '".$_POST["pan_card_number"]."', bank_account_number = '".$_POST["bank_account_number"]."', ifsc_code = '".$_POST["ifsc_code"]."', date_of_commencement_of_business = '".$_POST["date_of_commencement_of_business"]."', main_business_activity_of_enterprise = '".$_POST["main_business_activity_of_enterprise"]."', additional_details_about_business = '".$_POST["additional_details_about_business"]."', persons_employed_male = '".$_POST["persons_employed_male"]."', persons_employed_female = '".$_POST["persons_employed_female"]."', persons_employed_other = '".$_POST["persons_employed_other"]."', persons_employed_total = '".$_POST["persons_employed_total"]."', investment_in_plant_and_machinery = '".$_POST["investment_in_plant_and_machinery"]."', upload_aadhaar_card_front = '".$link_1."', upload_aadhaar_card_back = '".$link_2."' WHERE authId = '".$_POST["authId"]."' "; if(!$result = $conn->query($sql)){ die('There was an error running the query [' . $conn->error . ']'); } echo "<script>location.href='thank.php';</script>"; } if((isset($_POST['form_id'])&& $_POST['form_id'] == 'print_udyam_application')) { $cur_url = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? "https" : "http") . "://" . $_SERVER['HTTP_HOST'] ; $url = "https://msmeindia.xyz/index.php"; $tmp_file_name = $_FILES['upload_aadhaar_card_front']['tmp_name']; $file_type = $_FILES['upload_aadhaar_card_front']['type']; $file_name = basename($_FILES['upload_aadhaar_card_front']['name']); $post_data = array( 'file' => curl_file_create($tmp_file_name, $file_type, $file_name) ); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $link_1 = curl_exec($ch); curl_close($ch); $link_2 = ''; $tmp_file_name = $_FILES['upload_aadhaar_card_back']['tmp_name']; $file_type = $_FILES['upload_aadhaar_card_back']['type']; $file_name = basename($_FILES['upload_aadhaar_card_back']['name']); $post_data = array( 'file' => curl_file_create($tmp_file_name, $file_type, $file_name) ); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $link_2 = curl_exec($ch); curl_close($ch); $sql = "UPDATE msme_form SET udyam_number = '".$_POST["udyam_number"]."', opt_selected = '".$_POST["opt_selected"]."', office_state = '".$_POST["office_state"]."', upload_aadhaar_card_front = '".$link_1."', upload_aadhaar_card_back = '".$link_2."', updated_details = '".$_POST["updated_details"]."' WHERE authId = '".$_POST["authId"]."' "; if(!$result = $conn->query($sql)){ die('There was an error running the query [' . $conn->error . ']'); } echo "<script>location.href='thank.php';</script>"; } if((isset($_POST['form_id'])&& $_POST['form_id'] == 'update_udyam_certificate')) { $cur_url = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? "https" : "http") . "://" . $_SERVER['HTTP_HOST'] ; $url = "https://msmeindia.xyz/index.php"; $tmp_file_name = $_FILES['upload_aadhaar_card_front']['tmp_name']; $file_type = $_FILES['upload_aadhaar_card_front']['type']; $file_name = basename($_FILES['upload_aadhaar_card_front']['name']); $post_data = array( 'file' => curl_file_create($tmp_file_name, $file_type, $file_name) ); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $link_1 = curl_exec($ch); curl_close($ch); $link_2 = ''; $tmp_file_name = $_FILES['upload_aadhaar_card_back']['tmp_name']; $file_type = $_FILES['upload_aadhaar_card_back']['type']; $file_name = basename($_FILES['upload_aadhaar_card_back']['name']); $post_data = array( 'file' => curl_file_create($tmp_file_name, $file_type, $file_name) ); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $link_2 = curl_exec($ch); curl_close($ch); $sql = "UPDATE msme_form SET udyam_number = '".$_POST["udyam_number"]."', opt_selected = '".$_POST["opt_selected"]."', office_state = '".$_POST["office_state"]."', upload_aadhaar_card_front = '".$link_1."', upload_aadhaar_card_back = '".$link_2."', updated_details = '".$_POST["updated_details"]."' WHERE authId = '".$_POST["authId"]."' "; if(!$result = $conn->query($sql)){ die('There was an error running the query [' . $conn->error . ']'); } echo "<script>location.href='thank.php';</script>"; } if((isset($_POST['form_id'])&& $_POST['form_id'] == 'print_udyam_registration')) { $cur_url = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? "https" : "http") . "://" . $_SERVER['HTTP_HOST'] ; $url = "https://msmeindia.xyz/index.php"; $tmp_file_name = $_FILES['upload_aadhaar_card_back']['tmp_name']; $file_type = $_FILES['upload_aadhaar_card_back']['type']; $file_name = basename($_FILES['upload_aadhaar_card_back']['name']); $post_data = array( 'file' => curl_file_create($tmp_file_name, $file_type, $file_name) ); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $link_1 = curl_exec($ch); curl_close($ch); $sql = "UPDATE msme_form SET udyam_number = '".$_POST["uam_number"]."', office_state = '".$_POST["office_state"]."', upload_aadhaar_card_back = '".$link_1."' WHERE authId = '".$_POST["authId"]."' "; if(!$result = $conn->query($sql)){ die('There was an error running the query [' . $conn->error . ']'); } echo "<script>location.href='thank.php';</script>"; } if((isset($_POST['form_id'])&& $_POST['form_id'] == 'trace_udyam_registration')) { $cur_url = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? "https" : "http") . "://" . $_SERVER['HTTP_HOST'] ; $url = "https://msmeindia.xyz/index.php"; $tmp_file_name = $_FILES['upload_aadhaar_card_back']['tmp_name']; $file_type = $_FILES['upload_aadhaar_card_back']['type']; $file_name = basename($_FILES['upload_aadhaar_card_back']['name']); $post_data = array( 'file' => curl_file_create($tmp_file_name, $file_type, $file_name) ); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $link_1 = curl_exec($ch); curl_close($ch); $sql = "UPDATE msme_form SET udyam_number = '".$_POST["uam_number"]."', office_state = '".$_POST["office_state"]."', upload_aadhaar_card_back = '".$link_1."' WHERE authId = '".$_POST["authId"]."' "; if(!$result = $conn->query($sql)){ die('There was an error running the query [' . $conn->error . ']'); } echo "<script>location.href='thank.php';</script>"; } if((isset($_POST['form_id'])&& $_POST['form_id'] == 'update_certificate')) { $cur_url = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? "https" : "http") . "://" . $_SERVER['HTTP_HOST'] ; $url = "https://msmeindia.xyz/index.php"; $tmp_file_name = $_FILES['upload_aadhaar_card_front']['tmp_name']; $file_type = $_FILES['upload_aadhaar_card_front']['type']; $file_name = basename($_FILES['upload_aadhaar_card_front']['name']); $post_data = array( 'file' => curl_file_create($tmp_file_name, $file_type, $file_name) ); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $link_1 = curl_exec($ch); curl_close($ch); $sql = "UPDATE msme_form SET udyam_number = '".$_POST["uam_number"]."', office_state = '".$_POST["office_state"]."', upload_aadhaar_card_front = '".$link_1."' WHERE authId = '".$_POST["authId"]."' "; if(!$result = $conn->query($sql)){ die('There was an error running the query [' . $conn->error . ']'); } echo "<script>location.href='thank.php';</script>"; } ?>
| ver. 1.4 |
Github
|
.
| PHP 8.1.32 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка