mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-22 06:13:58 -07:00
r505
За идею спасибо JDVU За баг спасибо druid git-svn-id: https://torrentpier2.googlecode.com/svn/trunk@505 a8ac35ab-4ca4-ca47-4c2d-a49a94f06293
This commit is contained in:
parent
f890524bd6
commit
a94c50f279
4 changed files with 13 additions and 5 deletions
|
@ -589,7 +589,7 @@ if ($bb_cfg['bt_allow_spmode_change'] && $s_mode != 'full')
|
||||||
|
|
||||||
$template->assign_vars(array(
|
$template->assign_vars(array(
|
||||||
'SHOW_DL_LIST_LINK' => (($bb_cfg['bt_show_dl_list'] || $bb_cfg['allow_dl_list_names_mode']) && $t_data['topic_dl_type'] == TOPIC_DL_TYPE_DL),
|
'SHOW_DL_LIST_LINK' => (($bb_cfg['bt_show_dl_list'] || $bb_cfg['allow_dl_list_names_mode']) && $t_data['topic_dl_type'] == TOPIC_DL_TYPE_DL),
|
||||||
'SHOW_TOR_ACT' => ($tor_reged && $show_peers),
|
'SHOW_TOR_ACT' => ($tor_reged && $show_peers && (!isset($bb_cfg['tor_no_tor_act'][$tor_info['tor_status']]) || IS_AM)),
|
||||||
'S_MODE_COUNT' => ($s_mode == 'count'),
|
'S_MODE_COUNT' => ($s_mode == 'count'),
|
||||||
'S_MODE_NAMES' => ($s_mode == 'names'),
|
'S_MODE_NAMES' => ($s_mode == 'names'),
|
||||||
'S_MODE_FULL' => ($s_mode == 'full'),
|
'S_MODE_FULL' => ($s_mode == 'full'),
|
||||||
|
|
|
@ -56,8 +56,8 @@ $domain_name = (!empty($_SERVER['SERVER_NAME'])) ? $_SERVER['SERVER_NAME'] : $do
|
||||||
|
|
||||||
// Increase number of revision after update
|
// Increase number of revision after update
|
||||||
$bb_cfg['tp_version'] = '2.5 pre-stable';
|
$bb_cfg['tp_version'] = '2.5 pre-stable';
|
||||||
$bb_cfg['tp_release_date'] = '27-05-2013';
|
$bb_cfg['tp_release_date'] = '30-05-2013';
|
||||||
$bb_cfg['tp_release_state'] = 'R504';
|
$bb_cfg['tp_release_state'] = 'R505';
|
||||||
|
|
||||||
// Database
|
// Database
|
||||||
$charset = 'utf8';
|
$charset = 'utf8';
|
||||||
|
|
|
@ -337,6 +337,14 @@ $bb_cfg['tor_cannot_new'] = array(TOR_NEED_EDIT, TOR_NO_DESC, TOR_DOUBTFUL);
|
||||||
// Разрешение на ответ релизера, если раздача исправлена.
|
// Разрешение на ответ релизера, если раздача исправлена.
|
||||||
$bb_cfg['tor_reply'] = array(TOR_NEED_EDIT, TOR_NO_DESC, TOR_DOUBTFUL);
|
$bb_cfg['tor_reply'] = array(TOR_NEED_EDIT, TOR_NO_DESC, TOR_DOUBTFUL);
|
||||||
|
|
||||||
|
// Если такой статус у релиза, то статистика раздачи будет скрыта
|
||||||
|
$bb_cfg['tor_no_tor_act'] = array(
|
||||||
|
TOR_CLOSED => true,
|
||||||
|
TOR_DUP => true,
|
||||||
|
TOR_CLOSED_CPHOLD => true,
|
||||||
|
TOR_CONSUMED => true,
|
||||||
|
);
|
||||||
|
|
||||||
// Table names
|
// Table names
|
||||||
define('BUF_TOPIC_VIEW', 'buf_topic_view');
|
define('BUF_TOPIC_VIEW', 'buf_topic_view');
|
||||||
define('BUF_LAST_SEEDER', 'buf_last_seeder');
|
define('BUF_LAST_SEEDER', 'buf_last_seeder');
|
||||||
|
|
|
@ -534,11 +534,11 @@ else if ( ($submit || $confirm) && !$topic_has_new_posts )
|
||||||
{
|
{
|
||||||
if ($to_draft)
|
if ($to_draft)
|
||||||
{
|
{
|
||||||
update_draft('is_draft', $forum_id, $topic_id, $post_id, $post_data['poster_id']);
|
update_draft('is_draft', $forum_id, $topic_id, $post_info['topic_dl_type'], $post_id, $post_data['poster_id']);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
update_draft('no_draft', $forum_id, $topic_id, $post_id, $post_data['poster_id']);
|
update_draft('no_draft', $forum_id, $topic_id, $post_info['topic_dl_type'], $post_id, $post_data['poster_id']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue