CasperSecurity

Current Path : /var/www/acasv2.uiet.co.in/v.2.0/api/request/Finance/chart_of_account/
Upload File :
Current File : /var/www/acasv2.uiet.co.in/v.2.0/api/request/Finance/chart_of_account/edit_account_group.php

<?php

	session_start();
	
	include '../../../../web/connection/connection.php';
	
	//account group variables
	$account_group_id = $_REQUEST['account_group_id'];
	$account_group_code = $_REQUEST['account_group_code'];
	$account_group_name = $_REQUEST['account_group_name '];
	$modified_on = date("Y-m-d");
	$modified_by = $_SESSION['USER_ID'];
	$is_active = $_REQUEST['is_active'];
	
    //account sub group variables
	$account_sub_group_id = $_REQUEST['account_sub_group_id'];
	$account_group_id = $_REQUEST['account_group_id'];
	$account_group_code = $_REQUEST['account_group_code'];
	$account_group_name = $_REQUEST['account_group_name '];
	$modified_on = date("Y-m-d");
	$modified_by = $_SESSION['USER_ID'];
	$is_active = $_REQUEST['is_active'];
	
	//ledger head variables
	$ledger_head_id = $_REQUEST['ledger_head_id'];
	$account_sub_group_id = $_REQUEST['account_sub_group_id'];
	$ledger_head = $_REQUEST['ledger_head'];
	$ledger_head_name = $_REQUEST['ledger_head_name'];
	$ledger_type = $_REQUEST['ledger_type'];
	$modified_on = date("Y-m-d");
	$modified_by = $_SESSION['USER_ID'];
	$is_active = $_REQUEST['is_active'];
	
    //updating account group tables 
	$db_handle = new DBController();
	$newUpdate = $db_handle->runMyUpdate("UPDATE account_group SET account_group_code = '$account_group_code' , account_group_name = '$account_group_name' ,
										 modified_on = '$modified_on' , modified_by = '$modified_by' , is_active = '$is_active' WHERE account_group_id = '$account_group_id'");
	
	 if($newUpdate == TRUE){
	  
	  echo 'Data updated in table 1 Successfully';
	  
	}else{
	  
	  echo 'Not updated 1' ;
	  
	}
	//updating account sub group tables
	$db_handle = new DBController();
	$newUpdate2 = $db_handle->runMyUpdate("UPDATE account_sub_group SET account_group_id = '$account_group_id' , account_group_code = '$account_group_code' , account_group_name = '$account_group_name' ,
										 modified_on = '$modified_on' , modified_by = '$modified_by' , is_active = '$is_active' WHERE account_sub_group_id = '$account_sub_group_id'");
	
	 if($newUpdate2 == TRUE){
	  
	  echo 'Data updated in table 2 Successfully';
	  
	}else{
	  
	  echo 'Not updated 2' ;
	  
	}
	//updating ledger head tables
	$db_handle = new DBController();
	$newUpdate3 = $db_handle->runMyUpdate("UPDATE ledger_head SET account_sub_group_id = '$account_sub_group_id' , ledger_head = '$ledger_head' , ledger_head_name = '$ledger_head_name' , ledger_type = '$ledger_type' ,
										 modified_on = '$modified_on' , modified_by = '$modified_by' , is_active = '$is_active' WHERE ledger_head_id = '$ledger_head_id'");
	
	 if($newUpdate3 == TRUE){
	  
	  echo 'Data updated in table 3 Successfully';
	  
	}else{
	  
	  echo 'Not updated 3' ;
	  
	}

?>
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