CasperSecurity

Current Path : /var/www/atraket.uiet.co.in/v1.0/api/request/vendor/
Upload File :
Current File : /var/www/atraket.uiet.co.in/v1.0/api/request/vendor/vendor_insert_api.php

<?php
   
session_start();


include '../../connection/connection.php';

 
 $vendor_type = $_REQUEST['vendor_type'];
 $vendor_code = $_REQUEST['vendor_code'];
 $vendor_name = $_REQUEST['vendor_name'];
$vendor_address = $_REQUEST['vendor_address'];
$vendor_tele_phone = $_REQUEST['vendor_tele_phone'];
$vendor_fax = $_REQUEST['vendor_fax'];
$vendor_mail= $_REQUEST['vendor_mail'];
$gst_number= $_REQUEST['gst_number'];
$pan_number= $_REQUEST['pan_number'];
$bank_name= $_REQUEST['bank_name'];
$branch= $_REQUEST['branch'];
$account_number = $_REQUEST['account_number'];
$ifsc_code = $_REQUEST['ifsc_code'];
 $micr_number = $_REQUEST['micr_number'];
 $interstate = $_REQUEST['interstate'];
//$user_id = $_SESSION['USER_ID'];
$user_id = '1';
$date = date("Y-m-d");
$is_active = 'yes';
if(!empty($vendor_code)){
			


$db_handle = new DBController();
$newInsertt = $db_handle->numRows("SELECT * FROM vendor WHERE  vendor_code = '$vendor_code'");


if($newInsertt >= '1'){
	$_SESSION['ERROR_MSG'] = "Vendor Already Exist";
		  $_SESSION['MSG_ALRT'] = "FALSE";
		  header('location:../../../web/home/modules/setup/vendor/vendor_grid.php');
	}else{

		$db_handle = new DBController();
	
		$newInsert = $db_handle->tableinsert("INSERT INTO vendor (vendor_type,vendor_code,vendor_name,vendor_address,vendor_tele_phone,vendor_fax,vendor_mail,vendor_gst,inter_state,created_on,created_by,is_active) 
		VALUES ('$vendor_type','$vendor_code','$vendor_name','$vendor_address','$vendor_tele_phone','$vendor_fax','$vendor_mail','$gst_number','$interstate','$date','$user_id','$is_active')");
		if($newInsert == TRUE){ 
			
			$_SESSION['ERROR_MSG'] = "Success";
		  $_SESSION['MSG_ALRT'] = "TRUE";
		 header('location:../../../web/home/modules/setup/vendor/vendor_grid.php');
		}else{
			 $_SESSION['ERROR_MSG'] = "Unsuccess";
		  $_SESSION['MSG_ALRT'] = "FALSE";
		  header('location:../../../web/home/modules/setup/vendor/vendor_grid.php');
		}
			
	}
}

?>
Hacker Blog, Shell İndir, Sql İnjection, XSS Attacks, LFI Attacks, Social Hacking, Exploit Bot, Proxy Tools, Web Shell, PHP Shell, Alfa Shell İndir, Hacking Training Set, DDoS Script, Denial Of Service, Botnet, RFI Attacks, Encryption
Telegram @BIBIL_0DAY