mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 22:03:49 -07:00
r82
git-svn-id: https://torrentpier2.googlecode.com/svn/trunk@82 a8ac35ab-4ca4-ca47-4c2d-a49a94f06293
This commit is contained in:
parent
c734ad6c82
commit
5ed9b82253
3 changed files with 20 additions and 3 deletions
|
@ -225,7 +225,7 @@ if ($tor_reged && $tor_info)
|
|||
'TOR_STATUS_TEXT' => $lang['TOR_STATUS_NAME'][$tor_info['tor_status']],
|
||||
'TOR_STATUS_ICON' => $bb_cfg['tor_icons'][$tor_info['tor_status']],
|
||||
'TOR_STATUS_BY' => ($cuid && $is_auth['auth_mod']) ? (' · <a href='. PROFILE_URL . $cuid . '>' . get_username($cuid) . '</a> · <i>'. delta_time($tor_info['checked_time']) .' назад</i>') : '',
|
||||
'TOR_STATUS_SELECT' => build_select('', array_flip($bb_cfg['tor_status_name']), TOR_APPROVED),
|
||||
'TOR_STATUS_SELECT' => build_select('', array_flip($lang['TOR_STATUS_NAME']), TOR_APPROVED),
|
||||
//end torrent status mod
|
||||
|
||||
'S_UPLOAD_IMAGE' => $upload_image,
|
||||
|
|
|
@ -57,7 +57,7 @@ $bb_cfg['css_ver'] = 1;
|
|||
|
||||
// Increase number of revision after update
|
||||
$bb_cfg['tp_version'] = '2.0.2';
|
||||
$bb_cfg['tp_release_state'] = 'TP II r81';
|
||||
$bb_cfg['tp_release_state'] = 'TP II r82';
|
||||
$bb_cfg['tp_release_date'] = '05-07-2011';
|
||||
|
||||
$bb_cfg['board_disabled_msg'] = 'форум временно отключен'; // 'forums temporarily disabled'; // show this msg if board has been disabled via ON/OFF trigger
|
||||
|
|
|
@ -238,6 +238,14 @@ switch ($mode)
|
|||
{
|
||||
$result = topic_delete($req_topics, $forum_id);
|
||||
|
||||
//Îáíîâëåíèå êåøà íîâîñòåé íà ãëàâíîé
|
||||
$news_forums = array_flip(explode(',', $bb_cfg['latest_news_forum_id']));
|
||||
if(isset($news_forums[$forum_id]) && $bb_cfg['show_latest_news'] && $result)
|
||||
{
|
||||
$datastore->enqueue('latest_news');
|
||||
$atastore->update('latest_news');
|
||||
}
|
||||
|
||||
$msg = ($result) ? $lang['TOPICS_REMOVED'] : 'No topics were removed';
|
||||
message_die(GENERAL_MESSAGE, return_msg_mcp($msg));
|
||||
}
|
||||
|
@ -256,7 +264,16 @@ switch ($mode)
|
|||
|
||||
if ($confirmed)
|
||||
{
|
||||
$result = topic_move($req_topics, $_POST['new_forum'], $forum_id, isset($_POST['move_leave_shadow']), isset($_POST['insert_bot_msg']));
|
||||
$new_forum_id = (int) $_POST['new_forum'];
|
||||
$result = topic_move($req_topics, $new_forum_id, $forum_id, isset($_POST['move_leave_shadow']), isset($_POST['insert_bot_msg']));
|
||||
|
||||
//Îáíîâëåíèå êåøà íîâîñòåé íà ãëàâíîé
|
||||
$news_forums = array_flip(explode(',', $bb_cfg['latest_news_forum_id']));
|
||||
if(isset(($news_forums[$forum_id] || $news_forums[$new_forum_id])) && $bb_cfg['show_latest_news'] && $result)
|
||||
{
|
||||
$datastore->enqueue('latest_news');
|
||||
$atastore->update('latest_news');
|
||||
}
|
||||
|
||||
$msg = ($result) ? $lang['TOPICS_MOVED'] : $lang['NO_TOPICS_MOVED'];
|
||||
message_die(GENERAL_MESSAGE, return_msg_mcp($msg));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue