Use different file listing url parameters for effective indexing by search engines (#1156)

This commit is contained in:
Cønstantine Kovalensky 2023-11-22 13:22:37 +04:00 committed by GitHub
commit 5849738f0b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -18,7 +18,7 @@ if ($bb_cfg['bt_disable_dht'] && IS_GUEST) {
die($lang['BT_PRIVATE_TRACKER']);
}
$topic_id = !empty($_GET['t']) ? (int)$_GET['t'] : (http_response_code(404) && die($lang['INVALID_TOPIC_ID']));
$topic_id = !empty($_GET['topic']) ? (int)$_GET['topic'] : (http_response_code(404) && die($lang['INVALID_TOPIC_ID']));
$sql = 'SELECT t.attach_id, t.info_hash_v2, ad.physical_filename
FROM ' . BB_BT_TORRENTS . ' t

View file

@ -169,7 +169,7 @@
<p class="small">{postrow.attach.tor_reged.FILESIZE}</p>
<p style="padding-top: 6px;"><input id="tor-filelist-btn" type="button" class="lite" value="{L_FILELIST}" /></p>
<!-- IF postrow.attach.tor_reged.HASH_V2 -->
<p><a href="{FULL_URL}viewtopic.php?filelist&t={TOPIC_ID}" title = "File hashes | Detailed .torrent meta info" target="_blank">...</a></p>
<p><a href="{FULL_URL}viewtopic.php?filelist&topic={TOPIC_ID}" title = "File hashes | Detailed .torrent meta info" target="_blank">...</a></p>
<!-- ENDIF -->
</td>
</tr>