mirror of
https://github.com/Piwigo/Piwigo.git
synced 2025-04-26 11:19:55 +03:00
issue #552
* many more admin actions are logged into activity table * use the activity.details as an associative array (serialized in database)
This commit is contained in:
parent
447e7e729f
commit
940d1d2e8c
18 changed files with 176 additions and 29 deletions
|
@ -192,6 +192,8 @@ function save_profile_from_post($userdata, &$errors)
|
|||
// mass_updates function
|
||||
include_once(PHPWG_ROOT_PATH.'admin/include/functions.php');
|
||||
|
||||
$activity_details_tables = array();
|
||||
|
||||
if (isset($_POST['mail_address']))
|
||||
{
|
||||
// update common user informations
|
||||
|
@ -255,6 +257,8 @@ function save_profile_from_post($userdata, &$errors)
|
|||
'update' => $fields
|
||||
),
|
||||
array($data));
|
||||
|
||||
$activity_details_tables[] = 'users';
|
||||
}
|
||||
|
||||
if ($conf['allow_user_customization'] or defined('IN_ADMIN'))
|
||||
|
@ -283,8 +287,11 @@ function save_profile_from_post($userdata, &$errors)
|
|||
mass_updates(USER_INFOS_TABLE,
|
||||
array('primary' => array('user_id'), 'update' => $fields),
|
||||
array($data));
|
||||
|
||||
$activity_details_tables[] = 'user_infos';
|
||||
}
|
||||
trigger_notify( 'save_profile_from_post', $userdata['id'] );
|
||||
pwg_activity('user', $userdata['id'], 'edit', array('function'=>__FUNCTION__, 'tables'=>implode(',', $activity_details_tables)));
|
||||
|
||||
if (!empty($_POST['redirect']))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue