The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.1.2-1ubuntu2.14 (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
Status Update 013
#8
Here is my dump for today.

SQL:
http://pasted.co/be8f425c

getNotifications.php - changed to time2str
navigation.php - added separate admin links for everything
admin_message.php - corrected call for messages - have to recall on post, allowed undeletetion of messages
admin_messages.php - corrected a bad call to messages.php, moved mass-message button to top
us_helpers.php - changed deleteMessages function, added time2str, echodatetime and logger function

ADDED:
admin_logs.php
admin_logs_manager.php
admin_logs_exempt.php
admin_logs_mapper.php

time2str will display similar to Facebook, e.g. 3 minutes ago, today, yesterday, one week ago.
Simply use time2str($timestampvarhere)

echodatetime will display Today, Time - Yesterday, Time - DAYOFWEEK - Time (withi 6 days) and then the date.
Simply use echodatetime($timestampvarhere)

For logs: The function is logger(USERID,LOGTYPE,LOGNOTE)
Generally, you should use:
Code:
logger($user->data()->id,"Log Type Here","Log Note Here")

The user icon on admin_logs.php allows you to filter by user, you can also do Ctrl + F1 to get to this.
The book icon allows you to filter by Log Type.
The cog allows you to go to the Logs Manager. From this page, you can exempt certain logtypes from the main view of system logs, and only viewable from the DB, or by filter (user or type). You can also "map" or transfer logs from one type to another. E.g. you have two active Logtypes, "Addition" and "Update", you want all of your Update logs to be "Addition" now, click the Map hyperlink, select Addition, click the checkmark and bam you are good!

I didn't add the logger function to anything in the system - I'm not sure where you want these all. I have no problem going through and adding them, just need to know the level of "logging" you want.

Here is the ZIP:
http://aircentralized.com/alpha13-new.zip
  Reply


Messages In This Thread
Status Update 013 - by mudmin - 09-09-2017, 01:44 PM
Status Update 013 - by Brandin - 09-09-2017, 02:11 PM
Status Update 013 - by Brandin - 09-09-2017, 02:26 PM
Status Update 013 - by Brandin - 09-09-2017, 02:30 PM
Status Update 013 - by Brandin - 09-09-2017, 02:35 PM
Status Update 013 - by mudmin - 09-09-2017, 04:36 PM
Status Update 013 - by Brandin - 09-09-2017, 05:16 PM
Status Update 013 - by Brandin - 09-09-2017, 06:33 PM
Status Update 013 - by karsen - 09-09-2017, 08:07 PM
Status Update 013 - by Brandin - 09-09-2017, 08:45 PM
Status Update 013 - by karsen - 09-09-2017, 08:53 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)