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_insert_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'];


 $date = date("Y-m-d H:i:s");
 $active = 'yes';
 $user_id = $_SESSION['USER_ID'];
//$userId = '1';

if(!empty($counter_no)){
	
	$db_handle = new DBController();
$newInsertt = $db_handle->numRows("SELECT * FROM sales_counter WHERE counter_no = '$counter_no' ");


if($newInsertt >= '1'){
	$_SESSION['ERROR_MSG'] = "counter no Already Exist";
		  $_SESSION['MSG_ALRT'] = "FALSE";
	        header('location:../../../../web/home/modules/sales/counter_sale/sale_counter_grid.php');
	}else{

   
	    $db_handle = new DBController();
	    $newInsert = $db_handle->tableinsert("INSERT INTO sales_counter(counter_no,mac_address1,mac_address2,mac_address3,mac_address4,created_on,created_by,is_active) 
		VALUES ('$counter_no','$mac_address1','$mac_address2','$mac_address3','$mac_address4','$date','$user_id','$active')");
	


if($newInsert == TRUE){ 
			
			$_SESSION['ERROR_MSG'] = "Success";
		    $_SESSION['MSG_ALRT'] = "TRUE";
	        header('location:../../../../web/home/modules/university/Canteen/counter_sale/sale_counter_grid.php');
		   }else{
		    $_SESSION['ERROR_MSG'] = "Unsuccess";
		    $_SESSION['MSG_ALRT'] = "FALSE";
	        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