Raised This Month: $ Target: $400
 0% 

[ANY] adminWatch (v1.2.2)


Post New Thread Reply   
 
Thread Tools Display Modes
Snaggle
AlliedModders Donor
Join Date: Jul 2010
Location: England
Old 06-23-2013 , 07:34   Re: [ANY] adminWatch (v1.2.2)
Reply With Quote #51

Any update on this?
Snaggle is offline
Fearts
ferts of daeth
Join Date: Oct 2008
Old 07-27-2013 , 22:05   Re: [ANY] adminWatch (v1.2.2)
Reply With Quote #52

Would be nice if you added a way to track admin activity from date X to date X.
__________________
Fearts is offline
nineteeneleven
Veteran Member
Join Date: Nov 2010
Old 07-27-2013 , 22:37   Re: Re: [ANY] adminWatch (v1.2.2)
Reply With Quote #53

Quote:
Originally Posted by Fearts View Post
Would be nice if you added a way to track admin activity from date X to date X.
I planned on looking into doing this some time this week
__________________
nineteeneleven is offline
Drixevel
AlliedModders Donor
Join Date: Sep 2009
Location: Somewhere headbangin'
Old 08-09-2013 , 09:33   Re: [ANY] adminWatch (v1.2.2)
Reply With Quote #54

For those interested, this version will work with TF2. The reason why it's not working currently in the official version is because TF2 doesn't use the 'round_start' event, it uses the 'teamplay_round_start' event.

- Jack
Attached Files
File Type: sp Get Plugin or Get Source (adminwatch_tf2.sp - 103 views - 14.8 KB)
Drixevel is offline
Groger
Veteran Member
Join Date: Oct 2009
Location: Belgium
Old 08-10-2013 , 11:54   Re: [ANY] adminWatch (v1.2.2)
Reply With Quote #55

Error in your php code on line 10
PHP Code:
<?php

$PRECISION 
0// Set to 1 if using minutes

/* Do not edit below this line unless you know what youre doing */
require('includes/database.include.php');

function 
convertTime ($time
{
    if (
$PRECISION == 0)
        return 
sprintf("%02d:%02d:%02d"floor($time 3600), ($time 60) % 60$time 60);

    return 
sprintf("%d:%02d"floor($time 60), (abs($time) % 60)); 


$db = new Database();
$db->query('SELECT * FROM `adminwatch`');
has to be:
PHP Code:
<?php

$PRECISION 
0// Set to 1 if using minutes

/* Do not edit below this line unless you know what youre doing */
require('includes/database.include.php');

function 
convertTime ($time
{
    if (
$GLOBALS['PRECISION'] == 0)
        return 
sprintf("%02d:%02d:%02d"floor($time 3600), ($time 60) % 60$time 60);

    return 
sprintf("%d:%02d"floor($time 60), (abs($time) % 60)); 


$db = new Database();
$db->query('SELECT * FROM `adminwatch`');
Groger is offline
chuj
Member
Join Date: Jan 2012
Location: Kraków, Poland
Old 08-12-2013 , 09:24   Re: [ANY] adminWatch (v1.2.2)
Reply With Quote #56

Source code is somehow bugged - after compiling it doesn't count time. If I use precompiled version, it works.
chuj is offline
micazoid
Veteran Member
Join Date: Oct 2010
Location: Munich - Germany
Old 08-12-2013 , 15:08   Re: [ANY] adminWatch (v1.2.2)
Reply With Quote #57

I installed this on my DODS-Server (see my signature) but it only tracks idletime and Admincommands, not playingtime. I left adminwatch.cfg at default. Was this wrong?

Heres my cfg:
Spoiler


Edit:
I also tried to change Grogers Line10 nothing changed for me atm

MySQL-Querybrowser:
Code:
SELECT played FROM war3source.adminwatch a;
played shows 0 on every player
__________________

Last edited by micazoid; 08-12-2013 at 15:31.
micazoid is offline
nineteeneleven
Veteran Member
Join Date: Nov 2010
Old 08-12-2013 , 21:29   Re: [ANY] adminWatch (v1.2.2)
Reply With Quote #58

Here guys, this version of the web panel will strip all special chars... because i hate them.
Attached Files
File Type: 7z web.7z (32.5 KB, 114 views)
__________________
nineteeneleven is offline
nergal
Veteran Member
Join Date: Apr 2012
Old 08-18-2013 , 19:08   Re: [ANY] adminWatch (v1.2.2)
Reply With Quote #59

not to be a bother, but does this work with sqlite?
__________________
nergal is offline
DarthMousemat
Junior Member
Join Date: Aug 2013
Old 08-22-2013 , 10:22   Re: [ANY] adminWatch (v1.2.2)
Reply With Quote #60

I can't seem to be able to get this to work. I'm fairly new to database stuff so is there any "Fools should know this" stuff that I need to do first?

Quote:
L 08/22/2013 - 10:17:03: [adminwatch.smx] Unable to connect to the database. Error: Configuration "adminwatch" not found
L 08/22/2013 - 10:17:03: [adminwatch.smx] [adminWatch] - Unable to connect to the database.
L 08/22/2013 - 10:17:03: [SM] Native "SQL_TQuery" reported: Invalid database Handle 0 (error: 4)
L 08/22/2013 - 10:17:03: [SM] Displaying call stack trace for plugin "adminwatch.smx":
L 08/22/2013 - 10:17:03: [SM] [0] Line 171, C
DarthMousemat is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 23:53.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode