From 97f4c881c18962491fafd9a809bf0c1e8b2b0147 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Fri, 31 Mar 2017 15:30:46 +0200 Subject: Remove statistics api file accidentally committed on manual merge --- apis/statistics.inc.php | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100644 apis/statistics.inc.php (limited to 'apis') diff --git a/apis/statistics.inc.php b/apis/statistics.inc.php deleted file mode 100644 index 2be805ba..00000000 --- a/apis/statistics.inc.php +++ /dev/null @@ -1,29 +0,0 @@ - $cutoff" - . " GROUP BY m.machineuuid"); - -$return = array( - 'now' => $NOW, - 'clients' => array(), - 'locations' => Location::getLocationsAssoc() -); -while ($client = $res->fetch(PDO::FETCH_ASSOC)) { - if ($NOW - $client['lastseen'] > 610) { - $client['state'] = 'OFF'; - } elseif ($client['logintime'] == 0) { - $client['state'] = 'IDLE'; - } else { - $client['state'] = 'OCCUPIED'; - } - $return['clients'][] = $client; -} - -die(json_encode($return)); \ No newline at end of file -- cgit v1.2.3-55-g7522