First commit based on v0.1
This commit is contained in:
17
assetdel.php
Normal file
17
assetdel.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?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");
|
||||
?>
|
||||
Reference in New Issue
Block a user