From: Brian Flowers Date: Mon, 10 Oct 2016 22:08:44 +0000 (-0400) Subject: Testing of independent graph module X-Git-Url: http://git.slightlycyberpunk.com%2C%20git.slightlycyberpunk.com/git/?a=commitdiff_plain;h=08a452c2885eb3ce6bc58becf3f97212a1c02804;p=bdsm-web.git Testing of independent graph module --- 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; ?> + + + + + +