mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 18:48:21 -07:00
parent
ba2e294fe9
commit
13e3cf6c0d
16 changed files with 33 additions and 33 deletions
|
@ -94,7 +94,7 @@ $tor_auth_del = ($tor_auth && $tor_reged);
|
|||
$tracker_link = ($tor_reged) ? $lang['BT_REG_YES'] : $lang['BT_REG_NO'];
|
||||
|
||||
$download_link = DOWNLOAD_URL . $attach_id;
|
||||
$description = ($comment) ? $comment : preg_replace("#.torrent$#i", '', $display_name);
|
||||
$description = ($comment) ?: preg_replace("#.torrent$#i", '', $display_name);
|
||||
|
||||
if ($tor_auth_reg || $tor_auth_del) {
|
||||
$reg_tor_url = '<a class="txtb" href="#" onclick="ajax.exec({ action: \'change_torrent\', attach_id : ' . $attach_id . ', type: \'reg\'}); return false;">' . $lang['BT_REG_ON_TRACKER'] . '</a>';
|
||||
|
@ -155,7 +155,7 @@ if ($tor_auth) {
|
|||
}
|
||||
|
||||
if ($tor_reged && $tor_info) {
|
||||
$tor_size = ($tor_info['size']) ? $tor_info['size'] : 0;
|
||||
$tor_size = ($tor_info['size']) ?: 0;
|
||||
$tor_id = $tor_info['topic_id'];
|
||||
$tor_type = $tor_info['tor_type'];
|
||||
|
||||
|
@ -496,14 +496,14 @@ if ($tor_reged && $tor_info) {
|
|||
$seeders[strlen($seeders) - 9] = ' ';
|
||||
$template->assign_vars(array(
|
||||
'SEED_LIST' => $seeders,
|
||||
'SEED_COUNT' => ($seed_count) ? $seed_count : 0,
|
||||
'SEED_COUNT' => ($seed_count) ?: 0,
|
||||
));
|
||||
}
|
||||
if ($s_mode != 'full' && $leechers) {
|
||||
$leechers[strlen($leechers) - 9] = ' ';
|
||||
$template->assign_vars(array(
|
||||
'LEECH_LIST' => $leechers,
|
||||
'LEECH_COUNT' => ($leech_count) ? $leech_count : 0,
|
||||
'LEECH_COUNT' => ($leech_count) ?: 0,
|
||||
));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -778,7 +778,7 @@ class attach_parent
|
|||
$row = DB()->sql_fetchrow($result);
|
||||
DB()->sql_freeresult($result);
|
||||
|
||||
$allowed_filesize = $row['max_filesize'] ? $row['max_filesize'] : $attach_config['max_filesize'];
|
||||
$allowed_filesize = $row['max_filesize'] ?: $attach_config['max_filesize'];
|
||||
$cat_id = (int) $row['cat_id'];
|
||||
$auth_cache = trim($row['forum_permissions']);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue