Open
Conversation
php weather used a now-dead noaa service. The replacement saratoga-weather uses a service which is guaranteed to work for a long time. Plus it looks better. -- added files and added variables to config.inc.php
lots of non-initialized variable causing warnings -- fixed. All mysql calls fixed.
// 12 Hour with or without leading zeros with upper or lower case AM or PM
// First digit of hours in 12 hour format can not be > 1.
// First digit of minutes can not be > 5 any time.
// 24 Hour with or without leading zeros with upper or lower case AM or PM
// First digit of hours in 24 hour format can not be > 2.
// First digit of minutes can not be > 5 any time.
// No am/pm in 24 hour format. No need for case indifferent /i.
|
these following errors show up when performing certain tasks |
Create some helper functions to prepare/execute and return result objects so that code can move away from stripslashes/addslashes insanity without too much pain. Converted a handful of scripts so far.
…e matches create_tables.sql
Allow barcode clock-in. This required a few changes:
- Add a punchnext field to punchlist table which specifies which punch
status should be moved to when we scan our barcode.
- Add a barcode UNIQUE field to the employees table.
- Modify user search to accept barcodes: additionally, I removed the
restriction of searching on only a single search term. Terms are now
AND-ed together.
- Create new configuration options "$barcode_clockin" and
"$manual_clockin" which toggle the display of each login form on the
main clock-in screen.
Due to the creation of the "punchnext" property, the In/Out punch field no
longer needs to be filled in even for normal punches (provided the
"punchnext" fields have been populated by an administrator).
The barcode entry is configured to not auto-complete and is automatically
focused on page load, so any barcode scanner or card reader which emulates
keyboard input should work fine.
Barcode clock-in
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Yes, I know this is a huge pull request, but the mysql touched almost every file. This now runs in php 5.5 with NO ERRORS ANYWHERE