-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
45 lines (35 loc) · 1.05 KB
/
index.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<?php
/** query2view reads a flatfile of and then displays output, or error if the
* necessary id is not passed. stealth by default, not noise.
*
* example: /query2view/?_id=default&my-heading1&another-heading-in-order
*
*/
include_once '../lib/config.php';
include_once '../lib/utils.php';
include_once '../lib/shared.php';
include_once '../lib/file.php';
include_once '../lib/file-updates.php';
include_once '../lib/header.php';
?>
<div class="wrapper">
<?php
$db = '../query2update/db/' . $configs['_id'] . '.csv';
$updates = get_updates( $db );
if ( FALSE == $updates )
{
echo '<h4 class="alert alert-danger">Could not read updates.</h4>' . "\n";
} else {
$inputs = array("_time" => $now,"_ip" => $configs['_ip']) + $inputs;
$headers = array_keys($inputs);
$body_display =
'<table class="table table-striped table-bordered table-hover">' .
"\n";
$body_display .= get_updates_table( $updates, $headers );
$body_display .= "</table>\n";
echo $body_display;
}
?>
</div>
<?php
include_once '../lib/footer.php';