mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 19:51:42 +09:00
Record member_srl in admin_log table, and change request_vars format to JSON #2421
This commit is contained in:
parent
e61723ce5c
commit
25564913b8
2 changed files with 10 additions and 10 deletions
|
|
@ -31,23 +31,22 @@ class adminloggingController extends adminlogging
|
|||
* Insert log
|
||||
* @return void
|
||||
*/
|
||||
function insertLog($module, $act)
|
||||
public function insertLog($module, $act)
|
||||
{
|
||||
if(!$module || !$act)
|
||||
if (!$module || !$act)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
$args = new stdClass();
|
||||
$args->member_srl = $this->user->member_srl;
|
||||
$args->module = $module;
|
||||
$args->act = $act;
|
||||
$args->ipaddress = \RX_CLIENT_IP;
|
||||
$args->request_vars = json_encode(Context::getRequestVars(), JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES | JSON_PRETTY_PRINT);
|
||||
$args->regdate = date('YmdHis');
|
||||
$args->requestVars = print_r(Context::getRequestVars(), TRUE);
|
||||
|
||||
$args->ipaddress = \RX_CLIENT_IP;
|
||||
$output = executeQuery('adminlogging.insertLog', $args);
|
||||
}
|
||||
|
||||
}
|
||||
/* End of file adminlogging.controller.php */
|
||||
/* Location: ./modules/adminlogging/adminlogging.controller.php */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue