Implement node flags

This commit is contained in:
2023-03-07 14:56:32 +01:00
parent 78b97c5094
commit bfbdc16036
15 changed files with 200 additions and 38 deletions

View File

@@ -167,7 +167,7 @@ $sth->execute([$id]);
$asset = $sth->fetch(PDO::FETCH_OBJ);
$smarty->assign("asset", $asset);
$sql = "SELECT node_id, node_ip,
$sql = "SELECT node_id, node_ip, node.node_flags & 0x1 = 1 AS deleted,
CONCAT(LEFT(node_info, 40), IF(CHAR_LENGTH(node_info)>40,'...','')) AS node_info
FROM node
WHERE asset_id=?