CasperSecurity

Current Path : /var/www/acasv2.uiet.co.in/v.2.0/api/request/sales/sale_counter_api/
Upload File :
Current File : /var/www/acasv2.uiet.co.in/v.2.0/api/request/sales/sale_counter_api/sale_counter_edit_api.php

<?php
session_start();
include '../../../../web/connection/connectionv2.php';	


$sales_counter_id = $_REQUEST['sales_counter_id'];

$counter_no = $_REQUEST['counter_no'];
$mac_address1 = $_REQUEST['mac_address1'];
$mac_address2 = $_REQUEST['mac_address2'];
$mac_address3 = $_REQUEST['mac_address3'];
$mac_address4 = $_REQUEST['mac_address4'];
$is_active = $_REQUEST['status'];

if($is_active == 'Active'){
								
    $status = 'yes';
 }else{
	 $status = 'no';
}

$date = date("Y-m-d H:i:s");

$userId = $_SESSION['USER_ID'];
//$userId = '1';

if(!empty($sales_counter_id)){
$db_handle = new DBController();
$newUpdate = $db_handle->runMyUpdate("UPDATE sales_counter SET counter_no = '$counter_no', mac_address1 ='$mac_address1', mac_address2 = '$mac_address2',
mac_address3 = '$mac_address3', mac_address4 ='$mac_address4',is_active = '$status', modified_on='$date', modified_by='$userId' WHERE sales_counter_id  = '$sales_counter_id'");
		
if($newUpdate === TRUE){ 
			
			$_SESSION['ERROR_MSG'] = "Success";
		  $_SESSION['MSG_ALRT'] = "TRUE";
		  header('location:../../../../web/home/modules/university/Canteen/counter_sale/sales_return.php');
		}else{
			 $_SESSION['ERROR_MSG'] = "Unsuccess";
		  $_SESSION['MSG_ALRT'] = "FALSE";
		  header('location:../../../../web/home/modules/university/Canteen/counter_sale/sales_return.php');
		}
			
	}

header('location:../../../../web/home/modules/university/Canteen/counter_sale/sale_counter_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