CasperSecurity

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

<?php
   
session_start();


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

$asset_group_code = $_REQUEST['asset_group_code'];
$asset_group_name = $_REQUEST['asset_group_name'];



$user_id = $_SESSION['USER_ID'];
$date = date("Y-m-d");
$is_active = 'yes';


if(!empty($asset_group_code)){
			


$db_handle = new DBController();
$newInsertt = $db_handle->numRows("SELECT * FROM  asset_group WHERE asset_group_code = '$asset_group_code' AND asset_group_name = '$asset_group_name' ");


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

		$db_handle = new DBController();
	
		$newInsert = $db_handle->tableinsert("INSERT INTO  asset_group (asset_group_code,asset_group_name,created_on,created_by,is_active) VALUES ('$asset_group_code','$asset_group_name','$date','$user_id','$is_active')");
		if($newInsert == TRUE){     
			$_SESSION['ERROR_MSG'] = "Success";
		  $_SESSION['MSG_ALRT'] = "TRUE";
		  header('location:../../../web/home/modules/setup/Assetsacqisition/assetsacquisitiongrid.php');	
		}else{
			 $_SESSION['ERROR_MSG'] = "Unsuccess";
		  $_SESSION['MSG_ALRT'] = "FALSE";
		  header('location:../../../web/home/modules/setup/Assetsacqisition/assetsacquisitiongrid.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