Thu, 30 May 2019 17:39:53 +0200
Improved the progress bars for the fermentables and hops in the editor screens.
<?php require_once('config.php'); if (isset($_GET["uuid"])) $uuid = $_GET["uuid"]; else $uuid = "'ef166f25-1bb4-4bef-b112-a867af77f766'"; $mysqli = new mysqli(DBASE_HOST,DBASE_USER,DBASE_PASS,DBASE_NAME); $query = "SELECT * FROM mon_fermenters WHERE uuid=".$uuid.""; $result = $mysqli->query($query); $resultArray = $result->fetch_array(MYSQLI_ASSOC); if ($resultArray['online'] == 'Y') { $resultArray['online'] = 1; } else { $resultArray['online'] = 0; } header("Content-type: application/json"); echo json_encode($resultArray);