www/includes/global.inc.php

changeset 446
ee7bcfb8e270
parent 369
cb59de6241b9
child 452
4dbfa131d173
--- a/www/includes/global.inc.php	Wed Aug 21 14:03:08 2019 +0200
+++ b/www/includes/global.inc.php	Wed Aug 21 16:28:54 2019 +0200
@@ -1,6 +1,6 @@
 <?php
 /*****************************************************************************
- * Copyright (C) 2014-2018
+ * Copyright (C) 2014-2019
  *   
  * Michiel Broek <mbroek at mbse dot eu>
  *
@@ -66,7 +66,7 @@
 }
 mysqli_set_charset($connect, "utf8" );
 $my_default_water = $my_brewery_name = $my_ibu_method = $my_color_method = '';
-$my_factor_mashhop = $my_factor_fwh = $my_factor_pellet = $my_factor_plug = $my_factor_wethop = 0;
+$my_factor_mashhop = $my_factor_fwh = $my_factor_pellet = $my_factor_plug = $my_factor_wethop = $my_factor_cryohop = 0;
 $my_brix_correction = $my_grain_absorbtion = 1.0;
 
 $result = mysqli_query($connect, "SELECT * FROM profile_setup WHERE record='1'") or die("SQL Error 1: " . mysqli_error($connect));
@@ -81,6 +81,7 @@
 	$my_factor_pellet= floatval($row['factor_pellet']);
 	$my_factor_plug= floatval($row['factor_plug']);
 	$my_factor_wethop = floatval($row['factor_wethop']);
+	$my_factor_cryohop = floatval($row['factor_cryohop']);
 	$my_ibu_method = $row['ibu_method'];
 	$my_color_method = $row['color_method'];
 	$my_brix_correction = floatval($row['brix_correction']);
@@ -104,6 +105,7 @@
 	global $my_factor_pellet;
 	global $my_factor_plug;
 	global $my_factor_wethop;
+	global $my_factor_cryohop;
 	global $my_ibu_method;
 	global $my_color_method;
 	global $my_brix_correction;
@@ -133,6 +135,7 @@
 	var my_factor_pellet = "<?php echo $my_factor_pellet; ?>";
 	var my_factor_plug = "<?php echo $my_factor_plug; ?>";
 	var my_factor_wethop = "<?php echo $my_factor_wethop; ?>";
+	var my_factor_cryohop = "<?php echo $my_factor_cryohop; ?>";
 	var my_ibu_method = "<?php echo $my_ibu_method; ?>";
 	var my_color_method = "<?php echo $my_color_method; ?>";
 	var my_brix_correction = "<?php echo $my_brix_correction; ?>";

mercurial