From f2cd332b91867504cb12058343d1ee56ad9c16af Mon Sep 17 00:00:00 2001 From: laf Date: Mon, 20 Jun 2016 23:00:40 +0100 Subject: [PATCH] Updated old frontpage to use new services format --- html/pages/front/default.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/html/pages/front/default.php b/html/pages/front/default.php index 85868f61df..036f57eea3 100644 --- a/html/pages/front/default.php +++ b/html/pages/front/default.php @@ -80,11 +80,11 @@ if ($config['warn']['ifdown']) { FIXME service permissions? seem nonexisting now.. */ // Service down boxes if (is_admin() === true || is_read() === true) { - $sql = "SELECT * FROM `services` AS S, `devices` AS D WHERE S.device_id = D.device_id AND service_status = 'down' AND D.ignore = '0' AND S.service_ignore = '0' AND `D`.`status` = '2' LIMIT ".$config['front_page_down_box_limit']; + $sql = "SELECT * FROM `services` AS S, `devices` AS D WHERE S.device_id = D.device_id AND service_status = '2' AND D.ignore = '0' AND S.service_ignore = '0' LIMIT ".$config['front_page_down_box_limit']; $param[] = ''; } else { - $sql = "SELECT * FROM services AS S, devices AS D, devices_perms AS P WHERE P.`user_id` = ? AND P.`device_id` = D.`device_id` AND S.`device_id` = D.`device_id` AND S.`service_ignore` = '0' AND S.`service_disabled` = '0' AND S.`service_status` = '0' AND `D`.`status` = '2' LIMIT ".$config['front_page_down_box_limit']; + $sql = "SELECT * FROM services AS S, devices AS D, devices_perms AS P WHERE P.`user_id` = ? AND P.`device_id` = D.`device_id` AND S.`device_id` = D.`device_id` AND S.`service_ignore` = '0' AND S.`service_disabled` = '0' AND S.`service_status` = '2' LIMIT ".$config['front_page_down_box_limit']; $param[] = $_SESSION['user_id']; } @@ -252,8 +252,8 @@ else { echo ''; }//end if -echo ''; +?> + + -echo ' -';