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
/showthread.php 28 require_once





× This forum is read only. As of July 23, 2019, the UserSpice forums have been closed. To receive support, please join our Discord by clicking here. Thank you!

  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Audit - 3.0.4
#1
An audit table and functions for UserSpice 3.0.4

http://pastebin.com/8yeYUJ29

My first cut&paste offering - feedback welcome.
  Reply
#2
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.
  Reply
#3
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.
  Reply
#4
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
  Reply
#5
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.
  Reply
#6
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.
  Reply
#7
It clearly needs some tweaking - event codes to look up against for example.
  Reply
#8
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.
  Reply
#9
No worries, will do.

And graphs, .... lots of graphs!!
  Reply
#10
You saw all the sample graphs in the sample pages folder, right?
  Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)