Commit 6215bf59 authored by Leigh B. Stoller's avatar Leigh B. Stoller

Minor fix to the key deletion code.

parent 9c9526cb
......@@ -93,10 +93,15 @@ if (isset($deletekey)) {
return;
}
DBQueryFatal("delete from widearea_privkeys where privkey='$deletekey'");
DBQueryFatal("delete from interfaces where node_id='$nodeid'");
DBQueryFatal("delete from nodes where node_id='$nodeid'");
DBQueryFatal("delete from nodes where phys_nodeid='$nodeid'");
DBQueryFatal("delete from reserved where node_id='$nodeid'");
if (isset($nodeid) && $nodeid) {
DBQueryFatal("delete from widearea_nodeinfo where node_id='$nodeid'");
DBQueryFatal("delete from widearea_accounts where node_id='$nodeid'");
DBQueryFatal("delete from interfaces where node_id='$nodeid'");
DBQueryFatal("delete from nodes where node_id='$nodeid'");
DBQueryFatal("delete from nodes where phys_nodeid='$nodeid'");
DBQueryFatal("delete from reserved where node_id='$nodeid'");
}
header("Location: wideareakeys.php3");
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment