Yet Another PHP Time Card https://git.point808.com/Point808/yaptc
Go to file
2017-05-12 11:58:59 -04:00
css updating readme a bit... 2017-05-12 01:14:41 -04:00
fonts Moving to bootstrap, still work to do... main header and footer done and some pages... 2017-05-11 20:57:56 +00:00
inc ok now this is it. stupid mistakes - need a break. this one works. 2017-05-12 11:12:29 -04:00
js Moving to bootstrap, still work to do... main header and footer done and some pages... 2017-05-11 20:57:56 +00:00
lang fix language include, consolidate misc files, last alpha for now 2017-05-12 11:07:03 -04:00
lib Moving to bootstrap, still work to do... main header and footer done and some pages... 2017-05-11 20:57:56 +00:00
.gitignore Added gitignore for config.inc.php 2015-02-12 00:50:25 -05:00
config.inc.php.example fix language include, consolidate misc files, last alpha for now 2017-05-12 11:07:03 -04:00
index.php ok now this is it. stupid mistakes - need a break. this one works. 2017-05-12 11:12:29 -04:00
login.php ok now this is it. stupid mistakes - need a break. this one works. 2017-05-12 11:12:29 -04:00
logout.php ok now this is it. stupid mistakes - need a break. this one works. 2017-05-12 11:12:29 -04:00
manualpunch.php ok now this is it. stupid mistakes - need a break. this one works. 2017-05-12 11:12:29 -04:00
profile.php ok now this is it. stupid mistakes - need a break. this one works. 2017-05-12 11:12:29 -04:00
README.md touch to test gh sync 2017-05-12 11:58:59 -04:00
reports.php ok now this is it. stupid mistakes - need a break. this one works. 2017-05-12 11:12:29 -04:00
users.php ok now this is it. stupid mistakes - need a break. this one works. 2017-05-12 11:12:29 -04:00

YAPTC

About:

Josh North - josh.north@point808.com
Basic (i.e. stupidly simple) timekeeping application. I'm working on more features but who knows if that will get released.

Dev

This is hosted on my server and pushed to github. If you have questions email me, github issues aren't enabled.

License

Free for use and modification. Credit is appreciated if you do anything with it but nothing is required.

Credits

Theory:

We track time in this application by punching start and end times on each record. Times are calculated using MySQL math functions in the queries. This allows us to be more flexible with granularity and time zones, etc etc. Everything else is mostly in line with standard PHP web apps.

Requirements:

  • PHP 7 working fine
  • MySQL (I used MySQL 5.5.41)
  • Web server (tested on NGINX)

Setup Assumptions:

  • You have the above requirements met.
  • You are somewhat familiar with editing PHP config files (I hope).
  • I assume you have git installed - if not, rather than using the git-pull, download the zip from my git page.
  • MAKE SURE YOUR SERVER CLOCK IS CORRECT!!! This system relies on the server time, not the client machine time.

Setup Instructions:

  1. Go to your webserver root as a user with write privileges (i.e. /var/www/html)
  2. Decide what sub-directory you want the app in. I use "timecard" here.
  3. Download the zip release and unzip in the correct directory.
  4. Change to the new directory and copy the config.inc.php.example file to config.inc.php
  5. Edit the config.inc.php top section variables to suit your environment.
  6. Use your MySQL management interface of choice to import the mysql.sql file to your database server. It will create a database named "yaptc". You also need to probably make a user with permissions on that database and that database alone to use in the config file so that this app does not have root mysql permissions!!! Note also - I had trouble importing with some tools. In the end, I used the mysql command line tool and just copied/pasted the text in.
  7. Open the time card app. Login with the default user/pass of "admin" and "admin".
  8. Go for it. Create new users, etc etc etc.

Screenshots:

![Login Page] (https://git.point808.com/attachments/7381ee2d-3bb5-4430-9c37-29527f8bfa4f)
![Home Punch] (https://git.point808.com/attachments/5b762048-54cf-41bf-91b0-468f333f4bae)
![User Profile] (https://git.point808.com/attachments/4b13b0f1-d6ff-4445-93ad-6e699fdba075)
![Manage Users] (https://git.point808.com/attachments/24ab13eb-d32e-4b25-89e1-88edc2e9cbf2)
![Punch Editor] (https://git.point808.com/attachments/ec4fa0e7-caa4-46d5-ab9c-d08ea55b1eb5)
![Reports] (https://git.point808.com/attachments/dbe6fee9-f1ad-49bb-8a30-f8e568f54e64)