Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (!empty($setmodules))
- {
- $module['Mods']['Массовое закрытие'] = basename(__FILE__);
- return;
- }
- require('./pagestart.php');
- require(INC_DIR .'functions_torrent.php');
- $url = isset($_POST['url']) ? $_POST['url'] : '';
- $url = str_replace('http://www.', 'http://', $url);
- if($url)
- {
- preg_match_all("#". make_url('/') ."viewtopic.php\?t=([\d]+)#", $url[0], $content);
- $count_tid = 0;
- foreach($content[1] as $tid)
- {
- if(!DB()->fetch_row("SELECT topic_id FROM ". BB_TOPICS ." WHERE topic_id = $tid")) continue;
- $attach_id = DB()->fetch_row("SELECT attach_id FROM bb_bt_torrents WHERE topic_id = $tid");
- $new_status = '6';
- change_tor_status($attach_id, $new_status);
- $count_tid++;
- }
- $message .= '<a href="admin_close_topic.php">Вернуться в панель</a>' .'<br /><br />';
- $message .= sprintf($lang['CLICK_RETURN_ADMIN_INDEX'], '<a href="index.php?pane=right">', '</a>');
- message_die(GENERAL_MESSAGE, $message);
- }
- print_page('admin_close_topic.tpl', 'admin');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement