-
FAQ
- Forum Search
- Community
- Online Manual
- Support Helpers of the Month
- Function Database
logAction
Description
This function handles the moderation log (if enabled).
Syntax
mixed logAction (string $action, array $extra)
Parameter $action
Expected type: Enumerated String
Description: A string indicating what action was carried out (see ViewModLog() for more info)
Possible string values Allowed values Description 'ban' A member was banned 'delete' A post was deleted 'delete_member' A member's account was deleted 'lock' A topic was locked or unlocked 'merge' Two or more topics were merged 'modify' A post or topic was modified 'move' A topic was moved 'news' A news item was added, modified or deleted 'profile' A profile was modified (user's own profile or someone else's) 'prune' A board was pruned 'remove' An entire topic was removed (deleted or recycled) 'split' A topic was split 'sticky' A topic was stickied or unstickied
Parameter $extra
Expected type: Array
Description: An array containing any relevant information about the event being logged (contents varies depending on what's being done)
Return value
Expected type: Mixed
Description:
Possible types Allowed values Description Boolean False if the mod log isn't enabled Integer The ID of the newly created log entry
Notes
- Only logs things if the moderation log is enabled (returns false otherwise)
- Member ID and user's IP address are pulled from global variables ($ID_MEMBER and $user_info['ip'] respectively)
- Adds slashes to the data in $extra with addslashes()
Advertisement:- Help | Terms and Rules | Go Up ▲
- Copyright © 2022 Simple Machines. All Rights Reserved.
- Page created in 0.141 seconds with 13 queries.
- Forum Search