First commit based on v0.1

This commit is contained in:
2023-02-13 08:34:23 +01:00
commit 2efd4ad0ab
56 changed files with 3374 additions and 0 deletions

23
nodedel.php Normal file
View File

@@ -0,0 +1,23 @@
<?php
include("header.php");
// display only if admin
if($_SESSION['suser_level'] >= 2) {
$node_id = $_GET['node_id'];
// get asset id
$result = mysql_query("SELECT asset_id FROM node WHERE node_id='$node_id'") or die(mysql_error());
$asset_id = mysql_result($result, 0, "asset_id");
// delete node
mysql_query("DELETE FROM node WHERE node_id='$node_id'") or die(mysql_error());
// redirect
header("Location: assetview.php?asset_id=" . $asset_id);
// end display only if admin
}
include("footer.php");
?>