# HG changeset patch # User Michiel Broek # Date 1535190031 -7200 # Node ID 4b829f689d7e4cffe13ad7eeca302736c1a9ab34 # Parent d6314a95021cc9c4d7fc139ff1c663c3dcc7337f Monitor nodes sorting and removed obsolete scripts. diff -r d6314a95021c -r 4b829f689d7e www/Makefile --- a/www/Makefile Fri Aug 24 23:00:15 2018 +0200 +++ b/www/Makefile Sat Aug 25 11:40:31 2018 +0200 @@ -3,8 +3,7 @@ include ../Makefile.global -SRC = getfermenter.php getfermenters.php \ - getnode.php getnodes.php config.php.dist index.php \ +SRC = getfermenter.php getnode.php config.php.dist index.php \ inv_fermentables.php inv_hops.php inv_mash_profiles.php \ inv_miscs.php inv_suppliers.php inv_water_profiles.php \ inv_water_sources.php inv_yeasts.php inv_equipments.php \ diff -r d6314a95021c -r 4b829f689d7e www/getfermenters.php --- a/www/getfermenters.php Fri Aug 24 23:00:15 2018 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,12 +0,0 @@ -query("SELECT uuid,node,alias,online,mode FROM fermenters"); -while($row = $result->fetch_array(MYSQLI_ASSOC)) { - if ($row['online'] == 'Y') - $row['online'] = true; - else - $row['online'] = false; - $resultArray[] = $row; -} -echo json_encode($resultArray); diff -r d6314a95021c -r 4b829f689d7e www/getnodes.php --- a/www/getnodes.php Fri Aug 24 23:00:15 2018 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,12 +0,0 @@ -query("SELECT uuid,node,online,net_address FROM nodes"); -while($row = $result->fetch_array(MYSQLI_ASSOC)) { - if ($row['online'] == 'Y') - $row['online'] = true; - else - $row['online'] = false; - $resultArray[] = $row; -} -echo json_encode($resultArray); diff -r d6314a95021c -r 4b829f689d7e www/includes/global.inc.php --- a/www/includes/global.inc.php Fri Aug 24 23:00:15 2018 +0200 +++ b/www/includes/global.inc.php Sat Aug 25 11:40:31 2018 +0200 @@ -92,7 +92,7 @@