Port over from Sourceforge code https://sourceforge.net/projects/timeclock/files/PHP%20Timeclock/