mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-05 09:41:40 +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 */
|
||||
|
|
|
|||
|
|
@ -3,11 +3,12 @@
|
|||
<table name="admin_log" />
|
||||
</tables>
|
||||
<columns>
|
||||
<column name="ipaddress" var="ipaddress" notnull="notnull" />
|
||||
<column name="regdate" var="regdate" />
|
||||
<column name="site_srl" var="siteSrl" filter="number" default="0" />
|
||||
<column name="site_srl" var="site_srl" filter="number" default="0" />
|
||||
<column name="member_srl" var="member_srl" filter="number" default="0" />
|
||||
<column name="module" var="module" />
|
||||
<column name="act" var="act" />
|
||||
<column name="request_vars" var="requestVars" />
|
||||
<column name="request_vars" var="request_vars" />
|
||||
<column name="regdate" var="regdate" default="curdate()" />
|
||||
<column name="ipaddress" var="ipaddress" default="ipaddress()" />
|
||||
</columns>
|
||||
</query>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue