mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-22 14:23:57 -07:00
r210
автоподнятие темы при обновлении торрента git-svn-id: https://torrentpier2.googlecode.com/svn/trunk@210 a8ac35ab-4ca4-ca47-4c2d-a49a94f06293
This commit is contained in:
parent
2332585d8a
commit
ed967afc95
2 changed files with 8 additions and 2 deletions
|
@ -159,7 +159,8 @@ $tr_cfg = array(
|
|||
'leech_expire_factor' => 60,
|
||||
'limit_concurrent_ips' => false,
|
||||
'limit_seed_ips' => 0,
|
||||
'limit_leech_ips' => 2,
|
||||
'limit_leech_ips' => 0,
|
||||
'tor_topic_up' => true,
|
||||
);
|
||||
|
||||
$bb_cfg['show_dl_status_in_search'] = true;
|
||||
|
|
|
@ -256,7 +256,7 @@ function change_tor_type ($attach_id, $tor_status_gold)
|
|||
function tracker_register ($attach_id, $mode = '')
|
||||
{
|
||||
global $template, $attach_config, $bb_cfg, $lang, $return_message;
|
||||
global $reg_mode;
|
||||
global $reg_mode, $tr_cfg;
|
||||
|
||||
$attach_id = intval($attach_id);
|
||||
$reg_mode = $mode;
|
||||
|
@ -427,6 +427,11 @@ function tracker_register ($attach_id, $mode = '')
|
|||
}
|
||||
}
|
||||
|
||||
if($tr_cfg['tor_topic_up'])
|
||||
{
|
||||
DB()->query("UPDATE ". BB_TOPICS ." SET topic_last_post_time = GREATEST(topic_last_post_time, ". (TIMENOW - 3*86400) .") WHERE topic_id = $topic_id LIMIT 1");
|
||||
}
|
||||
|
||||
if ($reg_mode == 'request' || $reg_mode == 'newtopic')
|
||||
{
|
||||
$mess = sprintf($lang['BT_REGISTERED'], append_sid("download.php?id=$attach_id"));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue