1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 | <?php include_once('include/common.inc.php'); include_header('Webserver and Accessiblity'); echo "<table> <tr><th>name</th><th>webserver</th><th>accessiblity errors</th></tr>"; $agenciesdb = $server->get_db('disclosr-agencies'); $docsdb = $server->get_db('disclosr-documents'); try { $rows = $agenciesdb->get_view("app", "all", null, true)->rows; if ($rows) { foreach ($rows as $row) { echo "<tr><td>" . $row->value->name . "</td>"; if (isset($row->value->website)) { try { $website = $docsdb->get(md5($row->value->website)); $serverParts = explode(" ",$website->web_server); echo "<td>" . $serverParts[0] . "</td>"; if (!isset($website->validation)) { echo "<td>?</td>"; } else { if ($website->validation == "") { echo "<td>No error</td>"; } else { echo "<td><pre>" . str_replace("<", "<", $website->validation) . "</pre></td>"; } } } catch (SetteeRestClientException $e) { // setteErrorHandler($e); } } echo "</tr>"; } } } catch (SetteeRestClientException $e) { setteErrorHandler($e); } include_footer(); ?> |