alright as promised here is the fixed version.
I made a few changes in it.
It also saves the time on round end now and not only when a admin disconnects.
I have changed so the played timer dosnt stop on round end since you are still "playing".
I have also made some changes to the web part.
The real idle(spec) time is shown now, played time is shown as before and I have added a total time which is idle + played.
I have also made so you can sort your admins by name, total time played, played time, idle time and last played.
You can see what the page looks like here
http://www.clanroyal.dk/adminwatch/index.php
For setup, just follow the
first post in this topic
__________________________________________
Web Settings
I have added a few settings in the top of the index.php to make it alittle easier for you guys
PHP Code:
$backgroundurl = ""; // Change the background image
$backgroundcolor = "white"; // Change the background color, using color name (yellow), hex (#00ff00) or rbg (rgb(255,0,255))
$adjusttimedate = "+2 hours"; // Adjust the time/date for Last Played and Commands logs -1 hours, +2 hours, +6 hours, +1 day, +2 days, and so on
$steamprofile = "2"; // If 1 steam profile is linked in the name if 2 steam profile is linked under the name as (View Steam Profile)
___________________________
Updates
Code:
6th July 2016:
Web version 1.2
- Added clickable link to the admins steam profile in the name
- Fixed possible issue with Last played date not sorting correctly
- Added so you can set a custom background (see line 2 and 3 in index.php)
- Changed so the whole site layout is more "solid" if using a custom background
- Added a settings section in the index.php