The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.2.25 (Linux)
File Line Function
/global.php(961) : eval()'d code 26 errorHandler->error
/global.php 961 eval
/printthread.php 16 require_once



UserSpice
Audit - 3.0.4 - Printable Version

+- UserSpice (https://userspice.com/forums)
+-- Forum: Miscellaneous (https://userspice.com/forums/forumdisplay.php?fid=28)
+--- Forum: Modifications and Hackery (https://userspice.com/forums/forumdisplay.php?fid=29)
+--- Thread: Audit - 3.0.4 (/showthread.php?tid=31)



Audit - 3.0.4 - astropos - 01-23-2016

An audit table and functions for UserSpice 3.0.4

http://pastebin.com/8yeYUJ29

My first cut&paste offering - feedback welcome.


Audit - 3.0.4 - mudmin - 01-23-2016

I scanned through the code. Can you give me a little bit better idea what it does? What's your use case? Just curious. It looks well written, I'm just wondering what you're doing with it.


Audit - 3.0.4 - astropos - 01-23-2016

Sure.

It provides for storing a record of user/admin actions. Whenever there is a database write (eg updateDisplayName() in admin_user.php), we can write an audit record.

Use case, I see it as core functionality for any web app.


Audit - 3.0.4 - astropos - 01-23-2016

I got a test system up: http://cw1.cloudwidgets.co.uk

You can see the user view of the audit on account.php

If I see a login for you, I'll bump you up to admin for a look at the full view.

cheers

A


Audit - 3.0.4 - mudmin - 01-23-2016

That's really cool! I like it.

I'm going to be building little plugin modules for people having the ability to add/remove features like that. I have to think through how to do it a little bit. I want to add features like that but want to keep them out of the way for people who choose not to use them.


Audit - 3.0.4 - astropos - 01-23-2016

Cool; I'm going to push on with it for notifications in the top-nav.

When I log in as admin, I'd like to see the number of failed logins.


Audit - 3.0.4 - astropos - 01-23-2016

It clearly needs some tweaking - event codes to look up against for example.


Audit - 3.0.4 - mudmin - 01-23-2016

I REALLY like that idea....now I get what you're doing. That could be really handy as the default page for a super admin or something like that. Please keep me posted on your progress with that. I also emailed you with the latest 3.1 code. Thanks so much for your help.


Audit - 3.0.4 - astropos - 01-23-2016

No worries, will do.

And graphs, .... lots of graphs!!


Audit - 3.0.4 - mudmin - 01-24-2016

You saw all the sample graphs in the sample pages folder, right?