timeclock
timeclock copied to clipboard
Major multi-purpose update.
- Fix all mysql calls to mysqli calls
- fix all non-initialized variables (mostly in punchclock) causing warnings.
- Replace broken phpweather (noaa discontinued the service) with saratoga-weather, which just looks nicer anyway.
- Fix issues with path to the logo file, which is in timeclock/images but when running code from admin or reports or punchclock it was looking in admin/images etc... oops. Fixed.
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
these following errors show up when performing certain tasks https://pilotweb.nas.faa.gov/qryhtml/icao/ the link is dead trying to delete a time clock entry for a user: Warning: preg_match(): Unknown modifier ',' in C:\xampp\htdocs\timeclock\admin\timedelete.php on line 288 Notice: Undefined variable: tzo in C:\xampp\htdocs\timeclock\admin\timeadd.php on line 546 Notice: Undefined variable: tzo in C:\xampp\htdocs\timeclock\admin\timeadd.php on line 693 hours workded report shows a different time than the time that was entered can not find metar for the city of cleveland, OH as the above link is dead Notice: Undefined index: metar in C:\xampp\htdocs\timeclock\admin\sysedit.php on line 1282