Specify topic and message in logAction at warnadd2
This commit is contained in:
@@ -94,6 +94,7 @@ function AddWarning2()
|
||||
|
||||
$_REQUEST['level'] = isset($_REQUEST['level']) ? (int) $_REQUEST['level'] : 0;
|
||||
$_REQUEST['msg'] = isset($_REQUEST['msg']) ? (int) $_REQUEST['msg'] : 0;
|
||||
$_REQUEST['topic'] = isset($_REQUEST['topic']) ? (int) $_REQUEST['topic'] : 0;
|
||||
$_REQUEST['user'] = isset($_REQUEST['user']) ? (int) $_REQUEST['user'] : 0;
|
||||
$_REQUEST['timelast'] = isset($_REQUEST['timelast']) ? (int) $_REQUEST['timelast'] : 0;
|
||||
|
||||
@@ -106,7 +107,16 @@ function AddWarning2()
|
||||
preparsecode($message);
|
||||
|
||||
// update moderation log
|
||||
logAction("vwarning", array('member' => $_REQUEST['user'], 'level' => $_REQUEST['level'], 'message' => $message));
|
||||
logAction(
|
||||
"vwarning",
|
||||
array(
|
||||
'member' => $_REQUEST['user'],
|
||||
'level' => $_REQUEST['level'],
|
||||
'topic' => $_REQUEST['topic'],
|
||||
'message' => $_REQUEST['msg'],
|
||||
'warnmessage' => $message
|
||||
)
|
||||
);
|
||||
|
||||
$request = db_query("
|
||||
SELECT ID_MEMBER, memberName, warning, emailAddress
|
||||
|
||||
Reference in New Issue
Block a user