scraper monitoring page
[disclosr.git] / documents / checkScrapers.php
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
<?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", "byCanonicalName", null, true)->rows;
 
 
    if ($rows) {
        foreach ($rows as $row) {
 
            echo "<tr><td>" . $row->value->name . "</td>\n";
             echo "<td>";
             if (isset($row->value->FOIDocumentsURL)) {
                 echo '<a href="viewDocument.php?hash='.md5($row->value->FOIDocumentsURL).'">'
                     .$row->value->FOIDocumentsURL.'</a>';
             }
            echo "</td>\n";
            echo "</tr>\n";
        }
    }
} catch (SetteeRestClientException $e) {
    setteErrorHandler($e);
}
include_footer();
?>