56 Commits

Author SHA1 Message Date
8d72a45e84 add Docker deployment 2024-03-05 16:40:28 -08:00
b2e79a4a9a update README to reflect that this is a Git repo now :) 2024-02-22 13:32:32 -08:00
George Hotelling
9da2f4ec9f Adds iCalendar file for upcoming brewBlogs and the upcoming recipes. It can be accessed from a link in the upper-right of the calendar screen, and should work both with single-player and massively multiplayer sites.
Note that this adds a new 3rd-party library, iCalcreator.class.php from http://kigkonsult.se/iCalcreator/index.php (GPL/LGPL dual licensed)
2012-08-13 02:38:42 +00:00
George Hotelling
5d6bdd07aa Stabilizing trunk so that development can continue.
* Removed check_mobile include which was crashing pages like the admin section (it was previously added to functions.inc.php)
* Fixed ABV display in lists
* Fixed bitterness calculations.
* Removed call-time pass-by-reference in BeerXML parser, since it is no longer supported by PHP
2012-08-11 15:08:49 +00:00
Geoff Humphrey
0ebad02de1 Continuing consolidation effort.
Eliminated efficiency.inc.php file - moved functionality to the functions.inc.php file and converted to a function. Called the function in the appropriate area in the recipe_mash.inc.php file.
2011-09-08 20:01:12 +00:00
Geoff Humphrey
6de47e4da0 Beginning consolidation effort. The plan is to house all functions in the functions.inc.php file, streamline db calls by "modules" to call when needed and not on every page load (hence the addition of the 'db' sub-directory in the 'includes' directory. Also, beginning to eliminate unneeded tables in favor of CSS for presentation purposes. The recipe_specifics.inc.php file reflects the newer presentation schema. 2011-09-04 18:35:17 +00:00
Geoff Humphrey
bc73bf90ce Mostly cleaning up and standardizing paths. 2011-08-25 22:04:14 +00:00
Kevin Masaryk
a8a362efd3 Put all the hops display stuff into a loop and general
code cleanup..probably removed about 700 lines of code
so more efficient and easier to read/work with now.
2011-08-20 00:21:15 +00:00
Geoff Humphrey
fc70db68e8 Made some minor revisions. Turning my attention back to this project - planning on cleaning up code (Kevin has a great start at it) for a 2.3.3 release before a full conversion built upon a framework, most likely CakePHP. 2011-08-12 15:43:36 +00:00
Geoff Humphrey
550869e414 2011-08-11 00:03:04 +00:00
Geoff Humphrey
962ed16a37 2011-08-10 23:18:44 +00:00
Kevin Masaryk
8263110242 The moduels are no longer needed. Color functions are all in the
color library now and the form var loading was conslidated into
other modules.
2011-08-01 17:45:39 +00:00
Kevin Masaryk
772f36e6ab Lots of changes with this update. The most significant is the rewrite
of color management. I moved all color functions into a color library
admin/lib/color.lib.php. I also consolidated a lot of code in various
modules. Three color formulas are available now: Morey, Moser and 
Daniels and the user can set their default in preferences.
2011-08-01 17:39:35 +00:00
Kevin Masaryk
31411b4f1a Significant amount of changes in this update. All dependencies on the 'sugar_type' table have been removed. I left the table intact in the db in case we run into bugs in this release and need it for reference. It should be dropped in the next release, though. Each feremntable table (malt, extract and adjuncts) now contains it's own PPG field so no lookups need to be done in 'sugar_type' (see below).
The lovibond fields have also been removed from each fermentable table and two new fields were added in its place: 'xxxLovibondLow' and 'xxxLovibondHigh' (see below). Only LovibondLow is a required field; If LovibondHigh isn't present, the LovibondLow value will be used as the high value. For example, if Low is 8.00 and High is 0.00 then the range will become 8.00-8.00 in all calculations and presentation of the Lovibond data.

I've also made type updates to most fields in each fermentable table to better reflect the data being stored. This should increase query efficiency, reduce db size and ensure sane data is added.

Obviously, a ton of files had to be updated to enable these changes to the db tables. I also created two new 2.3.3 files under sql/ for new installs or updates.

**Lovibond calculations are currently broken.** This is something I'm working on but I wanted to commit the code I have now since all the sugar_type and PPG changes are finished.

'malt' table
maltYield --> maltPPG
maltLovibond --> dropped
maltLovibondLow --> added
maltLovibondHigh --> added

'extract' table
extractYield --> extractPPG
extractLovibond --> dropped
extractLovibondLow --> added
extractLovibondHigh --> added

'adjuncts' table
adjunctYield --> adjunctPPG
adjunctLovibond --> dropped
adjunctLovibondLow --> added
adjunctLovibondHigh --> added
2011-06-08 22:21:29 +00:00
Kevin Masaryk
84272cd919 Significant changes to code but not functionality in this commit.
Initial intention was to fix the IBU issue in Bug 3138339 (SourceForge) 
plus some other IBU calc issues but one thing led to another and 
numerous files needed to be updated. Code in many of the files for this 
project is nearly impossible to read due to poor/no formatting. In most of 
the updated files in this commit:

* Major re-formatting of code to increase readability.

* Fixes to logic errors; Conditional branches that will never execute 
under any circumstance, for example.

* Implemented PHP best practices in code style. The standards listed on 
the PEAR site are a good start: 
http://pear.php.net/manual/en/standards.php

* Implemented arrays, hashes, constants and 'else' conditionals where 
relevant. These features of the language seem to have been overlooked
in most of the files updated.

* All bitterness calculations now use the admin/lib/bitterness.lib.php 
library. Cut-n-paste instances of the formulas have been removed from
all modules in the project now (unless I missed any).

* admin/includes/constants.inc.php has been added to the project to 
contain constants. Many constants can probably be moved into this file 
over time; However, those containing relative paths may prove to be 
difficult so they might be better left out.

* Major changes to the method of collecting POST data and formatting it
for commits to the database in the admin/process.php module. The
functionality is the same but it's much easier to read and manage now.
Many of the sections in this file still need to be updated, however.

* Trying to add comment headers to each file as I think about it. A
short description of what the file does goes a long way in helping
to understand the flow.

Overall, there was a reduction of over 2,900 lines of code from these
files being committed. The break down on the larger ones:

recipe_calculator.php = 146
process.php           = 2066
importFormVar         = 139
calcFormVar           = 143
calculations          = 414

I hope I haven't stepped on any toes with this update but I believe the
changes make it easier for everyone to read and follow the code and,
therefore, easier to fix bugs, add features, etc.
2011-03-13 18:25:01 +00:00
Geoff Humphrey
efd5985333 Hopefully the final (!) commits for the 2.3.2 release. Post BETA fixes and enhancements. 2010-11-17 06:44:39 +00:00
Geoff Humphrey
4b8c8e762f First post-beta fixes. 2010-11-04 15:12:33 +00:00
Geoff Humphrey
7705310aa7 Fixes for SourceForge reported bugs: 307620, 3076257, and 3076255. Further testing will verify. 2010-09-28 22:46:00 +00:00
Geoff Humphrey
ad74a454da Ok, really the final commits for the Beta!! 2010-09-22 19:20:44 +00:00
Geoff Humphrey
5110d5eda4 Last-minute beta testing commits. Ugh. 2010-09-21 21:04:02 +00:00
Geoff Humphrey
d23b4d1d14 Last commits before beta testing period starting September 20, 2010. 2010-09-14 19:53:49 +00:00
Geoff Humphrey
32e3ac240d Made changes to fix the printing issue reported by Kevin M. Also made changes to make presentation of data more consistent. Added print.php stand-alone page and revised the layout to include a larger "Brew Day Data" section along with a new "Brew Day Notes" section. These will print on a separate page.
Defined constants in index.php for various paths (e.g., includes, sections, etc.). Will employ the use of these across the application - this commit begins the process.
2010-08-30 20:45:35 +00:00
Geoff Humphrey
0908a9cd1e Minor changes for 2.3.2 release. 2010-08-23 00:39:46 +00:00
Kevin Masaryk
0434bc5b54 Fixed bug 3037597 (Target OG/SG recalc issue).
Also, importing a blog from a recipe now assigns the recipe's OG/FG to
target OG/FG in the blog.
2010-08-21 15:57:53 +00:00
Geoff Humphrey
9b4843098b 2010-08-17 19:50:43 +00:00
Geoff Humphrey
ed13f5769d These are the final file commits with new, updated, or improved code that I have. I plan on releasing the 2.3.2 package by the end of the month, after testing of course.
If there is any code that is new, please finish it and commit ASAP.

All coding from this point forward should only be for bug fixes.

~ Geoff
2010-07-27 17:24:06 +00:00
Geoff Humphrey
ed77dd8f86 2010-07-24 20:17:15 +00:00
Kevin Masaryk
20cd4c88e3 Added a 'hopPelletFactor' field to the 'preferences' table.
Added ability for admin to set the hopPelletFactor in the Preferences form.
Added sanity checking to the new field.
The bitterness library pulls the pelletFactor value from the preferences
table now.
2010-07-23 22:34:02 +00:00
Geoff Humphrey
6b2d853614 CSS styling to the "Add Hop Entry" button on the bitterness calculator.
Getting ready to release 2.2.3. Any other revisions?
2010-07-23 19:39:18 +00:00
Geoff Humphrey
d26b9c056c Further refinements to recipe calculator to accommodate the additional hop and malt fields. Cleaned up some redundant code. 2010-07-20 20:57:38 +00:00
Geoff Humphrey
cdbb83cfb1 Working on adding more table rows for Grains and Hops. Just a temporary response to the request for more fields. In the future, I would like to work out a way to store extract, grain, adjunct, hop, and misc ingredients into relational DB tables instead of the current setup.
This piggybacks upon Kevin's new Bitterness calculator methodology.
2010-07-20 18:19:38 +00:00
Kevin Masaryk
b4640b6d07 Hydrometer Calc
Rearranged some of the code for readability and easier management.
Minor update to the interface.

Bitterness Calc
Significant rewrite to much of the code.
Modified interface to allow dynamic additions of hop entry fields.
Max number of hop entry fields is controlled by a constant at
the top of the file: $MAX_HOPS.
Moved all constants to the top.
Moved all JavaScript to bitterness.js since there's a lot more of
it now - the hop entry field stuff is all JS.
Modified the interface to make Garetz calculations optional.
Modifications to $pelletFactor. This is a constant at the top
right now but will soon be set in prefs.
Moved all IBU formulas into a separate library, bitterness.lib.php.
This will allow all IBU calculations to be handled in one file
instead of duplicating the code. The next step is to convert the
recipe/blog IBU code to start using it.

Updated all relevant files to link to the two calculators which
were modified/added.
2010-07-20 17:49:32 +00:00
Geoff Humphrey
85506af498 Finalizing 2.3.2 release items. 2010-06-24 21:01:22 +00:00
Geoff Humphrey
1383c232f3 Bug fixes. 2010-06-10 22:12:12 +00:00
Geoff Humphrey
8bfb68d82f More 2.3.2 commits. Looking to release in July after testing. 2010-05-28 20:17:43 +00:00
Geoff Humphrey
0ef4f47721 More 2.3.3 commits. 2010-03-31 19:49:01 +00:00
Geoff Humphrey
d32b264710 First 2.3.3 commits. 2010-03-22 22:24:31 +00:00
Geoff Humphrey
8e53de2aca More 2.3.2 commits: updated SQL docs. 2010-02-08 17:09:43 +00:00
Geoff Humphrey
73e158028f Preliminary 2.3.2 commits. Updated navigation schemas and bug fixes. New theme. 2010-02-05 18:37:27 +00:00
Geoff Humphrey
66848ea1dd 2010-01-20 00:49:05 +00:00
Geoff Humphrey
650d2047bd 2010-01-19 22:39:07 +00:00
Geoff Humphrey
ea7bd6d6be 2010-01-19 22:38:50 +00:00
Geoff Humphrey
411b0f805b Finalizing 2.3.1 release. 2010-01-19 18:17:54 +00:00
Geoff Humphrey
6d6577f155 Bug fixes. 2010-01-05 22:02:57 +00:00
Geoff Humphrey
dec14835eb Minor additions: yeast info popup for bb/recipe display; narrow recipe and bb lists by style with a click on a certain style; fixed some inconsistencies in the db_connect_log.inc.php file. 2010-01-05 21:44:17 +00:00
Geoff Humphrey
279b5ea8cb Finalizing 2.3.1 sub release. Fixed bug where brewBoilTime in the recipes table was not being recorded to the DB. 2009-11-14 00:14:09 +00:00
visual77
c230ddc702 added a basic kohana system to be fleshed out into a nrew brewblogger 2009-11-06 06:00:53 +00:00
visual77
519ac81824 removed some of the repeated code in place of for loops using variable variables for iteration 2009-10-27 14:58:22 +00:00
Geoff Humphrey
2e05236c35 2009-10-27 12:02:04 +00:00
visual77
a8e1dfbed6 put the SQL installation script in with the trunk so the entirety of brewblogger is clustered in the repository 2009-10-17 03:27:13 +00:00