CasperSecurity

Current Path : /var/www/devatraket.uiet.co.in/devatraket/v1.0/api/request/location/
Upload File :
Current File : /var/www/devatraket.uiet.co.in/devatraket/v1.0/api/request/location/location_edit_api.php

<?php
session_start();

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

ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);

 $location_id=$_REQUEST['locid'];
 $room = $_REQUEST['room'];
 $location_name = $_REQUEST['loc'];
$floor = $_REQUEST['floor'];
$building = $_REQUEST['building'];
$street = $_REQUEST['street'];
$city = $_REQUEST['city'];
$state = $_REQUEST['state'];
$utm_zone= $_REQUEST['utm_zone'];
$utm_side_a= $_REQUEST['utm_side_a'];
$utm_side_a_value= $_REQUEST['utm_side_a_value'];
$utm_side_b= $_REQUEST['utm_side_b'];
$utm_side_b_value= $_REQUEST['utm_side_b_value'];
$latitude = $_REQUEST['latitude'];
$longitude = $_REQUEST['longitude'];
$altitude = $_REQUEST['altitude'];
//$user_id = $_SESSION['USER_ID'];
$user_id = (int)$_SESSION['USER_ID'];
$date = date("Y-m-d");
$is_active = 'yes';
if(!empty($room)){




		$db_handle = new DBController();
		$newInsert = $db_handle->runMyUpdate(" UPDATE location SET room_no='$room', location_name='$location_name' ,floor='$floor' ,building='$building',
		street='$street',
	city='$city',state='$state', utm_zone='$utm_zone',utm_side_a='$utm_side_a', utm_side_a_value='$utm_side_a_value' ,utm_side_b='$utm_side_b',
	 utm_side_b_value='$utm_side_b_value' ,latitude='$latitude', longitude='$longitude' ,altitude='$altitude',
	 modified_on='$date',modified_by = '$user_id' WHERE location_id='$location_id'");
		


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