agls function
Former-commit-id: 5783368bfca1b8343d2f11d3aae7d9f830b6433b
--- /dev/null
+++ b/admin/agls.php
@@ -1,1 +1,35 @@
+<?php
+include_once('include/common.inc.php');
+include_header('Webserver and Accessiblity');
+
+echo "<table>
+ <tr><th>name</th><th>function</th></tr>";
+$db = $server->get_db('disclosr-agencies');
+try {
+ $agencies = $db->get_view("app", "byCanonicalName", null, true)->rows;
+
+
+ if ($agencies) {
+ foreach ($agencies as $row) {
+
+ echo "<tr><td>" . $row->value->name . "</td>";
+ if (isset($row->value->metaTags)) {
+ if (is_array($row->value->metaTags)) {
+ $tags =$row->value->metaTags;
+ } else {
+ $tags = object_to_array($row->value->metaTags);
+ }
+ if (isset($tags['AGLS.Function'])) {
+ echo "<td>" . $tags['AGLS.Function'] . "</td>";
+ }
+ }
+ echo "</tr>";
+ }
+ }
+} catch (SetteeRestClientException $e) {
+ setteErrorHandler($e);
+}
+include_footer();
+?>
+