From fe6a73a3d81b124eb532cb953183aab9ce60a2ac Mon Sep 17 00:00:00 2001 From: markjcrane Date: Sun, 14 Feb 2016 03:09:55 -0700 Subject: [PATCH] Add ability to the acl.conf.xml to read a description attribute. --- app/access_controls/app_defaults.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/access_controls/app_defaults.php b/app/access_controls/app_defaults.php index 062bf8a558..2d37a7b0c9 100644 --- a/app/access_controls/app_defaults.php +++ b/app/access_controls/app_defaults.php @@ -97,6 +97,7 @@ $node_type = $row['@attributes']['type']; $node_cidr = $row['@attributes']['cidr']; $node_domain = $row['@attributes']['domain']; + $node_description = $row['@attributes']['description']; //replace $${domain} if (strlen($node_domain) > 0) { $node_domain = str_replace("\$\${domain}", $domain_name, $node_domain); @@ -109,7 +110,8 @@ $sql .= "access_control_uuid, "; $sql .= "node_type, "; $sql .= "node_cidr, "; - $sql .= "node_domain "; + $sql .= "node_domain, "; + $sql .= "node_description "; $sql .= ") "; $sql .= "values "; $sql .= "( "; @@ -117,7 +119,8 @@ $sql .= "'".$access_control_uuid."', "; $sql .= "'".$node_type."', "; $sql .= "'".$node_cidr."', "; - $sql .= "'".$node_domain."' "; + $sql .= "'".$node_domain."', "; + $sql .= "'".$node_description."' "; $sql .= ")"; //echo $sql."\n"; $db->exec(check_sql($sql));