mirror of
https://github.com/torrentpier/torrentpier-lts.git
synced 2025-02-28 15:10:54 +03:00
Show set/unset downloaded actions in log actions (#226)
* Show set/unset downloaded actions in log actions * Update CHANGELOG.md
This commit is contained in:
parent
b5efd5401c
commit
c448464c64
@ -6,6 +6,7 @@
|
||||
**Merged pull requests:**
|
||||
|
||||
- Release v2.1.5-2023.08 🎉
|
||||
- Show set/unset downloaded actions in log actions [\#226](https://github.com/torrentpier/torrentpier-lts/pull/226) ([belomaxorka](https://github.com/belomaxorka))
|
||||
- Show pin & unpin actions in log actions [\#225](https://github.com/torrentpier/torrentpier-lts/pull/225) ([belomaxorka](https://github.com/belomaxorka))
|
||||
- Minor improvements [\#215](https://github.com/torrentpier/torrentpier-lts/pull/215), [\#216](https://github.com/torrentpier/torrentpier-lts/pull/216), [\#217](https://github.com/torrentpier/torrentpier-lts/pull/217), [\#218](https://github.com/torrentpier/torrentpier-lts/pull/218), [\#221](https://github.com/torrentpier/torrentpier-lts/pull/221), [\#222](https://github.com/torrentpier/torrentpier-lts/pull/222), [\#224](https://github.com/torrentpier/torrentpier-lts/pull/224) ([belomaxorka](https://github.com/belomaxorka))
|
||||
|
||||
|
@ -264,6 +264,8 @@ if ($log_rowset)
|
||||
case $log_type['mod_topic_move']:
|
||||
case $log_type['mod_topic_lock']:
|
||||
case $log_type['mod_topic_unlock']:
|
||||
case $log_type['mod_topic_set_downloaded']:
|
||||
case $log_type['mod_topic_unset_downloaded']:
|
||||
case $log_type['mod_post_delete']:
|
||||
case $log_type['mod_post_pin']:
|
||||
case $log_type['mod_post_unpin']:
|
||||
|
@ -2122,12 +2122,14 @@ class log_action
|
||||
'mod_topic_lock' => 3,
|
||||
'mod_topic_unlock' => 4,
|
||||
'mod_post_delete' => 5,
|
||||
'mod_post_pin' => 6,
|
||||
'mod_post_unpin' => 7,
|
||||
'mod_topic_split' => 8,
|
||||
'adm_user_delete' => 9,
|
||||
'adm_user_ban' => 10,
|
||||
'adm_user_unban' => 11,
|
||||
'mod_topic_split' => 6,
|
||||
'adm_user_delete' => 7,
|
||||
'adm_user_ban' => 8,
|
||||
'adm_user_unban' => 9,
|
||||
'mod_post_pin' => 10,
|
||||
'mod_post_unpin' => 11,
|
||||
'mod_topic_set_downloaded' => 12,
|
||||
'mod_topic_unset_downloaded' => 13,
|
||||
);
|
||||
var $log_type_select = array();
|
||||
var $log_disabled = false;
|
||||
|
@ -2542,6 +2542,8 @@ $lang['LOG_ACTION']['LOG_TYPE'] = array(
|
||||
'mod_topic_lock' => 'Topic:<br /> <b>closed</b>',
|
||||
'mod_topic_unlock' => 'Topic:<br /> <b>opened</b>',
|
||||
'mod_topic_split' => 'Topic:<br /> <b>split</b>',
|
||||
'mod_topic_set_downloaded' => 'Topic:<br /> <b>set downloaded</b>',
|
||||
'mod_topic_unset_downloaded' => 'Topic:<br /> <b>unset downloaded</b>',
|
||||
'mod_post_delete' => 'Post:<br /> <b>deleted</b>',
|
||||
'mod_post_pin' => 'Post:<br /> <b>pinned</b>',
|
||||
'mod_post_unpin' => 'Post:<br /> <b>unpinned</b>',
|
||||
|
@ -2542,6 +2542,8 @@ $lang['LOG_ACTION']['LOG_TYPE'] = array(
|
||||
'mod_topic_lock' => 'Топик:<br /> <b>закрыт</b>',
|
||||
'mod_topic_unlock' => 'Топик:<br /> <b>открыт</b>',
|
||||
'mod_topic_split' => 'Топик:<br /> <b>разделен</b>',
|
||||
'mod_topic_set_downloaded' => 'Топик:<br /> <b>скачивание разрешено</b>',
|
||||
'mod_topic_unset_downloaded' => 'Топик:<br /> <b>скачивание запрещено</b>',
|
||||
'mod_post_delete' => 'Пост:<br /> <b>удален</b>',
|
||||
'mod_post_pin' => 'Пост:<br /> <b>закреплен</b>',
|
||||
'mod_post_unpin' => 'Пост:<br /> <b>откреплен</b>',
|
||||
|
@ -2542,6 +2542,8 @@ $lang['LOG_ACTION']['LOG_TYPE'] = array(
|
||||
'mod_topic_lock' => 'Топік:<br /> <b>закритий</b>',
|
||||
'mod_topic_unlock' => 'Топік:<br /> <b>відкритий</b>',
|
||||
'mod_topic_split' => 'Топік:<br /> <b>розділений</b>',
|
||||
'mod_topic_set_downloaded' => 'Топік:<br /> <b>скачування дозволено</b>',
|
||||
'mod_topic_unset_downloaded' => 'Топік:<br /> <b>скачування заборонено</b>',
|
||||
'mod_post_delete' => 'Пост:<br /> <b>видалений</b>',
|
||||
'mod_post_pin' => 'Пост:<br /> <b>закріплений</b>',
|
||||
'mod_post_unpin' => 'Пост:<br /> <b>відкріплений</b>',
|
||||
|
@ -415,6 +415,15 @@ switch ($mode)
|
||||
clear_dl_list($topic_csv);
|
||||
}
|
||||
|
||||
// Log action
|
||||
$type = ($set_download) ? 'mod_topic_set_downloaded' : 'mod_topic_unset_downloaded';
|
||||
|
||||
$log_action->mod($type, array(
|
||||
'forum_id' => $forum_id,
|
||||
'topic_id' => $topic_id,
|
||||
'topic_title' => get_topic_title($topic_id),
|
||||
));
|
||||
|
||||
$msg = ($set_download) ? $lang['TOPICS_DOWN_SETS'] : $lang['TOPICS_DOWN_UNSETS'];
|
||||
bb_die(return_msg_mcp($msg));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user