<?php
//DB Data
include '../../ASEngine/AS.php';
if(!$login->isLoggedIn())
    header("Location: ../../login.php");
$user = new ASUser(ASSession::get("user_id"));
$userInfo = $user->getInfo();

//basic include files
require_once("../../../db.php");

//variables
$element_id = $_GET['elementid'];
$inventory_id = $_GET['inventoryid'];
$pageorigin = $_GET['pageorigin'];

mysqli_query($conn, "UPDATE approved_inventory SET deleted = '1' WHERE inventory_id = '$element_id' ");

mysqli_close($conn);

header("Location: ../../$pageorigin?inventoryid=$inventory_id&message=remove_element");
?>