CasperSecurity

Current Path : /var/www/mvc360.ucnms.co.in/v.2.0/api/request/organisation_user/work_flow/
Upload File :
Current File : /var/www/mvc360.ucnms.co.in/v.2.0/api/request/organisation_user/work_flow/add_new_work_flow.php

<?php

	session_start();
	
	include '../../../../web/connection/connection.php';
	
	//add new workflow
	
	$work_flow_id = $_REQUEST['work_flow_id'];
	$feature_id = $_REQUEST['feature_id'];
	$work_flow_type = $_REQUEST['work_flow_type'];
	$any = $_REQUEST['any'];
	$no_approvers = $_REQUEST['no_approvers'];
	$created_on = date('Y-m-d');
	$created_by = $_SESSION['USER_ID'];
	$is_active = 'yes';
	
	
	// add new workflow designation
	
	$work_flow_designation_id = $_REQUEST['work_flow_designation_id'];
	$work_flow_id = $_REQUEST['work_flow_id'];
	$sl_no = $_REQUEST['sl_no'];
	$department_id = $_REQUEST['department_id'];
	$designation_id = $_REQUEST['designation_id'];
	$employee_id = $_REQUEST['employee_id'];
	
	//inserting data into workflow table
        $db_handle = new DBController();
		
		$newInsert = $db_handle->tableinsert("INSERT INTO work_flow(work_flow_id,feature_id,work_flow_type,any,no_approvers,created_on,created_by,is_active)
		VALUES('$work_flow_id','$feature_id','$work_flow_type','$any','$no_approvers','$created_on','$created_by','$is_active')");
				
		if($newInsert == TRUE){
		  
		  echo 'Data Inserted into table 1 Successfully';
		  
		   	//if insertion is successful in designation table then fetch a particular primary key needed
			
		$db_handle = new DBController();
		$select = $db_handle->runQuery("SELECT work_flow_id FROM work_flow  WHERE work_flow_id = '$work_flow_id' ");
		foreach ($select as $v){
			$work_flow_id = $v['work_flow_id']; // unique primary key needed as a data for the nested table
		}
		
		// inserting data into designation grade table
		
		 $db_handle = new DBController();
		
		$newInsert2 = $db_handle->tableinsert("INSERT INTO work_flow_designation(work_flow_designation_id,work_flow_id,sl_no,department_id,designation_id,employee_id)
		VALUES('$work_flow_designation_id','$work_flow_id','$sl_no','$department_id','$designation_id','$employee_id')");
				
		if($newInsert2 == TRUE){
		  
		  echo 'Data Inserted Successfully in table 2';
		  
		}else{
		  
		  echo 'Not Inserted 2' ;
		  
		}
		
		 
		
		  
		}else{
		  
		  echo 'Not Inserted 1' ;
		  
		}
?>
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