From 08a452c2885eb3ce6bc58becf3f97212a1c02804 Mon Sep 17 00:00:00 2001 From: Brian Flowers Date: Mon, 10 Oct 2016 18:08:44 -0400 Subject: [PATCH] Testing of independent graph module --- graph.php | 82 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 82 insertions(+) create mode 100644 graph.php diff --git a/graph.php b/graph.php new file mode 100644 index 0000000..d930b49 --- /dev/null +++ b/graph.php @@ -0,0 +1,82 @@ +query("SELECT DISTINCT host FROM MEASUREMENTS"); +while($host = $result->fetchArray(SQLITE3_ASSOC)) + if ( $host['host'] ) + array_push($hosts, $host['host']); +$host = $_GET['host']; + +if( !in_array($host, $hosts) ) + die("Error: Host not found."); + + +?> + + + + bdsm at monitor.slightlycyberpunk.com | <?php echo $host; ?> + + + + + + -- 1.8.3.1