Menu

PHP Timeclock 0.9.4 released

PHP Timeclock Changelog

0.9.4 5/24/05
-----------------------
--- Required the use of at least version 4.1.0 of PHP. This was done to move from the
use of long PHP predefined variable arrays ($HTTP_*_VARS) to PHP superglobal
variable arrays ($_*), which were introduced in PHP 4.1.0. With PHP5's ability
to disable the ($HTTP_*_VARS) arrays using 'register_long_arrays=Off' in php.ini,
i felt it was time to make the switch everywhere in the code.
--- Changed the way time was being stored in the database from a mysql timestamp to a
unix timestamp. This provides the ability to utilize timezone functionalities
and quite possibly other functions for future use.
--- Added a database upgrade script within the app, dbupgrade.php. You can now
choose to upgrade the database via the command line using the mysql statments
included in upgrade_database.sql (as you could have always done), or go to the
administration section of the app and choose to upgrade the db from there. FOR
THIS RELEASE, YOU WILL NEED TO USE THE UPGRADE SCRIPT, dbupgrade.php. This is
because of the need to convert all of your current mysql timestamps into unix
timestamps. Yes, you CAN do this without the script, but the script also takes
into account the timezone of the server so the new unix timestamps will be stored
in GMT.
--- Added the ability to display punch-in/out times in 3 different ways:
1) times can now be displayed according to the end user's timezone. This is done
with the use of javascript and the addition of a cookie to the user's system.
2) times can be displayed according to the web server's timezone. This is the way
times in all previous versions of the distribution have been displayed (it is
also the default setting of this release).
3) times will be displayed in GMT if neither of the two above options are chosen.
This is set in config.inc.php.
--- Added an option to display current, local weather stats. This is done with code
from the PHP Weather project by Martin Geisler and others. PHP Weather is
licensed under the GPL.
--- When printing the main page or the time report, the date and time it is run is
reflected according to how you chose to display your punch-in/out times via
config.inc.php, instead of just assuming you want to use the timezone of the
webserver. This affects ONLY the printouts of these pages.
--- Removed the $time_entry_title variable in config.inc.php and stuffed it into
timereport.php. All this variable did was provide an easy way to change the time
report title.
--- Removed the $left_side_width variable in config.inc.php. This variable set the width
for the left side of each page. The value for this variable has now been hard-coded
into leftmain.php.
--- Combined leftmain.php and timeclack.php into one file, leftmain.php.
--- Fixed a bug where the wrong time and date were being reported in an error message
when a user's time was changed.
--- Performed general code cleanup on a number of files.

Posted by Anonymous 2005-05-24

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.