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_edit_api.php

<?php
session_start();

include '../../connection/connection.php';
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);

$vendor_id = $_REQUEST['vendor_id'];
$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'];
$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();
		$newInsert = $db_handle->runMyUpdate(" UPDATE vendor SET  vendor_type='$vendor_type' ,vendor_code='$vendor_code' ,vendor_name='$vendor_name',
		vendor_address='$vendor_address',vendor_tele_phone='$vendor_tele_phone',vendor_fax='$vendor_fax', vendor_mail='$vendor_mail',vendor_gst='$gst_number',inter_state='$interstate',modified_on='$date',modified_by = '$user_id' WHERE vendor_id='$vendor_id'");
		


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