Files
ipreg/assetdel.php
T
2023-02-13 08:34:23 +01:00

17 lines
409 B
PHP

<?php
include("header.php");
// display only if admin
if($_SESSION['suser_level'] >= 2) {
$asset_id = $_GET['asset_id'];
mysql_query("DELETE FROM asset WHERE asset_id='$asset_id'") or die(mysql_error());
mysql_query("DELETE FROM node WHERE asset_id='$asset_id'") or die(mysql_error());
header("Location: asset.php");
// end display only if admin
}
include("footer.php");
?>