diff --git a/templates/webpanel/controllers/Pass_Controller.php b/templates/webpanel/controllers/Pass_Controller.php deleted file mode 100644 index f2c54d9..0000000 --- a/templates/webpanel/controllers/Pass_Controller.php +++ /dev/null @@ -1,6 +0,0 @@ -db_dir); - $passes = $db_con->getPasses(); - require('views/PassList.php'); -?> diff --git a/templates/webpanel/models/DB_Conn.php b/templates/webpanel/models/DB_Conn.php deleted file mode 100644 index 6bb7773..0000000 --- a/templates/webpanel/models/DB_Conn.php +++ /dev/null @@ -1,30 +0,0 @@ -con = new SQLite3($db_dir . 'panel.db'); - } - - public function getPasses() { - $today = strtotime(date('Y-m-d', time())); - $query = $this->con->query("SELECT sat_name, - is_active, - pass_start, - pass_end, - max_elev - FROM predict_passes - WHERE (pass_start > $today) - ORDER BY pass_start ASC;"); - $passes = []; - $i = 0; - - while($row = $query->fetchArray()) { - $passes[$i] = $row; - $i++; - } - - return $passes; - } - } -?> diff --git a/templates/webpanel/views/PassList.php b/templates/webpanel/views/PassList.php deleted file mode 100644 index 7bcd0da..0000000 --- a/templates/webpanel/views/PassList.php +++ /dev/null @@ -1,41 +0,0 @@ - - -
- | - | - | - | 0 " . $lang['passes'] . " | "; - } else { - foreach ($passes as $pass) { - $pass_start = date('H:i:s', $pass['pass_start']); - $pass_end = date('H:i:s', $pass['pass_end']); - - # gray out anything that has already run or did not run because there - # was another overlapping capture but is now in the past - if ($pass['is_active'] == false or $pass_end < $now) { - echo "
---|---|---|---|
". $pass['sat_name'] ." | "; - echo "" . $pass_start ." | "; - echo "" . $pass_end . " | "; - echo "" . $pass['max_elev'] ." | "; - echo "