mirror of
https://github.com/torrentpier/torrentpier-lts.git
synced 2025-02-28 15:10:54 +03:00
Update dl.php
This commit is contained in:
parent
0dae78d3a2
commit
4df958921b
22
dl.php
22
dl.php
@ -158,6 +158,28 @@ if (!$authorised)
|
|||||||
|
|
||||||
$datastore->rm('cat_forums');
|
$datastore->rm('cat_forums');
|
||||||
|
|
||||||
|
//
|
||||||
|
// Check tor status
|
||||||
|
//
|
||||||
|
if (!IS_AM)
|
||||||
|
{
|
||||||
|
$sql = "SELECT tor_status, poster_id FROM " . BB_BT_TORRENTS . " WHERE attach_id = " . (int) $attachment['attach_id'];
|
||||||
|
|
||||||
|
if (!($result = DB()->sql_query($sql)))
|
||||||
|
{
|
||||||
|
bb_die('Could not query tor_status information');
|
||||||
|
}
|
||||||
|
|
||||||
|
$row = DB()->sql_fetchrow($result);
|
||||||
|
|
||||||
|
if (isset($bb_cfg['tor_frozen'][$row['tor_status']]) && !(isset($bb_cfg['tor_frozen_author_download'][$row['tor_status']]) && $userdata['user_id'] === $row['poster_id']))
|
||||||
|
{
|
||||||
|
bb_die($lang['TOR_STATUS_FORBIDDEN'] . $lang['TOR_STATUS_NAME'][$row['tor_status']]);
|
||||||
|
}
|
||||||
|
|
||||||
|
DB()->sql_freeresult($result);
|
||||||
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
// Get Information on currently allowed Extensions
|
// Get Information on currently allowed Extensions
|
||||||
//
|
//
|
||||||
|
Loading…
Reference in New Issue
Block a user